/* Alagad Platform — dark-mode operator styles.
 *
 * Brand palette from the live alagad.net site (Philippine-flag identity):
 *   gold (primary):  #c9a227  — primary buttons, active/selected states, focus
 *   blue (links):    #3b6cf5  — hyperlinks and informational accents
 *   flag deep-blue:  #0038a8 / deep-red: #ce1126  — decorative only
 *   dark-navy surfaces with subtle borders.
 * See the :root and .fp-skin token blocks below for the full ramp.
 */

:root {
  /* Alagad brand palette — extracted from the live alagad.net stylesheet
   * (Philippine-flag identity). Dark-navy surfaces, GOLD primary accent
   * (#c9a227, the site's dominant accent — backgrounds, borders, glows),
   * with BLUE (#3b6cf5) reserved for hyperlinks/info as the site uses it.
   * Flag deep-blue (#0038a8) / deep-red (#ce1126) are decorative only.
   * The portal has its own stylesheet and is unaffected. */
  --bg:           hsl(220 15% 7%);
  --surface:      hsl(220 15% 9%);
  --surface-2:    hsl(220 15% 12%);
  --border:       hsl(220 13% 16%);
  --border-muted: hsl(220 14% 12%);
  --text:         hsl(210 20% 98%);
  --text-muted:   hsl(0 0% 64%);
  --text-dim:     hsl(0 0% 45%);

  /* Brand gold — primary actions, active/selected states, focus. */
  --brand-gold:      #c9a227;
  --accent-bg:       #c9a227;             /* primary button / brand-mark fill */
  --accent-bg-hover: #d9b441;             /* primary button hover (brighter gold) */
  --accent-fg:       #15110a;             /* legible dark text ON gold */
  --accent-strong:   #d8b84a;             /* brighter gold for text on dark (active states) */
  --accent-ring:     rgba(201, 162, 39, 0.32);   /* gold focus ring */
  --accent-tint:     rgba(201, 162, 39, 0.14);   /* gold low-alpha fill (active rows/cards) */

  /* Brand blue — hyperlinks and informational accents only. */
  --accent:       #3b6cf5;            /* links */
  --accent-hover: #6088f7;            /* link hover */

  --success:      hsl(142 65% 45%);
  --warning:      #d29922;
  --danger:       hsl(0 84% 60%);
  --info:         #3b6cf5;
  --radius:       8px;
}

* {
  box-sizing: border-box;
}

html, body {
  background: var(--bg);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  margin: 0;
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  background: var(--accent-bg);
  color: var(--accent-fg);
  border: 1px solid rgba(240, 246, 252, 0.1);
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s, border-color 0.15s;
}
button:hover {
  background: var(--accent-bg-hover);
}
button:active {
  background: var(--accent-bg-hover);
}

input, textarea, select {
  font-family: inherit;
  padding: 8px 12px;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-ring);
}
input::placeholder {
  color: var(--text-dim);
}

/* Top bar */
.topbar {
  background: #010409;
  color: var(--text);
  padding: 12px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
}
.topbar .brand {
  color: var(--text);
  font-weight: 600;
  font-size: 16px;
}
.topbar .nav {
  display: flex;
  gap: 24px;
  align-items: center;
}
.topbar .nav a {
  color: var(--text-muted);
}
.topbar .nav a:hover {
  color: var(--text);
  text-decoration: none;
}
.topbar .user {
  color: var(--text-muted);
  font-size: 14px;
}
.topbar form.inline {
  display: inline;
  margin: 0;
}
.topbar button {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  font-size: 12px;
}
.topbar button:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: #8b949e;
}

/* Content */
.content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
}

h1 {
  font-size: 24px;
  margin-top: 0;
  color: var(--text);
}

h2 {
  font-size: 18px;
  margin-top: 32px;
  color: var(--text);
}

.muted {
  color: var(--text-muted);
}

.error {
  background: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.4);
  color: #ffa198;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

.info-banner {
  background: rgba(56, 139, 253, 0.1);
  border: 1px solid rgba(56, 139, 253, 0.4);
  color: #a5d6ff;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 16px;
}

/* Login card */
.login-card {
  max-width: 360px;
  margin: 80px auto 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 32px;
  box-shadow: 0 8px 24px rgba(1, 4, 9, 0.6);
}
.login-card h1 {
  margin-top: 0;
  text-align: center;
}
.login-card label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.login-card input {
  margin-top: 4px;
}
.login-card button {
  width: 100%;
  margin-top: 8px;
}

