


.hhcc {
  --hhcc-navy: #051c2c; --hhcc-ink: #1e293b; --hhcc-muted: #5b6474; --hhcc-line: #e3e8ef;
  --hhcc-bg: #ffffff; --hhcc-soft: #f4f6f9; --hhcc-accent: #2a5bd4; --hhcc-on: #1f9d68;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2147483000;
  display: flex; justify-content: center; padding: 16px;
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--hhcc-ink);
  pointer-events: none;
}
.hhcc[hidden] { display: none !important; }
.hhcc *, .hhcc *::before, .hhcc *::after { box-sizing: border-box; }
.hhcc-card {
  pointer-events: auto; width: 100%; max-width: 920px; max-height: min(86vh, 720px);
  display: flex; flex-direction: column; background: var(--hhcc-bg);
  border-radius: 14px; box-shadow: 0 18px 60px rgba(5, 28, 44, .28), 0 2px 8px rgba(5, 28, 44, .12);
  border: 1px solid var(--hhcc-line); overflow: hidden;
  animation: hhcc-in .32s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hhcc-in { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hhcc-card { animation: none; } .hhcc-slider, .hhcc-slider::after { transition: none !important; } }

.hhcc-tabs { display: flex; border-bottom: 1px solid var(--hhcc-line); padding: 0 12px; background: var(--hhcc-bg); flex: none; }

.hhcc-head { display: flex; align-items: stretch; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--hhcc-line); background: var(--hhcc-bg); flex: none; }
.hhcc-head .hhcc-tabs { border-bottom: 0; flex: 1 1 auto; min-width: 0; }
.hhcc-logo { align-self: center; flex: none; height: 26px; width: auto; margin-right: 20px; }
.hhcc-tab {
  appearance: none; background: none; border: 0; border-bottom: 3px solid transparent; margin: 0 6px -1px;
  padding: 14px 10px 11px; font: inherit; font-size: 14.5px; font-weight: 700; color: var(--hhcc-muted); cursor: pointer;
}
.hhcc-tab[aria-selected="true"] { color: var(--hhcc-navy); border-bottom-color: var(--hhcc-accent); }
.hhcc-tab:hover { color: var(--hhcc-navy); }
.hhcc-tab:focus-visible, .hhcc-btn:focus-visible, .hhcc a:focus-visible { outline: 3px solid var(--hhcc-accent); outline-offset: 2px; border-radius: 6px; }

.hhcc-body { overflow-y: auto; padding: 18px 24px 8px; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.hhcc-title { font-size: 19px; font-weight: 800; color: var(--hhcc-navy); margin: 0 0 6px; line-height: 1.3; }
.hhcc-intro { font-size: 14.5px; line-height: 1.6; color: var(--hhcc-ink); margin: 0 0 14px; }
.hhcc a { color: var(--hhcc-accent); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

.hhcc-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--hhcc-line); border-radius: 12px; overflow: hidden; }
.hhcc-cat { padding: 12px 14px; border-right: 1px solid var(--hhcc-line); background: var(--hhcc-bg); }
.hhcc-cat:last-child { border-right: 0; }
.hhcc-cat.is-off { background: var(--hhcc-soft); }
.hhcc-cat-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.hhcc-cat-name { font-weight: 800; font-size: 14px; color: var(--hhcc-navy); }
.hhcc-badge { font-size: 11px; font-weight: 700; color: var(--hhcc-muted); background: #e9edf3; border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.hhcc-cat-desc { font-size: 13px; line-height: 1.5; color: var(--hhcc-muted); margin: 0 0 8px; }
.hhcc-cat { display: flex; align-items: center; }
.hhcc-cat-head { width: 100%; }


.hhcc-switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; position: relative; margin: 0; }
.hhcc .hhcc-switch input[type="checkbox"] {
  position: absolute !important; opacity: 0 !important; width: 44px !important; height: 24px !important;
  margin: 0 !important; padding: 0 !important; border: 0 !important; font-size: inherit !important; cursor: pointer;
}
.hhcc-slider { position: relative; flex: none; width: 44px; height: 24px; border-radius: 999px; background: #c6cdd8; transition: background .2s; }
.hhcc-slider::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.hhcc-switch input:checked + .hhcc-slider { background: var(--hhcc-on); }
.hhcc-switch input:checked + .hhcc-slider::after { transform: translateX(20px); }
.hhcc-switch input:disabled + .hhcc-slider { opacity: .55; cursor: not-allowed; }
.hhcc-switch input:disabled:checked + .hhcc-slider { background: #7fbfa3; opacity: 1; }
.hhcc-switch input:focus-visible + .hhcc-slider { outline: 3px solid var(--hhcc-accent); outline-offset: 2px; }


.hhcc-dsec { margin: 0 0 16px; }
.hhcc-dsec h3 { font-size: 14.5px; font-weight: 800; color: var(--hhcc-navy); margin: 0 0 6px; }
.hhcc-count { color: var(--hhcc-muted); font-weight: 600; }
.hhcc-tablewrap { overflow-x: auto; border: 1px solid var(--hhcc-line); border-radius: 10px; }
.hhcc table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 480px; }
.hhcc th, .hhcc td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--hhcc-line); line-height: 1.45; }
.hhcc thead th { background: var(--hhcc-soft); font-size: 12px; color: var(--hhcc-muted); font-weight: 700; }
.hhcc tbody tr:last-child th, .hhcc tbody tr:last-child td { border-bottom: 0; }
.hhcc tbody th code { font-size: 12.5px; color: var(--hhcc-navy); background: none; padding: 0; }
.hhcc-type { display: block; font-size: 11.5px; color: var(--hhcc-muted); font-weight: 600; margin-top: 2px; }
.hhcc-panel p { font-size: 14px; line-height: 1.6; margin: 0 0 10px; }
.hhcc-updated { color: var(--hhcc-muted); font-size: 12.5px !important; }


