/* Website privacy controls — shown until the visitor makes a choice. */
.consent-banner {
  position: fixed;
  z-index: 1000;
  right: 20px;
  bottom: 20px;
  width: min(460px, calc(100vw - 40px));
  padding: 22px;
  color: #e6edf3;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .42);
  font: 14px/1.5 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.consent-banner[hidden],
.consent-options[hidden],
.consent-settings[hidden] { display: none; }
.consent-banner h2 {
  margin: 0 0 8px;
  color: #e6edf3;
  font-size: 17px;
  line-height: 1.3;
}
.consent-banner p { margin: 0; color: #8b949e; }
.consent-banner a { color: #58a6ff; }
.consent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.consent-button {
  min-height: 38px;
  padding: 8px 13px;
  cursor: pointer;
  color: #e6edf3;
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 6px;
  font: inherit;
  font-weight: 600;
}
.consent-button:hover { background: #30363d; }
.consent-button-primary { color: #0d1117; background: #f78166; border-color: #f78166; }
.consent-button-primary:hover { background: #ff9a7e; }
.consent-options {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #30363d;
}
.consent-option {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 10px;
  margin: 13px 0;
  color: #e6edf3;
}
.consent-option input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: #f78166;
}
.consent-option strong { display: block; font-size: 13px; }
.consent-option span { display: block; color: #8b949e; font-size: 12px; line-height: 1.4; }
.consent-settings {
  position: fixed;
  z-index: 999;
  right: 20px;
  bottom: 20px;
  padding: 8px 11px;
  cursor: pointer;
  color: #8b949e;
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 6px;
  font: 12px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.consent-settings:hover { color: #e6edf3; border-color: #58a6ff; }
.consent-button:focus-visible,
.consent-settings:focus-visible,
.consent-option input:focus-visible {
  outline: 2px solid #58a6ff;
  outline-offset: 2px;
}
@media (max-width: 520px) {
  .consent-banner { right: 12px; bottom: 12px; width: calc(100vw - 24px); padding: 19px; }
  .consent-actions { display: grid; grid-template-columns: 1fr; }
  .consent-button { width: 100%; }
  .consent-settings { right: 12px; bottom: 12px; }
}
