/* Fleet — inventory + orchestration session (Nexus-style) */

.page-content--fleet {
  padding: 0 !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--ds-topbar-h));
  max-height: calc(100vh - var(--ds-topbar-h));
}

.fl-view {
  display: flex;
  flex: 1;
  min-height: 0;
  height: 100%;
  position: relative;
  padding-right: 400px;
  box-sizing: border-box;
}

/* ── Inventory (left) ── */
.fl-inventory {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: var(--ds-page-pad);
  overflow: hidden;
}

/* ── Inventory layout ── */
.fl-shell {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fl-controls {
  flex-shrink: 0;
  padding: 1rem 1.1rem;
  background: rgba(22, 27, 34, 0.45);
  border: 1px solid var(--ds-border-subtle);
  border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03) inset;
}

.fl-head-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  margin-bottom: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.fl-head-title {
  min-width: 0;
}

.fl-head-top h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ds-text);
  line-height: 1.2;
}

.fl-head-top p {
  margin: 0.25rem 0 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-muted);
}

.fl-active-filters {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.85rem;
  padding: 0.55rem 0.65rem 0.55rem 0.75rem;
  background: linear-gradient(135deg, rgba(75, 142, 255, 0.08) 0%, rgba(52, 211, 153, 0.04) 100%);
  border: 1px solid rgba(75, 142, 255, 0.16);
  border-radius: 10px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.fl-active-filters.hidden {
  display: none;
}

.fl-active-filters__stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  padding-right: 0.75rem;
  margin-right: 0.15rem;
  border-right: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
}

.fl-active-filters__stat-num {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ds-text);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.fl-active-filters__stat-copy {
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.fl-active-filters__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  flex: 1;
  min-width: 0;
}

.fl-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
  padding: 0.28rem 0.35rem 0.28rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  color: var(--ds-text);
  font: inherit;
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.12s;
}

.fl-active-chip:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
}

.fl-active-chip:active {
  transform: scale(0.98);
}

.fl-active-chip__label {
  color: var(--ds-text-muted);
  font-weight: 500;
}

.fl-active-chip__value {
  font-weight: 600;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fl-active-chip .material-symbols-outlined {
  font-size: 14px;
  color: var(--ds-text-muted);
  opacity: 0.75;
  margin-left: 0.05rem;
}

.fl-active-filters__clear {
  flex-shrink: 0;
  padding: 0.35rem 0.65rem;
  border: none;
  border-radius: 7px;
  background: rgba(75, 142, 255, 0.12);
  color: #93c5fd;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.fl-active-filters__clear:hover {
  background: rgba(75, 142, 255, 0.2);
  color: #bfdbfe;
}

.fl-head-tools {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.fl-toolbar {
  padding: 0;
}

.fl-toolbar__row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem 1rem;
}

.fl-toolbar__group {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.fl-toolbar__divider {
  width: 1px;
  height: 22px;
  background: var(--ds-border-subtle);
  flex-shrink: 0;
}

.fl-toolbar__label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ds-text-muted);
  white-space: nowrap;
}

.fl-filter-group {
  --fl-control-h: 32px;
  display: inline-flex;
  align-items: center;
  height: var(--fl-control-h);
  padding: 2px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ds-border-subtle);
}

.fl-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(var(--fl-control-h) - 4px);
  padding: 0 0.7rem;
  border: none;
  background: transparent;
  color: var(--ds-text-secondary);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
  white-space: nowrap;
}

.fl-filter-btn:hover {
  color: var(--ds-text);
  background: rgba(255, 255, 255, 0.04);
}

.fl-filter-btn.active {
  background: rgba(75, 142, 255, 0.18);
  color: #93c5fd;
  box-shadow: inset 0 0 0 1px rgba(75, 142, 255, 0.35);
  font-weight: 600;
}

.fl-select {
  --fl-control-h: 32px;
  height: var(--fl-control-h);
  min-width: 8.75rem;
  padding: 0 1.65rem 0 0.6rem;
  border: 1px solid var(--ds-border-subtle);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.22) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 0.5rem center;
  color: var(--ds-text);
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fl-select:focus-visible {
  border-color: rgba(75, 142, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(75, 142, 255, 0.15);
}

.fl-search-wrap {
  position: relative;
}

.fl-search-wrap .material-symbols-outlined {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--ds-text-muted);
  pointer-events: none;
}

