:root {
  --hyc-bg: #fff;
  --hyc-fg: #1a1a1a;
  --hyc-muted: #5a5a5a;
  --hyc-accent: #0a5aa8;
  --hyc-border: #d5d9de;
}
.hyc-root, .hyc-root * { box-sizing: border-box; }
.hyc-root { font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--hyc-fg); }
.hyc-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 2147483000;
  max-width: 640px; margin: 0 auto; padding: 20px;
  background: var(--hyc-bg); border: 1px solid var(--hyc-border); border-radius: 10px;
  box-shadow: 0 8px 30px rgba(0,0,0,.18);
}
.hyc-title { margin: 0 0 6px; font-size: 17px; font-weight: 600; }
.hyc-text { margin: 0 0 14px; color: var(--hyc-muted); }
.hyc-text a { color: var(--hyc-accent); }
.hyc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.hyc-btn {
  flex: 1 1 140px; padding: 10px 14px; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: 6px; border: 1px solid var(--hyc-accent); background: var(--hyc-bg); color: var(--hyc-accent);
}
/* Accepter og afvis er bevidst visuelt lige store og lige tydelige. */
.hyc-btn--primary { background: var(--hyc-accent); color: #fff; }
.hyc-btn--link { border-color: transparent; text-decoration: underline; flex-basis: 100%; }
.hyc-btn:focus-visible, .hyc-switch input:focus-visible + .hyc-track { outline: 3px solid #ffb000; outline-offset: 2px; }
.hyc-overlay {
  position: fixed; inset: 0; z-index: 2147483001; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.hyc-modal {
  background: var(--hyc-bg); border-radius: 10px; width: 100%; max-width: 560px; max-height: 90vh; overflow: auto; padding: 22px;
}
.hyc-cat { padding: 12px 0; border-top: 1px solid var(--hyc-border); }
.hyc-cat-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; }
.hyc-name { display: flex; flex-direction: column; gap: 2px; }
.hyc-state { font-weight: 400; font-size: 12px; color: var(--hyc-muted); }
.hyc-cat p { margin: 4px 0 0; color: var(--hyc-muted); font-size: 14px; }
.hyc-switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-weight: 400; font-size: 13px; }
.hyc-switch input { position: absolute; opacity: 0; width: 44px; height: 24px; margin: 0; cursor: pointer; }
.hyc-switch .hyc-track { flex: none; width: 44px; height: 24px; border-radius: 12px; background: #9aa3ad; position: relative; transition: background .15s; }
.hyc-switch .hyc-track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.hyc-switch input:checked + .hyc-track { background: var(--hyc-accent); }
.hyc-switch input:checked + .hyc-track::after { transform: translateX(20px); }
.hyc-switch input:disabled { cursor: not-allowed; }
.hyc-modal .hyc-actions { margin-top: 16px; }
@media (prefers-reduced-motion: reduce) { .hyc-switch .hyc-track, .hyc-switch .hyc-track::after { transition: none; } }
