/* Portfolio-wide Report a Bug widget — posts into Mission Control Notification Center */

.ll-bug-report-root {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 2147483000;
  font-family: Georgia, "Times New Roman", serif;
  color: #1c1917;
}

.ll-bug-report-launch {
  appearance: none;
  border: 1px solid #44403c;
  background: #fafaf9;
  color: #1c1917;
  padding: 0.55rem 0.9rem;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(28, 25, 23, 0.18);
}

.ll-bug-report-launch:hover,
.ll-bug-report-launch:focus-visible {
  background: #1c1917;
  color: #fafaf9;
  outline: none;
}

.ll-bug-report-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(28, 25, 23, 0.45);
  z-index: 2147483001;
}

.ll-bug-report-dialog {
  position: fixed;
  right: 1rem;
  bottom: 4rem;
  width: min(24rem, calc(100vw - 2rem));
  max-height: min(80vh, 36rem);
  overflow: auto;
  background: #fafaf9;
  border: 1px solid #44403c;
  box-shadow: 0 16px 40px rgba(28, 25, 23, 0.28);
  z-index: 2147483002;
  padding: 1rem 1.1rem 1.15rem;
}

.ll-bug-report-dialog h2 {
  margin: 0 0 0.35rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.ll-bug-report-dialog p.ll-bug-report-lead {
  margin: 0 0 0.9rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: #57534e;
  font-family: system-ui, -apple-system, sans-serif;
}

.ll-bug-report-form {
  display: grid;
  gap: 0.65rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.ll-bug-report-form label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #44403c;
}

.ll-bug-report-form input,
.ll-bug-report-form select,
.ll-bug-report-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #a8a29e;
  background: #fff;
  color: #1c1917;
  padding: 0.45rem 0.55rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 400;
}

.ll-bug-report-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.ll-bug-report-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.ll-bug-report-actions button {
  appearance: none;
  border: 1px solid #44403c;
  background: #fafaf9;
  color: #1c1917;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  cursor: pointer;
}

.ll-bug-report-actions button[type="submit"] {
  background: #1c1917;
  color: #fafaf9;
}

.ll-bug-report-actions button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.ll-bug-report-status {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  font-family: system-ui, -apple-system, sans-serif;
}

.ll-bug-report-status[data-kind="ok"] {
  color: #166534;
}

.ll-bug-report-status[data-kind="err"] {
  color: #9f1239;
}

.ll-bug-report-hp {
  position: absolute;
  left: -10000px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

@media (max-width: 480px) {
  .ll-bug-report-root,
  .ll-bug-report-dialog {
    right: 0.65rem;
    left: 0.65rem;
    width: auto;
  }

  .ll-bug-report-dialog {
    bottom: 3.75rem;
  }
}
