/* =========================================================================
   LHX Foundation — shared component layer
   -------------------------------------------------------------------------
   The single source of truth for the presentation primitives emitted by
   includes/ui.php: page headers, stat strips, panels, dense tables, pills,
   empty states, toolbars, flash toasts, and buttons.

   Loaded AFTER assets/css/style.css so the lhx-* namespace is authoritative
   for new/migrated pages, while legacy pages keep their existing classes.

   Design direction: established internal business tool (UniFi / Cloudflare /
   M365 admin). Dense, restrained, structured. No oversized headings, no
   gratuitous cards, no random gradients, minimal shadow.
   ========================================================================= */

:root {
    --lhx-fs-title: 1.35rem;   /* page title — deliberately restrained */
    --lhx-fs-panel: 0.95rem;   /* panel heading */
    --lhx-gap: 20px;
    --lhx-gap-sm: 12px;
    --lhx-row-pad: 9px 14px;   /* dense table cell padding */
}

/* ---- Layout rhythm ---------------------------------------------------- */
.lhx-stack > * + * { margin-top: var(--lhx-gap); }

.lhx-quicknav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: var(--lhx-gap);
}

.lhx-grid-2 {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: var(--lhx-gap);
    align-items: start;
}
@media (max-width: 900px) {
    .lhx-grid-2 { grid-template-columns: minmax(0, 1fr); }
}

/* ========================================================================
   Page header
   ======================================================================== */
.lhx-page-head {
    margin-bottom: var(--lhx-gap);
    padding-bottom: 14px;
    border-bottom: 1px solid var(--lhx-border);
}
.lhx-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.78rem;
    color: var(--lhx-muted);
    margin-bottom: 8px;
}
.lhx-breadcrumb a { color: var(--lhx-muted); text-decoration: none; }
.lhx-breadcrumb a:hover { color: var(--lhx-accent); }
.lhx-breadcrumb span[aria-current] { color: var(--lhx-soft); font-weight: 600; }
.lhx-breadcrumb i { font-size: 0.6rem; opacity: 0.6; }

.lhx-page-head__row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--lhx-gap);
    flex-wrap: wrap;
}
.lhx-page-head__title {
    font-size: var(--lhx-fs-title);
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    color: var(--lhx-text);
}
.lhx-page-head__subtitle {
    margin: 4px 0 0;
    font-size: 0.88rem;
    color: var(--lhx-muted);
    max-width: 68ch;
}
.lhx-page-head__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.lhx-page-head__meta {
    font-size: 0.78rem;
    color: var(--lhx-muted);
    margin-right: 4px;
}

/* ========================================================================
   Buttons (new namespace — consistent with style.css tokens)
   ======================================================================== */
.lhx-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    padding: 8px 14px;
    border-radius: var(--lhx-radius-sm);
    border: 1px solid var(--lhx-border-strong);
    background: var(--lhx-panel);
    color: var(--lhx-text);
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.lhx-btn:hover { background: var(--lhx-bg-soft); color: var(--lhx-text); }
.lhx-btn i { font-size: 0.82em; }
.lhx-btn--primary {
    background: var(--lhx-accent);
    border-color: var(--lhx-accent);
    color: #fff;
}
.lhx-btn--primary:hover { background: var(--lhx-accent-strong); border-color: var(--lhx-accent-strong); color: #fff; }
.lhx-btn--danger {
    background: var(--lhx-panel);
    border-color: var(--lhx-border-strong);
    color: var(--lhx-danger);
}
.lhx-btn--danger:hover { background: var(--lhx-danger); border-color: var(--lhx-danger); color: #fff; }
.lhx-btn--success {
    background: var(--lhx-panel);
    border-color: var(--lhx-border-strong);
    color: var(--lhx-success);
}
.lhx-btn--success:hover { background: var(--lhx-success); border-color: var(--lhx-success); color: #fff; }
.lhx-btn--warning {
    background: var(--lhx-panel);
    border-color: var(--lhx-border-strong);
    color: var(--lhx-warning);
}
.lhx-btn--warning:hover { background: var(--lhx-warning); border-color: var(--lhx-warning); color: #fff; }
.lhx-btn--sm { padding: 5px 10px; font-size: 0.78rem; }

/* ========================================================================
   Compact stat strip  (the antidote to "every stat as a card")
   ======================================================================== */
.lhx-stats {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    background: var(--lhx-panel);
    border: 1px solid var(--lhx-border);
    border-radius: var(--lhx-radius-sm);
    margin-bottom: var(--lhx-gap);
}
.lhx-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 20px;
    min-width: 120px;
    border-left: 1px solid var(--lhx-border);
}
.lhx-stat:first-child { border-left: 0; }
.lhx-stat__value {
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--lhx-text);
    font-variant-numeric: tabular-nums;
}
.lhx-stat__label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--lhx-muted);
    font-weight: 600;
}
.lhx-stat__hint { font-size: 0.74rem; color: var(--lhx-muted); }
.lhx-stat--success .lhx-stat__value { color: var(--lhx-success); }
.lhx-stat--warning .lhx-stat__value { color: var(--lhx-warning); }
.lhx-stat--danger  .lhx-stat__value { color: var(--lhx-danger); }

