.lhx-launcher,
.lhx-panel,
.lhx-toast,
.lhx-return {
  font-family: Inter, "DM Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lhx-launcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1000000;
  border: 0;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  padding: 12px 16px;
  font-weight: 800;
  cursor: pointer;
}

.lhx-panel {
  position: fixed;
  top: 72px;
  right: 18px;
  bottom: 18px;
  width: min(440px, calc(100vw - 24px));
  z-index: 1000001;
  background: #fff;
  color: #111827;
  border: 1px solid #e5e7eb;
  box-shadow: 0 28px 60px rgba(0,0,0,.28);
  border-radius: 14px;
  display: none;
  overflow: hidden;
}

.lhx-panel.is-open { display: flex; flex-direction: column; }
.lhx-head { padding: 16px; border-bottom: 1px solid #e5e7eb; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lhx-title { margin: 0; font-size: 16px; font-weight: 900; }
.lhx-close { border: 0; background: #f3f4f6; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.lhx-tabs { display: flex; gap: 6px; padding: 10px 12px; border-bottom: 1px solid #e5e7eb; overflow-x: auto; }
.lhx-tab { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 7px 10px; font-size: 12px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.lhx-tab.is-active { background: #111827; color: #fff; border-color: #111827; }
.lhx-body { padding: 14px; overflow: auto; display: grid; gap: 12px; }
.lhx-card { border: 1px solid #e5e7eb; background: #fff; border-radius: 10px; padding: 12px; }
.lhx-card h4 { margin: 0 0 8px; font-size: 13px; font-weight: 900; color: #111827; }
.lhx-muted { color: #6b7280; font-size: 12px; line-height: 1.45; }
.lhx-list { display: grid; gap: 8px; }
.lhx-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid #f3f4f6; padding-top: 8px; }
.lhx-row:first-child { border-top: 0; padding-top: 0; }
.lhx-name { font-weight: 800; font-size: 13px; }
.lhx-badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 7px; font-size: 11px; font-weight: 800; background: #f3f4f6; color: #374151; }
.lhx-badge.good { background: #dcfce7; color: #166534; }
.lhx-badge.warn { background: #fef3c7; color: #92400e; }
.lhx-badge.bad { background: #fee2e2; color: #991b1b; }
.lhx-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.lhx-btn { border: 1px solid #d1d5db; background: #fff; color: #111827; border-radius: 8px; padding: 7px 9px; font-size: 12px; font-weight: 800; cursor: pointer; }
.lhx-btn.primary { background: #111827; color: #fff; border-color: #111827; }
.lhx-btn.danger { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.lhx-input, .lhx-textarea { width: 100%; border: 1px solid #d1d5db; border-radius: 8px; padding: 8px; font: inherit; font-size: 12px; }
.lhx-textarea { min-height: 130px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.lhx-check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; }
.lhx-check span:first-child { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #e5e7eb; font-size: 11px; flex: 0 0 auto; }
.lhx-check.done span:first-child { background: #22c55e; color: #fff; }
.lhx-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 1000002;
  background: #111827;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 14px 30px rgba(0,0,0,.24);
  font-size: 13px;
  font-weight: 800;
}
.lhx-return {
  position: fixed;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  z-index: 1000002;
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f59e0b;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 900;
}