/* Data tables */
.data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.data-table th, .data-table td {
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.data-table th {
  background: var(--surface-2);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.05em;
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background: var(--surface-2);
}

/* Empty state — used when there's no data to show. */
.empty-state {
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
}
.empty-state h3 {
  color: var(--text);
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 500;
}
.empty-state p {
  margin: 0;
  font-size: 14px;
}

/* Key-value lists */
.kv {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 16px;
  background: var(--surface);
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.kv dt {
  color: var(--text-muted);
  font-size: 14px;
}
.kv dd {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

/* Status pills */
.status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  background: rgba(56, 139, 253, 0.15);
  color: #79c0ff;
  border: 1px solid rgba(56, 139, 253, 0.4);
}
.status-active      { background: rgba(63, 185, 80, 0.15);  color: #56d364; border-color: rgba(63, 185, 80, 0.4); }
.status-pending     { background: rgba(210, 153, 34, 0.15); color: #e3b341; border-color: rgba(210, 153, 34, 0.4); }
.status-provisioning{ background: rgba(56, 139, 253, 0.15); color: #79c0ff; border-color: rgba(56, 139, 253, 0.4); }
.status-degraded    { background: rgba(247, 154, 13, 0.15); color: #ffa657; border-color: rgba(247, 154, 13, 0.4); }
.status-failed      { background: rgba(248, 81, 73, 0.15);  color: #ff7b72; border-color: rgba(248, 81, 73, 0.4); }
.status-suspended   { background: rgba(139, 148, 158, 0.15);color: #8b949e; border-color: rgba(139, 148, 158, 0.4); }
.status-destroyed   { background: rgba(139, 148, 158, 0.15);color: #6e7681; border-color: rgba(139, 148, 158, 0.4); }

/* Page header with inline actions */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.page-header h1 {
  margin: 0;
}
.button-link {
  display: inline-block;
  background: var(--accent-bg);
  color: var(--accent-fg);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(240, 246, 252, 0.1);
  transition: background 0.15s;
}
.button-link:hover {
  background: var(--accent-bg-hover);
  text-decoration: none;
  color: var(--accent-fg);
}

/* Create form */
.create-form {
  max-width: 560px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 24px;
}
.create-form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.create-form label > input,
.create-form label > select,
.create-form label > textarea {
  margin-top: 4px;
}
.create-form small.muted {
  display: block;
  margin-top: 4px;
  font-size: 12px;
}
.form-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}
.form-actions .cancel {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 32px;
  color: var(--text-dim);
  font-size: 12px;
}

pre, code {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 13px;
}
pre {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 6px;
  overflow-x: auto;
}
code {
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.875em;
}

/* Credentials block */
.credentials-block {
  margin-bottom: 16px;
}
.credentials-actions {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}
.button-warn {
  background: var(--warning);
  color: var(--bg);
  border-color: rgba(0, 0, 0, 0.2);
}
.button-warn:hover {
  background: #e0a93a;
}
.link-button-inline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  margin-left: 8px;
}
.link-button-inline:hover {
  background: var(--surface-2);
}
.mono {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 13px;
}
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  margin-left: 8px;
}
.badge-warn {
  background: rgba(210, 153, 34, 0.15);
  color: #e3b341;
  border: 1px solid rgba(210, 153, 34, 0.4);
}
.info {
  background: rgba(56, 139, 253, 0.1);
  border-left: 3px solid var(--info);
  color: var(--text);
  padding: 8px 12px;
  margin-top: 12px;
  border-radius: 4px;
  font-size: 14px;
}
.rename-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  margin-top: 12px;
  max-width: 480px;
}
.rename-form label {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.rename-form label > input {
  margin-top: 4px;
  width: 100%;
}
.hidden {
  display: none;
}

/* Danger zone — irreversible operations */
.danger-zone {
  margin-top: 32px;
  padding: 16px 20px;
  border: 1px solid rgba(248, 81, 73, 0.4);
  border-radius: 8px;
  background: rgba(248, 81, 73, 0.05);
}
.danger-zone h2 {
  margin-top: 0;
  color: var(--danger);
}
.button-danger {
  background: var(--danger);
  color: white;
  border: 1px solid rgba(0, 0, 0, 0.2);
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}
.button-danger:hover {
  background: #d73930;
}

/* Selection color tuning */
::selection {
  background: rgba(31, 111, 235, 0.4);
  color: var(--text);
}

/* ============================================================
   Filter bar
   ------------------------------------------------------------
   Inline pill toggles, GitHub-style. The form itself is the
   flex container so chips, the Apply button, and the auxiliary
   text-links share one baseline.

   The checkbox inside each chip is visually hidden (taken out
   of normal flow with absolute positioning + opacity:0); the
   <label class="chip"> wraps it, so clicking the pill toggles
   the input. The global `input { width:100%; padding... }`
   rule otherwise bleeds in and explodes the layout.
   ============================================================ */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  position: relative;
}
.filter-bar .filter-label {
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-right: 4px;
}
.filter-bar .filter-meta {
  color: var(--text-muted);
  font-size: 12px;
  padding-left: 10px;
  margin-left: 4px;
  border-left: 1px solid var(--border);
}

/* Chip — clickable pill. Visually hide the wrapped checkbox so
   the <label> becomes the entire hit target. */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 11.5px;
  line-height: 1.6;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
  /* Belt-and-braces: kill any input-related width that might bleed in. */
  box-sizing: border-box;
}
.chip:hover {
  background: rgba(56, 139, 253, 0.06);
  border-color: var(--text-dim);
  color: var(--text);
}
.chip input[type="checkbox"] {
  /* Native checkbox is for form submission only — never visible. */
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.chip:focus-within {
  /* Restore the focus outline that the hidden input would have shown. */
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.chip-on {
  background: rgba(56, 139, 253, 0.14);
  border-color: rgba(56, 139, 253, 0.55);
  color: #79c0ff;
}
.chip-on:hover {
  background: rgba(56, 139, 253, 0.20);
  color: #a5d6ff;
}

/* Spacer that separates the chip group from the action cluster
   on the right. Width auto-grows so Apply / Reset / Show all
   sit on the right edge of the bar on wide screens, and wrap
   politely on narrow ones. */
.filter-bar > .filter-spacer {
  flex: 1 1 auto;
  min-width: 8px;
}

.filter-bar .button-link {
  padding: 4px 14px;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Plain text-link — used for Reset / Show all. NOT a button. */
.button-link-secondary {
  background: transparent;
  border: none;
  padding: 2px 4px;
  color: var(--text-muted);
  font-size: 12px;
  text-decoration: none;
  transition: color 0.12s;
}
.button-link-secondary:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Tiny inline action — "↻ check" button in the drift column.
   De-emphasized on purpose: not an action, just a state refresh. */
.button-link-tiny {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.6;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.button-link-tiny:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-dim);
  color: var(--text);
}

/* Ghost button — outlined, transparent, muted.
   For diagnostic refresh actions (Drift → Refresh / Check now) that
   shouldn't read as primary or destructive. */
.button-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.button-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-dim);
  color: var(--text);
}
.button-ghost:active {
  background: rgba(255, 255, 255, 0.08);
}
.btn-icon {
  display: inline-block;
  font-size: 13px;
  line-height: 1;
  /* Spin briefly on click — CSS-only feedback that something is happening
     before HTMX swaps the panel. */
  transition: transform 0.4s ease;
}
.button-ghost:active .btn-icon {
  transform: rotate(360deg);
}
/* HTMX adds .htmx-request to the trigger element while the request is
   in flight; spin the icon to confirm something is happening. */
.button-ghost.htmx-request .btn-icon,
.button-link-tiny.htmx-request span[aria-hidden] {
  display: inline-block;
  animation: alagad-spin 0.8s linear infinite;
}
.button-ghost.htmx-request,
.button-link-tiny.htmx-request {
  pointer-events: none;
  opacity: 0.7;
}

/* Workspace list — additions on top of .data-table */
.workspace-list td {
  vertical-align: middle;
}
.muted-cell {
  color: var(--text-dim);
}
.ws-ip {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 12px;
  color: var(--text-muted);
}
.ci-summary {
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 12px;
}
.ci-all-active     { color: var(--success); }
.ci-mixed          { color: var(--warning); }
.ci-all-destroyed  { color: var(--text-dim); }
.ci-empty          { color: var(--text-dim); }

/* Drift cell — verify status in the list */
.drift-cell { white-space: nowrap; }
.drift-clean {
  color: var(--success);
  font-weight: 600;
  font-size: 14px;
}
.drift-dirty {
  color: var(--danger);
  font-weight: 600;
  font-size: 12px;
}

/* Missing status pills — destroying, purged, plus a fallback */
.status-destroying { background: rgba(210, 153, 34, 0.15); color: #e3b341; border-color: rgba(210, 153, 34, 0.4); }
.status-purged     { background: rgba(110, 118, 129, 0.15); color: var(--text-dim); border-color: rgba(110, 118, 129, 0.4); }

/* ============================================================
   Workspace detail page
   ============================================================ */

.breadcrumb {
  margin: 0 0 12px;
  font-size: 13px;
}
.breadcrumb a {
  color: var(--text-muted);
}
.breadcrumb a:hover {
  color: var(--text);
  text-decoration: none;
}

.ws-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.ws-header-main {
  flex: 1 1 auto;
  min-width: 0;
}
.ws-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  word-break: break-all;
}
.ws-subtitle {
  margin: 4px 0 10px;
  color: var(--text-muted);
  font-size: 13px;
}
.ws-sep {
  color: var(--text-dim);
  margin: 0 6px;
}
.ws-tenant-link {
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 12px;
}
.ws-tenant-link:hover {
  color: var(--text);
  text-decoration: none;
}
.ws-status-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ws-quick-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}

/* Spinner — used in status badge during provisioning/destroying. */
.spinner {
  display: inline-block;
  width: 10px;
  height: 10px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: alagad-spin 0.8s linear infinite;
  margin-left: 6px;
  vertical-align: -1px;
}
@keyframes alagad-spin { to { transform: rotate(360deg); } }

/* Muted badge variant — used next to the status pill for purpose. */
.badge-muted {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, monospace;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 4px;
}

/* Card panels — one per section on the detail page. */
.ws-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 18px 20px;
  margin-bottom: 20px;
}
.ws-panel > .panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
}
.ws-panel > .panel-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}
/* Stacked variant: a long descriptive subtitle sits directly under the title
   instead of being flung to the far-right edge (which space-between does — fine
   for short meta like "last 20 events", ugly for a full sentence). */
