/* ============================================================
   ENESI AI — COMPONENTS
   Built on the token layer. Bootstrap 5.3 handles grid + JS
   (modal/toast/tooltip/dropdown); these classes give those
   components the Enesi skin and add the bespoke primitives.
   ============================================================ */

/* ---- Map Bootstrap color-mode vars onto Enesi tokens so native
        BS components inherit the palette automatically ---- */
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-body-bg: var(--bg);
  --bs-body-color: var(--text);
  --bs-border-color: var(--border);
  --bs-primary: var(--accent);
  --bs-primary-rgb: 226,222,0;
  --bs-emphasis-color: var(--text);
  --bs-secondary-color: var(--text-2);
  --bs-tertiary-bg: var(--surface-2);
  --bs-border-radius: var(--radius-md);
  --bs-link-color: var(--text);
  --bs-font-sans-serif: var(--font-sans);
  --bs-font-monospace: var(--font-mono);
}

/* =========================================================
   BUTTONS
   ========================================================= */
.e-btn {
  --_pad-y: 10px; --_pad-x: 18px; --_fs: var(--fs-14);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-family: var(--font-sans); font-size: var(--_fs); font-weight: var(--fw-semibold);
  line-height: 1; letter-spacing: 0; text-decoration: none; white-space: nowrap;
  padding: var(--_pad-y) var(--_pad-x); border-radius: var(--radius-sm);
  border: 1.5px solid transparent; cursor: pointer; user-select: none;
  transition: background-color var(--dur-fast) var(--ease), border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease), transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}
.e-btn:active { transform: translateY(1px); }
.e-btn:disabled, .e-btn.is-disabled { opacity: .45; pointer-events: none; }
.e-btn .e-ico { width: 18px; height: 18px; flex: none; }

/* Primary — the signature: yellow fill, ink text */
.e-btn--primary { background: var(--accent); color: var(--text-on-yellow); border-color: var(--accent); }
.e-btn--primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.e-btn--primary:active { background: var(--accent-press); border-color: var(--accent-press); }

/* Secondary — outline on ink */
.e-btn--secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.e-btn--secondary:hover { background: var(--surface-2); border-color: var(--text-2); }

/* Solid dark/ink (for use on yellow or light hero) */
.e-btn--ink { background: var(--surface-inverse); color: var(--text-inverse); border-color: var(--surface-inverse); }
.e-btn--ink:hover { opacity: .88; }

/* Ghost — text only */
.e-btn--ghost { background: transparent; color: var(--text); border-color: transparent; }
.e-btn--ghost:hover { background: var(--surface-2); }

/* Destructive */
.e-btn--danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.e-btn--danger:hover { filter: brightness(.93); }
.e-btn--danger-ghost { background: transparent; color: var(--danger); border-color: transparent; }
.e-btn--danger-ghost:hover { background: var(--danger-bg); }

/* sizes */
.e-btn--sm { --_pad-y: 6px; --_pad-x: 12px; --_fs: var(--fs-13); border-radius: var(--radius-xs); }
.e-btn--lg { --_pad-y: 14px; --_pad-x: 26px; --_fs: var(--fs-16); border-radius: var(--radius-md); }
.e-btn--icon { --_pad-x: 10px; }
.e-btn--block { display: flex; width: 100%; }

/* loading */
.e-btn.is-loading { color: transparent !important; position: relative; pointer-events: none; }
.e-btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-top-color: transparent;
  color: var(--text-on-yellow); animation: e-spin .6s linear infinite;
}
.e-btn--secondary.is-loading::after, .e-btn--ghost.is-loading::after { color: var(--text); }
@keyframes e-spin { to { transform: rotate(360deg); } }

/* =========================================================
   FORM CONTROLS
   ========================================================= */
.e-field { display: flex; flex-direction: column; gap: 6px; }
.e-label { font-size: var(--fs-13); font-weight: var(--fw-medium); color: var(--text-2); }
.e-label .e-req { color: var(--danger); }
.e-hint { font-size: var(--fs-12); color: var(--text-muted); }
.e-hint--error { color: var(--danger-text); }

.e-input, .e-select, .e-textarea {
  width: 100%; font-family: var(--font-sans); font-size: var(--fs-14); color: var(--text);
  background: var(--surface); border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm); padding: 10px 14px; line-height: 1.4;
  transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}
