/* Homla: people screens (People, Roles, External access, guest home, guest
   invite banner, and the invite / role / guest modals), matched 1-to-1 to
   05-production/screens/people-skills-memory/4.*. Loaded after homla.css.

   Everything is scoped under .hp, a class carried by those views and modals
   only, so the Plan DS component rules copied in below (section B) cannot
   leak into another area, and another area's copy of them cannot leak in.
   A. tokens the DS components need that homla.css does not define
   B. DS components (generated from ds/homla-ds.css, prefixed with .hp)
   C. adapters: the real markup and the legacy rules it still inherits */

/* ------------------------------------------------------------------ A. */
.hp {
  --fs-11: 11px; --fs-12: 12px; --fs-13: 13px; --fs-14: 14px; --fs-15: 15px; --fs-17: 17px;
  --fs-20: 20px; --fs-24: 24px; --fs-30: 30px; --fs-36: 36px; --fs-48: 48px;
  --lh-tight: 1.1; --lh-snug: 1.3; --lh-body: 1.5;
  --s-0: 0; --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 24px;
  --s-7: 28px; --s-8: 32px; --s-10: 40px; --s-12: 48px; --s-16: 64px;
  --dur-1: 90ms; --dur-2: 160ms; --dur-3: 240ms; --dur-4: 360ms;
  --z-sticky: 10; --z-drop: 40; --z-modal: 70; --z-toast: 80; --z-tip: 90;
  --skel: var(--bg-sunken); --skel-hi: var(--bg-canvas);
}

/* ------------------------------------------------------------------ B. */
.hp .h-display { font: 300 var(--fs-36)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-display); }
.hp .h-title { font: 400 var(--fs-24)/1.2 var(--font-display); letter-spacing: var(--track-title); }
.hp .h-h2 { font: 500 var(--fs-17)/var(--lh-snug) var(--font-sans); letter-spacing: -0.01em; }
.hp .h-h3 { font: 500 var(--fs-15)/var(--lh-snug) var(--font-sans); }
.hp .h-lead { font-size: var(--fs-15); color: var(--text-2); max-width: 68ch; }
.hp .h-body { font-size: var(--fs-14); }
.hp .h-small { font-size: var(--fs-13); }
.hp .h-caption { font-size: var(--fs-12); color: var(--text-2); }
.hp .h-eyebrow { font: 500 var(--fs-11)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); }
.hp .h-mono { font-family: var(--font-mono); font-size: var(--fs-13); }
.hp .h-muted { color: var(--text-2); }
.hp .h-num { font-variant-numeric: tabular-nums; }
.hp .h-strong { font-weight: 500; color: var(--text); }
.hp .h-link { color: var(--link); text-decoration: underline; text-underline-offset: 2px; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }
.hp .h-link--quiet { color: var(--text); text-decoration-color: var(--line-strong); }
.hp .h-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.hp .h-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hp .h-sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hp .h-i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; display: inline-block; vertical-align: middle; }
.hp .h-i--12 { width: 12px; height: 12px; }
.hp .h-i--14 { width: 14px; height: 14px; }
.hp .h-i--20 { width: 20px; height: 20px; }
.hp .h-i--24 { width: 24px; height: 24px; }
.hp .h-i--32 { width: 32px; height: 32px; stroke-width: 1.25; }
.hp .h-row { display: flex; align-items: center; gap: var(--s-2); min-width: 0; }
.hp .h-row--wrap { flex-wrap: wrap; }
.hp .h-row--between { justify-content: space-between; }
.hp .h-row--end { justify-content: flex-end; }
.hp .h-row--top { align-items: flex-start; }
.hp .h-stack { display: flex; flex-direction: column; gap: var(--s-3); min-width: 0; }
.hp .h-stack--2 { gap: var(--s-2); }
.hp .h-stack--4 { gap: var(--s-4); }
.hp .h-stack--6 { gap: var(--s-6); }
.hp .h-stack--8 { gap: var(--s-8); }
.hp .h-grow { flex: 1 1 auto; min-width: 0; }
.hp .h-grid { display: grid; gap: var(--s-4); grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); }
.hp .h-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp .h-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hp .h-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hp .h-grid--sm { grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); }
.hp .h-divider { height: 1px; background: var(--line); border: 0; margin: var(--s-4) 0; }
.hp .h-main { min-width: 0; display: flex; flex-direction: column; }
.hp .h-crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; font-size: var(--fs-14); color: var(--text-2); }
.hp .h-crumbs a { color: var(--text-2); text-decoration: none; white-space: nowrap; }
.hp .h-crumbs a:hover { color: var(--text); text-decoration: underline; }
.hp .h-crumbs__sep { color: var(--line-strong); }
.hp .h-crumbs [aria-current="page"] { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .h-page { width: 100%; max-width: var(--content-max); padding: var(--s-8) var(--s-7) var(--s-16); }
.hp .h-page--wide { max-width: none; }
.hp .h-page--narrow { max-width: 760px; }
.hp .h-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-4); flex-wrap: wrap; margin-bottom: var(--s-6); }
.hp .h-page-head__title { font: 300 var(--fs-36)/var(--lh-tight) var(--font-display); letter-spacing: var(--track-display); margin: 0 0 var(--s-2); }
.hp .h-page-head__sub { color: var(--text-2); font-size: var(--fs-15); max-width: 68ch; }
.hp .h-page-head__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hp .h-page-head .h-back { margin-bottom: var(--s-3); }
.hp .h-toolbar { display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.hp .h-toolbar .h-search { flex: 1 1 240px; max-width: 360px; }
.hp .h-section { margin-top: var(--s-10); }
.hp .h-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.hp .h-section__title { font: 500 var(--fs-17)/var(--lh-snug) var(--font-sans); letter-spacing: -0.01em; }
.hp .h-section__sub { color: var(--text-2); font-size: var(--fs-13); }
@media (max-width: 1100px) {
.hp .h-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.hp .h-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
.hp .h-page { padding: var(--s-6) var(--s-4) var(--s-12); }
.hp .h-page-head__title { font-size: var(--fs-30); }
.hp .h-page-head__actions { width: 100%; }
.hp .h-page-head__actions .h-btn--primary { flex: 1 1 auto; }
.hp .h-toolbar .h-search { max-width: none; flex-basis: 100%; }
.hp .h-grid--2, .hp .h-grid--3 { grid-template-columns: minmax(0, 1fr); }
.hp .h-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.hp .h-btn { --_h: var(--ctl-h);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2); height: var(--_h); padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-surface); color: var(--text);
  font: 500 var(--fs-13)/1 var(--font-sans); letter-spacing: -0.005em; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
  user-select: none; position: relative; }