.ws-panel > .panel-header.panel-header--stack {
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}
.ws-panel > .panel-header.panel-header--stack .panel-desc {
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  font-size: 12.5px;
}
.panel-subhead {
  margin: 18px 0 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* Tight version of the kv list for in-panel use (no nested card border) */
.kv-tight {
  background: transparent;
  border: none;
  padding: 0;
  grid-template-columns: 140px 1fr;
  gap: 6px 16px;
}
.kv-tight dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-dim);
}
.kv-tight dd {
  font-size: 14px;
}

/* Component instances table — compact, monospace, no row hover */
.ci-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  font-size: 13px;
}
.ci-table th, .ci-table td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-muted);
}
.ci-table th {
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.ci-table tr:last-child td { border-bottom: none; }
.ci-error-row td {
  background: rgba(248, 81, 73, 0.05);
  border-top: none;
  padding-top: 4px;
  padding-bottom: 10px;
  font-size: 12px;
}
.ci-error-label {
  color: var(--danger);
  font-weight: 500;
  margin-right: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ci-error-msg {
  color: #ffa198;
  background: transparent;
  padding: 0;
  font-size: 12px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* Verify table — 4 upstream rows, dot + name + status + reason */
.verify-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.verify-table td {
  padding: 6px 10px 6px 0;
  border-bottom: 1px solid var(--border-muted);
  vertical-align: middle;
}
.verify-table tr:last-child td { border-bottom: none; }
.verify-dot-cell { width: 16px; padding-left: 0; }
.verify-reason {
  font-size: 12px;
  font-style: italic;
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  vertical-align: middle;
}
.dot-green { background: var(--success); box-shadow: 0 0 6px rgba(63, 185, 80, 0.5); }
.dot-red   { background: var(--danger);  box-shadow: 0 0 6px rgba(248, 81, 73, 0.5); }
.verify-actions {
  margin-top: 14px;
}

/* Drift list — one card per drift item */
.drift-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.drift-item {
  border-left: 3px solid var(--danger);
  background: rgba(248, 81, 73, 0.06);
  padding: 10px 12px;
  margin: 0 0 10px;
  border-radius: 0 6px 6px 0;
}
.drift-code {
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  padding: 0;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.drift-msg {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--text);
}
.drift-hint {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--text-muted);
}

/* Activity tail — one line per event with collapsible payload */
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-item {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-muted);
  font-size: 13px;
}
.activity-item:last-child { border-bottom: none; }
.activity-when {
  flex: 0 0 90px;
  font-size: 12px;
}
.activity-type {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--text);
}
.activity-actor {
  flex: 0 0 auto;
  font-size: 12px;
}
.activity-payload {
  flex: 1 1 100%;
  margin: 4px 0 0 90px;
}
.activity-payload summary {
  cursor: pointer;
  font-size: 11px;
  display: inline-block;
  padding: 1px 6px;
  border: 1px solid var(--border);
  border-radius: 4px;
}
.activity-payload summary:hover {
  color: var(--text);
  border-color: var(--text-dim);
}
.activity-payload[open] summary {
  margin-bottom: 6px;
}
.activity-payload pre {
  font-size: 11px;
  margin: 0;
  max-height: 240px;
  overflow: auto;
}