/* ========================================================================
   Panel
   ======================================================================== */
.lhx-panel {
    background: var(--lhx-panel);
    border: 1px solid var(--lhx-border);
    border-radius: var(--lhx-radius-sm);
    overflow: hidden;
}
.lhx-panel + .lhx-panel { margin-top: var(--lhx-gap); }
.lhx-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--lhx-gap-sm);
    padding: 13px 16px;
    border-bottom: 1px solid var(--lhx-border);
    background: var(--lhx-panel-strong);
}
.lhx-panel__title {
    font-size: var(--lhx-fs-panel);
    font-weight: 700;
    margin: 0;
    color: var(--lhx-text);
}
.lhx-panel__subtitle { margin: 2px 0 0; font-size: 0.8rem; color: var(--lhx-muted); }
.lhx-panel__actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.lhx-panel__body { padding: 16px; }
.lhx-panel__body--flush { padding: 0; }

/* ========================================================================
   Dense data table
   ======================================================================== */
.lhx-table-wrap { width: 100%; overflow-x: auto; }
.lhx-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}
.lhx-table thead th {
    position: sticky;
    top: 0;
    text-align: left;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    color: var(--lhx-muted);
    background: var(--lhx-bg-soft);
    padding: 9px 14px;
    border-bottom: 1px solid var(--lhx-border);
    white-space: nowrap;
}
.lhx-table tbody td {
    padding: var(--lhx-row-pad);
    border-bottom: 1px solid var(--lhx-border);
    color: var(--lhx-text);
    vertical-align: middle;
}
.lhx-table tbody tr:last-child td { border-bottom: 0; }
.lhx-table tbody tr:hover td { background: var(--lhx-bg-soft); }
.lhx-table strong { font-weight: 600; }
.lhx-table small { color: var(--lhx-muted); font-size: 0.78rem; }
.lhx-col--right  { text-align: right; }
.lhx-col--center { text-align: center; }

/* Inline row actions */
.lhx-row-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

/* ========================================================================
   Tab bar — a record's sub-sections
   ======================================================================== */
.lhx-tabs {
    display: flex;
    gap: 4px;
    border-bottom: 1px solid var(--lhx-border);
    margin-bottom: var(--lhx-gap);
    overflow-x: auto;
}
.lhx-tab {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 14px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--lhx-muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.lhx-tab:hover { color: var(--lhx-text); }
.lhx-tab.is-active { color: var(--lhx-accent); border-bottom-color: var(--lhx-accent); }
.lhx-tab__count {
    font-size: 0.7rem;
    font-weight: 700;
    background: var(--lhx-bg-soft);
    color: var(--lhx-muted);
    padding: 1px 7px;
    border-radius: 999px;
}
.lhx-tab.is-active .lhx-tab__count { background: rgba(41,82,227,.12); color: var(--lhx-accent); }

/* ========================================================================
   Feed list — narrative rows (activity, approvals, queues)
   ======================================================================== */
.lhx-feed { display: flex; flex-direction: column; }
.lhx-feed__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lhx-border);
    color: inherit;
}
.lhx-feed__item:last-child { border-bottom: 0; }
a.lhx-feed__item:hover,
.lhx-feed__item:has(> a.lhx-feed__link:hover) { background: var(--lhx-bg-soft); }
/* The part of the row that links out — scoped to icon+body only when the row
   also carries interactive trailing content (e.g. a pin button), so the two
   controls never nest. See lhx_feed() in includes/ui.php. */