.hhcc-actions { display: flex; gap: 10px; justify-content: flex-end; padding: 14px 24px 18px; border-top: 1px solid var(--hhcc-line); background: var(--hhcc-bg); flex: none; }
.hhcc-btn { appearance: none; font: inherit; font-weight: 800; font-size: 15px; min-height: 46px; min-width: 150px; padding: 10px 18px; border-radius: 10px; cursor: pointer; border: 2px solid var(--hhcc-navy); transition: background .15s, color .15s, transform .15s; }
.hhcc-solid { background: var(--hhcc-navy); color: #fff; }
.hhcc-solid:hover { background: #0d2d45; }
.hhcc-outline { background: #fff; color: var(--hhcc-navy); }
.hhcc-outline:hover { background: var(--hhcc-soft); }
.hhcc-live:empty { display: none; }
.hhcc-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  .hhcc { padding: 0; }
  .hhcc-card { max-width: none; border-radius: 16px 16px 0 0; max-height: 88vh; }
  .hhcc-cats { grid-template-columns: 1fr 1fr; }
  .hhcc-cat:nth-child(2) { border-right: 0; }
  .hhcc-cat:nth-child(-n+2) { border-bottom: 1px solid var(--hhcc-line); }
  .hhcc-body { padding: 14px 16px 6px; }
  
  .hhcc-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px 16px calc(14px + env(safe-area-inset-bottom)); gap: 8px; }
  .hhcc-btn { width: 100%; min-width: 0; }
  .hhcc-btn[data-act="deny"] { grid-column: 1; grid-row: 1; }
  .hhcc-btn[data-act="all"] { grid-column: 2; grid-row: 1; }
  .hhcc-btn[data-act="selected"] { grid-column: 1 / -1; grid-row: 2; }
  .hhcc-tab { font-size: 13.5px; padding: 12px 6px 10px; margin: 0 4px -1px; }
}
@media (max-width: 520px) {
  
  .hhcc-head { flex-direction: column-reverse; gap: 0; }
  .hhcc-logo { align-self: flex-end; height: 20px; margin: 12px 16px 0 0; }
  .hhcc-cats { grid-template-columns: 1fr; }
  .hhcc-cat { border-right: 0 !important; border-bottom: 1px solid var(--hhcc-line); padding: 10px 14px; }
  .hhcc-cat:last-child { border-bottom: 0; }
  .hhcc-cat-head { flex-wrap: nowrap; }
  .hhcc-intro { font-size: 14px; }
}