/* Notes block on detail page */
.ws-notes {
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  background: var(--bg);
}

/* Scrollbar tuning (WebKit) */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-2);
  border-radius: 6px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--border);
}

/* ===========================================================================
 * FeatherPanel skin — reusable, opt-in component layer.
 *
 * Tokens + components originally extracted from the FeatherPanel admin UI
 * (shadcn/ui dark theme), now recolored to the Alagad brand: GOLD primary
 * (#c9a227, from the live alagad.net palette), dark-navy surfaces, subtle
 * borders, 0.5rem radius. Scoped under `.fp-skin` so it NEVER touches a page
 * that hasn't opted in — wrap a page's content in `<div class="fp-skin">` to
 * adopt the look (Accounts uses it today; Workspaces/dashboard can adopt
 * later with no rewrite).
 * =========================================================================== */
.fp-skin {
  --fp-bg:            hsl(220 15% 7%);
  --fp-surface:       hsl(220 15% 9%);
  --fp-surface-2:     hsl(220 15% 12%);
  --fp-text:          hsl(210 20% 98%);
  --fp-muted:         hsl(0 0% 64%);
  --fp-border:        hsl(220 13% 16%);
  --fp-primary:       #c9a227;            /* Alagad gold */
  --fp-primary-hover: #d9b441;
  --fp-primary-fg:    #15110a;            /* legible dark text on gold */
  --fp-primary-strong:#d8b84a;            /* brighter gold for text/active on dark */
  --fp-primary-tint:  rgba(201, 162, 39, 0.14);
  --fp-danger:        hsl(0 84% 60%);
  --fp-success:       hsl(142 65% 45%);
  --fp-radius:        0.5rem;
  --fp-radius-sm:     0.375rem;
  --fp-font: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  color: var(--fp-text);
  font-family: var(--fp-font);
}