.fl-search {
  width: min(200px, 38vw);
  height: 34px;
  padding: 0 0.65rem 0 2rem;
  font: inherit;
  font-size: 0.8125rem;
  color: var(--ds-text);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--ds-border-subtle);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fl-search::placeholder {
  color: var(--ds-text-muted);
}

.fl-search:focus {
  border-color: rgba(75, 142, 255, 0.5);
  box-shadow: 0 0 0 2px rgba(75, 142, 255, 0.12);
}

.fl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--ds-border-subtle);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  color: var(--ds-text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.fl-icon-btn .material-symbols-outlined {
  font-size: 18px;
}

.fl-icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ds-text);
  border-color: var(--ds-border);
}

/* Table card */
.fl-table-panel {
  flex: 1;
  min-height: 0;
  overflow: auto;
  background: rgba(22, 27, 34, 0.72);
  border: 1px solid var(--ds-border);
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.fl-table-panel::-webkit-scrollbar { width: 4px; }
.fl-table-panel::-webkit-scrollbar-thumb {
  background: var(--ds-surface-highest);
  border-radius: 10px;
}

.fl-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.fl-table thead {
  position: sticky;
  top: 0;
  z-index: 2;
  background: rgba(30, 36, 44, 0.95);
  backdrop-filter: blur(8px);
}

.fl-table th {
  padding: 0.6rem 1rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  border-bottom: 1px solid var(--ds-border-subtle);
}

.fl-sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0.15rem 0.25rem;
  border: none;
  border-radius: 5px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}

.fl-sort-btn:hover {
  color: var(--ds-text);
  background: rgba(255, 255, 255, 0.04);
}

.fl-sort-btn.is-active {
  color: #93c5fd;
}

.fl-sort-icon {
  font-size: 15px;
  opacity: 0.45;
  transition: opacity 0.15s;
}

.fl-sort-btn:hover .fl-sort-icon,
.fl-sort-btn.is-active .fl-sort-icon {
  opacity: 1;
}

.fl-table td {
  padding: 0.72rem 1rem;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: middle;
}

.fl-table tbody tr {
  cursor: pointer;
  transition: background 0.12s;
}

.fl-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.025);
}

.fl-table tbody tr.selected {
  background: rgba(75, 142, 255, 0.07);
  box-shadow: inset 3px 0 0 var(--ds-primary);
}

.fl-table tbody tr.fl-row--new {
  background: rgba(52, 211, 153, 0.04);
  box-shadow: inset 2px 0 0 rgba(52, 211, 153, 0.55);
}

.fl-table tbody tr.fl-row--new:hover {
  background: rgba(52, 211, 153, 0.07);
}

.fl-table tbody tr.fl-row--new.selected {
  background: rgba(75, 142, 255, 0.07);
  box-shadow: inset 3px 0 0 var(--ds-primary);
}

.fl-table tbody tr:last-child td { border-bottom: none; }

.fl-col-queue,
.fl-queue-cell {
  text-align: right;
  width: 4.5rem;
}

.fl-device-cell {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.fl-device-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ds-border-subtle);
  flex-shrink: 0;
}

.fl-device-icon .material-symbols-outlined {
  font-size: 18px;
  color: var(--ds-text-muted);
}

.fl-table tbody tr.selected .fl-device-icon {
  background: rgba(75, 142, 255, 0.12);
  border-color: rgba(75, 142, 255, 0.28);
}

.fl-device-icon--new {
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.35);
  border-color: rgba(52, 211, 153, 0.4);
}

.fl-device-icon--new .material-symbols-outlined {
  color: #6ee7b7;
}

.fl-table tbody tr.selected .fl-device-icon .material-symbols-outlined {
  color: var(--ds-primary);
  font-variation-settings: 'FILL' 1;
}

.fl-device-meta {
  min-width: 0;
}

.fl-device-name-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: nowrap;
  min-width: 0;
}

.fl-device-name {
  font-weight: 600;
  color: var(--ds-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-device-tags {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.fl-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.08rem 0.4rem;
  border-radius: 4px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.4;
}

.fl-tag--warn {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
}

.fl-tag--err {
  color: #fca5a5;
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.22);
}

.fl-enrolled-cell {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fl-enrolled-inner {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  line-height: 1.25;
}

.fl-enrolled--new {
  color: #6ee7b7;
  font-weight: 600;
}

.fl-enrolled-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.65);
  flex-shrink: 0;
}

