/* Ladybug: the in-page feedback button. Self-contained; every class starts with lb-. */
.lb-root {
  --lb-bg: #fffdf8;
  --lb-fg: #1b1917;
  --lb-muted: #6b655d;
  --lb-line: rgba(27, 25, 23, 0.14);
  --lb-red: #d2372b;
  --lb-red-ink: #ffffff;
  --lb-shadow: 0 10px 30px rgba(0, 0, 0, 0.18), 0 2px 6px rgba(0, 0, 0, 0.12);
  font: 15px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--lb-fg);
}
@media (prefers-color-scheme: dark) {
  .lb-root {
    --lb-bg: #1f1d1b;
    --lb-fg: #f1ede6;
    --lb-muted: #a8a197;
    --lb-line: rgba(241, 237, 230, 0.16);
  }
}
.lb-root *, .lb-root *::before, .lb-root *::after { box-sizing: border-box; }

.lb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 2147483600;
  width: 56px; height: 56px; border-radius: 50%; border: 0; padding: 0;
  background: var(--lb-bg); box-shadow: var(--lb-shadow); cursor: pointer;
  display: grid; place-items: center;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1);
}
.lb-fab:hover { transform: scale(1.06); }
.lb-fab:active { transform: scale(0.96); }
.lb-fab:focus-visible { outline: 3px solid var(--lb-red); outline-offset: 3px; }
.lb-fab svg { width: 34px; height: 34px; display: block; }
.lb-fab[data-busy="true"] svg { animation: lb-wiggle 1.2s ease-in-out infinite; }
@keyframes lb-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-12deg); } 75% { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .lb-fab[data-busy="true"] svg { animation: none; } }

/* Picking a spot */
.lb-pick {
  position: fixed; inset: 0; z-index: 2147483500; cursor: crosshair;
  background: rgba(210, 55, 43, 0.06);
}
.lb-hint {
  position: fixed; left: 50%; top: 16px; transform: translateX(-50%); z-index: 2147483601;
  background: var(--lb-fg); color: var(--lb-bg); padding: 10px 16px; border-radius: 999px;
  box-shadow: var(--lb-shadow); pointer-events: none; white-space: nowrap; max-width: calc(100vw - 32px);
  overflow: hidden; text-overflow: ellipsis;
}
.lb-outline {
  position: fixed; z-index: 2147483550; pointer-events: none;
  border: 2px solid var(--lb-red); border-radius: 4px; background: rgba(210, 55, 43, 0.08);
}

/* Cards: the request box, status, keep bar */
.lb-card {
  position: fixed; right: 18px; bottom: 86px; z-index: 2147483601;
  width: min(380px, calc(100vw - 36px)); max-height: calc(100vh - 110px); overflow: auto;
  background: var(--lb-bg); color: var(--lb-fg); border-radius: 16px; box-shadow: var(--lb-shadow);
  border: 1px solid var(--lb-line); padding: 16px;
}
.lb-card h2 { font-size: 16px; font-weight: 650; margin: 0 0 8px; letter-spacing: 0; }
.lb-card p { margin: 0 0 10px; color: var(--lb-muted); }
.lb-card p.lb-strong { color: var(--lb-fg); }
.lb-shot { width: 100%; border-radius: 10px; border: 1px solid var(--lb-line); display: block; margin: 0 0 10px; }
.lb-card textarea, .lb-card input {
  width: 100%; font: inherit; color: var(--lb-fg); background: transparent;
  border: 1px solid var(--lb-line); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px;
}
.lb-card textarea { min-height: 96px; resize: vertical; }
.lb-card textarea:focus, .lb-card input:focus { outline: 2px solid var(--lb-red); outline-offset: 0; border-color: transparent; }
.lb-row { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.lb-btn {
  font: inherit; font-weight: 600; border-radius: 999px; padding: 9px 16px; cursor: pointer;
  border: 1px solid var(--lb-line); background: transparent; color: var(--lb-fg);
}
.lb-btn-primary { background: var(--lb-red); border-color: var(--lb-red); color: var(--lb-red-ink); }
.lb-btn:disabled { opacity: 0.5; cursor: default; }
.lb-btn:focus-visible { outline: 3px solid var(--lb-red); outline-offset: 2px; }
.lb-steps { list-style: none; padding: 0; margin: 0 0 12px; }
.lb-steps li { padding: 4px 0 4px 26px; position: relative; color: var(--lb-muted); }
.lb-steps li::before { content: "○"; position: absolute; left: 4px; }
.lb-steps li[data-state="done"] { color: var(--lb-fg); }
.lb-steps li[data-state="done"]::before { content: "✓"; color: #2e7d32; }
.lb-steps li[data-state="now"] { color: var(--lb-fg); font-weight: 600; }
.lb-steps li[data-state="now"]::before { content: "●"; color: var(--lb-red); }
.lb-note { white-space: pre-wrap; color: var(--lb-fg); background: rgba(127, 127, 127, 0.08); border-radius: 10px; padding: 10px 12px; margin: 0 0 10px; }
.lb-small { font-size: 13px; }
.lb-link { color: var(--lb-red); }

.lb-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 2147483590;
  display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
  background: var(--lb-bg); color: var(--lb-fg); border: 1px solid var(--lb-line); border-radius: 999px;
  box-shadow: var(--lb-shadow); padding: 8px 8px 8px 16px; max-width: calc(100vw - 110px);
}
.lb-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch; }
@media (max-width: 560px) {
  .lb-bar { left: 18px; right: 86px; transform: none; border-radius: 16px; max-width: none; }
  .lb-bar span { white-space: normal; }
}
