/* Fase 5: Identidad de la iglesia · nombre de los grupos (MA.2 / DA.1). */
#p3-identity{display:none;width:100%;max-width:min(100%,720px);margin:0 auto;padding:8px 20px calc(24px + env(safe-area-inset-bottom,0px));color:var(--navy,#05223a);box-sizing:border-box;overflow-x:hidden}
body.view-reports[data-p3=identity] #p3-identity{display:block}
body.view-reports[data-p3=identity] #p3-home,
body.view-reports[data-p3=identity] #p3-summary,
body.view-reports[data-p3=identity] #report-history,
body.view-reports[data-p3=identity] #editor,
body.view-reports[data-p3=identity] #people-panel,
body.view-reports[data-p3=identity] #p3-admin-services,
body.view-reports[data-p3=identity] #p3-invites,
body.view-reports[data-p3=identity] #p3-map,
body.view-reports[data-p3=identity] #p3-leaders,
body.view-reports[data-p3=identity] #p3-notices,
body.view-reports[data-p3=identity] #p3-modules,
body.view-reports[data-p3=identity] #p3-services,
body.view-reports[data-p3=identity] #p3-service-form,
body.view-reports[data-p3=identity] #p3-service-reports,
body.view-reports[data-p3=identity] #submission{display:none!important}
#p3-identity[hidden]{display:none!important}
#p3-identity *,#p3-identity *::before,#p3-identity *::after{box-sizing:border-box}
#p3-identity .i{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;flex:none}
.p3id-top{display:flex;align-items:center;gap:8px;margin:0 0 14px;min-width:0}
.p3id-back{flex:none;width:40px;height:40px;margin:0 0 0 -8px;padding:0;border:0;border-radius:999px;background:transparent;color:var(--navy,#05223a);cursor:pointer;display:inline-flex;align-items:center;justify-content:center}
.p3id-back:hover{background:#e8eef2}
.p3id-top h1{margin:0;flex:1;min-width:0;font:800 18px/1.2 Inter,system-ui,sans-serif;text-align:center;padding-right:32px}
.p3id-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--line,#d7e0e6);border-radius:18px;background:#fff;max-width:100%}
.p3id-brand img{display:block;height:28px;width:auto;max-width:58%;object-fit:contain}
.p3id-dots{display:flex;gap:8px;flex:none}
.p3id-dots i{width:22px;height:22px;border-radius:999px;display:block;border:1px solid rgba(5,34,58,.08)}
.p3id-dots i.teal{background:#008d9b}
.p3id-dots i.navy{background:#05223a}
.p3id-status{margin:0 0 12px;min-height:1.2em;font:500 14px/1.4 Inter,system-ui,sans-serif;color:var(--muted,#5b6b75)}
.p3id-status.is-error{color:#9b1c1c}
.p3id-layout{display:flex;flex-direction:column;gap:16px;max-width:100%}
.p3id-card{margin:0;padding:18px 16px 20px;border:1px solid var(--line,#d7e0e6);border-radius:20px;background:#fff;max-width:100%}
.p3id-card h2{margin:0 0 10px;font:800 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-text,#007883)}
.p3id-desk-sub{display:none}
.p3id-desk-head{display:none}
.p3id-field{display:block;margin:0}
.p3id-field > span:first-child{display:block;margin:0 0 8px;font:700 15px/1.3 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
.p3id-input{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:4px 4px 4px 16px;border:1.5px solid var(--teal,#008d9b);border-radius:999px;background:#fff}
.p3id-input input{flex:1;min-width:0;border:0;background:transparent;font:600 16px/1.3 Inter,system-ui,sans-serif;color:var(--navy,#05223a);outline:none;padding:8px 0}
.p3id-input [data-p3id=reset]{flex:none;border:0;background:transparent;color:var(--teal-text,#007883);font:700 14px/1 Inter,system-ui,sans-serif;padding:8px 12px;cursor:pointer;border-radius:999px}
.p3id-input [data-p3id=reset]:hover{background:#e6f5f6}
.p3id-hint{margin:8px 0 0;font:500 13px/1.4 Inter,system-ui,sans-serif;color:var(--muted,#5b6b75)}
.p3id-examples-label{margin:16px 0 8px;font:700 14px/1.3 Inter,system-ui,sans-serif}
.p3id-chips{display:flex;flex-wrap:wrap;gap:8px}
.p3id-chip{margin:0;padding:8px 14px;min-height:40px;border:1px solid var(--line,#d7e0e6);border-radius:999px;background:#fff;color:var(--navy,#05223a);font:600 14px/1.2 Inter,system-ui,sans-serif;cursor:pointer}
.p3id-chip.is-on{border-color:var(--teal,#008d9b);color:var(--teal-text,#007883);background:#f3fbfb}
.p3id-chip:hover{border-color:var(--teal,#008d9b);background:#f3fbfb;color:var(--teal-text,#007883)}
.p3id-save{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;max-width:100%;min-height:48px;margin:8px 0 0;padding:0 20px;border:0;border-radius:999px;background:var(--teal,#008d9b);color:#fff;font:700 16px Inter,system-ui,sans-serif;cursor:pointer}
.p3id-save-card{display:flex;width:100%;margin:16px 0 0}
.p3id-save:hover{background:var(--teal,#008d9b);color:#fff;border-color:transparent}
.p3id-save:disabled{opacity:.55;cursor:default}
.p3id-preview{margin:0;padding:16px 16px 14px;border:1px solid var(--line,#d7e0e6);border-radius:20px;background:#fff;max-width:100%}
.p3id-kicker{margin:0 0 12px;font:800 11px/1.2 Inter,system-ui,sans-serif;letter-spacing:.08em;text-transform:uppercase;color:var(--teal-text,#007883)}
.p3id-seg{display:flex;gap:0;padding:4px;border-radius:999px;background:#eef3f6;margin:0 0 12px}
.p3id-seg button{flex:1;min-width:0;min-height:40px;padding:8px 10px;border:0;border-radius:999px;background:transparent;color:var(--muted,#5b6b75);font:700 14px/1.2 Inter,system-ui,sans-serif;cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.p3id-seg button.is-on{background:#fff;color:var(--navy,#05223a);box-shadow:0 1px 2px rgba(5,34,58,.08)}
.p3id-stat{padding:16px 18px 14px;border-radius:16px;background:var(--teal,#008d9b);color:#fff}
.p3id-stat p{margin:0 0 4px;font:600 14px/1.3 Inter,system-ui,sans-serif}
.p3id-stat{margin-bottom:4px}
.p3id-stat strong{display:block;font:800 36px/1 Inter,system-ui,sans-serif}
.p3id-person{display:none;align-items:center;gap:12px;margin:12px 0 0;padding:12px 14px;border:1px solid var(--line,#d7e0e6);border-radius:16px}
.p3id-person .av{flex:none;width:36px;height:36px;border-radius:999px;background:#e6f5f6;color:var(--teal-text,#007883);display:inline-flex;align-items:center;justify-content:center;font:700 14px Inter,system-ui,sans-serif}
.p3id-person b{display:block;font:700 14px/1.3 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
.p3id-person small{display:block;font:500 12px/1.3 Inter,system-ui,sans-serif;color:var(--muted,#5b6b75)}
.p3id-note{margin:10px 0 0;font:500 13px/1.45 Inter,system-ui,sans-serif;color:var(--muted,#5b6b75)}
@media (min-width:900px){
  #p3-identity{max-width:1120px;padding:16px 24px 48px}
  body.view-reports[data-p3=identity] .layout>.main{padding-bottom:48px}
  .p3id-top{display:none}
  .p3id-brand{display:none}
  .p3id-desk-head{display:block;margin:0 0 18px}
  .p3id-desk-head h1{margin:0;font:800 28px/1.15 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
  .p3id-desk-head p{margin:6px 0 0;font:500 14px/1.45 Inter,system-ui,sans-serif;color:var(--muted,#5b6b75)}
  .p3id-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,0.9fr);gap:20px;align-items:start}
  .p3id-card{padding:22px 22px 24px}
  .p3id-card h2{font-size:20px;letter-spacing:0;text-transform:none;color:var(--navy,#05223a);margin-bottom:14px}
  .p3id-desk-sub{display:none}
  .p3id-save-card{display:flex;width:auto;min-width:200px;margin-top:18px}
  .p3id-person{display:flex}
  .p3id-preview{padding:20px}
  .p3id-stat strong{font-size:44px}
}

/* Logo y color de acento */
.p3id-col{display:flex;flex-direction:column;gap:16px;min-width:0}
.p3id-brand-lead{margin:0 0 14px}
.p3id-field-label{display:block;margin:0 0 8px;font:700 15px/1.3 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
.p3id-logo-row{display:flex;gap:12px;align-items:flex-start;margin:0 0 12px;min-width:0}
.p3id-logo-frame{flex:none;width:80px;height:80px;border-radius:18px;background:#f3f6f8;border:1px solid var(--line,#d7e0e6);display:grid;place-items:center;overflow:hidden}
.p3id-logo-frame img{width:100%;height:100%;object-fit:contain;background:#fff}
.p3id-logo-frame.is-custom img{object-fit:contain}
.p3id-logo-actions{flex:1;min-width:0}
.p3id-logo-btns{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 8px}
.p3id-ghost{margin:0;padding:0 16px;min-height:44px;border:1.5px solid var(--teal,#008d9b);border-radius:999px;background:#fff;color:var(--teal-text,#007883);font:700 14px/1 Inter,system-ui,sans-serif;cursor:pointer}
.p3id-ghost:hover{background:#e6f5f6}
.p3id-ghost:disabled{opacity:.55;cursor:default}
.p3id-crop{display:inline-flex;gap:0;padding:3px;border-radius:999px;background:#eef3f6;margin:0 0 8px}
.p3id-crop-btn{margin:0;padding:6px 12px;min-height:36px;border:0;border-radius:999px;background:transparent;color:var(--muted,#5b6b75);font:700 13px/1 Inter,system-ui,sans-serif;cursor:pointer}
.p3id-crop-btn.is-on{background:#fff;color:var(--navy,#05223a);box-shadow:0 1px 2px rgba(5,34,58,.08)}
.p3id-swatches{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 10px}
.p3id-swatch{display:inline-flex;align-items:center;gap:8px;margin:0;padding:8px 12px 8px 8px;min-height:44px;border:1.5px solid var(--line,#d7e0e6);border-radius:999px;background:#fff;color:var(--navy,#05223a);font:600 13px/1 Inter,system-ui,sans-serif;cursor:pointer;max-width:100%}
.p3id-swatch-dot{flex:none;width:22px;height:22px;border-radius:999px;background:var(--swatch,#008d9b);border:1px solid rgba(5,34,58,.12)}
.p3id-swatch.is-on{border-color:var(--swatch,#008d9b);color:var(--teal-text,#007883);background:#f3fbfb}
.p3id-hex{display:block;margin:0 0 12px}
.p3id-hex > span:first-child{display:block;margin:0 0 6px;font:700 14px/1.3 Inter,system-ui,sans-serif}
.p3id-hex-row{display:flex;align-items:center;gap:8px;min-width:0}
.p3id-hex-row input[type=color]{flex:none;width:44px;height:44px;padding:0;border:1px solid var(--line,#d7e0e6);border-radius:12px;background:#fff;cursor:pointer}
.p3id-hex-row input[type=text]{flex:1;min-width:0;min-height:44px;padding:0 14px;border:1.5px solid var(--line,#d7e0e6);border-radius:999px;font:600 16px/1.3 Inter,ui-monospace,monospace;color:var(--navy,#05223a)}
.p3id-hex-row input[type=text]:focus{border-color:var(--teal,#008d9b);outline:none}
.p3id-warn{margin:0 0 12px;padding:10px 12px;border-radius:14px;background:#fff6e8;color:#6a3d00;font:500 13px/1.4 Inter,system-ui,sans-serif}
.p3id-brand-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:0 0 14px}
.p3id-save-brand{width:auto;flex:1;min-width:min(100%,220px);margin:0}
.p3id-live{margin:0 0 16px;padding:12px;border:1px solid var(--line,#d7e0e6);border-radius:18px;background:var(--bg,#fafcfd);display:flex;flex-direction:column;gap:10px;max-width:100%}
.p3id-live-bar{display:flex;align-items:center;gap:10px;min-height:48px;padding:8px 12px;border-radius:14px;background:#fff;border:1px solid var(--line,#d7e0e6);min-width:0}
.p3id-live-bar img{flex:none;height:28px;width:auto;max-width:72px;object-fit:contain}
.p3id-live-bar img.is-church{width:32px;height:32px;border-radius:8px}
.p3id-live-bar b{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 14px/1.2 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
.p3id-live-btn{display:flex;align-items:center;justify-content:center;width:100%;min-height:48px;padding:0 18px;border:0;border-radius:999px;background:var(--fl-app-accent-dark,var(--teal-d,#007883));color:var(--fl-app-accent-on,#fff);font:700 16px Inter,system-ui,sans-serif;pointer-events:none}
.p3id-live-card{padding:14px 16px;border-radius:16px;background:#fff;border:1px solid var(--line,#d7e0e6)}
.p3id-live-chip{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border-radius:999px;background:var(--fl-app-accent-50,var(--teal-50,#e8f5f7));color:var(--fl-app-accent-dark,var(--teal-d,#007883));font:700 12px/1 Inter,system-ui,sans-serif}
.p3id-live-card p{margin:8px 0 0;font:500 13px/1.4 Inter,system-ui,sans-serif;color:var(--navy,#05223a)}
@media (min-width:900px){
  .p3id-col{gap:20px}
  .p3id-layout{grid-template-columns:minmax(0,1.1fr) minmax(280px,0.9fr)}
  .p3id-brand-actions{margin-top:8px}
}

.p3id-file{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.p3id-swatch .p3id-swatch-dot{background:#008d9b}
.p3id-swatch[data-hex="#008d9b"] .p3id-swatch-dot{background:#008d9b}
.p3id-swatch[data-hex="#007883"] .p3id-swatch-dot{background:#007883}
.p3id-swatch[data-hex="#0b5c4d"] .p3id-swatch-dot{background:#0b5c4d}
.p3id-swatch[data-hex="#1d4f91"] .p3id-swatch-dot{background:#1d4f91}
.p3id-swatch[data-hex="#6b3485"] .p3id-swatch-dot{background:#6b3485}
.p3id-swatch[data-hex="#8a2a2a"] .p3id-swatch-dot{background:#8a2a2a}
.p3id-swatch[data-hex="#008d9b"].is-on{border-color:#008d9b}
.p3id-swatch[data-hex="#007883"].is-on{border-color:#007883}
.p3id-swatch[data-hex="#0b5c4d"].is-on{border-color:#0b5c4d}
.p3id-swatch[data-hex="#1d4f91"].is-on{border-color:#1d4f91}
.p3id-swatch[data-hex="#6b3485"].is-on{border-color:#6b3485}
.p3id-swatch[data-hex="#8a2a2a"].is-on{border-color:#8a2a2a}
.p3id-stat{background:var(--teal,#008d9b);color:#fff}

.p3id-lang-card{margin-top:0}
.p3id-lang-seg button{min-height:44px}