.fl-os {
  max-width: 11rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-user,
.fl-time {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.fl-queue-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  height: 1.5rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ds-text-muted);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--ds-border-subtle);
}

.fl-queue-badge.has-items {
  color: #fcd34d;
  background: rgba(251, 191, 36, 0.1);
  border-color: rgba(251, 191, 36, 0.25);
}

.fl-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.fl-status.online {
  background: rgba(52, 211, 153, 0.1);
  color: #6ee7b7;
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.fl-status.offline {
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
  border: 1px solid rgba(248, 113, 113, 0.18);
}

.fl-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

.fl-status.online .fl-status-dot {
  box-shadow: 0 0 6px rgba(52, 211, 153, 0.55);
}

.fl-mode {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}

.fl-mode.user {
  background: rgba(148, 163, 184, 0.08);
  color: var(--ds-text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.fl-mode.service {
  background: rgba(167, 139, 250, 0.1);
  color: #c4b5fd;
  border: 1px solid rgba(167, 139, 250, 0.22);
}

.fl-onboard {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.fl-onboard--active {
  background: rgba(251, 191, 36, 0.14);
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.fl-onboard--failed {
  background: rgba(248, 113, 113, 0.1);
  color: var(--ds-err);
  border: 1px solid rgba(248, 113, 113, 0.2);
}

.fl-mono {
  font-family: var(--ds-mono);
  font-size: 0.75rem;
}

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

.fl-bars {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.fl-bar-track {
  width: 72px;
  height: 5px;
  background: var(--ds-surface-highest);
  border-radius: 999px;
  overflow: hidden;
}

.fl-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.fl-bar-fill.queue { background: #f59e0b; }
.fl-bar-fill.signal { background: var(--ds-primary-strong); }

.fl-bars.offline { opacity: 0.3; }

.fl-queue-num {
  display: inline-flex;
  min-width: 1.4rem;
  justify-content: center;
  padding: 0.1rem 0.45rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  background: rgba(251, 191, 36, 0.15);
  color: var(--ds-warn);
}

.fl-queue-num.zero {
  background: var(--ds-surface-high);
  color: var(--ds-text-muted);
  font-weight: 500;
}

.fl-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ds-text-secondary);
}

.fl-empty .material-symbols-outlined {
  font-size: 40px;
  color: var(--ds-text-muted);
  margin-bottom: 0.75rem;
}

/* KPI row */
.fl-kpis {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
  margin-top: 0.85rem;
  flex-shrink: 0;
}

.fl-kpi {
  padding: 0.85rem 1rem;
  background: rgba(22, 27, 34, 0.55);
  border: 1px solid var(--ds-border-subtle);
  border-radius: 12px;
}

.fl-kpi.warn { border-left: 2px solid var(--ds-warn); }

.fl-kpi-label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ds-text-muted);
  margin: 0 0 0.35rem;
}

.fl-kpi-value {
  font-size: var(--ds-text-xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ds-text);
  line-height: 1;
}

.fl-kpi-sub {
  font-size: var(--ds-text-sm);
  font-weight: 600;
  margin-left: 0.35rem;
}

.fl-kpi-sub.ok { color: var(--ds-ok); }
.fl-kpi-sub.warn { color: var(--ds-warn); }
.fl-kpi-sub.muted { color: var(--ds-text-muted); font-weight: 400; }

/* ── Orchestration sidebar (right) — fixed like app menu ── */
.fl-side {
  position: fixed;
  top: var(--ds-topbar-h);
  right: 0;
  bottom: 0;
  width: 400px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  border-left: 1px solid var(--ds-border);
  background: var(--ds-surface-low);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
}

.fl-side-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  gap: 0.5rem;
}

.fl-side-empty .material-symbols-outlined {
  font-size: 48px;
  color: var(--ds-text-muted);
  opacity: 0.6;
}

.fl-side-empty h3 {
  margin: 0.5rem 0 0;
  font-size: var(--ds-text-md);
  font-weight: 600;
}

.fl-side-empty p {
  margin: 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  max-width: 260px;
  line-height: 1.5;
}

.fl-side-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
  transition: opacity 0.15s ease;
}

.fl-side-content.fl-loading {
  opacity: 0.72;
  pointer-events: none;
}

.fl-device-bar {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--ds-border);
  background: var(--ds-surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fl-device-bar h3 {
  margin: 0;
  font-size: var(--ds-text-base);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fl-device-bar .fl-mono {
  margin: 0.15rem 0 0;
  color: var(--ds-text-muted);
}

.fl-device-bar-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.fl-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--ds-text-xs);
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
}

.fl-live-badge.online {
  background: rgba(110, 231, 183, 0.12);
  color: var(--ds-ok);
}

.fl-live-badge.offline {
  background: var(--ds-surface-high);
  color: var(--ds-text-muted);
}

/* Sidebar tabs */
.fl-side-tabs {
  display: flex;
  background: var(--ds-surface);
  border-bottom: 1px solid var(--ds-border);
  flex-shrink: 0;
}

.fl-side-tab {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  padding: 0.85rem 0.5rem;
  border: none;
  background: none;
  color: var(--ds-text-secondary);
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.15s, border-color 0.15s;
}

.fl-side-tab .material-symbols-outlined { font-size: 20px; }

.fl-side-tab:hover { color: var(--ds-text); }

.fl-side-tab.active {
  color: var(--ds-primary);
  border-bottom-color: var(--ds-primary);
}

.fl-side-body {
  flex: 1 1 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr);
  min-height: 0;
  overflow: hidden;
}