.e-input::placeholder, .e-textarea::placeholder { color: var(--text-faint); }
.e-input:hover, .e-select:hover, .e-textarea:hover { border-color: var(--text-2); }
.e-input:focus, .e-select:focus, .e-textarea:focus {
  outline: none; border-color: var(--accent-press);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent);
}
.e-input.is-invalid, .e-select.is-invalid { border-color: var(--danger); }
.e-input.is-invalid:focus { box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 28%, transparent); }
.e-input:disabled { background: var(--surface-2); color: var(--text-muted); cursor: not-allowed; }
.e-input.mono, .e-textarea.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

.e-select { appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 13px) 52%;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 38px; }

.e-input-group { display: flex; align-items: stretch; }
.e-input-group .e-input { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.e-input-group .e-btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; border-left: 0; }

/* Toggle / switch */
.e-switch { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }
.e-switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.e-switch .e-track { width: 42px; height: 24px; border-radius: var(--radius-pill);
  background: var(--surface-3); border: 1.5px solid var(--border-strong); transition: all var(--dur) var(--ease); flex: none; }
.e-switch .e-thumb { position: absolute; left: 4px; top: 50%; transform: translateY(-50%);
  width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: all var(--dur) var(--ease); }
.e-switch input:checked + .e-track { background: var(--accent); border-color: var(--accent); }
.e-switch input:checked + .e-track + .e-thumb { left: 22px; background: var(--enesi-ink); }
.e-switch input:focus-visible + .e-track { box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 40%, transparent); }

/* Checkbox & radio */
.e-check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-size: var(--fs-14); }
.e-check input { appearance: none; width: 18px; height: 18px; margin: 0; flex: none;
  border: 1.5px solid var(--border-strong); background: var(--surface); transition: all var(--dur-fast) var(--ease); }
.e-check input[type=checkbox] { border-radius: 5px; }
.e-check input[type=radio] { border-radius: 50%; }
.e-check input:checked { background: var(--accent); border-color: var(--accent); }
.e-check input[type=checkbox]:checked { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%230A0A09' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3.5 8.5l3 3 6-6.5'/%3E%3C/svg%3E"); }
.e-check input[type=radio]:checked { box-shadow: inset 0 0 0 4px var(--accent), inset 0 0 0 6px var(--enesi-ink); }

/* API KEY field — copy + reveal */
.e-keyfield { display: flex; align-items: center; gap: 0; background: var(--surface);
  border: 1.5px solid var(--border-strong); border-radius: var(--radius-sm); overflow: hidden; }
.e-keyfield .e-key-val { flex: 1; min-width: 0; font-family: var(--font-mono); font-size: var(--fs-13);
  color: var(--text); padding: 10px 14px; letter-spacing: .01em; white-space: nowrap; overflow: hidden;
  text-overflow: ellipsis; user-select: all; }
.e-keyfield.is-masked .e-key-val { letter-spacing: .12em; }
.e-keyfield .e-key-act { display: flex; align-items: center; padding: 0 6px; border-left: 1px solid var(--border); }
.e-key-btn { background: transparent; border: 0; cursor: pointer; color: var(--text-2); padding: 8px;
  border-radius: var(--radius-xs); display: inline-flex; transition: all var(--dur-fast) var(--ease); }
.e-key-btn:hover { background: var(--surface-2); color: var(--text); }
.e-key-btn.is-copied { color: var(--success); }

/* =========================================================
   BADGE / PILL  — lifecycle states
   ========================================================= */
.e-badge { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-12);
  font-weight: var(--fw-semibold); line-height: 1; padding: 5px 10px 5px 9px; border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap; }
.e-badge .e-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.e-badge--active  { color: var(--success-text); background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); }
.e-badge--suspended { color: var(--warning-text); background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 30%, transparent); }
.e-badge--revoked { color: var(--danger-text); background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); }
.e-badge--expired { color: var(--text-muted); background: var(--surface-3); border-color: var(--border); }
.e-badge--neutral { color: var(--text-2); background: var(--surface-2); border-color: var(--border); }
.e-badge--accent  { color: var(--enesi-ink); background: var(--accent); border-color: var(--accent); }
.e-badge--sm { font-size: var(--fs-11); padding: 3px 8px; }

/* =========================================================
   CARD + KPI
   ========================================================= */
