/* Admin → DECT Identity Registry edit modal. Hashed by scripts/build.mjs
   (ensure: views-dect-registry), after views-admin. The old
   <style id="dect-registry-style"> was appended when Edit opened.
   Presence bar #25b6a8 is a 2026-06-21 do-not-converge literal. */

.dreg-form { display: flex; flex-direction: column; gap: 0.55rem; }
.dreg-field { display: flex; flex-direction: column; gap: 0.25rem; }
.dreg-frow { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.dreg-form .form-label { font-size: 0.8rem; color: var(--text-1); font-weight: 500; max-width: 100%; }
.dreg-form .form-input,
.dreg-form .form-select {
  background: var(--bg-input); border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); color: var(--text-1); font-size: 0.825rem;
  padding: 0.4rem 0.55rem; min-width: 0; max-width: 100%; box-sizing: border-box;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.35);
}
.dreg-form .form-input:focus,
.dreg-form .form-select:focus {
  outline: none; border-color: var(--accent);
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.28), 0 0 0 3px var(--accent-soft);
}
.dreg-form .form-input::placeholder { color: var(--text-muted); }
.dreg-w-id { width: 7rem; font-family: var(--font-mono, monospace); }
.dreg-w-name { width: 17rem; }
.dreg-w-mid { width: 14rem; }
.dreg-presence { min-width: 0; max-width: 100%; overflow: hidden; margin: 0.2rem 0 0.45rem; }
.dreg-presence-title { margin: 0 0 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--text-2); }
.dreg-presence .dpres { display: flex; flex-direction: column; gap: 4px; min-width: 0; max-width: 100%; }
.dreg-presence .dpres-row {
  display: grid; grid-template-columns: minmax(4.5rem, 34%) minmax(0, 1fr);
  gap: 6px; align-items: center; min-width: 0; max-width: 100%;
}
.dreg-presence .dpres-ari {
  min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-family: var(--font-mono, ui-monospace, monospace); font-size: 11px;
}
.dreg-presence .dpres-track {
  position: relative; height: 14px; min-width: 0;
  background: var(--bg-2); border-radius: 3px; overflow: hidden;
}
.dreg-presence .dpres-bar {
  position: absolute; top: 2px; height: 10px; border-radius: 2px;
  background: #25b6a8; max-width: 100%;
}
.dreg-presence .dpres-bar.is-own { background: var(--accent, #5e6ad2); }
.dreg-presence .dpres-empty { margin: 0.2rem 0 0; color: var(--text-2); font-size: 0.8rem; }
@media (max-width: 375px) {
  .dreg-presence .dpres-row { grid-template-columns: minmax(3.25rem, 32%) minmax(0, 1fr); gap: 4px; }
}
.dreg-detail { margin: 0.6rem 0 0; }
.dreg-detail > summary { font-size: 0.75rem; color: var(--text-2); cursor: pointer; user-select: none; }
.dreg-detail-pre { margin: 0.35rem 0 0; font-size: 11px; max-height: 180px; overflow: auto; }