.fl-panel {
  display: none;
  grid-row: 1;
  grid-column: 1;
  padding: 1rem;
  min-height: 0;
  min-width: 0;
}

.fl-panel.active {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
}

.fl-panel.active::-webkit-scrollbar { width: 5px; }
.fl-panel.active::-webkit-scrollbar-thumb {
  background: var(--ds-surface-highest);
  border-radius: 10px;
}

/* Command tab: only the terminal box scrolls; controls stay pinned below */
.fl-panel[data-panel="command"].active {
  overflow: hidden;
  gap: 0.75rem;
}

/* Command / terminal */
.fl-terminal-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 0.75rem;
}

.fl-terminal {
  flex: 1 1 0;
  min-height: 160px;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius);
  padding: 1rem;
  font-family: var(--ds-mono);
  font-size: 0.75rem;
  line-height: 1.55;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
}

.fl-terminal::-webkit-scrollbar { width: 5px; }
.fl-terminal::-webkit-scrollbar-track { background: transparent; }
.fl-terminal::-webkit-scrollbar-thumb {
  background: var(--ds-surface-highest);
  border-radius: 10px;
}

.fl-terminal-wrap > .fl-quick,
.fl-terminal-wrap > #command-form {
  flex-shrink: 0;
}

.fl-terminal-comment {
  color: var(--ds-text-muted);
  opacity: 0.6;
  margin-bottom: 0.75rem;
}

.fl-terminal-entry {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--ds-border-subtle);
}

.fl-terminal-entry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}

.fl-terminal-entry-head .fl-terminal-prompt {
  flex: 1;
  min-width: 0;
}

.fl-terminal-entry--pending {
  border-bottom-color: rgba(251, 191, 36, 0.15);
}

.fl-terminal-entry:last-of-type {
  border-bottom: none;
  margin-bottom: 0.5rem;
  padding-bottom: 0;
}

.fl-terminal-prompt {
  margin: 0;
  color: var(--ds-text);
  font-weight: 500;
}

.fl-terminal-prompt-line {
  margin: 0.25rem 0 0;
  color: var(--ds-text-secondary);
}

.fl-terminal-out {
  margin: 0.35rem 0 0;
  padding: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--ds-primary);
  background: none;
  border: none;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

.fl-terminal-status {
  margin: 0.3rem 0 0;
  color: var(--ds-text-muted);
  font-style: italic;
}

.fl-terminal-err {
  margin: 0.3rem 0 0;
  color: var(--ds-err);
}

.fl-terminal-dim { color: var(--ds-text-secondary); }

.fl-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--ds-primary);
  animation: fl-blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes fl-blink { 50% { opacity: 0; } }

.fl-quick {
  margin-top: 0.75rem;
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius);
  background: var(--ds-surface);
  overflow: hidden;
}

.fl-quick-toggle {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--ds-text-secondary);
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: background 0.12s, color 0.12s;
}

.fl-quick-toggle:hover {
  background: var(--ds-surface-high);
  color: var(--ds-text);
}

.fl-quick-toggle .material-symbols-outlined:first-child {
  font-size: 18px;
  color: var(--ds-primary);
}