.e-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); }
.e-card--flush { box-shadow: none; }
.e-card__head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-subtle); }
.e-card__title { font-size: var(--fs-16); font-weight: var(--fw-semibold); }
.e-card__body { padding: var(--space-6); }
.e-card__foot { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-subtle); }

.e-kpi { display: flex; flex-direction: column; gap: var(--space-2); padding: var(--space-5) var(--space-6);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); position: relative; }
.e-kpi__label { font-size: var(--fs-12); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--text-muted); }
.e-kpi__value { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-weight: var(--fw-semibold);
  font-size: var(--fs-32); line-height: 1; color: var(--text); letter-spacing: -0.01em; }
.e-kpi__value .e-cur { font-size: .56em; color: var(--text-2); font-weight: var(--fw-medium); margin-right: 2px; }
.e-kpi__value .e-unit { font-size: .42em; color: var(--text-muted); font-weight: var(--fw-medium); }
.e-kpi__delta { display: inline-flex; align-items: center; gap: 4px; font-size: var(--fs-13);
  font-weight: var(--fw-semibold); font-family: var(--font-mono); }
.e-kpi__delta--up { color: var(--success); } .e-kpi__delta--down { color: var(--danger); }
.e-kpi__delta--flat { color: var(--text-muted); }
.e-kpi--accent { border-left: 3px solid var(--accent); }

/* =========================================================
   DATA TABLE — dense, numeric-right, sortable
   ========================================================= */
.e-table-wrap { border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: var(--surface); }
.e-table { width: 100%; border-collapse: collapse; font-size: var(--fs-13); }
.e-table thead th { font-size: var(--fs-11); font-weight: var(--fw-semibold); letter-spacing: var(--ls-wide);
  text-transform: uppercase; color: var(--text-muted); text-align: left; padding: 11px 16px;
  background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; position: sticky; top: 0; }
.e-table tbody td { padding: 11px 16px; border-bottom: 1px solid var(--border-subtle); color: var(--text); vertical-align: middle; }
.e-table tbody tr:last-child td { border-bottom: 0; }
.e-table tbody tr { transition: background var(--dur-fast) var(--ease); }
.e-table tbody tr:hover { background: var(--surface-2); }
.e-table .num, .e-table .e-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums;
  text-align: right; white-space: nowrap; }
.e-table th.e-num { text-align: right; }
.e-table--zebra tbody tr:nth-child(even) { background: color-mix(in srgb, var(--surface-2) 55%, transparent); }
.e-table--compact tbody td, .e-table--compact thead th { padding-top: 7px; padding-bottom: 7px; }

.e-th-sort { cursor: pointer; user-select: none; }
.e-th-sort:hover { color: var(--text-2); }
.e-th-sort .e-sort-ico { display: inline-block; margin-left: 5px; opacity: .4; font-size: 10px; }
.e-th-sort.is-asc .e-sort-ico, .e-th-sort.is-desc .e-sort-ico { opacity: 1; color: var(--text); }
.e-th-sort.is-asc .e-sort-ico::after { content: "▲"; }
.e-th-sort.is-desc .e-sort-ico::after { content: "▼"; }
.e-th-sort .e-sort-ico::after { content: "↕"; }

.e-amount-pos { color: var(--success); } .e-amount-neg { color: var(--danger); }

/* =========================================================
   ALERT / TOAST
   ========================================================= */
.e-alert { display: flex; gap: var(--space-3); padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-md); border: 1px solid transparent; background: var(--surface-2); align-items: flex-start; }
.e-alert__ico { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.e-alert__body { flex: 1; min-width: 0; }
.e-alert__title { font-weight: var(--fw-semibold); font-size: var(--fs-14); margin-bottom: 2px; }
.e-alert__text { font-size: var(--fs-13); color: var(--text-2); }
.e-alert--info { background: var(--info-bg); border-color: color-mix(in srgb, var(--info) 30%, transparent); color: var(--info-text); }
.e-alert--success { background: var(--success-bg); border-color: color-mix(in srgb, var(--success) 30%, transparent); color: var(--success-text); }
.e-alert--warning { background: var(--warning-bg); border-color: color-mix(in srgb, var(--warning) 35%, transparent); color: var(--warning-text); }
.e-alert--danger { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 35%, transparent); color: var(--danger-text); }
.e-alert--credit { background: var(--accent-quiet); border-color: color-mix(in srgb, var(--accent) 55%, transparent); color: var(--text); }
.e-alert__ico, .e-alert__title { color: inherit; }
.e-alert--info .e-alert__title, .e-alert--success .e-alert__title,
.e-alert--warning .e-alert__title, .e-alert--danger .e-alert__title { color: inherit; }