.lhx-feed__link {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}
.lhx-feed__icon {
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--lhx-bg-soft);
    color: var(--lhx-muted);
    font-size: 0.78rem;
    margin-top: 1px;
}
.lhx-feed__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.lhx-feed__title { font-size: 0.86rem; font-weight: 600; color: var(--lhx-text); }
.lhx-feed__meta { font-size: 0.74rem; color: var(--lhx-muted); }
.lhx-feed__text { font-size: 0.82rem; color: var(--lhx-soft); }
.lhx-feed__trailing { flex: 0 0 auto; margin-left: auto; }

/* ========================================================================
   Status pill
   ======================================================================== */
.lhx-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    padding: 4px 9px;
    border-radius: 999px;
    border: 1px solid transparent;
    white-space: nowrap;
}
.lhx-pill i { font-size: 0.8em; }
.lhx-pill--neutral { background: var(--lhx-bg-soft); color: var(--lhx-soft); border-color: var(--lhx-border); }
.lhx-pill--success { background: rgba(15,157,88,.10); color: var(--lhx-success); border-color: rgba(15,157,88,.25); }
.lhx-pill--warning { background: rgba(180,83,9,.10);  color: var(--lhx-warning); border-color: rgba(180,83,9,.22); }
.lhx-pill--danger  { background: rgba(192,41,58,.10); color: var(--lhx-danger);  border-color: rgba(192,41,58,.22); }
.lhx-pill--info    { background: rgba(41,82,227,.10); color: var(--lhx-accent);  border-color: rgba(41,82,227,.22); }

/* ========================================================================
   Device card — a controllable entity (light/switch/lock/scene/...): icon,
   name, live state pill, meta, optional feature chips, an actions row. Used
   by smart_home.php; the JS there patches these elements live after an
   action succeeds, so the structure (not just the look) is load-bearing —
   see updateCard() in smart_home.php's inline script.
   ======================================================================== */
.lhx-device-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 10px;
}
.lhx-device-grid.is-list { grid-template-columns: 1fr; }
.lhx-device-card {
    background: var(--lhx-panel);
    border: 1px solid var(--lhx-border);
    border-radius: var(--lhx-radius-sm);
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: opacity .12s ease;
}
.lhx-device-card.is-loading { opacity: 0.55; pointer-events: none; }
.lhx-device-card.active { border-color: var(--lhx-accent); }
.lhx-device-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.lhx-device-card__icon {
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 7px;
    background: var(--lhx-bg-soft);
    color: var(--lhx-muted);
    font-size: 0.85rem;
}
.lhx-device-card.active .lhx-device-card__icon { background: rgba(41,82,227,.10); color: var(--lhx-accent); }
.lhx-device-card__name { font-size: 0.88rem; font-weight: 700; color: var(--lhx-text); margin: 0; }
.lhx-device-card__meta { font-size: 0.76rem; color: var(--lhx-muted); }
.lhx-device-card__actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 6px; }
.lhx-device-card__actions form { display: inline-flex; }
.lhx-feature-chip {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--lhx-bg-soft);
    color: var(--lhx-soft);
    margin: 2px 4px 0 0;
}

/* ========================================================================
   Empty state
   ======================================================================== */
.lhx-empty {
    text-align: center;
    padding: 40px 24px;
    color: var(--lhx-muted);
}
.lhx-empty > i { font-size: 1.6rem; opacity: 0.4; margin-bottom: 10px; display: block; }
.lhx-empty__title { font-size: 0.95rem; font-weight: 600; color: var(--lhx-soft); margin: 0 0 4px; }
.lhx-empty__text { font-size: 0.84rem; margin: 0 auto; max-width: 42ch; }
.lhx-empty__action { margin-top: 16px; }

/* ========================================================================
   Toolbar (search / filter row)
   ======================================================================== */