.fl-quick-chevron {
  margin-left: auto;
  font-size: 20px;
  transition: transform 0.2s ease;
}

.fl-quick.is-open .fl-quick-chevron {
  transform: rotate(180deg);
}

.fl-quick.is-open .fl-quick-toggle {
  border-bottom: 1px solid var(--ds-border-subtle);
  color: var(--ds-text);
}

.fl-quick-panel {
  padding: 0 0.65rem 0.65rem;
}

.fl-quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  padding-top: 0.65rem;
  max-height: 240px;
  overflow-y: auto;
}

.fl-quick-btn {
  padding: 0.5rem 0.65rem;
  text-align: left;
  font: inherit;
  font-size: var(--ds-text-sm);
  color: var(--ds-text);
  background: var(--ds-surface-high);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}

.fl-quick-btn:hover {
  background: var(--ds-primary-muted);
  border-color: rgba(75, 142, 255, 0.3);
}

.fl-quick-btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.fl-cmd-row {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.fl-cmd-input {
  flex: 1;
  padding: 0.5rem 0.75rem;
  font-family: var(--ds-mono);
  font-size: var(--ds-text-sm);
  color: var(--ds-text);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  outline: none;
}

.fl-cmd-input:focus { border-color: var(--ds-primary); }

.fl-cmd-run {
  padding: 0.5rem 1rem;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 700;
  color: #002e69;
  background: var(--ds-primary);
  border: none;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: filter 0.12s;
}

.fl-cmd-run:hover { filter: brightness(1.08); }

/* System info */
.fl-info-section { margin-bottom: 1.5rem; }

.fl-info-section h4 {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-size: var(--ds-text-base);
  font-weight: 600;
}

.fl-info-section h4 .material-symbols-outlined {
  font-size: 18px;
  color: var(--ds-primary);
}

.fl-info-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--ds-border-subtle);
  font-size: var(--ds-text-sm);
  gap: 1rem;
  min-width: 0;
}

.fl-info-row span:first-child {
  color: var(--ds-text-secondary);
  flex-shrink: 0;
}

.fl-info-row span:last-child {
  font-weight: 600;
  text-align: right;
  min-width: 0;
  flex: 1;
  word-break: break-all;
  overflow-wrap: anywhere;
}

.fl-config-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.fl-info-section--config .fl-config-lead {
  margin: -0.35rem 0 0;
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
  line-height: 1.45;
}

.fl-info-section--onboarding .fl-onboarding-status {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.fl-onboarding-status--active {
  background: rgba(251, 191, 36, 0.12);
  color: #fcd34d;
  box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.25);
}

.fl-onboarding-status--failed {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.25);
}

.fl-onboarding-error {
  margin: 0 0 0.75rem;
  color: #fca5a5;
  font-size: 0.8125rem;
  line-height: 1.45;
}

.fl-onboarding-note {
  margin: 0 0 0.75rem;
  color: var(--ds-text-muted);
  font-size: 0.8125rem;
}

.fl-onboarding-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.fl-onboarding-action {
  flex: 1 1 auto;
  min-width: 9.5rem;
  justify-content: center;
}

.fl-config-card {
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius);
  background: rgba(16, 19, 27, 0.5);
  overflow: hidden;
}

.fl-config-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  border-bottom: 1px solid var(--ds-border-subtle);
  cursor: pointer;
}

.fl-config-field:last-child {
  border-bottom: none;
}

.fl-config-field__label {
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  font-weight: 500;
}