/* Toast container */
.e-toast-stack { position: fixed; right: 24px; bottom: 24px; display: flex; flex-direction: column;
  gap: 12px; z-index: 1080; width: 360px; max-width: calc(100vw - 48px); }
.e-toast { display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  border: 1px solid var(--border); border-left-width: 4px; border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg); padding: 14px 16px; animation: e-toast-in var(--dur-slow) var(--ease); }
.e-toast--success { border-left-color: var(--success); }
.e-toast--warning { border-left-color: var(--warning); }
.e-toast--danger { border-left-color: var(--danger); }
.e-toast--info { border-left-color: var(--info); }
.e-toast--credit { border-left-color: var(--accent); }
.e-toast__title { font-weight: var(--fw-semibold); font-size: var(--fs-14); }
.e-toast__text { font-size: var(--fs-13); color: var(--text-2); margin-top: 1px; }
.e-toast__close { margin-left: auto; background: none; border: 0; color: var(--text-muted); cursor: pointer; padding: 2px; }
@keyframes e-toast-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* =========================================================
   PROGRESS + GAUGE  (credit remaining)
   ========================================================= */
.e-progress { height: 8px; border-radius: var(--radius-pill); background: var(--surface-3); overflow: hidden; }
.e-progress__bar { height: 100%; border-radius: inherit; background: var(--accent); transition: width var(--dur-slow) var(--ease); }
.e-progress__bar--ok { background: var(--accent); }
.e-progress__bar--warn { background: var(--warning); }
.e-progress__bar--low { background: var(--danger); }
.e-progress--thick { height: 12px; }

.e-gauge { --_p: 0; --_col: var(--accent); width: 132px; height: 132px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--_col) calc(var(--_p) * 1%), var(--surface-3) 0);
  display: grid; place-items: center; position: relative; }
.e-gauge::before { content: ""; position: absolute; inset: 13px; border-radius: 50%; background: var(--surface); }
.e-gauge__inner { position: relative; text-align: center; }
.e-gauge__num { font-family: var(--font-mono); font-weight: var(--fw-semibold); font-size: var(--fs-26);
  font-variant-numeric: tabular-nums; line-height: 1; }
.e-gauge__cap { font-size: var(--fs-11); color: var(--text-muted); text-transform: uppercase; letter-spacing: var(--ls-wide); }

/* =========================================================
   NAVBAR + SIDEBAR (dashboard shell)
   ========================================================= */
.e-shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.e-sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; }
.e-sidebar__brand { display: flex; align-items: center; gap: 10px; padding: var(--space-5) var(--space-5) var(--space-4); }
.e-sidebar__nav { padding: var(--space-2) var(--space-3); flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.e-navlink { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: var(--radius-sm);
  color: var(--text-2); font-size: var(--fs-14); font-weight: var(--fw-medium); text-decoration: none;
  transition: all var(--dur-fast) var(--ease); position: relative; }
.e-navlink:hover { background: var(--surface-2); color: var(--text); }
.e-navlink.is-active { background: var(--accent-quiet); color: var(--text); font-weight: var(--fw-semibold); }
.e-navlink.is-active::before { content: ""; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px;
  border-radius: 0 3px 3px 0; background: var(--accent); }
.e-navlink .e-ico { width: 18px; height: 18px; flex: none; }
.e-navlink__badge { margin-left: auto; }
.e-nav-section { font-size: var(--fs-11); font-weight: var(--fw-semibold); letter-spacing: var(--ls-caps);
  text-transform: uppercase; color: var(--text-faint); padding: var(--space-4) 12px var(--space-2); }
.e-sidebar__foot { padding: var(--space-3); border-top: 1px solid var(--border-subtle); }

.e-main { display: flex; flex-direction: column; min-width: 0; }
.e-topbar { display: flex; align-items: center; gap: var(--space-4); padding: var(--space-4) var(--space-8);
  border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; min-height: 64px; }
.e-topbar__title { font-size: var(--fs-18); font-weight: var(--fw-semibold); }
.e-topbar__spacer { flex: 1; }
.e-content { padding: var(--space-8); flex: 1; }

.e-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--enesi-ink);
  display: grid; place-items: center; font-weight: var(--fw-bold); font-size: var(--fs-13); flex: none; }