.lhx-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 12px 16px;
    border-bottom: 1px solid var(--lhx-border);
    background: var(--lhx-panel-strong);
}
.lhx-toolbar__spacer { flex: 1 1 auto; }
.lhx-toolbar input[type="search"],
.lhx-toolbar input[type="text"],
.lhx-toolbar select {
    height: 36px;
    padding: 0 12px;
    font-size: 0.85rem;
    border: 1px solid var(--lhx-border-strong);
    border-radius: var(--lhx-radius-sm);
    background: var(--lhx-panel);
    color: var(--lhx-text);
}
.lhx-toolbar input[type="search"] { min-width: 240px; }
.lhx-toolbar input:focus,
.lhx-toolbar select:focus {
    outline: none;
    border-color: var(--lhx-accent);
    box-shadow: 0 0 0 3px rgba(41,82,227,.12);
}

/* ========================================================================
   Flash toasts
   ======================================================================== */
.lhx-flash-stack {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1080;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 380px;
}
.lhx-flash {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border-radius: var(--lhx-radius-sm);
    background: var(--lhx-panel);
    border: 1px solid var(--lhx-border);
    box-shadow: 0 8px 24px rgba(15,23,42,.12);
    font-size: 0.86rem;
    color: var(--lhx-text);
    animation: lhx-flash-in .18s ease;
}
.lhx-flash > i { font-size: 1rem; }
.lhx-flash--success { border-left: 3px solid var(--lhx-success); }
.lhx-flash--success > i { color: var(--lhx-success); }
.lhx-flash--info    { border-left: 3px solid var(--lhx-accent); }
.lhx-flash--info > i { color: var(--lhx-accent); }
.lhx-flash--warning { border-left: 3px solid var(--lhx-warning); }
.lhx-flash--warning > i { color: var(--lhx-warning); }
.lhx-flash--danger  { border-left: 3px solid var(--lhx-danger); }
.lhx-flash--danger > i { color: var(--lhx-danger); }
.lhx-flash__close {
    margin-left: auto;
    background: none;
    border: 0;
    font-size: 1.2rem;
    line-height: 1;
    color: var(--lhx-muted);
    cursor: pointer;
    padding: 0 2px;
}
.lhx-flash__close:hover { color: var(--lhx-text); }
@keyframes lhx-flash-in { from { opacity: 0; transform: translateX(12px); } to { opacity: 1; transform: none; } }

/* ========================================================================
   Responsive
   ======================================================================== */
@media (max-width: 640px) {
    .lhx-stat { flex: 1 1 40%; border-left: 0; border-top: 1px solid var(--lhx-border); }
    .lhx-stat:first-child, .lhx-stat:nth-child(2) { border-top: 0; }
    .lhx-toolbar input[type="search"] { min-width: 0; width: 100%; }
    .lhx-page-head__row { align-items: flex-start; }
}

/* ========================================================================
   Small-screen fit - wrap long values and buttons instead of stretching
   the panel (panels clip their overflow, so anything too wide got cut off).
   ======================================================================== */
@media (max-width: 640px) {
    .lhx-panel { min-width: 0; }
    .lhx-panel__head { flex-wrap: wrap; }
    .lhx-btn { white-space: normal; text-align: left; }
    .lhx-stat { min-width: 0; }
    .lhx-stat__value,
    .lhx-stat__label,
    .lhx-stat__hint { min-width: 0; overflow-wrap: anywhere; }
    .lhx-device-grid { grid-template-columns: minmax(0, 1fr); }
    .lhx-device-card { min-width: 0; }
    .lhx-device-card__name,
    .lhx-device-card__meta { overflow-wrap: anywhere; }
}

/* ========================================================================
   Notification bell (topbar) + notification centre
   ======================================================================== */