.fl-config-field__control {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.fl-config-field__control input {
  width: 4.25rem;
  padding: 0.4rem 0.45rem;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  text-align: center;
  color: var(--ds-text);
  background: var(--ds-bg);
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fl-config-field__control input:hover {
  border-color: var(--ds-border);
}

.fl-config-field__control input:focus {
  outline: none;
  border-color: var(--ds-primary);
  box-shadow: 0 0 0 2px var(--ds-primary-muted);
}

.fl-config-field__unit {
  min-width: 1.6rem;
  font-size: var(--ds-text-xs);
  font-weight: 600;
  color: var(--ds-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.fl-config-actions {
  padding-top: 0.1rem;
}

.fl-config-save {
  width: 100%;
  padding: 0.62rem 1rem;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 700;
  color: #002e69;
  background: var(--ds-primary);
  border: none;
  border-radius: var(--ds-radius-sm);
  cursor: pointer;
  transition: filter 0.12s;
}

.fl-config-save:hover { filter: brightness(1.08); }

.fl-config-save:active { transform: scale(0.99); }

/* Activity log / timeline */
.fl-activity-wrap {
  padding: 0.25rem 0;
}

.fl-activity-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--ds-border-subtle);
}

.fl-activity-head .material-symbols-outlined {
  font-size: 18px;
  color: var(--ds-primary);
}

.fl-activity-host {
  font-family: var(--ds-mono);
  font-size: var(--ds-text-sm);
  font-weight: 600;
  color: var(--ds-text);
  letter-spacing: 0.02em;
}

.fl-activity-log {
  display: flex;
  flex-direction: column;
}

.fl-activity-item {
  display: grid;
  grid-template-columns: 6.25rem 3.25rem 1fr;
  gap: 0.5rem 0.65rem;
  padding-bottom: 1.35rem;
  align-items: start;
}

.fl-activity-when {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-family: var(--ds-mono);
  line-height: 1.35;
}

.fl-activity-rel {
  font-size: var(--ds-text-xs);
  font-weight: 600;
  color: var(--ds-text-secondary);
}

.fl-activity-abs {
  font-size: 0.625rem;
  color: var(--ds-text-muted);
}

.fl-activity-track {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100%;
  padding-top: 2px;
}

.fl-activity-line {
  position: absolute;
  top: 14px;
  bottom: -1.35rem;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: var(--ds-border);
}

.fl-activity-item:last-child .fl-activity-line {
  display: none;
}

.fl-activity-node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-text-muted);
  z-index: 1;
  flex-shrink: 0;
}

.fl-activity-pill {
  margin-top: 0.4rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--ds-surface-high);
  color: var(--ds-text-secondary);
  border: 1px solid var(--ds-border-subtle);
  z-index: 1;
  max-width: 5.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}

.fl-activity-detail strong {
  display: block;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  color: var(--ds-text);
}

.fl-activity-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
}

.fl-activity-detail-head > div {
  min-width: 0;
  flex: 1;
}

.fl-activity-detail p {
  margin: 0.2rem 0 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.45;
}

.fl-activity-output {
  margin: 0.45rem 0 0;
  padding: 0.45rem 0.6rem;
  font-family: var(--ds-mono);
  font-size: 0.68rem;
  background: var(--ds-bg);
  border: 1px solid var(--ds-border-subtle);
  border-radius: var(--ds-radius-sm);
  color: var(--ds-primary);
  max-height: 100px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.fl-activity-item[data-kind="enrolled"] .fl-activity-node,
.fl-activity-item[data-kind="online"] .fl-activity-node,
.fl-activity-item[data-kind="session"] .fl-activity-node {
  background: var(--ds-ok);
  box-shadow: 0 0 0 3px rgba(110, 231, 183, 0.18);
}

.fl-activity-item[data-kind="enrolled"] .fl-activity-pill,
.fl-activity-item[data-kind="online"] .fl-activity-pill,
.fl-activity-item[data-kind="session"] .fl-activity-pill {
  background: rgba(110, 231, 183, 0.12);
  color: var(--ds-ok);
  border-color: rgba(110, 231, 183, 0.3);
}

.fl-activity-item[data-kind="command"] .fl-activity-node {
  background: var(--ds-primary-strong);
  box-shadow: 0 0 0 3px var(--ds-primary-muted);
}

.fl-activity-item[data-kind="command"] .fl-activity-pill {
  background: var(--ds-primary-muted);
  color: var(--ds-primary);
  border-color: rgba(75, 142, 255, 0.35);
}

.fl-activity-item[data-kind="pending"] .fl-activity-node {
  background: var(--ds-warn);
}

.fl-activity-item[data-kind="pending"] .fl-activity-pill {
  background: rgba(251, 191, 36, 0.12);
  color: var(--ds-warn);
  border-color: rgba(251, 191, 36, 0.3);
}

.fl-activity-item[data-kind="offline"] .fl-activity-node,
.fl-activity-item[data-kind="error"] .fl-activity-node {
  background: var(--ds-text-muted);
}

.fl-activity-item[data-kind="offline"] .fl-activity-pill {
  background: var(--ds-surface-high);
  color: var(--ds-text-muted);
}

.fl-activity-item[data-kind="error"] .fl-activity-node {
  background: var(--ds-err);
}

.fl-activity-item[data-kind="error"] .fl-activity-pill {
  background: rgba(248, 113, 113, 0.12);
  color: var(--ds-err);
  border-color: rgba(248, 113, 113, 0.28);
}

/* Pending command cards (timeline + terminal dismiss) */
.fl-cmd-card {
  padding: 0.65rem 0.75rem;
  border-radius: var(--ds-radius);
  border: 1px solid var(--ds-border-subtle);
  background: rgba(16, 19, 27, 0.55);
}

.fl-cmd-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px solid var(--ds-border-subtle);
}

