

/* V15.2 UX SAFE — couche visuelle passive, sans impact pipeline */
.location-human-context{
  position: sticky;
  top: 0;
  z-index: 40;
  max-width: 1180px;
  margin: 10px auto 12px;
  padding: 12px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 8px 24px rgba(15,23,42,.06);
}

.location-human-context__title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:8px;
}

.location-human-context__title span{
  font-size:12px;
  color:#64748b;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:700;
}

.location-human-context__grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(120px,1fr));
  gap:10px;
}

.location-human-context__grid div{
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:12px;
  padding:8px 10px;
}

.location-human-context__grid span{
  display:block;
  font-size:12px;
  color:#64748b;
}

.location-human-context__grid strong{
  display:block;
  font-size:14px;
  color:#0f172a;
  margin-top:2px;
}

details[data-step][open]{
  box-shadow: 0 10px 26px rgba(15,23,42,.06);
}

@media (max-width: 820px){
  .location-human-context{
    margin:0 0 10px;
    border-radius:0;
    border-left:0;
    border-right:0;
  }
  .location-human-context__grid{
    grid-template-columns:repeat(2,minmax(120px,1fr));
  }
}


/* V15.4 — UX corrections ciblées sans toucher au runtime */
details[data-step="selection"][open] .location-stay-options-inline{
  display:block;
}

.location-stay-options-inline{
  margin:18px 0 14px;
  padding:18px;
  border:1px solid #bfdbfe;
  border-radius:16px;
  background:#eff6ff;
  box-shadow:0 8px 22px rgba(15,23,42,.06);
}

.location-stay-options-inline__header strong{
  font-size:16px;
  color:#0f172a;
}

.location-stay-options-inline__header p{
  max-width:760px;
  color:#475569;
}

.gti-action-primary-row{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-bottom:8px;
}

.gti-secondary-actions{
  border:0;
  margin:4px 0 8px;
  padding:0;
}

.gti-secondary-actions > summary{
  display:inline-flex;
  cursor:pointer;
  color:#0f3f84;
  font-weight:700;
  font-size:13px;
  padding:6px 0;
}

.gti-secondary-actions__body{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:8px 0;
}

details[data-step]:not([open]){
  opacity:.78;
}

details[data-step] .gti-status{
  text-transform:none;
}

.gti-note{
  color:#475569;
}


/* V15.5 — Sélecteur Contacts transverse */
.location-contact-selector-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  align-items:center;
  margin-top:10px;
}

.location-contact-selector-modal[hidden]{
  display:none !important;
}

.location-contact-selector-modal{
  position:fixed;
  inset:0;
  z-index:9999;
  background:rgba(15,23,42,.48);
  display:flex;
  align-items:center;
  justify-content:center;
  padding:22px;
}

.location-contact-selector-modal__dialog{
  width:min(1120px,96vw);
  height:min(780px,92vh);
  background:#fff;
  border-radius:18px;
  box-shadow:0 24px 80px rgba(15,23,42,.28);
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.location-contact-selector-modal__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 16px;
  border-bottom:1px solid #e5e7eb;
}

.location-contact-selector-modal iframe{
  flex:1;
  width:100%;
  border:0;
  background:#fff;
}