.hp .h-btn:hover { border-color: var(--line-strong); background: var(--bg-hover); text-decoration: none; }
.hp .h-btn:active { transform: translateY(1px); }
.hp .h-btn .h-i { width: 14px; height: 14px; }
.hp .h-btn--primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.hp .h-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.hp .h-btn--secondary {  }
.hp .h-btn--ghost { background: transparent; border-color: transparent; color: var(--text); }
.hp .h-btn--ghost:hover { background: var(--bg-hover); border-color: transparent; }
.hp .h-btn--danger { background: var(--bg-surface); border-color: var(--line); color: var(--danger); }
.hp .h-btn--danger:hover { background: var(--danger-tint); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.hp .h-btn--danger-solid { background: var(--danger-solid); border-color: var(--danger-solid); color: var(--on-danger); }
.hp .h-btn--danger-solid:hover { background: color-mix(in srgb, var(--danger-solid) 88%, var(--text)); }
.hp .h-btn--sm { --_h: var(--ctl-h-sm); padding: 0 10px; font-size: var(--fs-12); gap: 6px; border-radius: var(--r-sm); }
.hp .h-btn--xs { --_h: 22px; padding: 0 7px; font-size: var(--fs-12); gap: 4px; border-radius: var(--r-sm); }
.hp .h-btn--lg { --_h: var(--ctl-h-lg); padding: 0 18px; font-size: var(--fs-14); }
.hp .h-btn--block { width: 100%; }
.hp .h-btn--icon { width: var(--_h); padding: 0; }
.hp .h-btn--icon.h-btn--sm { width: var(--ctl-h-sm); }
.hp .h-btn:disabled, .hp .h-btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; pointer-events: none; }
.hp .h-btn.is-loading { color: transparent !important; pointer-events: none; }
.hp .h-btn.is-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid currentColor; border-color: var(--text) var(--text) transparent transparent; animation: h-spin .7s linear infinite; }
.hp .h-btn--primary.is-loading::after { border-color: var(--on-accent) var(--on-accent) transparent transparent; }
.hp .h-btn.is-hover { border-color: var(--line-strong); background: var(--bg-hover); }
.hp .h-btn--primary.is-hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.hp .h-btn.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; }
.hp .h-btn-group { display: inline-flex; }
.hp .h-btn-group .h-btn { border-radius: 0; }
.hp .h-btn-group .h-btn + .h-btn { margin-left: -1px; }
.hp .h-btn-group .h-btn:first-child { border-radius: var(--r-md) 0 0 var(--r-md); }
.hp .h-btn-group .h-btn:last-child { border-radius: 0 var(--r-md) var(--r-md) 0; }
@keyframes h-spin{ to { transform: rotate(360deg); } }
.hp .h-spinner { width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--line-strong); border-top-color: var(--text); animation: h-spin .7s linear infinite; display: inline-block; flex: none; }
.hp .h-back { display: inline-flex; align-items: center; gap: 6px; color: var(--text-2); font-size: var(--fs-13); text-decoration: none; }
.hp .h-back:hover { color: var(--text); text-decoration: underline; }
.hp .h-pill { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 7px; border-radius: var(--r-sm);
  border: 1px solid transparent; background: var(--bg-sunken); color: var(--text);
  font: 500 var(--fs-11)/1 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; white-space: nowrap; }
.hp .h-pill .h-i { width: 12px; height: 12px; }
.hp .h-pill--ok { background: var(--ok-tint); color: var(--ok); }
.hp .h-pill--warn { background: var(--warn-tint); color: var(--warn); }
.hp .h-pill--danger { background: var(--danger-tint); color: var(--danger); }
.hp .h-pill--info { background: var(--info-tint); color: var(--info); }
.hp .h-pill--outline { background: transparent; border-color: var(--line-strong); color: var(--text-2); }
.hp .h-pill--solid { background: var(--inverse); color: var(--on-inverse); }
.hp .h-pill--scope { background: transparent; border-color: var(--line-control); color: var(--text); }
.hp .h-pill--hot { background: var(--tint); color: var(--on-tint); }
.hp .h-pill--dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.hp .h-status { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px 0 7px; border-radius: var(--r-pill); font-size: var(--fs-12); font-weight: 500; background: var(--bg-sunken); color: var(--text-2); white-space: nowrap; }
.hp .h-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex: none; }
.hp .h-status--on { background: var(--ok-tint); color: var(--ok); }
.hp .h-status--on::before { box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
.hp .h-status--running::before { animation: h-pulse 1.4s var(--ease) infinite; }
.hp .h-status--paused::before { border-radius: 1px; width: 6px; height: 7px; background: none; border-left: 2px solid currentColor; border-right: 2px solid currentColor; }
.hp .h-status--waiting { background: var(--info-tint); color: var(--info); }
.hp .h-status--warn { background: var(--warn-tint); color: var(--warn); }
.hp .h-status--bad { background: var(--danger-tint); color: var(--danger); }
@keyframes h-pulse{ 0%,100% { opacity: 1; } 50% { opacity: .35; } }
.hp .h-tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-surface); color: var(--text-2); font-size: var(--fs-12); white-space: nowrap; }
.hp .h-tag--mono { font-family: var(--font-mono); font-size: 11.5px; }
.hp .h-tag--warn { border-color: color-mix(in srgb, var(--warn) 45%, transparent); color: var(--warn); background: var(--warn-tint); }
.hp .h-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.hp .h-cap { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: var(--fs-13); color: var(--text); }
.hp .h-cap::before { content: ""; width: 8px; height: 8px; border-radius: 2px; border: 1px solid var(--line-control); flex: none; }
.hp .h-cap--read::before { background: var(--text-2); border-color: var(--text-2); }
.hp .h-cap--write::before { background: var(--text); border-color: var(--text); }
.hp .h-cap--destructive::before { background: var(--danger); border-color: var(--danger); }
.hp .h-cap--none { color: var(--text-2); }
.hp .h-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill); background: var(--bg-sunken); color: var(--text); font: 500 11px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
.hp .h-count--strong { background: var(--inverse); color: var(--on-inverse); }
.hp .h-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-2); display: inline-block; flex: none; }
.hp .h-dot--ok { background: var(--ok); }
.hp .h-dot--warn { background: var(--warn); }
.hp .h-dot--danger { background: var(--danger); }
.hp .h-dot--info { background: var(--info); }
.hp .h-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hp .h-field + .h-field { margin-top: var(--s-4); }
.hp :is(.h-grid, .h-stack, .h-row, .h-form-row, .h-approval__edit, .h-split) > .h-field + .h-field { margin-top: 0; }
.hp .h-label { font-size: var(--fs-13); font-weight: 500; color: var(--text); }
.hp .h-label__opt { font-weight: 400; color: var(--text-2); }
.hp .h-hint { font-size: var(--fs-12); color: var(--text-2); }
.hp .h-error-text { font-size: var(--fs-12); color: var(--danger); display: flex; align-items: center; gap: 5px; }
.hp .h-input, .hp .h-select, .hp .h-textarea { width: 100%; min-width: 0; height: var(--ctl-h); padding: 0 10px; border: 1px solid var(--line-control); border-radius: var(--r-md);
  background: var(--bg-surface); color: var(--text); font-size: var(--fs-14);
  transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.hp .h-input::placeholder, .hp .h-textarea::placeholder { color: var(--text-2); opacity: 1; }
.hp .h-input:hover, .hp .h-select:hover, .hp .h-textarea:hover { border-color: var(--text-2); }
.hp .h-input:focus, .hp .h-select:focus, .hp .h-textarea:focus, .hp .h-input.is-focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); }
.hp .h-input:disabled, .hp .h-select:disabled, .hp .h-textarea:disabled { background: var(--bg-sunken); opacity: .6; cursor: not-allowed; }
.hp .h-input[readonly] { background: var(--bg-sunken); }
.hp .h-input.is-error, .hp .h-input[aria-invalid="true"], .hp .h-textarea[aria-invalid="true"] { border-color: var(--danger); }
.hp .h-input.is-error:focus, .hp .h-input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 18%, transparent); }
.hp .h-input--mono { font-family: var(--font-mono); font-size: var(--fs-13); }
.hp .h-input--sm { height: var(--ctl-h-sm); font-size: var(--fs-13); }
.hp .h-textarea { height: auto; min-height: 88px; padding: 8px 10px; line-height: 1.5; resize: vertical; }
.hp .h-select { appearance: none; -webkit-appearance: none; padding-right: 30px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8279' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 9px center; background-size: 14px; }
.hp .h-input-group { display: flex; align-items: stretch; min-width: 0; }
.hp .h-input-group > .h-input { border-radius: var(--r-md) 0 0 var(--r-md); }
.hp .h-input-group > .h-btn { border-radius: 0 var(--r-md) var(--r-md) 0; margin-left: -1px; height: var(--ctl-h); border-color: var(--line-control); }
.hp .h-input-affix { display: flex; align-items: center; height: var(--ctl-h); border: 1px solid var(--line-control); border-radius: var(--r-md); background: var(--bg-surface); padding: 0 10px; gap: 8px; min-width: 0; }
.hp .h-input-affix:focus-within { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 12%, transparent); }
.hp .h-input-affix input { border: 0; outline: 0; background: transparent; flex: 1; min-width: 0; height: 100%; padding: 0; font-size: var(--fs-14); }
.hp .h-input-affix__pre { color: var(--text-2); font-family: var(--font-mono); font-size: var(--fs-13); }
.hp .h-form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-4); }
.hp .h-search { position: relative; display: flex; align-items: center; min-width: 0; }
.hp .h-search .h-i { position: absolute; left: 10px; color: var(--text-2); pointer-events: none; }
.hp .h-search .h-input { padding-left: 32px; padding-right: 36px; }
.hp .h-search--sunken .h-input { background: var(--bg-sunken); border-color: transparent; }
.hp .h-search--sunken .h-input:focus { background: var(--bg-surface); border-color: var(--text); }
.hp .h-check, .hp .h-radio { display: inline-flex; align-items: flex-start; gap: 9px; font-size: var(--fs-14); color: var(--text); cursor: pointer; line-height: 1.4; }
.hp .h-check input, .hp .h-radio input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 1px 0 0; border: 1px solid var(--line-control);
  background: var(--bg-surface); display: grid; place-items: center; cursor: pointer; transition: background var(--dur-1) var(--ease), border-color var(--dur-1) var(--ease); }