/* =========================================================
   MODAL / TOOLTIP / EMPTY / SKELETON
   ========================================================= */
.e-modal-backdrop { position: fixed; inset: 0; background: rgba(10,10,9,.55); backdrop-filter: blur(2px);
  display: grid; place-items: center; z-index: 1060; padding: 24px; }
.e-modal { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-pop); width: 480px; max-width: 100%; overflow: hidden; }
.e-modal__head { padding: var(--space-5) var(--space-6); border-bottom: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: space-between; }
.e-modal__body { padding: var(--space-6); }
.e-modal__foot { padding: var(--space-4) var(--space-6); border-top: 1px solid var(--border-subtle);
  display: flex; justify-content: flex-end; gap: var(--space-3); }

.e-tooltip { position: relative; display: inline-flex; }
.e-tooltip__pop { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%);
  background: var(--surface-inverse); color: var(--text-inverse); font-size: var(--fs-12); font-weight: var(--fw-medium);
  padding: 6px 10px; border-radius: var(--radius-xs); white-space: nowrap; pointer-events: none;
  opacity: 0; transition: opacity var(--dur-fast) var(--ease); box-shadow: var(--shadow-md); z-index: 50; }
.e-tooltip:hover .e-tooltip__pop { opacity: 1; }

.e-empty { text-align: center; padding: var(--space-16) var(--space-6); display: flex; flex-direction: column;
  align-items: center; gap: var(--space-4); }
.e-empty__ico { width: 56px; height: 56px; border-radius: var(--radius-lg); background: var(--accent-quiet);
  display: grid; place-items: center; color: var(--accent-press); }
[data-bs-theme="dark"] .e-empty__ico { color: var(--accent); }
.e-empty__title { font-size: var(--fs-18); font-weight: var(--fw-semibold); }
.e-empty__text { font-size: var(--fs-14); color: var(--text-muted); max-width: 380px; }

.e-skel { background: linear-gradient(90deg, var(--surface-2) 25%, var(--surface-3) 37%, var(--surface-2) 63%);
  background-size: 400% 100%; animation: e-shimmer 1.4s ease infinite; border-radius: var(--radius-sm); }
@keyframes e-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.e-skel--text { height: 12px; border-radius: var(--radius-pill); }
.e-skel--line { height: 16px; margin: 8px 0; }

/* =========================================================
   LOGO + LOCKUP
   ========================================================= */
.e-logo { display: inline-block; height: 26px; width: auto; background: var(--logo-url) no-repeat left center;
  background-size: contain; aspect-ratio: 722 / 195; }
.e-logo--sm { height: 20px; } .e-logo--lg { height: 36px; }
.e-logomark { display: inline-block; height: 28px; width: 28px; border-radius: 50%;
  background: var(--accent) url("../assets/enesi-favicon.png") center/contain no-repeat; }

/* "AI" lockup — yellow pill variant (recommended) */
.e-lockup { display: inline-flex; align-items: center; gap: 9px; }
.e-lockup__ai { font-family: var(--font-mono); font-weight: var(--fw-bold); font-size: .72em;
  letter-spacing: .04em; background: var(--accent); color: var(--enesi-ink);
  padding: 3px 7px; border-radius: var(--radius-xs); line-height: 1; }
.e-lockup__ai--ghost { background: transparent; color: var(--text); border: 1.5px solid var(--accent); }

/* =========================================================
   SMALL HELPERS
   ========================================================= */
.e-divider { height: 1px; background: var(--border); border: 0; margin: var(--space-6) 0; }
.e-chip { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-13); font-weight: var(--fw-medium);
  padding: 5px 11px; border-radius: var(--radius-pill); background: var(--surface-2); border: 1px solid var(--border); color: var(--text-2); }
.e-chip.is-active { background: var(--accent); color: var(--enesi-ink); border-color: var(--accent); }
.e-kbd { font-family: var(--font-mono); font-size: var(--fs-12); padding: 2px 6px; border-radius: 5px;
  background: var(--surface-2); border: 1px solid var(--border); border-bottom-width: 2px; color: var(--text-2); }