.fl-cmd-card__meta strong {
  display: block;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  color: var(--ds-text);
}

.fl-cmd-card__meta span {
  display: block;
  margin-top: 0.15rem;
  font-size: var(--ds-text-xs);
  color: var(--ds-text-muted);
}

.fl-cmd-card__body {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-family: var(--ds-mono);
  font-size: var(--ds-text-xs);
  line-height: 1.5;
  color: var(--ds-text-secondary);
}

.fl-cmd-card__chevron {
  flex-shrink: 0;
  color: var(--ds-primary);
  font-weight: 700;
}

.fl-cmd-card__body code {
  white-space: pre-wrap;
  word-break: break-word;
}

.fl-cmd-dismiss {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid transparent;
  border-radius: var(--ds-radius-sm);
  background: transparent;
  color: var(--ds-text-muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}

.fl-cmd-dismiss .material-symbols-outlined {
  font-size: 16px;
}

.fl-cmd-dismiss:hover {
  color: var(--ds-err);
  background: rgba(248, 113, 113, 0.08);
  border-color: rgba(248, 113, 113, 0.25);
}

.fl-cmd-dismiss:disabled {
  opacity: 0.5;
  cursor: wait;
}

.fl-cmd-dismiss--sm {
  width: 24px;
  height: 24px;
}

.fl-cmd-dismiss--sm .material-symbols-outlined {
  font-size: 14px;
}

/* Sidebar footer */
.fl-side-footer {
  display: flex;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--ds-border);
  background: var(--ds-surface);
  flex-shrink: 0;
}

.fl-side-footer button {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem 0.75rem;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 700;
  border-radius: var(--ds-radius);
  cursor: pointer;
  transition: background 0.12s, transform 0.1s;
}

.fl-side-footer button:active { transform: scale(0.98); }

.fl-restricted-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--ds-radius);
  background: rgba(255, 107, 107, 0.08);
  border: 1px solid rgba(255, 107, 107, 0.18);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-xs);
  line-height: 1.45;
}

.fl-restricted-note .material-symbols-outlined {
  flex-shrink: 0;
  font-size: 18px;
  color: var(--ds-err);
}

.fl-side-footer .fl-restricted-note {
  flex: 1;
}

.fl-btn-ghost {
  background: var(--ds-surface-high);
  color: var(--ds-text-secondary);
  border: 1px solid var(--ds-border);
}

.fl-btn-ghost:hover { background: var(--ds-surface-highest); color: var(--ds-text); }

.fl-btn-primary {
  background: var(--ds-primary);
  color: #002e69;
  border: none;
}

.fl-btn-primary:hover { filter: brightness(1.08); }

.fl-btn-danger {
  background: rgba(248, 113, 113, 0.12);
  color: var(--ds-err);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

.fl-btn-danger:hover { background: rgba(248, 113, 113, 0.22); }

.fl-sheet-backdrop { display: none; }

.fl-side-close {
  display: none;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--ds-border);
  border-radius: var(--ds-radius-sm);
  background: var(--ds-surface-high);
  color: var(--ds-text-secondary);
  cursor: pointer;
  flex-shrink: 0;
}

.fl-side-close:hover {
  color: var(--ds-text);
  background: var(--ds-surface-highest);
}

.fl-side-close .material-symbols-outlined { font-size: 18px; }