.lhx-bell .topbar-action { cursor: pointer; }
.lhx-bell__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--lhx-warning);
    display: inline-block;
}
.topbar-menu-list.lhx-bell__panel {
    width: 380px;
    max-width: calc(100vw - 24px);
    max-height: min(560px, calc(100vh - 90px));
    overflow-y: auto;
    padding: 0;
    gap: 0;
}
.topbar-menu.is-open .lhx-bell__panel { display: flex; flex-direction: column; }
.lhx-bell__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-bottom: 1px solid var(--lhx-border);
    position: sticky;
    top: 0;
    background: inherit;
    z-index: 1;
}
.lhx-bell__head strong { font-size: 0.9rem; color: var(--lhx-text); }
.lhx-bell__head form { margin: 0; }
.lhx-bell__link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--lhx-accent);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
}
.lhx-bell__section {
    padding: 8px 14px 4px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--lhx-muted);
}
.topbar-menu-list a.lhx-bell__attention {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 6px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.84rem;
}
.lhx-bell__attention i { width: 16px; text-align: center; color: var(--lhx-warning); }
.lhx-bell__attention--danger i { color: var(--lhx-danger); }
.lhx-bell__attention span { flex: 1 1 auto; }
.lhx-bell__attention em {
    font-style: normal;
    font-weight: 700;
    font-size: 0.74rem;
    padding: 1px 8px;
    border-radius: 999px;
    background: rgba(180, 83, 9, 0.12);
    color: var(--lhx-warning);
}
.lhx-bell__attention--danger em { background: rgba(192, 41, 58, 0.12); color: var(--lhx-danger); }
.topbar-menu-list a.lhx-bell__item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 0;
    border-bottom: 1px solid var(--lhx-border);
    position: relative;
}
.lhx-bell__item > i {
    flex: 0 0 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    background: var(--lhx-bg-soft);
    color: var(--lhx-muted);
    font-size: 0.76rem;
    margin-top: 1px;
}
.lhx-bell__item.lhx-tone--danger > i { color: var(--lhx-danger); background: rgba(192, 41, 58, 0.1); }
.lhx-bell__item.lhx-tone--warning > i { color: var(--lhx-warning); background: rgba(180, 83, 9, 0.1); }
.lhx-bell__item.lhx-tone--success > i { color: var(--lhx-success); background: rgba(15, 157, 88, 0.1); }
.lhx-bell__item.lhx-tone--info > i { color: var(--lhx-accent); background: rgba(41, 82, 227, 0.08); }
.lhx-bell__item > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lhx-bell__item strong { font-size: 0.84rem; font-weight: 600; color: var(--lhx-text); white-space: normal; }
.lhx-bell__item small { font-size: 0.78rem; color: var(--lhx-soft); white-space: normal; }
.lhx-bell__item em { font-style: normal; font-size: 0.72rem; color: var(--lhx-muted); }
.lhx-bell__item.is-unread { background: rgba(41, 82, 227, 0.045); }
.lhx-bell__item.is-unread::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 50%;
    width: 5px;
    height: 5px;
    margin-top: -2.5px;
    border-radius: 50%;
    background: var(--lhx-accent);
}
.lhx-bell__empty {
    margin: 0;
    padding: 22px 14px;
    text-align: center;
    color: var(--lhx-muted);
    font-size: 0.85rem;
}
.topbar-menu-list a.lhx-bell__all {
    justify-content: center;
    padding: 11px 14px;
    border-radius: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--lhx-accent);
}
@media (max-width: 991px) {
    .topbar-menu-list.lhx-bell__panel {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

.lhx-notify-readall {
    display: flex;
    justify-content: flex-end;
    padding: 10px 16px;
    border-bottom: 1px solid var(--lhx-border);
}
.lhx-notify-feed .lhx-feed__text { white-space: pre-line; }

/* Release scripts (releases.php) */
.release-script { align-items: flex-start; }
.release-script .lhx-feed__body { gap: 4px; }
.release-script__summary { white-space: pre-line; }
.release-script__code summary {
    cursor: pointer;
    font-size: 0.78rem;
    color: var(--lhx-accent);
    font-weight: 600;
    margin-top: 2px;
}
.release-script__code pre {
    max-height: 420px;
    overflow: auto;
    margin: 8px 0 0;
    padding: 10px 12px;
    border: 1px solid var(--lhx-border);
    border-radius: 8px;
    background: var(--lhx-bg-soft);
    font-size: 0.74rem;
    line-height: 1.45;
}
.release-scripts__run {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 10px 16px;
    border-top: 1px solid var(--lhx-border);
}
