/* HostlyKe console settings — layout from
   StichFiles/stitch_hostlyke_workspace_account_settings.
   Scoped to .hs-surface so the dashboard shell keeps its own styles. */
.hs-surface{
  --hs-primary:#1c2dc5;--hs-primary-hover:#1724a1;--hs-ink:#111827;--hs-muted:#6b7280;
  --hs-border:#e5e7eb;--hs-soft-border:#f0f1f3;--hs-panel:#fff;--hs-canvas:#f8f9fa;
  --hs-rail:#fafbfc;--hs-chip:#f0f2f6;
  align-self:stretch;display:flex;flex:1 0 auto;margin:0;min-height:100%;
  background:var(--hs-canvas);color:var(--hs-ink);
  font:400 13px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:calc(13px * var(--account-font-scale,1));text-align:left;
}
.hs-surface *{box-sizing:border-box}
.hs-surface h1,.hs-surface h2,.hs-surface h3,.hs-surface h4,.hs-surface p{margin:0}
.hs-surface a{color:inherit;text-decoration:none}
.hs-surface button,.hs-surface input,.hs-surface select,.hs-surface textarea{font-family:inherit}
.hs-surface .material-symbols-outlined{font-family:'Material Symbols Outlined';font-weight:450;font-style:normal;font-size:18px;line-height:1;letter-spacing:normal;white-space:nowrap;font-feature-settings:'liga';-webkit-font-smoothing:antialiased}
.hs-mono{font-family:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
.hs-muted{color:var(--hs-muted)}
.hs-copy{color:#374151;max-width:70ch}

/* ------------------------------- rail ---------------------------------- */
.hs-rail{position:sticky;top:0;align-self:flex-start;display:flex;flex-direction:column;gap:14px;
  width:256px;flex:0 0 256px;height:calc(100vh - 48px);padding:12px;overflow-y:auto;
  background:var(--hs-rail);border-right:1px solid var(--hs-border);z-index:2;scrollbar-width:thin;scrollbar-color:#e5e7eb transparent}
.hs-rail-id{display:flex;gap:10px;align-items:flex-start;padding:10px;background:#fff;border:1px solid var(--hs-border);border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.hs-rail-id.is-account{flex-direction:column;align-items:center;text-align:center;padding:16px 12px}
.hs-rail-id-copy{min-width:0;flex:1}
.hs-rail-id.is-account .hs-rail-id-copy{flex:none;width:100%}
.hs-rail-id h2{font-size:12.5px;font-weight:700;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-rail-id-sub{margin-top:2px;font-family:'JetBrains Mono',monospace;font-size:11px;color:var(--hs-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-rail-id-meta{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:6px;margin-top:8px}
.hs-rail-id:not(.is-account) .hs-rail-id-meta{justify-content:flex-start}
.hs-rail-id-note{font-size:10.5px;color:var(--hs-muted)}
.hs-avatar{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:30px;height:30px;
  border-radius:6px;background:#08081c;color:#fff;font:700 10px 'JetBrains Mono',monospace;object-fit:cover;overflow:hidden}
.hs-avatar-lg{width:44px;height:44px;border-radius:8px;font-size:13px}
.hs-avatar-sm{width:28px;height:28px;border-radius:6px;font-size:9.5px;background:#eef2ff;color:#1c2dc5}
.hs-rail-id.is-account .hs-avatar{width:52px;height:52px;border-radius:9px;font-size:14px}
.hs-rail-nav{flex:1;display:flex;flex-direction:column;gap:14px;min-height:0}
.hs-rail-group{display:flex;flex-direction:column;gap:3px}
.hs-rail-label{padding:0 8px 2px;font-size:10px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#9ca3af}
.hs-rail-list{display:flex;flex-direction:column;gap:2px}
.hs-rail-link{display:flex;align-items:center;gap:10px;padding:6px 10px;border-radius:6px;
  color:#4b5563;font-size:12.5px;font-weight:500;transition:background-color .12s ease,color .12s ease}
.hs-rail-link:hover{background:#f0f2f6;color:var(--hs-ink)}
.hs-rail-link .material-symbols-outlined{font-size:17px;color:#6b7280;flex:0 0 auto}
.hs-rail-link.is-active{background:#f0f2f6;color:var(--hs-ink);font-weight:600}
.hs-rail-link.is-active .material-symbols-outlined{color:var(--hs-primary)}
.hs-rail-link-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-rail-count{margin-left:auto;padding:1px 6px;border-radius:4px;background:#eef2ff;color:var(--hs-primary);font:600 9.5px 'JetBrains Mono',monospace}
.hs-rail-danger{padding-top:12px;border-top:1px solid var(--hs-border)}
.hs-rail-danger-link{display:flex;align-items:center;gap:8px;padding:6px 10px;border-radius:6px;color:#dc2626;font-size:12.5px;font-weight:500}
.hs-rail-danger-link:hover{background:#fef2f2;color:#b91c1c}
.hs-rail-danger-link .material-symbols-outlined{font-size:17px}

/* ------------------------------- canvas -------------------------------- */
.hs-canvas{flex:1;min-width:0;display:flex;flex-direction:column;background:var(--hs-canvas)}
.hs-canvas-head{position:sticky;top:0;z-index:3;padding:12px 32px 0;background:#fff;border-bottom:1px solid var(--hs-border);box-shadow:0 1px 2px rgba(16,24,40,.04)}
.hs-head-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;flex-wrap:wrap;padding-bottom:10px}
.hs-head-copy h1{display:flex;align-items:center;gap:8px;font-size:18px;font-weight:700;letter-spacing:-.02em;line-height:1.3}
.hs-head-copy h1 .material-symbols-outlined{font-size:19px;color:var(--hs-primary)}
.hs-head-copy p{margin-top:2px;font-size:12px;color:var(--hs-muted);max-width:76ch}
.hs-head-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hs-chip{display:inline-flex;align-items:center;gap:6px;padding:3px 9px;border-radius:999px;border:1px solid transparent;font-size:10.5px;font-weight:600;white-space:nowrap}
.hs-chip-dot{width:6px;height:6px;border-radius:50%;background:currentColor}
.hs-chip-emerald{background:#ecfdf5;border-color:#a7f3d0;color:#065f46}
.hs-chip-primary{background:#eef2ff;border-color:#c7d2fe;color:#1c2dc5}
.hs-chip-slate{background:#f3f4f6;border-color:#e5e7eb;color:#4b5563}
.hs-tabs{display:flex;align-items:center;gap:24px;overflow-x:auto;scrollbar-width:none}
.hs-tabs::-webkit-scrollbar{display:none}
.hs-tab{padding:8px 0 9px;border-bottom:2px solid transparent;color:var(--hs-muted);font-size:12.5px;font-weight:500;white-space:nowrap}
.hs-tab:hover{color:var(--hs-ink)}
.hs-tab.is-active{border-bottom-color:var(--hs-primary);color:var(--hs-primary);font-weight:600}
.hs-body{width:100%;max-width:1180px;margin:0 auto;padding:22px 32px 44px;display:flex;flex-direction:column;gap:18px}
.hs-loading{display:flex;align-items:center;gap:10px;padding:28px 4px;color:var(--hs-muted);font-size:12.5px}
.hs-loading .material-symbols-outlined{animation:hs-spin 1.1s linear infinite;color:var(--hs-primary)}
@keyframes hs-spin{to{transform:rotate(360deg)}}

/* ------------------------------- stats --------------------------------- */
.hs-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hs-stats-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.hs-stat{display:flex;flex-direction:column;gap:8px;min-width:0;padding:14px 16px;background:#fff;border:1px solid var(--hs-border);border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.03)}
.hs-stat-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hs-stat-label{font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--hs-muted);line-height:1.35}
.hs-stat-top .material-symbols-outlined{font-size:18px;color:#9ca3af}
.hs-stat-value{font-size:16px;font-weight:700;letter-spacing:-.02em;line-height:1.25;overflow:hidden;text-overflow:ellipsis}
.hs-stat-foot{font-size:11px;color:var(--hs-muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

/* ------------------------------- panels -------------------------------- */
.hs-panel{background:var(--hs-panel);border:1px solid var(--hs-border);border-radius:8px;box-shadow:0 1px 2px rgba(16,24,40,.03);overflow:hidden;min-width:0}
.hs-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;padding:12px 18px;border-bottom:1px solid var(--hs-soft-border);background:linear-gradient(90deg,#fafafa 0%,#fff 65%)}
.hs-panel-title{display:flex;gap:10px;min-width:0}
.hs-panel-title>.material-symbols-outlined{font-size:19px;color:var(--hs-primary);margin-top:1px;flex:0 0 auto}
.hs-panel-title h2{font-size:13.5px;font-weight:600;letter-spacing:-.01em}
.hs-panel-title p{margin-top:2px;font-size:11.5px;color:var(--hs-muted);max-width:80ch}
.hs-panel-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;flex:0 0 auto}
.hs-panel-body{padding:18px}
.hs-panel-body.hs-panel-flush{padding:0}
.hs-panel-body.hs-panel-stack{display:flex;flex-direction:column;gap:16px}
.hs-panel-foot{padding:12px 18px;border-top:1px solid var(--hs-soft-border);background:#fcfcfd;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.hs-grid-2{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:18px;align-items:start}

/* --------------------------- identity / facts -------------------------- */
.hs-identity-head{display:flex;align-items:flex-start;gap:14px;flex-wrap:wrap;padding-bottom:16px;border-bottom:1px solid var(--hs-soft-border)}
.hs-identity-copy{flex:1;min-width:200px}
.hs-identity-copy h3{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;font-weight:700;letter-spacing:-.01em}
.hs-identity-copy p{margin-top:3px;font-size:11.5px;color:var(--hs-muted)}
.hs-identity-id{display:flex;flex-direction:column;gap:3px;align-items:flex-start}
.hs-identity-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.hs-code{display:inline-block;padding:2px 6px;background:#f9fafb;border:1px solid var(--hs-border);border-radius:4px;font-size:11px;color:#374151;overflow-wrap:anywhere}
.hs-overline{font-size:10px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#9ca3af}
.hs-kv{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 20px;padding-top:16px}
.hs-kv-item{min-width:0;display:flex;flex-direction:column;gap:3px}
.hs-kv-value{font-size:12px;color:var(--hs-ink);overflow-wrap:anywhere}
.hs-kv-value .hs-badge{align-self:flex-start}

/* ------------------------------- badges -------------------------------- */
.hs-badge{display:inline-flex;align-items:center;gap:4px;padding:1px 7px;border:1px solid #e5e7eb;border-radius:4px;background:#f3f4f6;color:#374151;font-size:10.5px;font-weight:600;white-space:nowrap;line-height:1.6}
.hs-badge-primary{background:#eef2ff;border-color:#c7d2fe;color:#1c2dc5}
.hs-badge-emerald{background:#ecfdf5;border-color:#a7f3d0;color:#047857}
.hs-badge-amber{background:#fffbeb;border-color:#fde68a;color:#b45309}
.hs-badge-violet{background:#f5f3ff;border-color:#ddd6fe;color:#6d28d9}
.hs-badge-slate{background:#f3f4f6;border-color:#e5e7eb;color:#4b5563}
.hs-badge-red{background:#fef2f2;border-color:#fecaca;color:#b91c1c}

/* ------------------------------- buttons ------------------------------- */
.hs-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:6px 11px;min-height:30px;
  border:1px solid var(--hs-border);border-radius:6px;background:#fff;color:#374151;font-size:12px;font-weight:500;cursor:pointer;
  transition:background-color .12s ease,border-color .12s ease,color .12s ease}
.hs-btn:hover{background:#f3f4f6;color:var(--hs-ink)}
.hs-btn .material-symbols-outlined{font-size:15px}
.hs-btn-primary{background:var(--hs-primary);border-color:var(--hs-primary);color:#fff;font-weight:600;box-shadow:0 1px 2px rgba(28,45,197,.18)}
.hs-btn-primary:hover{background:var(--hs-primary-hover);border-color:var(--hs-primary-hover);color:#fff}
.hs-btn-ghost{background:#fff}
.hs-btn-danger{color:#b91c1c;border-color:#fecaca;background:#fff}
.hs-btn-danger:hover{background:#fef2f2;color:#991b1b}
.hs-btn-sm{min-height:24px;padding:3px 8px;font-size:11px}
.hs-btn:disabled{opacity:.5;cursor:not-allowed}
.hs-btn:focus-visible,.hs-rail-link:focus-visible,.hs-tab:focus-visible,.hs-swatches button:focus-visible,.hs-surface summary:focus-visible{outline:2px solid var(--hs-primary);outline-offset:2px}
.hs-link{color:var(--hs-primary);font-size:11.5px;font-weight:600;white-space:nowrap}
.hs-link:hover{text-decoration:underline}
.hs-inline-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}

/* ------------------------------- meters -------------------------------- */
.hs-quotas{display:flex;flex-direction:column;gap:16px}
.hs-quota-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:6px}
.hs-quota-label{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:500;color:#374151}
.hs-quota-label .material-symbols-outlined{font-size:15px;color:#6b7280}
.hs-quota-value{font-family:'JetBrains Mono',monospace;font-size:11.5px;color:var(--hs-ink);white-space:nowrap}
.hs-meter{height:7px;border-radius:999px;background:#f3f4f6;overflow:hidden}
.hs-meter-fill{height:100%;border-radius:999px;transition:width .25s ease}
.hs-quota-foot{display:flex;justify-content:space-between;gap:10px;margin-top:4px;font-size:10.5px;color:var(--hs-muted)}

/* ------------------------------- events -------------------------------- */
.hs-events{display:flex;flex-direction:column;gap:8px}
.hs-event{padding:9px 10px;border:1px solid var(--hs-soft-border);border-radius:6px;background:#fbfcfd}
.hs-event:hover{border-color:var(--hs-border)}
.hs-event-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.hs-event-action{display:inline-block;padding:1px 6px;border-radius:4px;background:#eef2ff;border:1px solid #c7d2fe;color:#1c2dc5;font-family:'JetBrains Mono',monospace;font-size:9.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:70%}
.hs-event-time{font-family:'JetBrains Mono',monospace;font-size:9.5px;color:#9ca3af;white-space:nowrap}
.hs-event-title{margin-top:5px;font-size:12px;font-weight:600;color:var(--hs-ink);overflow-wrap:anywhere}
.hs-event-foot{margin-top:2px;font-size:10.5px;color:var(--hs-muted);font-family:'JetBrains Mono',monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* ------------------------------- tables -------------------------------- */
.hs-table-wrap{width:100%;overflow-x:auto}
.hs-table{width:100%;border-collapse:collapse;text-align:left;font-size:12px}
.hs-table thead th{padding:9px 14px;background:#f9fafb;border-bottom:1px solid var(--hs-border);font-size:10.5px;font-weight:600;letter-spacing:.04em;text-transform:uppercase;color:var(--hs-muted);white-space:nowrap}
.hs-table td{padding:9px 14px;border-top:1px solid var(--hs-soft-border);vertical-align:middle}
.hs-table tbody tr:first-child td{border-top:0}
.hs-table tbody tr:hover td{background:#fcfcfd}
.hs-member{display:flex;align-items:center;gap:10px;min-width:0}
.hs-member-copy{display:flex;flex-direction:column;min-width:0}
.hs-member-name{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:600;color:var(--hs-ink);white-space:nowrap}
.hs-member-email{font-family:'JetBrains Mono',monospace;font-size:10.5px;color:var(--hs-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:24ch}
.hs-row-actions{display:flex;align-items:center;gap:6px;flex-wrap:wrap;min-width:230px}
.hs-row-actions .hk-select{min-width:132px}
.hs-cell-actions{min-width:210px}
.hs-cell-stack{display:flex;flex-direction:column;gap:5px;align-items:flex-start}
.hs-check{display:inline-flex;align-items:center;gap:5px;font-size:10.5px;color:var(--hs-muted);white-space:nowrap;cursor:pointer}
.hs-check input{width:13px;height:13px;accent-color:var(--hs-primary);margin:0;cursor:pointer}
.hs-details{font-size:11px}
.hs-details summary{list-style:none;cursor:pointer;color:var(--hs-primary);font-weight:600;display:inline-flex;align-items:center;gap:4px}
.hs-details summary::-webkit-details-marker{display:none}
.hs-details summary::before{content:"›";display:inline-block;transition:transform .12s ease;font-size:13px;line-height:1}
.hs-details[open] summary::before{transform:rotate(90deg)}
.hs-details-body{margin-top:6px;display:flex;flex-direction:column;gap:6px;max-width:320px}
.hs-pre{margin:0;padding:10px;background:#08081c;color:#a7f3d0;border-radius:6px;font-family:'JetBrains Mono',monospace;font-size:10px;line-height:1.5;overflow:auto;max-height:220px;white-space:pre-wrap;word-break:break-word}

/* -------------------------------- forms -------------------------------- */
.hs-form{display:flex;flex-direction:column;gap:12px;min-width:0}
.hs-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 18px}
.hs-field{display:flex;flex-direction:column;gap:5px;min-width:0}
.hs-field>span{font-size:11px;font-weight:600;color:#374151}
.hs-field-wide{grid-column:1/-1}
.hs-input{width:100%;padding:8px 10px;border:1px solid #d1d5db;border-radius:5px;background:#fff;color:var(--hs-ink);font-size:12.5px;line-height:1.4;min-height:32px}
.hs-input:focus,.hs-color:focus{outline:none;border-color:var(--hs-primary);box-shadow:0 0 0 3px rgba(28,45,197,.14)}
.hs-input:disabled{background:#f9fafb;color:#6b7280;cursor:not-allowed}
.hs-input-sm{min-height:26px;padding:3px 7px;font-size:11px}
.hs-hint{font-size:10.5px;color:var(--hs-muted)}
.hs-note{padding:9px 11px;border:1px solid var(--hs-border);border-radius:6px;background:#f9fafb;color:#4b5563;font-size:11.5px;line-height:1.55}
.hs-note-error{background:#fef2f2;border-color:#fecaca;color:#991b1b}
.hs-status{font-size:11.5px;color:var(--hs-muted)}
.hs-form-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0 0}
.hs-form-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap;justify-content:flex-end;margin-left:auto}
.hs-switch{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--hs-soft-border);border-radius:6px;background:#fcfcfd;cursor:pointer}
.hs-switch input{width:15px;height:15px;margin:1px 0 0;accent-color:var(--hs-primary);cursor:pointer}
.hs-switch span{display:flex;flex-direction:column;gap:2px}
.hs-switch strong{font-size:12px;font-weight:600}
.hs-switch small{font-size:11px;color:var(--hs-muted)}
.hs-range{width:100%;accent-color:var(--hs-primary);cursor:pointer}
.hs-color-row{display:flex;align-items:center;gap:10px}
.hs-color{width:42px;height:32px;padding:2px;border:1px solid #d1d5db;border-radius:5px;background:#fff;cursor:pointer}
.hs-swatches{display:flex;gap:8px;flex-wrap:wrap}
.hs-swatch{width:24px;height:24px;border:1px solid rgba(0,0,0,.08);border-radius:5px;cursor:pointer;padding:0}
.hs-swatch:disabled{cursor:not-allowed;opacity:.5}
.hs-accent-preview{display:flex;align-items:center;gap:12px;padding:14px;border:1px solid var(--hs-border);border-left-width:4px;border-radius:6px;background:#fbfcfd}
.hs-accent-mark{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:8px;color:#fff;font:700 12px 'JetBrains Mono',monospace}
.hs-accent-preview strong{display:block;font-size:12.5px}
.hs-accent-preview small{font-size:11px;color:var(--hs-muted)}
.hs-form .hk-select-trigger{min-height:32px;padding:6px 10px;border-radius:5px;background:#fff;color:var(--hs-ink);font-size:12.5px;border-color:#d1d5db}
.hs-form .hk-select-trigger[aria-expanded=true]{border-color:var(--hs-primary);box-shadow:0 0 0 3px rgba(28,45,197,.14)}

/* -------------------------- capability rows ---------------------------- */
.hs-rows{display:flex;flex-direction:column}
.hs-row{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:11px 0;border-top:1px solid var(--hs-soft-border)}
.hs-row:first-child{border-top:0;padding-top:0}
.hs-row:last-child{padding-bottom:0}
.hs-row strong{font-size:12px;font-weight:600}
.hs-row p{margin-top:2px;font-size:11px;color:var(--hs-muted);max-width:72ch}

/* ------------------------------- empty --------------------------------- */
.hs-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:6px;padding:26px 18px;border:1px dashed #e2e5e9;border-radius:7px;background:#fcfcfd}
.hs-empty-glyph{display:flex;align-items:center;justify-content:center;width:38px;height:38px;border-radius:50%;background:#eef2ff;color:var(--hs-primary);margin-bottom:2px}
.hs-empty-glyph .material-symbols-outlined{font-size:19px}
.hs-empty p{font-size:12px;font-weight:500;color:#374151}
.hs-empty small{font-size:11px;color:var(--hs-muted);max-width:52ch}

/* ------------------------------- danger -------------------------------- */
.hs-danger{display:flex;flex-direction:column}
.hs-danger-row{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;padding:12px 0;border-top:1px solid var(--hs-soft-border)}
.hs-danger-row:first-child{border-top:0;padding-top:0}
.hs-danger-row strong{font-size:12px;font-weight:600;color:#991b1b}
.hs-danger-row p{margin-top:2px;font-size:11px;color:var(--hs-muted);max-width:70ch}

/* ----------------------------- responsive ------------------------------ */
/* The settings surface is full-bleed inside the shell: the shell's main
   padding would otherwise offset the sticky rail and section header. */
.reference-dashboard main:has(> .hs-surface){padding:0}
@media(max-width:1180px){
  .hs-stats,.hs-stats-3{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hs-grid-2{grid-template-columns:minmax(0,1fr)}
  .hs-kv{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .hs-surface{flex-direction:column;min-height:100%}
  .hs-rail{position:static;width:100%;flex:none;height:auto;max-height:none;border-right:0;border-bottom:1px solid var(--hs-border)}
  .hs-rail-nav{flex-direction:row;flex-wrap:wrap;gap:10px}
  .hs-rail-group{flex:1 1 240px}
  .hs-rail-list{flex-direction:row;flex-wrap:wrap}
  .hs-rail-danger{border-top:1px solid var(--hs-border);margin-top:4px}
  .hs-canvas-head{padding:12px 20px 0}
  .hs-body{padding:18px 20px 36px}
}
@media(max-width:640px){
  .hs-surface{min-height:100%;font-size:calc(13px * var(--account-font-scale,1))}
  .hs-rail{padding:10px}
  .hs-rail-group{flex:1 1 100%}
  .hs-stats,.hs-stats-3{grid-template-columns:minmax(0,1fr)}
  .hs-kv{grid-template-columns:minmax(0,1fr)}
  .hs-form-grid{grid-template-columns:minmax(0,1fr)}
  .hs-canvas-head{padding:12px 14px 0}
  .hs-body{padding:14px 14px 30px}
  .hs-panel-body{padding:14px}
  .hs-panel-head{padding:11px 14px}
  .hs-identity-id{align-items:flex-start}
  .hs-head-actions{width:100%}
}

/* --------------------------------- dark -------------------------------- */
.dark .hs-surface{--hs-ink:#eef0fb;--hs-muted:#a3acc6;--hs-border:#2a2e58;--hs-soft-border:#232748;--hs-panel:#15152f;--hs-canvas:#101022;--hs-rail:#12122a;background:var(--hs-canvas);color:var(--hs-ink)}
.dark .hs-stat,.dark .hs-rail-id,.dark .hs-btn-ghost{background:#171733;border-color:#2a2e58;box-shadow:none}
.dark .hs-panel-head{background:#171733;border-color:#232748}
.dark .hs-rail-link{color:#b9c2db}
.dark .hs-rail-link:hover,.dark .hs-rail-link.is-active{background:#202347;color:#eef0fb}
.dark .hs-table thead th{background:#171733;border-color:#2a2e58;color:#a3acc6}
.dark .hs-table td{border-color:#232748}
.dark .hs-table tbody tr:hover td{background:#171733}
.dark .hs-note,.dark .hs-hint,.dark .hs-switch,.dark .hs-avatar-sm{background:#171733;border-color:#2a2e58;color:#c3cbe0}
.dark .hs-input,.dark .hs-btn,.dark .hs-color{background:#101026;border-color:#2a2e58;color:#eef0fb}
.dark .hs-empty{background:#171733;border-color:#2a2e58}
.dark .hs-empty p,.dark .hs-copy,.dark .hs-event-title,.dark .hs-row strong{color:#eef0fb}
.dark .hs-event{background:#171733;border-color:#2a2e58}
.dark .hs-code{background:#171733;border-color:#2a2e58;color:#c3cbe0}
.dark .hs-accent-preview{background:#171733}
.dark .hs-form .hk-select-trigger{background:#101026;border-color:#2a2e58;color:#eef0fb}
.dark .hs-meter{background:#232748}

/* --------------------------- brand & controls --------------------------- */
.hs-hmark{display:block;width:1em;height:1em;flex:0 0 auto}
.hs-avatar-brand{padding:6px;background:#08081c;color:#fff}
.hs-avatar-brand .hs-hmark{width:100%;height:100%}
.hs-stat-mark{width:15px;height:15px;color:#d1d5db}
.hs-panel-tail{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:auto}
.hs-panel-mark{width:17px;height:17px;color:#dcdfe6}
.hs-panel-tail .hs-panel-mark{order:2}
.hs-head-row-end{justify-content:flex-end;padding-bottom:10px}
.hs-icon-btn{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;
  border:1px solid var(--hs-border);border-radius:7px;background:#fff;color:#4a5565;
  box-shadow:0 1px 2px rgba(16,24,40,.04);cursor:pointer;transition:background-color .12s ease,border-color .12s ease,color .12s ease}
.hs-icon-btn:hover{background:#f6f7fb;border-color:#c7d2fe;color:var(--hs-primary)}
.hs-icon-btn:focus-visible{outline:2px solid var(--hs-primary);outline-offset:2px}
.hs-edit-icon{width:15px;height:15px}
.hs-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
  padding:10px 18px;border-bottom:1px solid var(--hs-soft-border);background:#fcfcfd}
.hs-toolbar-end{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.hs-search{display:flex;align-items:center;gap:8px;flex:1 1 220px;max-width:340px;padding:0 10px;
  border:1px solid var(--hs-border);border-radius:7px;background:#fff}
.hs-search .material-symbols-outlined{font-size:16px;color:#9ca3af}
.hs-search .hs-input{flex:1;min-width:0;padding:7px 0;border:0;background:transparent;box-shadow:none;outline:none}
.dark .hs-search,.dark .hs-icon-btn,.dark .hs-toolbar{background:#171733;border-color:#2a2e58;color:#eef0fb}
.dark .hs-panel-mark,.dark .hs-stat-mark{color:#3c4270}
.dark .hs-icon-btn:hover{background:#202347;color:#c7d2fe}

/* ------------------------- resource page layout ------------------------- */
/* Resource and People surfaces are full-bleed: the dashboard shell supplies the
   page header, so no second header and no centred max-width column. */
.hs-body-wide{max-width:none}
.hs-stats-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.hs-seg{display:inline-flex;align-items:center;border:1px solid var(--hs-border);border-radius:6px;background:#fff;overflow:hidden}
.hs-seg-btn{display:inline-flex;align-items:center;gap:4px;padding:4px 9px;min-height:26px;border:0;background:#fff;color:#4b5563;font:500 11px Inter,sans-serif;cursor:pointer;white-space:nowrap}
.hs-seg-btn+.hs-seg-btn{border-left:1px solid var(--hs-border)}
.hs-seg-btn .material-symbols-outlined{font-size:14px}
.hs-seg-btn:hover{background:#f3f4f6;color:var(--hs-ink)}
.hs-seg-btn.is-active{background:#eef2ff;color:var(--hs-primary);font-weight:600}
.hs-res-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:14px;padding:16px}
.hs-res-card{display:flex;flex-direction:column;gap:12px;min-width:0;padding:14px;border:1px solid var(--hs-border);border-radius:8px;background:#fff}
.hs-res-card:hover{border-color:#c7d2fe;box-shadow:0 2px 8px rgba(16,24,40,.05)}
.hs-res-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.hs-res-card-id{display:flex;align-items:center;gap:9px;min-width:0}
.hs-res-glyph{display:flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border-radius:7px;background:#eef2ff;color:var(--hs-primary)}
.hs-res-glyph .material-symbols-outlined{font-size:18px}
.hs-res-card-title{display:flex;flex-direction:column;min-width:0}
.hs-res-card-title strong{font-size:12.5px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-res-card-title span{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--hs-muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-res-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 12px;margin:0;padding-top:10px;border-top:1px solid var(--hs-soft-border)}
.hs-res-fact{display:flex;flex-direction:column;gap:2px;min-width:0}
.hs-res-fact-value{font-size:11px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-res-card-foot{display:flex;align-items:center;gap:6px;margin-top:auto;padding-top:10px;border-top:1px solid var(--hs-soft-border);font-size:10.5px;color:var(--hs-muted);min-width:0}
.hs-res-card-foot span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hs-res-card-foot .material-symbols-outlined{font-size:14px}
.hs-btn.is-disabled{opacity:.45;cursor:not-allowed;box-shadow:none}
.hs-empty .hs-btn{margin-top:6px}
.dark .hs-res-card,.dark .hs-seg,.dark .hs-seg-btn{background:#171733;border-color:#2a2e58;color:#eef0fb}
.dark .hs-res-glyph{background:#202347;color:#c7d2fe}
.dark .hs-seg-btn.is-active{background:#202347;color:#c7d2fe}
.dark .hs-seg-btn:hover{background:#202347}
@media(max-width:1180px){.hs-stats-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.hs-stats-4{grid-template-columns:minmax(0,1fr)}.hs-res-grid{grid-template-columns:minmax(0,1fr);padding:12px}.hs-res-facts{grid-template-columns:minmax(0,1fr)}}

/* Custom controls and smoother feedback across settings, profile and every
   modal/popup form. Native checkbox chrome is replaced but keyboard focus and
   the disabled state stay visible. */
.hs-surface input[type="checkbox"],.hs-dialog input[type="checkbox"],.hs-modal input[type="checkbox"],.settings-modal input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;width:16px;height:16px;margin:0;border-radius:5px;border:1px solid #cfd5e3;background:#fff;
  display:inline-grid;place-content:center;cursor:pointer;flex:0 0 auto;vertical-align:middle;
  transition:background-color .15s ease,border-color .15s ease,box-shadow .15s ease}
.hs-surface input[type="checkbox"]::before,.hs-dialog input[type="checkbox"]::before,.hs-modal input[type="checkbox"]::before,.settings-modal input[type="checkbox"]::before{
  content:"";width:10px;height:10px;transform:scale(0);transition:transform .14s cubic-bezier(.2,.9,.3,1.25);
  background:#fff;clip-path:polygon(14% 46%,0 64%,42% 100%,100% 15%,82% 0,41% 62%)}
.hs-surface input[type="checkbox"]:hover,.hs-dialog input[type="checkbox"]:hover{border-color:#9aa7c2;box-shadow:0 0 0 3px rgba(28,45,197,.07)}
.hs-surface input[type="checkbox"]:checked,.hs-dialog input[type="checkbox"]:checked{background:var(--hs-primary,#1c2dc5);border-color:var(--hs-primary,#1c2dc5)}
.hs-surface input[type="checkbox"]:checked::before,.hs-dialog input[type="checkbox"]:checked::before{transform:scale(1)}
.hs-surface input[type="checkbox"]:focus-visible,.hs-dialog input[type="checkbox"]:focus-visible{outline:2px solid #c7d2fe;outline-offset:2px}
.hs-surface input[type="checkbox"]:disabled,.hs-dialog input[type="checkbox"]:disabled{opacity:.5;cursor:not-allowed;background:#f3f4f6}
.hs-surface input[type="radio"],.hs-dialog input[type="radio"]{-webkit-appearance:none;appearance:none;width:16px;height:16px;border-radius:999px;border:1px solid #cfd5e3;background:#fff;display:inline-grid;place-content:center;cursor:pointer;transition:border-color .15s ease,box-shadow .15s ease}
.hs-surface input[type="radio"]::before,.hs-dialog input[type="radio"]::before{content:"";width:7px;height:7px;border-radius:999px;background:var(--hs-primary,#1c2dc5);transform:scale(0);transition:transform .14s ease}
.hs-surface input[type="radio"]:checked,.hs-dialog input[type="radio"]:checked{border-color:var(--hs-primary,#1c2dc5)}
.hs-surface input[type="radio"]:checked::before,.hs-dialog input[type="radio"]:checked::before{transform:scale(1)}
.hs-surface input[type="radio"]:focus-visible,.hs-dialog input[type="radio"]:focus-visible{outline:2px solid #c7d2fe;outline-offset:2px}

.hs-input,.hs-textarea,.hs-select{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.hs-input:focus,.hs-textarea:focus,.hs-select:focus{box-shadow:0 0 0 3px rgba(28,45,197,.12);border-color:#c7d2fe;outline:none}
.hs-btn{transition:background-color .16s ease,color .16s ease,border-color .16s ease,box-shadow .16s ease,transform .1s ease}
.hs-btn:hover:not(:disabled){box-shadow:0 1px 2px rgba(16,24,40,.06)}
.hs-btn:active:not(:disabled){transform:translateY(1px)}
.hs-panel{transition:box-shadow .2s ease,border-color .2s ease}
.hs-panel:hover{box-shadow:0 4px 14px rgba(16,24,40,.06)}
.hs-field>span{transition:color .16s ease}
.hs-field:focus-within>span{color:var(--hs-primary,#1c2dc5)}
.hs-seg-btn,.hs-res-card,.hs-list-row,.hs-tab{transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease,transform .1s ease}
.hs-list-row:hover{transform:translateX(1px)}

/* Toggle rows (.hs-switch) are real switches, not squares: the generic checkbox
   rule above is overridden here so each control keeps its own affordance. */
.hs-switch input[type="checkbox"]{
  -webkit-appearance:none;appearance:none;position:relative;display:inline-block;flex:0 0 auto;
  width:34px;height:20px;margin:1px 0 0;border-radius:999px;border:1px solid #d3d9e6;background:#e6e9f2;cursor:pointer;
  transition:background-color .2s ease,border-color .2s ease,box-shadow .2s ease}
.hs-switch input[type="checkbox"]::before{
  content:"";position:absolute;top:2px;left:2px;display:block;width:14px;height:14px;border-radius:999px;background:#fff;
  clip-path:none;box-shadow:0 1px 2px rgba(16,24,40,.22);transform:translateX(0);
  transition:transform .22s cubic-bezier(.2,.9,.3,1.1)}
.hs-switch input[type="checkbox"]:checked{background:var(--hs-primary,#1c2dc5);border-color:var(--hs-primary,#1c2dc5)}
.hs-switch input[type="checkbox"]:checked::before{transform:translateX(14px)}
.hs-switch:hover input[type="checkbox"]:not(:checked){background:#dbe0ec;border-color:#b9c2d6}
.hs-switch:hover input[type="checkbox"]:checked{box-shadow:0 0 0 3px rgba(28,45,197,.12)}
.hs-switch input[type="checkbox"]:focus-visible{outline:2px solid #c7d2fe;outline-offset:2px}
.hs-switch input[type="checkbox"]:disabled{opacity:.55;cursor:not-allowed}
.hs-switch{transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}
.hs-switch:hover{border-color:#c7d2fe;box-shadow:0 2px 8px rgba(16,24,40,.06)}
.dark .hs-switch input[type="checkbox"]{background:#2a2e58;border-color:#3b4276}
.dark .hs-switch input[type="checkbox"]::before{background:#e8ecff}
.dark .hs-switch:hover{border-color:#4b55a0}

/* Popups on the settings screens: the custom select popover and inline
   details panels ease in instead of appearing instantly. */
.hk-select-popover{animation:hk-pop-in .14s ease-out;border-radius:7px;box-shadow:0 14px 34px rgba(16,24,40,.16),0 2px 6px rgba(16,24,40,.06)}
.hk-select-trigger{transition:border-color .16s ease,box-shadow .16s ease,background-color .16s ease}
.hk-select-trigger:hover{border-color:#c7d2fe}
.hk-select-trigger:focus-visible{outline:none;box-shadow:0 0 0 3px rgba(28,45,197,.14)}
.hk-select-option{transition:background-color .12s ease,color .12s ease}
.hk-select-dismiss{animation:hk-fade-in .12s ease-out}
.hs-details-body{animation:hk-pop-in .14s ease-out;border:1px solid var(--hs-soft-border);border-radius:7px;padding:10px;background:#fcfcfd}
@keyframes hk-pop-in{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}
@keyframes hk-fade-in{from{opacity:0}to{opacity:1}}
@media (prefers-reduced-motion:reduce){
  .hk-select-popover,.hk-select-dismiss,.hs-details-body{animation:none}
  .hs-switch input[type="checkbox"],.hs-switch input[type="checkbox"]::before,.hs-panel,.hs-btn,.hs-list-row,.hs-seg-btn,.hs-input,.hs-select,.hs-textarea{transition:none}
}

/* Confirmation dialogs: the real popup used by destructive settings actions.
   The acknowledgement checkbox inside reuses the custom checkbox styling. */
.hs-dialog-backdrop{position:fixed;inset:0;z-index:80;display:flex;align-items:center;justify-content:center;padding:20px;background:rgba(15,23,42,.42);backdrop-filter:blur(2px);animation:hk-fade-in .14s ease-out}
.hs-dialog{width:100%;max-width:430px;border-radius:7px;background:var(--hs-panel,#fff);border:1px solid var(--hs-border,#e5e7eb);border-radius:7px;box-shadow:0 24px 60px rgba(16,24,40,.28);overflow:hidden;animation:hk-dialog-in .18s cubic-bezier(.2,.9,.3,1.05)}
.hs-dialog-head{display:flex;gap:11px;padding:16px 18px 12px}
.hs-dialog-icon{width:32px;height:32px;flex:0 0 auto;border-radius:7px;display:flex;align-items:center;justify-content:center;background:#fef2f2;color:#b91c1c}
.hs-dialog-icon .material-symbols-outlined{font-size:19px}
.hs-dialog-head h3{font-size:14px;font-weight:650;color:#111827;letter-spacing:-.01em}
.hs-dialog-head p{margin-top:3px;font-size:12px;line-height:1.5;color:var(--hs-muted,#6b7280)}
.hs-dialog-body{padding:0 18px 14px;display:flex;flex-direction:column;gap:10px}
.hs-dialog-body .hs-check{font-size:11.5px;color:#374151;padding:9px 10px;border:1px solid var(--hs-soft-border,#e5e7eb);border-radius:6px;background:#fcfcfd}
.hs-dialog-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 18px;border-top:1px solid var(--hs-soft-border,#e5e7eb);background:#fcfcfd}
.dark .hs-dialog,.dark .hs-dialog-foot{background:#141433;border-color:#2a2e58}
.dark .hs-dialog-head h3{color:#eef1fb}
.dark .hs-dialog-body .hs-check{background:#171733;border-color:#2a2e58;color:#c9d1e6}
.dark .hs-dialog-icon{background:#3a1f2a;color:#fca5a5}
@keyframes hk-dialog-in{from{opacity:0;transform:translateY(8px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}
@media (prefers-reduced-motion:reduce){.hs-dialog-backdrop,.hs-dialog{animation:none}}
/* Portalled People dialogs do not inherit the settings surface's ink variables. */
.hs-dialog{color:#111827}
.hs-dialog fieldset{min-width:0;border:0;margin:0;padding:0}
.hs-dialog legend{color:inherit;font-size:12px;font-weight:600;margin-bottom:8px}
.dark .hs-dialog{color:#eef0fb}
.dark .hs-dialog [data-dialog-error]{color:#fecaca;background:#3a1f2a;border-color:#7f1d1d}