@media (max-width: 1100px) {
  .fl-view {
    flex-direction: column;
    height: 100%;
    min-height: 0;
    padding-right: 0;
  }

  .fl-inventory {
    flex: 1;
    min-height: 0;
  }

  .fl-side-empty { display: none !important; }

  .fl-sheet-backdrop {
    display: block;
    position: fixed;
    inset: var(--ds-topbar-h) 0 0 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 55;
  }

  .fl-sheet-backdrop.hidden { display: none; }

  .fl-side {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    width: 100%;
    height: min(92vh, calc(100vh - var(--ds-topbar-h) - 0.75rem));
    max-height: min(92vh, calc(100vh - var(--ds-topbar-h) - 0.75rem));
    min-height: 0;
    transform: translateY(110%);
    transition: transform 0.28s cubic-bezier(0.32, 0.72, 0, 1);
    z-index: 60;
    border-left: none;
    border-top: 1px solid var(--ds-border);
    border-radius: var(--ds-radius-lg) var(--ds-radius-lg) 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.4);
    pointer-events: none;
  }

  .fl-side::before {
    content: '';
    display: block;
    width: 36px;
    height: 4px;
    margin: 0.55rem auto 0;
    border-radius: 999px;
    background: var(--ds-surface-highest);
    flex-shrink: 0;
  }

  .fl-side--open {
    transform: translateY(0);
    pointer-events: auto;
  }

  .fl-side-close { display: inline-flex; }

  .fl-kpis { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .fl-controls {
    padding: 0.85rem;
  }
  .fl-head-top {
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
  }
  .fl-head-tools { justify-content: flex-end; }
  .fl-toolbar__row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.65rem;
  }
  .fl-toolbar__divider { display: none; }
  .fl-toolbar__group {
    justify-content: space-between;
  }
  .fl-active-filters {
    flex-direction: column;
    align-items: stretch;
    gap: 0.55rem;
  }
  .fl-active-filters__stat {
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
    min-width: 0;
    padding: 0 0 0.35rem;
    margin: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  }
  .fl-active-filters__stat-copy {
    margin-top: 0;
    text-transform: none;
    font-size: 0.8125rem;
  }
  .fl-active-filters__clear {
    align-self: flex-end;
  }
  .fl-search { width: 100%; flex: 1; }
  .fl-kpis { grid-template-columns: 1fr; }
  .fl-activity-item { grid-template-columns: 5rem 2.75rem 1fr; }
}

.fl-remove-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  background: rgba(2, 6, 23, 0.72);
}

.fl-remove-overlay::before {
  content: '';
  position: absolute;
  inset: 0;
  backdrop-filter: blur(4px);
  pointer-events: none;
}

.fl-remove-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 32rem);
  background: var(--ds-surface);
  border: 1px solid var(--ds-border);
  border-radius: 14px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fl-remove-dialog__head {
  padding: 1.25rem 1.25rem 0.75rem;
}

.fl-remove-dialog__eyebrow {
  margin: 0 0 0.35rem;
  font-size: var(--ds-text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ds-text-muted);
}

.fl-remove-dialog__head h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
}

.fl-remove-dialog__lead {
  margin: 0;
  font-size: var(--ds-text-sm);
  color: var(--ds-text-secondary);
  line-height: 1.5;
}

.fl-remove-dialog__lead strong {
  color: var(--ds-warn, #fbbf24);
}

.fl-remove-dialog__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem 1rem;
}

.fl-remove-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  width: 100%;
  padding: 0.85rem 1rem;
  text-align: left;
  background: var(--ds-surface-high);
  border: 1px solid var(--ds-border);
  border-radius: 10px;
  color: var(--ds-text);
  cursor: pointer;
}

.fl-remove-option:hover {
  background: var(--ds-surface-highest);
  border-color: var(--ds-border-strong, var(--ds-border));
}

.fl-remove-option--primary {
  border-color: rgba(96, 165, 250, 0.45);
  background: rgba(59, 130, 246, 0.08);
}

.fl-remove-option__title {
  font-size: var(--ds-text-sm);
  font-weight: 600;
}

.fl-remove-option__desc {
  font-size: var(--ds-text-xs);
  color: var(--ds-text-secondary);
  line-height: 1.45;
}

.fl-remove-dialog__foot {
  display: flex;
  justify-content: flex-end;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid var(--ds-border-subtle);
}

.fl-remove-dialog__foot button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.375rem;
  padding: 0.55rem 1rem;
  font: inherit;
  font-size: var(--ds-text-sm);
  font-weight: 600;
  line-height: 1.2;
  border-radius: var(--ds-radius);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fl-remove-dialog__foot button:active {
  transform: scale(0.98);
}

.fl-remove-dialog__foot .fl-btn-ghost:hover {
  background: var(--ds-surface-highest);
  color: var(--ds-text);
  border-color: var(--ds-border);
}