/* Header: title + primary action, FP "page title" rhythm. */
.fp-skin .fp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.25rem;
}
.fp-skin .fp-header h1 {
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
}
.fp-skin .fp-subtitle {
  color: var(--fp-muted);
  font-size: 0.875rem;
  margin: 0.25rem 0 1.25rem;
}

/* Card surface wrapping toolbar + table. */
.fp-skin .fp-card {
  background: var(--fp-surface);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  overflow: hidden;
}

/* Toolbar / filter row. */
.fp-skin .fp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.625rem;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--fp-border);
}
.fp-skin .fp-toolbar-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-muted);
}
.fp-skin .fp-spacer { flex: 1 1 auto; }

/* Segmented control (status: All / Active / Inactive). */
.fp-skin .fp-segment {
  display: inline-flex;
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-sm);
  padding: 2px;
}
.fp-skin .fp-segment label {
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1;
  padding: 0.4rem 0.7rem;
  border-radius: calc(var(--fp-radius-sm) - 2px);
  color: var(--fp-muted);
  user-select: none;
}
.fp-skin .fp-segment input { position: absolute; opacity: 0; pointer-events: none; }
.fp-skin .fp-segment label.on {
  background: var(--fp-primary);
  color: var(--fp-primary-fg);
  font-weight: 500;
}

/* Form controls — shadcn input look. */
.fp-skin .fp-input,
.fp-skin .fp-select {
  appearance: none;
  background: var(--fp-bg);
  color: var(--fp-text);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius-sm);
  padding: 0.45rem 0.65rem;
  font-size: 0.8125rem;
  font-family: inherit;
  min-height: 34px;
}
.fp-skin .fp-input::placeholder { color: var(--fp-muted); }
.fp-skin .fp-input:focus,
.fp-skin .fp-select:focus {
  outline: none;
  border-color: var(--fp-primary-strong);
  box-shadow: 0 0 0 3px var(--fp-primary-tint);
}