.hp .h-check input { border-radius: var(--r-sm); }
.hp .h-radio input { border-radius: 50%; }
.hp .h-check input:hover, .hp .h-radio input:hover { border-color: var(--text); }
.hp .h-check input:checked, .hp .h-check input:indeterminate { background: var(--accent); border-color: var(--accent); }
.hp .h-check input:checked::after { content: ""; width: 9px; height: 5px; border-left: 1.75px solid var(--on-accent); border-bottom: 1.75px solid var(--on-accent); transform: translateY(-1px) rotate(-45deg); }
.hp .h-check input:indeterminate::after { content: ""; width: 8px; height: 1.75px; background: var(--on-accent); }
.hp .h-radio input:checked { border: 5px solid var(--accent); }
.hp .h-check input:disabled, .hp .h-radio input:disabled { opacity: .45; cursor: not-allowed; }
.hp .h-check:has(input:disabled), .hp .h-radio:has(input:disabled) { color: var(--text-2); cursor: not-allowed; }
.hp .h-check__hint { display: block; font-size: var(--fs-12); color: var(--text-2); }
.hp .h-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-14); }
.hp .h-switch input { appearance: none; -webkit-appearance: none; position: relative; width: 32px; height: 18px; margin: 0; flex: none; border-radius: var(--r-sm); border: 1px solid var(--line-control); background: var(--bg-sunken); cursor: pointer; transition: background var(--dur-2) var(--ease), border-color var(--dur-2) var(--ease); }
.hp .h-switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 2px; background: var(--text-2); transition: transform var(--dur-2) var(--ease-out), background var(--dur-2) var(--ease); }
.hp .h-switch input:checked { background: var(--accent); border-color: var(--accent); }
.hp .h-switch input:checked::after { transform: translateX(14px); background: var(--on-accent); }
.hp .h-switch input:disabled { opacity: .45; cursor: not-allowed; }
.hp .h-switch:has(input:disabled) { color: var(--text-2); cursor: not-allowed; }
.hp .h-switch--row { display: flex; justify-content: space-between; width: 100%; padding: var(--s-3) 0; border-top: 1px solid var(--line); }
.hp .h-seg { display: inline-flex; padding: 2px; gap: 2px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-canvas); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.hp .h-seg__btn { height: 26px; padding: 0 10px; border: 0; border-radius: 4px; background: transparent; color: var(--text-2); font-size: var(--fs-13); white-space: nowrap; transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.hp .h-seg__btn:hover { color: var(--text); }
.hp .h-seg__btn[aria-pressed="true"], .hp .h-seg__btn[aria-checked="true"], .hp .h-seg__btn.is-on { background: var(--bg-surface); color: var(--text); box-shadow: 0 0 0 1px var(--line-control); }
.hp .h-seg__btn:disabled { opacity: .45; cursor: not-allowed; }
.hp .h-seg--sm .h-seg__btn { height: 22px; padding: 0 8px; font-size: var(--fs-12); }
.hp .h-seg--block { display: flex; }
.hp .h-seg--block .h-seg__btn { flex: 1; justify-content: center; }
.hp .h-opts { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); overflow: hidden; }
.hp .h-opts--grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: var(--s-3); border: 0; background: none; overflow: visible; }
.hp .h-opt { position: relative; display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); cursor: pointer; background: var(--bg-surface); transition: background var(--dur-1) var(--ease); }
.hp .h-opts:not(.h-opts--grid) .h-opt + .h-opt { border-top: 1px solid var(--line); }
.hp .h-opts--grid .h-opt { border: 1px solid var(--line); border-radius: var(--r-lg); }
.hp .h-opt:hover { background: var(--bg-hover); }
.hp .h-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin: 2px 0 0; border: 1px solid var(--line-control); border-radius: 50%; background: var(--bg-surface); }
.hp .h-opt input:checked { border: 5px solid var(--accent); }
.hp .h-opt:has(input:checked) { background: var(--bg-surface); }
.hp .h-opts--grid .h-opt:has(input:checked) { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.hp .h-opts:not(.h-opts--grid) .h-opt:has(input:checked) { box-shadow: inset 2px 0 0 var(--text); }
.hp .h-opt:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.hp .h-opt__icon { width: 32px; height: 32px; border-radius: var(--r-md); border: 1px solid var(--line); display: grid; place-items: center; flex: none; color: var(--text); background: var(--bg-canvas); }
.hp .h-opt__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hp .h-opt__label { font-weight: 500; font-size: var(--fs-14); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hp .h-opt__desc { font-size: var(--fs-13); color: var(--text-2); }
.hp .h-tree { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); overflow: hidden; }
.hp .h-tree__group + .h-tree__group { border-top: 1px solid var(--line); }
.hp .h-tree__head { display: flex; align-items: center; gap: var(--s-3); padding: 10px var(--s-4); background: var(--bg-canvas); }
.hp .h-tree__head .h-check { font-weight: 500; flex: 1; }
.hp .h-tree__head .h-chev { color: var(--text-2); transition: transform var(--dur-2) var(--ease); }
.hp .h-tree__group[open] > .h-tree__head .h-chev, .hp .h-tree__group.is-open > .h-tree__head .h-chev { transform: rotate(90deg); }
.hp .h-tree__head summary { list-style: none; }
.hp .h-tree__items { display: flex; flex-direction: column; padding: 6px var(--s-4) 10px 42px; gap: 2px; }
.hp .h-tree__item { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: 5px 0; }
.hp .h-tree__item .h-check { font-family: var(--font-mono); font-size: var(--fs-13); }
.hp .h-tree__desc { font-size: var(--fs-12); color: var(--text-2); font-family: var(--font-sans); display: block; }
.hp .h-tree__group--destructive .h-tree__head { background: var(--danger-tint); }
.hp .h-tree__group--destructive .h-tree__head .h-check { color: var(--danger); }
.hp .h-chip__x { display: grid; place-items: center; width: 18px; height: 18px; border: 0; border-radius: 2px; background: transparent; color: var(--text-2); padding: 0; }
.hp .h-chip__x:hover { background: var(--line); color: var(--text); }
.hp .h-card { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); min-width: 0; }
.hp .h-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-3) var(--s-5); background: var(--bg-sunken); border-bottom: 1px solid var(--line); border-radius: var(--r-lg) var(--r-lg) 0 0; }
.hp .h-card__title { font: 600 var(--fs-15)/var(--lh-snug) var(--font-sans); color: var(--text); }
.hp .h-card__sub { font-size: var(--fs-13); color: var(--text-2); margin-top: 2px; }
.hp .h-card__body { padding: var(--s-4) var(--s-5); }
.hp .h-card__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); flex-wrap: wrap; }
.hp .h-card--pad { padding: var(--s-5); }
.hp .h-card--flush .h-card__body { padding: 0; }
.hp .h-card--sunken { background: var(--bg-sunken); border-color: transparent; }
.hp .h-card--link { color: inherit; text-decoration: none; display: block; transition: border-color var(--dur-1) var(--ease), box-shadow var(--dur-1) var(--ease); }
.hp .h-card--link:hover { border-color: var(--line-strong); box-shadow: var(--shadow-1); text-decoration: none; }
.hp .h-card--danger { border-color: color-mix(in srgb, var(--danger) 45%, var(--line)); }
.hp .h-card--danger .h-card__title { color: var(--danger); }
.hp .h-card--selected { border-color: var(--text); box-shadow: inset 0 0 0 1px var(--text); }
.hp .h-home-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-5); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); min-width: 0; }
.hp .h-home-card__icon { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-canvas); }
.hp .h-home-card__title { font: 500 var(--fs-15)/1.3 var(--font-sans); }
.hp .h-home-card__text { color: var(--text-2); font-size: var(--fs-13); }
.hp .h-home-card__foot { margin-top: auto; display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hp .h-logo { --_s: 32px; width: var(--_s); height: var(--_s); flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--logo-tile); overflow: hidden; }
.hp .h-logo img { width: 62%; height: 62%; object-fit: contain; }
.hp .h-logo--sm { --_s: 22px; border-radius: var(--r-sm); }
.hp .h-logo--sm img { width: 70%; height: 70%; }
.hp .h-logo--lg { --_s: 44px; border-radius: var(--r-lg); }
.hp .h-logo--xl { --_s: 56px; border-radius: var(--r-lg); }
.hp .h-logo--mono { background: var(--bg-sunken); color: var(--text); font: 500 12px/1 var(--font-mono); letter-spacing: 0; text-transform: uppercase; }
.hp .h-logo--mono.h-logo--sm { font-size: 9.5px; }
.hp .h-logo--mono.h-logo--lg { font-size: 15px; }
.hp .h-logos { display: inline-flex; align-items: center; }
.hp .h-logos .h-logo + .h-logo { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-surface); }
.hp .h-logos__more { margin-left: 6px; font-size: var(--fs-12); color: var(--text-2); }
.hp .h-conns { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); overflow: hidden; }
.hp .h-conn { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); min-width: 0; color: inherit; text-decoration: none; transition: background var(--dur-1) var(--ease); }
.hp .h-conns .h-conn + .h-conn { border-top: 1px solid var(--line); }
.hp a.h-conn:hover, .hp .h-conn.is-hover { background: var(--bg-hover); text-decoration: none; }
.hp .h-conn__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.hp .h-conn__name { font-weight: 500; display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.hp .h-conn__desc { font-size: var(--fs-13); color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .h-conn__side { display: flex; align-items: center; gap: var(--s-2); flex: none; }
.hp .h-conns__group { padding: 8px var(--s-4); background: var(--bg-canvas); border-top: 1px solid var(--line); font: 500 var(--fs-11)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); }
.hp .h-conns__group:first-child { border-top: 0; }
.hp .h-kv { display: grid; grid-template-columns: minmax(110px, max-content) minmax(0, 1fr); gap: 8px var(--s-5); font-size: var(--fs-13); }
.hp .h-kv dt { color: var(--text-2); }
.hp .h-kv dd { margin: 0; color: var(--text); min-width: 0; overflow-wrap: anywhere; }
.hp .h-kv--stack { grid-template-columns: minmax(0, 1fr); gap: 2px; }
.hp .h-kv--stack dd + dt { margin-top: var(--s-3); }
.hp .h-list { display: flex; flex-direction: column; }
.hp .h-list__item { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) 0; border-top: 1px solid var(--line); min-width: 0; }
.hp .h-list__item:first-child { border-top: 0; }
.hp .h-list--pad .h-list__item { padding-left: var(--s-5); padding-right: var(--s-5); }
.hp .h-list__main { flex: 1; min-width: 0; }
.hp .h-list__title { font-weight: 500; }
.hp .h-list__sub { font-size: var(--fs-12); color: var(--text-2); }
.hp .h-list__main .h-small { color: var(--text-2); }
.hp .h-log { display: flex; flex-direction: column; }
.hp .h-log__item { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-3); padding: 10px 0; border-top: 1px solid var(--line); font-size: var(--fs-13); }
.hp .h-log__item:first-child { border-top: 0; }
.hp .h-log__time { font: 400 var(--fs-11)/1.6 var(--font-mono); letter-spacing: var(--track-mono); color: var(--text-2); text-transform: uppercase; }
.hp .h-table-wrap { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg-surface); overflow-x: auto; min-width: 0; }
.hp .h-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.hp .h-table th { text-align: left; padding: 10px var(--s-4); border-bottom: 1px solid var(--line); font: 500 var(--fs-11)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); white-space: nowrap; background: var(--bg-surface); }
.hp .h-table td { padding: 11px var(--s-4); border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.hp .h-table tbody tr:last-child td { border-bottom: 0; }
.hp .h-table tbody tr { transition: background var(--dur-1) var(--ease); }
.hp .h-table tbody tr:hover td { background: var(--bg-hover); }
.hp .h-table--grid td + td, .hp .h-table--grid th + th { border-left: 1px solid var(--line); }
.hp .h-table--dense td { padding: 7px var(--s-3); }
.hp .h-table--dense th { padding: 8px var(--s-3); }
.hp .h-table th.is-num, .hp .h-table td.is-num { text-align: right; font-variant-numeric: tabular-nums; }
.hp .h-table td.is-mono { font-family: var(--font-mono); font-size: 12.5px; }
.hp .h-table td.is-shrink, .hp .h-table th.is-shrink { width: 1%; white-space: nowrap; }
.hp .h-table tr.is-selected td { background: var(--tint); }
.hp .h-table tr.is-selected td:first-child { box-shadow: inset 2px 0 0 var(--brand); }
.hp .h-table tr.is-selected .h-muted { color: var(--on-tint); }
.hp .h-table tr.is-error td { background: var(--danger-tint); }
.hp .h-table tr.is-error td:first-child { box-shadow: inset 2px 0 0 var(--danger); }
.hp .h-table tr.is-clickable { cursor: pointer; }
.hp .h-sort { display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; padding: 0; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; }
.hp .h-sort:hover { color: var(--text); }
.hp .h-sort .h-i { width: 12px; height: 12px; opacity: .55; }
.hp th[aria-sort="ascending"] .h-sort, .hp th[aria-sort="descending"] .h-sort { color: var(--text); }
.hp th[aria-sort="ascending"] .h-sort .h-i, .hp th[aria-sort="descending"] .h-sort .h-i { opacity: 1; }
.hp th[aria-sort="ascending"] .h-sort .h-i { transform: rotate(180deg); }
.hp .h-row-actions { display: flex; justify-content: flex-end; gap: 4px; opacity: .0; transition: opacity var(--dur-1) var(--ease); }
.hp tr:hover .h-row-actions, .hp tr:focus-within .h-row-actions, .hp .h-row-actions.is-visible { opacity: 1; }
@media (hover: none) {
.hp .h-row-actions { opacity: 1; }
}
.hp .h-cell-who { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hp .h-cell-who__name { font-weight: 500; }
.hp .h-cell-who__sub { font-size: var(--fs-12); color: var(--text-2); }
.hp .h-table-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); padding: 10px var(--s-4); border-top: 1px solid var(--line); font-size: var(--fs-12); color: var(--text-2); flex-wrap: wrap; }
@media (max-width: 820px) {
.hp .h-table--cards thead { display: none; }
.hp .h-table--cards, .hp .h-table--cards tbody, .hp .h-table--cards tr, .hp .h-table--cards td { display: block; width: 100%; }
.hp .h-table--cards tr { padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); }
.hp .h-table--cards tbody tr:last-child { border-bottom: 0; }
.hp .h-table--cards td { border: 0 !important; padding: 3px 0; display: flex; justify-content: space-between; gap: var(--s-3); text-align: right; }
.hp .h-table--cards td::before { content: attr(data-label); font: 500 var(--fs-11)/1.6 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); text-align: left; flex: none; }
.hp .h-table--cards td.is-primary { padding-bottom: 6px; text-align: left; }
.hp .h-table--cards td.is-primary::before { display: none; }
.hp .h-table--cards td.is-hide-m { display: none; }
.hp .h-table--cards .h-row-actions { opacity: 1; }
.hp .h-table--cards tr:hover td { background: none; }
.hp .h-table--cards tr.is-error { background: var(--danger-tint); box-shadow: inset 2px 0 0 var(--danger); }
.hp .h-table--cards tr.is-selected { background: var(--tint); box-shadow: inset 2px 0 0 var(--brand); }
.hp .h-table--cards tr td:first-child { box-shadow: none !important; }
.hp .h-table--cards td[data-label=""]::before { display: none; }
.hp .h-table--cards td[data-label=""] { justify-content: flex-end; }
}
.hp .h-tabs { display: flex; gap: var(--s-5); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; margin-bottom: var(--s-5); }
.hp .h-tabs::-webkit-scrollbar { display: none; }
.hp .h-tab { position: relative; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0; border: 0; background: none; color: var(--text-2); font-size: var(--fs-14); white-space: nowrap; text-decoration: none; }
.hp .h-tab:hover { color: var(--text); text-decoration: none; }
.hp .h-tab[aria-selected="true"], .hp .h-tab.is-active { color: var(--text); font-weight: 500; }
.hp .h-tab[aria-selected="true"]::after, .hp .h-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--text); }
.hp .h-tab .h-count { font-weight: 500; }
.hp .h-tab[aria-selected="true"] .h-count { background: var(--inverse); color: var(--on-inverse); }
.hp .h-subtabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: var(--s-4); }
.hp .h-subtab { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border: 1px solid transparent; border-radius: var(--r-sm); background: none; color: var(--text-2); font-size: var(--fs-13); text-decoration: none; }
.hp .h-subtab:hover { color: var(--text); background: var(--bg-hover); text-decoration: none; }
.hp .h-subtab[aria-selected="true"], .hp .h-subtab.is-active { background: var(--bg-surface); border-color: var(--line); color: var(--text); }
.hp .h-ostabs { display: flex; gap: 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; background: var(--bg-canvas); overflow-x: auto; scrollbar-width: none; }
.hp .h-ostab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 0; border-right: 1px solid var(--line); background: none; color: var(--text-2); font-size: var(--fs-13); white-space: nowrap; }
.hp .h-ostab:hover { color: var(--text); }
.hp .h-ostab[aria-selected="true"] { background: var(--bg-surface); color: var(--text); font-weight: 500; box-shadow: inset 0 -1px 0 var(--bg-surface); }
.hp .h-ostabs + .h-code { border-top-left-radius: 0; border-top-right-radius: 0; }
.hp .h-code { position: relative; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); min-width: 0; }
.hp .h-code pre { margin: 0; padding: 12px 48px 12px 14px; overflow-x: auto; font: 400 12.5px/1.6 var(--font-mono); color: var(--text); white-space: pre; tab-size: 2; }
.hp .h-code--wrap pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.hp .h-code__copy { position: absolute; top: 6px; right: 6px; }
.hp .h-code__label { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 14px; border-bottom: 1px solid var(--line); font: 500 var(--fs-11)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); }
.hp .h-code__label + pre { padding-right: 14px; }
.hp .h-code .tok-k { color: var(--link); }
.hp .h-code .tok-s { color: var(--ok); }
.hp .h-code .tok-c { color: var(--text-2); }
.hp .h-code .tok-p { color: var(--text-2); }
.hp .h-code--dark { background: #151210; border-color: #151210; }
.hp .h-code--dark pre { color: #F5F3EF; }
.hp .h-code--dark .tok-k { color: #EE9C78; }
.hp .h-code--dark .tok-s { color: #8BC59E; }
.hp .h-code--dark .tok-c, .hp .h-code--dark .tok-p { color: #CAC2B8; }
.hp .h-code--dark .h-btn { background: #2E2925; border-color: #403A34; color: #F5F3EF; }
.hp code.h-inline { padding: 1px 5px; border-radius: var(--r-sm); background: var(--bg-sunken); font-size: 12.5px; color: var(--text); }
.hp .h-copyfield { display: flex; align-items: center; gap: var(--s-2); height: var(--ctl-h); padding: 0 4px 0 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-sunken); min-width: 0; }
.hp .h-copyfield__value { flex: 1; min-width: 0; font: 400 12.5px/1 var(--font-mono); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hp .h-copyfield .h-btn { height: 26px; }
.hp .h-copyfield.is-copied { border-color: var(--ok); }
.hp .h-copy-ok { color: var(--ok); display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-12); }
.hp .h-details { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-surface); }
.hp .h-details > summary { display: flex; align-items: center; gap: var(--s-2); padding: 10px var(--s-4); cursor: pointer; list-style: none; font-weight: 500; font-size: var(--fs-14); }
.hp .h-details > summary::-webkit-details-marker { display: none; }
.hp .h-details > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.5px solid var(--text-2); border-bottom: 1.5px solid var(--text-2); transform: rotate(-45deg); transition: transform var(--dur-2) var(--ease); margin-right: 4px; flex: none; }
.hp .h-details[open] > summary::before { transform: rotate(45deg) translate(-2px, -1px); }
.hp .h-details > summary .h-muted { font-weight: 400; margin-left: auto; font-size: var(--fs-13); }
.hp .h-details__body { padding: 0 var(--s-4) var(--s-4) 33px; color: var(--text-2); font-size: var(--fs-13); }
.hp .h-details--plain { border: 0; background: none; }
.hp .h-details--plain > summary { padding: 6px 0; font-size: var(--fs-13); color: var(--text-2); }
.hp .h-details--plain .h-details__body { padding: 4px 0 8px 15px; }
.hp .h-confirm { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid color-mix(in srgb, var(--danger) 40%, transparent); border-radius: var(--r-md); background: var(--danger-tint); }
.hp .h-confirm__text { font-size: var(--fs-13); color: var(--text); }
.hp .h-confirm__text b { color: var(--danger); font-weight: 500; }
.hp .h-confirm__actions { display: flex; gap: var(--s-2); flex-wrap: wrap; }
.hp .h-menu { min-width: 200px; max-width: min(320px, calc(100vw - 32px)); padding: 4px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-surface); box-shadow: var(--shadow-2); z-index: var(--z-drop); }
.hp .h-menu--float { position: absolute; top: calc(100% + 4px); right: 0; }
.hp .h-menu__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--text); font-size: var(--fs-13); text-align: left; text-decoration: none; white-space: nowrap; }
.hp .h-menu__item:hover, .hp .h-menu__item:focus-visible, .hp .h-menu__item.is-active { background: var(--bg-sunken); text-decoration: none; outline: none; }
.hp .h-menu__item .h-i { color: var(--text-2); }
.hp .h-menu__item small { margin-left: auto; }
.hp .h-menu__item small { color: var(--text-2); font-size: var(--fs-12); }
.hp .h-menu__item--danger { color: var(--danger); }
.hp .h-menu__item--danger .h-i { color: var(--danger); }
.hp .h-menu__item--danger:hover { background: var(--danger-tint); }
.hp .h-menu__item[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.hp .h-menu__item[aria-checked="true"]::after { content: ""; margin-left: auto; width: 9px; height: 5px; border-left: 1.75px solid var(--text); border-bottom: 1.75px solid var(--text); transform: translateY(-2px) rotate(-45deg); }
.hp .h-menu__sep { height: 1px; margin: 4px -4px; background: var(--line); }
.hp .h-menu__label { padding: 8px 8px 4px; font: 500 var(--fs-11)/1.3 var(--font-mono); letter-spacing: var(--track-mono); text-transform: uppercase; color: var(--text-2); }
.hp .h-menu__head { padding: 8px; display: flex; flex-direction: column; gap: 1px; }
.hp .h-menu__search { padding: 4px 4px 6px; }
.hp .h-anchor { position: relative; display: inline-block; }
.hp .h-tip { position: relative; display: inline-flex; }
.hp .h-tip__bubble { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); z-index: var(--z-tip); padding: 5px 8px; border-radius: var(--r-sm); background: var(--inverse); color: var(--on-inverse); font-size: var(--fs-12); line-height: 1.35; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity var(--dur-1) var(--ease); }
.hp .h-tip:hover .h-tip__bubble, .hp .h-tip:focus-within .h-tip__bubble, .hp .h-tip__bubble.is-visible { opacity: 1; }
.hp .h-meter { height: 4px; border-radius: 1px; background: var(--line); overflow: hidden; }
.hp .h-meter__fill { height: 100%; width: var(--v, 0%); background: var(--text); border-radius: 1px; transition: width var(--dur-3) var(--ease-out); }
.hp .h-meter--warn .h-meter__fill { background: var(--warn); }
.hp .h-meter--danger .h-meter__fill { background: var(--danger); }
.hp .h-meter--lg { height: 6px; }
.hp .h-empty { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--s-2); padding: var(--s-12) var(--s-6); border: 1px dashed var(--line-strong); border-radius: var(--r-lg); background: transparent; }
.hp .h-empty--solid { border-style: solid; border-color: var(--line); background: var(--bg-surface); }
.hp .h-empty--bare { border: 0; padding: var(--s-8) var(--s-4); }
.hp .h-empty__icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-surface); color: var(--text); margin-bottom: var(--s-2); }
.hp .h-empty__icon .h-i { width: 20px; height: 20px; }
.hp .h-empty__title { font: 400 var(--fs-20)/1.25 var(--font-display); letter-spacing: var(--track-title); }
.hp .h-empty__text { color: var(--text-2); font-size: var(--fs-14); max-width: 44ch; }
.hp .h-empty__actions { display: flex; gap: var(--s-2); margin-top: var(--s-3); flex-wrap: wrap; justify-content: center; }
.hp .h-empty__help { margin-top: var(--s-5); padding-top: var(--s-4); border-top: 1px solid var(--line); display: flex; gap: var(--s-4); flex-wrap: wrap; justify-content: center; font-size: var(--fs-13); color: var(--text-2); }
.hp .h-empty--sm { padding: var(--s-6) var(--s-4); }
.hp .h-empty--sm .h-empty__title { font: 500 var(--fs-15)/1.3 var(--font-sans); letter-spacing: 0; }
.hp .h-errorcard { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) var(--s-5); border: 1px solid color-mix(in srgb, var(--danger) 40%, var(--line)); border-radius: var(--r-lg); background: var(--bg-surface); }
.hp .h-errorcard__icon { color: var(--danger); margin-top: 2px; }
.hp .h-errorcard__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hp .h-errorcard__title { font-weight: 500; }
.hp .h-errorcard__text { color: var(--text-2); font-size: var(--fs-13); }
.hp .h-errorcard__detail { font: 400 12px/1.5 var(--font-mono); color: var(--danger); overflow-wrap: anywhere; }
.hp .h-errorcard__actions { display: flex; gap: var(--s-2); margin-top: var(--s-2); flex-wrap: wrap; }
.hp .h-banner { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-3) var(--s-4); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-surface); color: var(--text); font-size: var(--fs-13); min-width: 0; }
.hp .h-banner > .h-i { margin-top: 1px; flex: none; }
.hp .h-banner__main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.hp .h-banner__title { font-weight: 500; font-size: var(--fs-14); }
.hp .h-banner__text { color: var(--text); }
.hp .h-banner__actions { display: flex; gap: var(--s-2); align-items: center; flex: none; flex-wrap: wrap; }
.hp .h-banner--info { background: var(--info-tint);   border-color: color-mix(in srgb, var(--info) 30%, transparent); }
.hp .h-banner--info > .h-i { color: var(--info); }
.hp .h-banner--ok { background: var(--ok-tint);     border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.hp .h-banner--ok > .h-i { color: var(--ok); }
.hp .h-banner--warn { background: var(--warn-tint);   border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.hp .h-banner--warn > .h-i { color: var(--warn); }
.hp .h-banner--danger { background: var(--danger-tint); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.hp .h-banner--danger > .h-i { color: var(--danger); }
.hp .h-banner--brand { background: var(--tint); border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.hp .h-banner--brand > .h-i { color: var(--on-tint); }
.hp .h-banner--page { border-radius: 0; border-left: 0; border-right: 0; border-top: 0; padding-left: var(--s-7); padding-right: var(--s-7); }
.hp .h-banner .h-btn { height: 28px; font-size: var(--fs-12); }
@media (max-width: 820px) {
.hp .h-banner { flex-wrap: wrap; }
.hp .h-banner__actions { width: 100%; padding-left: 28px; }
.hp .h-banner--page { padding-left: var(--s-4); padding-right: var(--s-4); }
}
.hp .h-backdrop { position: fixed; inset: 0; z-index: var(--z-modal); background: var(--overlay); display: grid; place-items: center; padding: var(--s-4); animation: h-fade var(--dur-2) var(--ease); }
.hp .h-modal { width: min(560px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg-surface); box-shadow: var(--shadow-3); animation: h-rise var(--dur-3) var(--ease-out); min-width: 0; }
.hp .h-modal--sm { width: min(420px, 100%); }
.hp .h-modal--lg { width: min(760px, 100%); }
.hp .h-modal--xl { width: min(1040px, 100%); }
.hp .h-modal--static { position: relative; animation: none; box-shadow: var(--shadow-2); max-height: none; }
.hp .h-modal__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-5) var(--s-6) var(--s-4); }
.hp .h-modal__title { font: 400 var(--fs-20)/1.25 var(--font-display); letter-spacing: var(--track-title); }
.hp .h-modal__sub { font-size: var(--fs-13); color: var(--text-2); margin-top: 4px; }
.hp .h-modal__body { padding: 0 var(--s-6) var(--s-5); overflow-y: auto; min-height: 0; }
.hp .h-modal__foot { display: flex; align-items: center; justify-content: flex-end; gap: var(--s-2); padding: var(--s-3) var(--s-6); border-top: 1px solid var(--line); background: var(--bg-canvas); border-radius: 0 0 var(--r-xl) var(--r-xl); flex-wrap: wrap; }
.hp .h-modal__foot--between { justify-content: space-between; }
.hp .h-modal__close { margin: -4px -8px 0 0; }
@media (max-width: 820px) {
.hp .h-backdrop { place-items: end center; padding: 0; }
.hp .h-modal { width: 100%; border-radius: var(--r-xl) var(--r-xl) 0 0; max-height: 92dvh; }
.hp .h-modal--static { border-radius: var(--r-xl); }
.hp .h-modal__head { padding: var(--s-4) var(--s-4) var(--s-3); }
.hp .h-modal__body { padding: 0 var(--s-4) var(--s-4); }
.hp .h-modal__foot { padding: var(--s-3) var(--s-4); border-radius: 0; }
.hp .h-modal__foot .h-btn { flex: 1 1 auto; }
}
.hp .h-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: var(--z-drawer); width: min(480px, 100%); display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--bg-surface); box-shadow: var(--shadow-3); animation: h-slide var(--dur-3) var(--ease-out); }
.hp .h-drawer--static { position: relative; height: 560px; box-shadow: var(--shadow-2); animation: none; border: 1px solid var(--line); border-radius: var(--r-lg); width: 100%; max-width: 480px; overflow: hidden; }
.hp .h-drawer__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s-3); padding: var(--s-4) var(--s-5); border-bottom: 1px solid var(--line); }
.hp .h-drawer__title { font: 400 var(--fs-20)/1.25 var(--font-display); letter-spacing: var(--track-title); display: flex; align-items: center; gap: var(--s-2); flex-wrap: wrap; }
.hp .h-drawer__body { flex: 1; overflow-y: auto; padding: var(--s-4) var(--s-5); display: flex; flex-direction: column; gap: var(--s-4); }
.hp .h-drawer__foot { display: flex; gap: var(--s-2); justify-content: flex-end; padding: var(--s-3) var(--s-5); border-top: 1px solid var(--line); background: var(--bg-canvas); flex-wrap: wrap; }
@keyframes h-fade{ from { opacity: 0; } }
@keyframes h-rise{ from { opacity: 0; transform: translateY(8px) scale(.99); } }
@keyframes h-slide{ from { transform: translateX(24px); opacity: 0; } }
.hp .h-toasts { position: fixed; bottom: var(--s-6); left: 50%; transform: translateX(-50%); z-index: var(--z-toast); display: flex; flex-direction: column; align-items: center; gap: var(--s-2); pointer-events: none; width: max-content; max-width: calc(100vw - 32px); }
.hp .h-toasts--static { position: static; transform: none; align-items: flex-start; width: auto; }
.hp .h-toast { pointer-events: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 40px; max-width: 100%; padding: 8px 8px 8px 14px; border-radius: var(--r-md); background: var(--inverse); color: var(--on-inverse); font-size: var(--fs-13); box-shadow: var(--shadow-3); animation: h-rise var(--dur-3) var(--ease-out); }
.hp .h-toast > .h-i { flex: none; }
.hp .h-toast__text { min-width: 0; }
.hp .h-toast__action { border: 0; background: none; color: inherit; font-weight: 500; text-decoration: underline; text-underline-offset: 2px; padding: 4px 6px; font-size: var(--fs-13); }
.hp .h-toast__x { border: 0; background: none; color: inherit; opacity: .75; padding: 4px; border-radius: var(--r-sm); display: grid; place-items: center; }
.hp .h-toast__x:hover { opacity: 1; }
.hp .h-toast--ok > .h-i { color: #8BC59E; }
.hp .h-toast--danger > .h-i { color: #F28E9C; }
.hp .h-toast--warn > .h-i { color: #E3B565; }
:root[data-theme="dark"] .hp .h-toast--ok > .h-i { color: #2B6644; }
:root[data-theme="dark"] .hp .h-toast--danger > .h-i { color: #A3283C; }
:root[data-theme="dark"] .hp .h-toast--warn > .h-i { color: #80520A; }
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) .hp .h-toast--ok > .h-i { color: #2B6644; }
:root:not([data-theme="light"]) .hp .h-toast--danger > .h-i { color: #A3283C; }
:root:not([data-theme="light"]) .hp .h-toast--warn > .h-i { color: #80520A; }
}
.hp .h-skel { display: block; border-radius: var(--r-sm); background: linear-gradient(90deg, var(--skel) 0%, var(--skel-hi) 50%, var(--skel) 100%); background-size: 200% 100%; animation: h-shimmer 1.4s linear infinite; }
.hp .h-skel--line { height: 10px; width: 100%; }
.hp .h-skel--line + .h-skel--line { margin-top: 10px; }
.hp .h-skel--title { height: 28px; width: 40%; border-radius: var(--r-sm); }
.hp .h-skel--circle { border-radius: 50%; width: 28px; height: 28px; flex: none; }
.hp .h-skel--tile { width: 32px; height: 32px; border-radius: var(--r-md); flex: none; }
.hp .h-skel--block { height: 120px; border-radius: var(--r-lg); }
.hp .h-skel--btn { width: 96px; height: var(--ctl-h); border-radius: var(--r-md); }
.hp .h-skel--w20 { width: 20%; }
.hp .h-skel--w40 { width: 40%; }
.hp .h-skel--w60 { width: 60%; }
.hp .h-skel--w80 { width: 80%; }
.hp .h-skel-row { display: flex; align-items: center; gap: var(--s-3); padding: var(--s-3) var(--s-4); border-top: 1px solid var(--line); }
.hp .h-skel-row:first-child { border-top: 0; }
.hp .h-skel-row > .h-stack { flex: 1; gap: 8px; }
@keyframes h-shimmer{ to { background-position: -200% 0; } }
.hp .h-avatar { --_s: 28px; width: var(--_s); height: var(--_s); flex: none; border-radius: 50%; display: inline-grid; place-items: center; overflow: hidden; background: var(--bg-sunken); color: var(--text); font: 500 calc(var(--_s) * .38)/1 var(--font-mono); letter-spacing: 0; user-select: none; }
.hp .h-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hp .h-avatar--xs { --_s: 18px; }
.hp .h-avatar--sm { --_s: 22px; }
.hp .h-avatar--md { --_s: 32px; }
.hp .h-avatar--lg { --_s: 40px; }
.hp .h-avatar--xl { --_s: 64px; }
.hp .h-avatar--square { border-radius: var(--r-md); }
.hp .h-avatar--emoji { font-family: system-ui, 'Apple Color Emoji', 'Segoe UI Emoji', sans-serif; font-size: calc(var(--_s) * .55); }
.hp .h-avatar--ink { background: var(--inverse); color: var(--on-inverse); }
.hp .h-avatar--c1 { background: #F6E7DF; color: #151210; }
.hp .h-avatar--c2 { background: #E3EDE5; color: #151210; }
.hp .h-avatar--c3 { background: #E2EAF1; color: #151210; }
.hp .h-avatar--c4 { background: #F7ECD6; color: #151210; }
.hp .h-avatar--c5 { background: #ECE6F2; color: #151210; }
.hp .h-avatar--c6 { background: #EFEDE8; color: #151210; }
.hp .h-avatar.is-online { position: relative; overflow: visible; }
.hp .h-avatar.is-online::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 2px var(--bg-surface); }
.hp .h-avatars { display: inline-flex; }
.hp .h-avatars .h-avatar + .h-avatar { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg-surface); }


.hp .u-mt-0 { margin-top: 0 !important; } .hp .u-mt-2 { margin-top: var(--s-2); } .hp .u-mt-3 { margin-top: var(--s-3); } .hp .u-mt-4 { margin-top: var(--s-4); } .hp .u-mt-6 { margin-top: var(--s-6); }
.hp .u-mb-2 { margin-bottom: var(--s-2); } .hp .u-mb-4 { margin-bottom: var(--s-4); } .hp .u-mb-6 { margin-bottom: var(--s-6); }
.hp .u-ml-auto { margin-left: auto; }
@media (max-width: 820px) { .hp .u-hide-m { display: none !important; } }

/* ------------------------------------------------------------------ C. */
/* Legacy element rules (index.html, homla.css) give every control a min-height
   and their own type; inside these screens the DS sizes win. */
.hp :is(button, input, select, textarea) { min-height: 0; }
.hp input[type="checkbox"], .hp input[type="radio"] { padding: 0; }
.hp .h-list__item > input[type="checkbox"] { width: auto; flex: none; margin: 0; }
.hp :is(.h-input, .h-select, .h-label, .h-seg, legend) { margin: 0; }
.hp .h-btn { min-height: 0; text-transform: none; letter-spacing: normal; }
.hp h1, .hp h2, .hp h3 { margin: 0; }
.hp .hide { display: none !important; }

/* People */
.hp .hp-role-select { max-width: 240px; }
.hp .hp-people-note { margin-bottom: var(--s-3); color: var(--text); }
.hp .hp-legacy-sub { margin-bottom: var(--s-3); }
.hp .hp-plain-link { color: inherit; text-decoration: none; }
.hp .hp-plain-link:hover { text-decoration: underline; }
.hp .h-table tr.is-clickable { cursor: pointer; }
.hp .h-count:empty { display: none; }

/* Modals (invite, role, guest): the DS modal inside the legacy backdrop. */
.hp.modal-backdrop { padding: var(--s-4); }
.hp .modal.h-modal { max-width: none; padding: 0; overflow: visible; border-color: var(--line); }
.hp .modal.h-modal.h-modal--lg { width: min(760px, 100%); }
.hp .hp-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.hp .h-modal__body label { margin: 0; }
@media (max-width: 820px) {
  .hp.modal-backdrop { align-items: flex-end; padding: 0; }
}

/* Roles */
.hp .hp-roles-banner { margin-bottom: var(--s-4); }
.hp .hp-lock { display: inline-flex; vertical-align: -2px; color: var(--text-2); margin-left: 2px; }
/* Agents level in place: reads as the plain word, with a quiet chevron. */
.hp .hp-quiet-select { appearance: none; -webkit-appearance: none; border: 1px solid transparent; background: transparent var(--select-arrow) no-repeat right 4px center / 12px; padding: 2px 20px 2px 6px; margin-left: -7px; height: auto; width: auto; font: inherit; font-size: var(--fs-13); color: var(--text); border-radius: var(--r-sm); cursor: pointer; }
.hp .hp-quiet-select:hover { border-color: var(--line); background-color: var(--bg-surface); }
.hp .hp-quiet-select:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }

/* Connector access tree (role and guest modals) */
.hp .hp-level { width: auto; flex: none; }
.hp .hp-tree-count { font-weight: 400; }
.hp .hp-tree-search { margin-bottom: var(--s-2); }
.hp .hp-hint { margin-bottom: var(--s-2); }
.hp .h-tree [hidden] { display: none !important; }
.hp .h-tree__head .h-logo img { width: 14px; height: 14px; }
.hp .hp-tree-more .h-tree__head { cursor: default; }
.hp #role-agents .h-seg { display: flex; }
.hp input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* External access */
.hp .hp-guest-group--next { margin-top: var(--s-6); }
.hp .hp-guest-filters { margin-bottom: var(--s-3); }
.hp .hp-guest-filters .h-select { width: auto; }
.hp .hp-guest-history { margin-top: var(--s-3); }

/* Guest modal */
.hp .hp-guest-hint { margin-bottom: var(--s-3); }
.hp .hp-date { max-width: 220px; }
.hp #guest-who > .u-mt-3 { margin-top: calc(var(--s-6) + var(--s-3)); }

/* Guest invite banner (above any screen) and guest home */
#guest-invites-banner.hp:not(:empty) { margin: 0 0 var(--s-6); display: flex; flex-direction: column; gap: var(--s-3); }
.hp .hp-invite-banner .h-select { width: auto; }
#guest-invites-banner:empty { display: none; }
.hp .hp-guest-home .h-page-head__title .h-pill { vertical-align: middle; font-family: var(--font-sans); letter-spacing: normal; }
