/* HiggsPair overrides on top of the Melius layout. Accent #D1FE17 is swapped in by rebrand.js. */
:root { --hp-lime: #D1FE17; --hp-ink: #0e0e0e; --hp-logo: url(/hp/logo.svg); }

/* lime needs dark text where Melius had white-on-orange */
.bg-orange.text-white, .bg-\[\#D1FE17\].text-white,
.hover\:bg-orange:hover.text-white, .group:hover .group-hover\:bg-orange, .md\:bg-orange.text-white { color: var(--hp-ink) !important; }
.bg-orange .text-white, .bg-orange svg { color: var(--hp-ink); }

/* header logo: replace the Melius lockup with the HiggsPair mark + name */
a[aria-label="HiggsPair home"] { gap: 8px; }
a[aria-label="HiggsPair home"] > svg { display: none !important; }
a[aria-label="HiggsPair home"]::before {
  content: ""; width: 22px; height: 22px; flex: none; border-radius: 6px;
  background: var(--hp-logo) center / contain no-repeat;
}
a[aria-label="HiggsPair home"]::after {
  content: "HiggsPair"; color: #fff; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; line-height: 1;
}

/* footer giant wordmark */
svg[viewBox="0 0 836 150"] { visibility: hidden; }
div:has(> svg[viewBox="0 0 836 150"])::after {
  content: "HIGGSPAIR"; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 700; letter-spacing: -0.04em; line-height: 1; color: #3e3e3e; font-size: 13.4vw;
}

/* hero "Follow on X" (was "Connect your agent"): swap the AI logos for an X glyph, drop the chevron */
button[aria-controls="mcp-setup-prompt"] > span[aria-hidden="true"] { display: none !important; }
button[aria-controls="mcp-setup-prompt"] > svg { display: none !important; }
button[aria-controls="mcp-setup-prompt"]::before { content: "𝕏"; font-weight: 700; margin-right: 2px; }

/* announcement bar = CA bar */
a.group\/banner { cursor: copy; }

/* ------------------------------------------------------------------ modal ------------------------------------------------------------------ */
.hp-modal { position: fixed; inset: 0; z-index: 2147483000; display: none; align-items: center; justify-content: center; padding: 16px; }
.hp-modal.open { display: flex; }
.hp-scrim { position: absolute; inset: 0; background: rgba(8, 8, 8, .72); backdrop-filter: blur(6px); }
.hp-card {
  position: relative; width: min(1040px, 100%); max-height: calc(100vh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1.1fr 1fr; background: #141414; color: #fafafa;
  border: 1px solid #2a2a2a; border-radius: 20px; box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
  animation: hp-in .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes hp-in { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.hp-x { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 99px; border: 0; background: #2a2a2a; color: #fff; font-size: 18px; cursor: pointer; }
.hp-x:hover { background: #3e3e3e; }

.hp-stage { position: relative; min-height: 520px; background: #0b0b0b; border-right: 1px solid #222; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 20px 0 0 20px; }
.hp-stage::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(209, 254, 23, .14) 1px, transparent 1px); background-size: 15px 15px; }
.hp-stage img, .hp-stage video { position: relative; max-width: 100%; max-height: 100%; width: 100%; height: 100%; object-fit: contain; }
.hp-empty { position: relative; text-align: center; color: #9c9996; font-size: 14px; padding: 24px; }
.hp-empty b { display: block; color: #fafafa; font-size: 22px; font-weight: 500; margin-bottom: 6px; letter-spacing: -.02em; }
.hp-load { position: relative; display: flex; flex-direction: column; align-items: center; gap: 14px; color: #b9b9b9; font-size: 13px; }
.hp-ring { width: 54px; height: 54px; border-radius: 50%; border: 3px solid #2a2a2a; border-top-color: var(--hp-lime); animation: hp-spin .9s linear infinite; }
@keyframes hp-spin { to { transform: rotate(360deg); } }
.hp-badge { position: absolute; left: 14px; top: 14px; z-index: 1; background: rgba(14, 14, 14, .8); border: 1px solid #2a2a2a; color: #d9d9d9; font-size: 11px; padding: 5px 9px; border-radius: 99px; }
.hp-badge i { display: inline-block; width: 6px; height: 6px; border-radius: 99px; background: var(--hp-lime); margin-right: 6px; vertical-align: 1px; }

.hp-side { padding: 28px 26px 24px; display: flex; flex-direction: column; gap: 18px; }
.hp-steps { display: flex; gap: 6px; font-size: 12px; color: #676767; }
.hp-steps span { padding: 5px 10px; border-radius: 99px; background: #1c1c1c; }
.hp-steps span.on { background: var(--hp-lime); color: var(--hp-ink); }
.hp-h { font-size: 28px; line-height: 1.1; letter-spacing: -.03em; font-weight: 500; margin: 0; }
.hp-h em { font-style: normal; color: var(--hp-lime); }
.hp-p { color: #9c9996; font-size: 14px; margin: -8px 0 0; }
.hp-lbl { display: block; font-size: 12px; color: #9c9996; margin-bottom: 6px; }
.hp-in, .hp-ta, .hp-sel {
  width: 100%; background: #1c1c1c; color: #fafafa; border: 1px solid #2a2a2a; border-radius: 10px; padding: 11px 12px; font: inherit; font-size: 14px; outline: none;
}
.hp-in:focus, .hp-ta:focus, .hp-sel:focus { border-color: var(--hp-lime); }
.hp-ta { min-height: 96px; resize: vertical; }
.hp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.hp-seg { display: flex; background: #1c1c1c; border: 1px solid #2a2a2a; border-radius: 10px; padding: 3px; }
.hp-seg button { flex: 1; border: 0; background: transparent; color: #9c9996; font: inherit; font-size: 13px; padding: 8px; border-radius: 7px; cursor: pointer; }
.hp-seg button.on { background: #2a2a2a; color: #fff; }
.hp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hp-chips button { border: 1px solid #2a2a2a; background: transparent; color: #b9b9b9; font: inherit; font-size: 12px; padding: 5px 10px; border-radius: 99px; cursor: pointer; }
.hp-chips button:hover { border-color: var(--hp-lime); color: #fff; }
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 10px; border: 0; font: inherit; font-size: 15px; font-weight: 500; cursor: pointer; transition: transform .15s, background .2s, opacity .2s; }
.hp-btn:active { transform: scale(.98); }
.hp-btn[disabled] { opacity: .45; cursor: not-allowed; }
.hp-lime { background: var(--hp-lime); color: var(--hp-ink); }
.hp-lime:hover:not([disabled]) { background: #e2ff5e; }
.hp-ghost { background: #1c1c1c; color: #fafafa; border: 1px solid #2a2a2a; }
.hp-ghost:hover:not([disabled]) { border-color: #3e3e3e; }
.hp-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.hp-acts .hp-btn { flex: 1; }
.hp-msg { font-size: 13px; color: #b9b9b9; min-height: 18px; }
.hp-msg.err { color: #ff6b5b; }
.hp-msg.ok { color: var(--hp-lime); }
.hp-msg a { color: var(--hp-lime); }
.hp-hr { height: 1px; background: #222; margin: 2px 0; }
.hp-small { font-size: 11px; color: #676767; line-height: 1.5; }

@media (max-width: 820px) {
  .hp-card { grid-template-columns: 1fr; }
  .hp-stage { min-height: 300px; border-right: 0; border-bottom: 1px solid #222; border-radius: 20px 20px 0 0; }
  .hp-side { padding: 20px 16px; }
}

.hp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 2147483001; transform: translate(-50%, 20px); opacity: 0; background: #0e0e0e; color: #fafafa; border: 1px solid #2a2a2a; padding: 10px 16px; border-radius: 99px; font-size: 14px; transition: .25s; pointer-events: none; }
.hp-toast.show { opacity: 1; transform: translate(-50%, 0); }
.hp-toast b { color: var(--hp-lime); font-weight: 500; }