/* Buttons. */
.fp-skin .fp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  padding: 0.5rem 0.85rem;
  border-radius: var(--fp-radius-sm);
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-2);
  color: var(--fp-text);
  text-decoration: none;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.fp-skin .fp-btn:hover { background: var(--fp-border); }
.fp-skin .fp-btn-primary {
  background: var(--fp-primary);
  border-color: var(--fp-primary);
  color: var(--fp-primary-fg);
}
.fp-skin .fp-btn-primary:hover { background: var(--fp-primary-hover); border-color: var(--fp-primary-hover); }
.fp-skin .fp-btn-ghost { background: transparent; }
.fp-skin .fp-btn-ghost:hover { background: var(--fp-surface-2); }
.fp-skin .fp-btn-sm { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
/* Bare icon button (e.g. the reveal-password eye) — no chrome until hover. */
.fp-skin .fp-iconbtn {
  background: transparent;
  border: 0;
  color: var(--fp-muted);
  cursor: pointer;
  padding: 0.2rem;
  line-height: 0;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  transition: color 0.12s ease, background 0.12s ease;
}
.fp-skin .fp-iconbtn:hover { color: var(--fp-primary-strong); background: var(--fp-surface-2); }
/* Destructive button — clearly red, but subordinate to the solid gold primary
 * (outline by default, fills red on hover). */
.fp-skin .fp-btn-danger {
  background: transparent;
  border-color: hsl(0 84% 60% / 0.55);
  color: hsl(0 84% 74%);
}
.fp-skin .fp-btn-danger:hover {
  background: var(--fp-danger);
  border-color: var(--fp-danger);
  color: #fff;
}

/* Decision area — Activate (primary) vs Reject (destructive) as side-by-side
 * cards. Used on the onboarding detail page. */
.fp-skin .fp-action-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(264px, 1fr));
  gap: 0.85rem;
  margin-top: 1.1rem;
}
.fp-skin .fp-action {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1rem 1.1rem 1.1rem;
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  background: var(--fp-surface-2);
}
.fp-skin .fp-action > strong {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--fp-muted);
}
.fp-skin .fp-action .fp-btn { width: 100%; justify-content: center; }
/* The primary path gets a gold-tinted card so the operator's eye lands on it. */
.fp-skin .fp-action--primary {
  border-color: hsl(43 67% 47% / 0.5);
  background: var(--fp-primary-tint);
}
.fp-skin .fp-action--primary > strong { color: var(--fp-primary-strong); }

/* Table. */
.fp-skin .fp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.fp-skin .fp-table thead th {
  text-align: left;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fp-muted);
  padding: 0.6rem 1rem;
  background: var(--fp-bg);
  border-bottom: 1px solid var(--fp-border);
}
.fp-skin .fp-table tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--fp-border);
  vertical-align: middle;
}
.fp-skin .fp-table tbody tr:last-child td { border-bottom: none; }
.fp-skin .fp-table tbody tr:hover { background: hsl(220 15% 11%); }
.fp-skin .fp-mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }
.fp-skin .fp-dim { color: var(--fp-muted); }

/* Status pills. */
.fp-skin .fp-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.fp-skin .fp-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.fp-skin .fp-pill-active   { color: hsl(142 65% 55%); background: hsl(142 65% 45% / 0.12); border-color: hsl(142 65% 45% / 0.35); }
.fp-skin .fp-pill-inactive { color: var(--fp-muted);  background: hsl(0 0% 64% / 0.10);  border-color: hsl(0 0% 64% / 0.25); }

/* Empty state. */
.fp-skin .fp-empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--fp-muted);
  font-size: 0.875rem;
}

/* Stacked form (create). */
.fp-skin .fp-form { max-width: 460px; display: flex; flex-direction: column; gap: 1rem; margin-top: 1rem; }
.fp-skin .fp-form label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.8125rem; font-weight: 500; }
.fp-skin .fp-form .fp-input,
.fp-skin .fp-form .fp-select { width: 100%; }
.fp-skin .fp-form .fp-hint { font-weight: 400; color: var(--fp-muted); font-size: 0.75rem; }
.fp-skin .fp-form-actions { display: flex; gap: 0.6rem; align-items: center; margin-top: 0.25rem; }
.fp-skin .fp-alert {
  background: var(--fp-surface-2);
  border: 1px solid var(--fp-border);
  color: var(--fp-text);
  border-radius: var(--fp-radius-sm);
  padding: 0.6rem 0.85rem;
  font-size: 0.8125rem;
}
.fp-skin .fp-alert-danger {
  background: hsl(0 84% 60% / 0.10);
  border-color: hsl(0 84% 60% / 0.4);
  color: hsl(0 84% 72%);
}
.fp-skin .fp-alert-success {
  background: hsl(142 65% 45% / 0.12);
  border-color: hsl(142 65% 45% / 0.4);
  color: hsl(142 65% 60%);
}

/* ===========================================================================
 * Operator shell — left sidebar layout (FeatherPanel-style).
 *
 * Mirrors FP/shadcn's admin layout: fixed left vertical nav (brand top,
 * icon+label items with active-state highlight, user identity + log out
 * pinned to the bottom), content to the right on the dark surface. Applied
 * by base.html for owner/operator users; the login page (no user) uses the
 * centered `.auth-main` instead. The tenant /portal has its own shell and
 * is untouched.
 * =========================================================================== */
.app-shell {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
}

.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: hsl(220 15% 8%);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 1.15rem 1.25rem;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.sidebar-brand:hover { text-decoration: none; color: var(--text); }
.sidebar-brand-mark { width: 26px; height: 26px; flex-shrink: 0; display: block; }

.sidebar-nav {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0.75rem 0.6rem;
  overflow-y: auto;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
}
.nav-item:hover { background: var(--surface-2); color: var(--text); text-decoration: none; }
.nav-item.active {
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.nav-item .nav-icon { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 0.85rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.sidebar-user-name { font-size: 0.85rem; font-weight: 600; color: var(--text); }
.sidebar-user-role { font-size: 0.72rem; color: var(--text-muted); text-transform: capitalize; }
.sidebar-footer form { margin: 0; }
.sidebar-logout {
  width: 100%;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 0.45rem;
  font-size: 0.78rem;
  border-radius: var(--radius);
}
.sidebar-logout:hover { background: var(--surface-2); color: var(--text); border-color: var(--text-dim); }

.app-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 2rem 2.25rem;
  max-width: 1180px;
}

/* Login / pre-auth shell — centered, no sidebar. */
.auth-main {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 2rem;
}

/* Narrow widths: stack the sidebar on top (desktop-operator is the priority). */
@media (max-width: 820px) {
  .app-shell { flex-direction: column; }
  .sidebar {
    width: 100%;
    height: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .sidebar-brand { border-bottom: none; }
  .sidebar-nav { flex-direction: row; flex: 1 1 auto; }
  .sidebar-footer {
    margin-top: 0; border-top: none; flex-direction: row; align-items: center;
  }
  .sidebar-logout { width: auto; }
  .app-main { padding: 1.25rem; }
}

/* Dashboard nav cards. */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}
.dash-card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--fp-radius, 0.5rem);
  color: var(--text);
  transition: border-color 0.12s ease, background 0.12s ease;
}
.dash-card:hover {
  text-decoration: none;
  border-color: rgba(201, 162, 39, 0.6);
  background: var(--surface-2);
}
.dash-card-icon {
  display: grid;
  place-items: center;
  width: 38px; height: 38px;
  flex-shrink: 0;
  border-radius: var(--fp-radius, 0.5rem);
  background: var(--accent-tint);
  color: var(--accent-strong);
}
.dash-card-icon svg { width: 20px; height: 20px; }
.dash-card-title { font-weight: 600; font-size: 0.95rem; margin-bottom: 0.2rem; }
.dash-card-desc { color: var(--text-muted); font-size: 0.8125rem; line-height: 1.45; }

/* ===========================================================================
 * Account-driven IA — roster, detail header, tabs.
 * All scoped under `.fp-skin`. Reuses the gold brand accent throughout.
 * =========================================================================== */

/* Clickable table rows (account roster). The whole row navigates; a JS hook
 * (data-href) drives it, with an anchor inside as the accessible fallback. */
.fp-skin .fp-table tbody tr.fp-row-link { cursor: pointer; }
.fp-skin .fp-table tbody tr.fp-row-link:hover { background: var(--accent-tint); }
.fp-skin .fp-row-title { color: var(--fp-text); font-weight: 600; }
.fp-skin .fp-row-link:hover .fp-row-title { color: var(--accent-strong); }

/* Small count chip — "3 agents", "1 user". */
.fp-skin .fp-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  font-size: 0.8125rem;
}
.fp-skin .fp-count-num { font-weight: 600; color: var(--fp-text); }
.fp-skin .fp-count-zero .fp-count-num { color: var(--fp-muted); font-weight: 500; }

/* Pagination — row of page links (not a dropdown). */
.fp-skin .fp-pagination {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--fp-border);
  font-size: 0.8125rem;
  flex-wrap: wrap;
}
.fp-skin .fp-page-meta { color: var(--fp-muted); margin-right: auto; }
.fp-skin .fp-page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  padding: 0.3rem 0.55rem;
  border-radius: var(--fp-radius-sm);
  border: 1px solid var(--fp-border);
  background: var(--fp-surface-2);
  color: var(--fp-text);
  text-decoration: none;
}
.fp-skin .fp-page-link:hover { background: var(--fp-border); text-decoration: none; }
.fp-skin .fp-page-link.on {
  background: var(--fp-primary);
  border-color: var(--fp-primary);
  color: var(--fp-primary-fg);
  font-weight: 600;
}
.fp-skin .fp-page-link.disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Account detail header — name + status, action cluster on the right. */
.fp-skin .fp-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.fp-skin .fp-detail-title { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.fp-skin .fp-detail-title h1 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin: 0; }
.fp-skin .fp-detail-actions { display: flex; gap: 0.5rem; align-items: center; }
.fp-skin .fp-btn[disabled],
.fp-skin .fp-btn.fp-btn-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}
.fp-skin .fp-breadcrumb { font-size: 0.8125rem; margin: 0 0 0.75rem; }
.fp-skin .fp-breadcrumb a { color: var(--fp-muted); }
.fp-skin .fp-breadcrumb a:hover { color: var(--fp-text); text-decoration: none; }

/* Tabs — one panel visible at a time (JS toggle). Active tab = gold. */
.fp-skin .fp-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--fp-border);
  margin: 1.25rem 0 1rem;
}
.fp-skin .fp-tab {
  appearance: none;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--fp-muted);
  font-size: 0.875rem;
  font-weight: 500;
  font-family: inherit;
  padding: 0.55rem 0.9rem;
  margin-bottom: -1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.fp-skin .fp-tab:hover { color: var(--fp-text); background: transparent; }
.fp-skin .fp-tab.on {
  color: var(--accent-strong);
  border-bottom-color: var(--fp-primary);
}
.fp-skin .fp-tab-count {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: var(--fp-surface-2);
  color: var(--fp-muted);
}
.fp-skin .fp-tab.on .fp-tab-count { background: var(--accent-tint); color: var(--accent-strong); }
.fp-skin .fp-tabpanel[hidden] { display: none; }

/* Status pills — extra brand-aligned variants for tenant/workspace status. */
.fp-skin .fp-pill-warn   { color: hsl(38 92% 60%);  background: hsl(38 92% 50% / 0.12);  border-color: hsl(38 92% 50% / 0.35); }
.fp-skin .fp-pill-danger { color: hsl(0 84% 70%);   background: hsl(0 84% 60% / 0.12);   border-color: hsl(0 84% 60% / 0.35); }
.fp-skin .fp-pill-info   { color: hsl(222 90% 72%); background: hsl(222 90% 60% / 0.12); border-color: hsl(222 90% 60% / 0.35); }
.fp-skin .fp-pill-neutral{ color: var(--fp-muted);  background: hsl(0 0% 64% / 0.10);    border-color: hsl(0 0% 64% / 0.25); }

/* Inline create-form reveal inside the Users tab (no separate page). */
.fp-skin .fp-form-inline {
  background: var(--fp-bg);
  border: 1px solid var(--fp-border);
  border-radius: var(--fp-radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}
.fp-skin .fp-form-inline .fp-form { margin-top: 0; }
.fp-skin .fp-section-actions { display: flex; justify-content: flex-end; margin-bottom: 0.75rem; }
/* Inline cluster of per-row actions (e.g. Impersonate + Inactivate). */
.fp-skin .fp-row-actions { display: inline-flex; gap: 0.4rem; align-items: center; }
