
    /* ---------------- shared shell ---------------- */
    /* .chat-prompt-overlay supplies the backdrop, the .active toggle and the
       scale-in, so only the card's own skin is restated here. The base rules use
       !important, hence the !important on the overrides. */
    .hb-auth .hb-auth-card{
        width:calc(100% - 24px); max-width:440px;
        padding:26px 26px 20px !important;
        max-height:calc(100vh - 24px);
        border-radius:24px !important;
        /* blue-into-black base, a warm gold bloom behind the brand mark and a cool
           blue lift at the foot — the Deal Room card's own palette */
        background:
            radial-gradient(115% 55% at 50% -10%, rgba(229,193,88,0.17) 0%, transparent 60%),
            radial-gradient(100% 45% at 50% 106%, rgba(47,108,240,0.13) 0%, transparent 64%),
            linear-gradient(168deg, #111a2e 0%, #0b1120 42%, #070a12 100%) !important;
        border:1px solid rgba(212,176,106,0.30) !important;
        box-shadow:0 30px 90px rgba(0,0,0,0.78),
                   0 0 70px rgba(229,193,88,0.07),
                   0 0 40px rgba(47,108,240,0.06),
                   inset 0 1px 0 rgba(255,255,255,0.06) !important;
        text-align:center; color:#F4F1EA;
        scrollbar-width:none; -ms-overflow-style:none; }
    .hb-auth .hb-auth-card::-webkit-scrollbar{ display:none; width:0; height:0; }
    /* the role picker holds a 2×2 grid, so it gets a wider sheet */
    #dealRoomLoginModal .hb-auth-card{ max-width:530px; }

    /* close → circular gold ghost button */
    .hb-auth .hb-x{
        position:absolute; top:14px; right:14px; z-index:5;
        width:32px; height:32px; border-radius:50%; padding:0;
        display:grid; place-items:center; line-height:1; font-size:20px; cursor:pointer;
        color:#e2cf9d; background:rgba(255,255,255,0.05);
        border:1px solid rgba(212,176,106,0.35);
        transition:background .2s, color .2s, border-color .2s; }
    .hb-auth .hb-x:hover{ background:rgba(212,176,106,0.16); color:#fff; border-color:rgba(212,176,106,0.7); }

    /* ---------------- eyebrow pill + titles ---------------- */
    /* Names which of the three sheets you are on at a glance — the one thing the
       old combined modal could never do. */
    .hb-auth .hb-eyebrow{
        display:inline-flex; align-items:center; gap:7px; margin-bottom:11px;
        padding:5px 14px; border-radius:20px;
        font-size:11.5px; font-weight:800; letter-spacing:1.6px; text-transform:uppercase; }
    /* The eyebrow is now the first thing in the sheet (the brand lockup that used
       to sit above it — mark, "HOUSBE", tagline — was removed so the form gets the
       full sheet on both desktop and mobile). Give it its own top clearance rather
       than relying on the card's padding, so it never sits flush under the ×
       close button (absolutely positioned, independent of padding) at any width. */
    .hb-auth .hb-eyebrow-top{ margin-top:22px; }
    .hb-auth .hb-eyebrow i{ font-size:11px; }
    .hb-auth .hb-eyebrow.is-gold{
        background:rgba(229,193,88,0.12); border:1px solid rgba(229,193,88,0.42); color:#eec85e; }
    .hb-auth .hb-eyebrow.is-gold i{ color:#eec85e !important; }
    .hb-auth .hb-eyebrow.is-blue{
        background:rgba(79,139,255,0.13); border:1px solid rgba(120,166,255,0.45); color:#9dbcff; }
    .hb-auth .hb-eyebrow.is-blue i{ color:#9dbcff !important; }

    .hb-auth .hb-title{
        font-size:24px; font-weight:800; line-height:1.22; letter-spacing:0.2px;
        margin:0 0 8px; text-align:center; }
    .hb-auth .hb-title .t1{ color:#F4F1EA; }
    .hb-auth .hb-title .t2{
        background:linear-gradient(180deg,#f7e6b8 0%,#e5c158 60%,#c39c3e 100%);
        -webkit-background-clip:text; background-clip:text; color:transparent; }
    .hb-auth .hb-title .t3{ color:#9dbcff; text-shadow:0 0 26px rgba(79,139,255,.35); }
    .hb-auth .hb-sub{
        color:#8a94a6; font-size:14px; line-height:1.6; text-align:center;
        margin:0 auto 16px; max-width:340px; }
    .hb-auth .hb-sub b{ color:#eec85e; font-weight:700; }

    /* ---------------- gold section rule ---------------- */
    .hb-auth .hb-rule{ display:flex; align-items:center; gap:11px; margin:16px 0 11px; }
    .hb-auth .hb-rule::before, .hb-auth .hb-rule::after{ content:""; flex:1; height:1px;
        background:linear-gradient(to right, transparent, rgba(212,176,106,0.45), transparent); }
    .hb-auth .hb-rule > span{
        flex:0 0 auto; color:#e5c158; font-size:12px; font-weight:800;
        letter-spacing:2px; text-transform:uppercase; white-space:nowrap;
        text-shadow:0 0 14px rgba(229,193,88,0.35); }

    /* ---------------- form fields ---------------- */
    .hb-auth .hb-form{ display:flex; flex-direction:column; text-align:left; }
    .hb-auth .hb-field{ position:relative; margin-bottom:9px; text-align:left; }
    .hb-auth .hb-field > i{ position:absolute; left:14px; top:50%; transform:translateY(-50%);
        color:#8a7a4e; font-size:14.5px; pointer-events:none; transition:color .2s; }
    .hb-auth .hb-input{
        width:100%; box-sizing:border-box; background:rgba(255,255,255,0.035);
        border:1px solid rgba(212,176,106,0.22); color:#ffffff;
        padding:12px 14px 12px 40px !important; border-radius:12px;
        font-size:15px !important; height:auto !important; line-height:1.4 !important;
        outline:none; transition:border-color .2s, background .2s, box-shadow .2s; }
    .hb-auth .hb-input::placeholder{ color:#7d8494; }
    .hb-auth .hb-input:focus{ border-color:rgba(212,176,106,0.75); background:rgba(212,176,106,0.07);
        box-shadow:0 0 0 3px rgba(212,176,106,0.12), 0 0 20px rgba(212,176,106,0.10); }
    .hb-auth .hb-field:focus-within > i{ color:#e5c158; }
    /* show/hide password toggle, inside the field on the right */
    .hb-auth .hb-eye{
        position:absolute; right:8px; top:50%; transform:translateY(-50%);
        width:30px; height:30px; display:grid; place-items:center; padding:0;
        background:none; border:none; cursor:pointer; color:#7d8494; font-size:14.5px;
        border-radius:8px; transition:color .2s, background .2s; }
    .hb-auth .hb-eye:hover{ color:#e5c158; background:rgba(229,193,88,0.10); }
    .hb-auth .hb-field:has(.hb-eye) .hb-input{ padding-right:42px !important; }

    /* ---------------- autofilled fields keep the sheet's own skin ----------------
       Every engine repaints an autofilled input in its own colours, which is what
       flipped these fields grey the moment the browser filled name/email/password
       while the untouched fields below stayed dark. Three separate mechanisms have
       to be answered, so all three are answered here:

         Blink (Chrome/Edge) + WebKit
             replace the input's background-color outright. So while autofilled,
             the field's 3.5%-white fill is repainted as an inset box-shadow —
             the one paint these engines leave to us — and the field's own
             `background` is given up as transparent rather than fought over.
             The 5000s background-color transition is a second line of defence:
             it outlasts any session, so Chrome's colour-swap never animates in.
         Mobile WebKit (iOS Safari — and Chrome/Firefox on iOS, same engine)
             paints its near-white fill *over* that box-shadow. Clipping the
             background to the glyphs is the one thing it honours: the browser's
             fill can then only land behind text that -webkit-text-fill-color has
             already painted white, i.e. nowhere visible.
         Firefox
             tints with a UA `filter` on :autofill rather than a colour, so only
             `filter:none` clears it.

       Nothing here touches the base .hb-input rules, so a field typed into by
       hand still renders exactly as it always did; only the autofilled state is
       rebuilt. The inset fill is clipped to the padding box where `background`
       reached under the 1px translucent border — a ~2.7%-white difference along
       that hairline, and the only visible trace of any of this.

       !important throughout, and :autofill restated as its own block rather than
       merged into the :-webkit-autofill selector list — one unknown selector in a
       list invalidates the whole list, and these two are not universally aliased.
       The !important is load-bearing: css/styles.css:72 and assets/index.css:520
       both set a site-wide `input:-webkit-autofill{ box-shadow:#2E3136 inset
       !important }` for the older dark pages, and !important beats specificity
       outright — a plain override loses no matter how specific it is. */
    .hb-auth .hb-input:-webkit-autofill,
    .hb-auth .hb-input:-webkit-autofill:hover,
    .hb-auth .hb-input:-webkit-autofill:active{
        -webkit-box-shadow:inset 0 0 0 999px rgba(255,255,255,0.035) !important;
        box-shadow:inset 0 0 0 999px rgba(255,255,255,0.035) !important;
        -webkit-text-fill-color:#ffffff !important; color:#ffffff !important;
        caret-color:#ffffff !important; filter:none !important;
        background-color:transparent !important; background-image:none !important;
        -webkit-background-clip:text; background-clip:text;
        transition:background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s,
                   border-color .2s, box-shadow .2s !important; }
    .hb-auth .hb-input:-webkit-autofill:focus{
        border-color:rgba(212,176,106,0.75) !important;
        -webkit-box-shadow:inset 0 0 0 999px rgba(212,176,106,0.07),
                   0 0 0 3px rgba(212,176,106,0.12), 0 0 20px rgba(212,176,106,0.10) !important;
        box-shadow:inset 0 0 0 999px rgba(212,176,106,0.07),
                   0 0 0 3px rgba(212,176,106,0.12), 0 0 20px rgba(212,176,106,0.10) !important; }
    .hb-auth .hb-input:autofill,
    .hb-auth .hb-input:autofill:hover,
    .hb-auth .hb-input:autofill:active{
        -webkit-box-shadow:inset 0 0 0 999px rgba(255,255,255,0.035) !important;
        box-shadow:inset 0 0 0 999px rgba(255,255,255,0.035) !important;
        -webkit-text-fill-color:#ffffff !important; color:#ffffff !important;
        caret-color:#ffffff !important; filter:none !important;
        background-color:transparent !important; background-image:none !important;
        -webkit-background-clip:text; background-clip:text;
        transition:background-color 5000s ease-in-out 0s, color 5000s ease-in-out 0s,
                   border-color .2s, box-shadow .2s !important; }
    .hb-auth .hb-input:autofill:focus{
        border-color:rgba(212,176,106,0.75) !important;
        -webkit-box-shadow:inset 0 0 0 999px rgba(212,176,106,0.07),
                   0 0 0 3px rgba(212,176,106,0.12), 0 0 20px rgba(212,176,106,0.10) !important;
        box-shadow:inset 0 0 0 999px rgba(212,176,106,0.07),
                   0 0 0 3px rgba(212,176,106,0.12), 0 0 20px rgba(212,176,106,0.10) !important; }
    /* Safari also drops its OWN autofill control inside any field it thinks it can
       fill — contacts for an email/name/phone field, credentials beside a password
       — drawn as a light rounded chip at the field's right edge, which reads as a
       white block in these narrow fields and collides with our .hb-eye toggle. It
       is UA chrome, not our markup, so only these pseudo-elements reach it;
       display:none alone is ignored by some WebKit builds, hence taking it out of
       the flow too. The AutoFill row above the keyboard still works — this only
       drops the in-field chip. */
    .hb-auth .hb-input::-webkit-contacts-auto-fill-button,
    .hb-auth .hb-input::-webkit-credentials-auto-fill-button,
    .hb-auth .hb-input::-webkit-caps-lock-indicator{
        display:none !important; visibility:hidden;
        position:absolute; right:0; width:0; margin:0; opacity:0; pointer-events:none; }

    .hb-auth .hb-note{ display:flex; align-items:flex-start; gap:8px; text-align:left;
        color:#79808f; font-size:13.5px; line-height:1.55; margin:2px 2px 10px; }
    .hb-auth .hb-note i{ font-size:13px; margin-top:2.5px; color:#8a7a4e; flex:0 0 auto; }

    .hb-auth .hb-or{ display:flex; align-items:center; gap:12px; margin:10px 0; }
    .hb-auth .hb-or::before, .hb-auth .hb-or::after{ content:""; flex:1; height:1px; background:rgba(255,255,255,0.09); }
    .hb-auth .hb-or > span{ color:#6f7686; font-size:12px; font-weight:800; letter-spacing:1.6px; }

    /* document dropzone */
    .hb-auth .hb-doc{ position:relative; display:flex; align-items:center; gap:12px; text-align:left;
        background:rgba(229,193,88,0.045); border:1.5px dashed rgba(229,193,88,0.38); border-radius:14px;
        padding:13px 76px 13px 14px; cursor:pointer; margin-bottom:12px; transition:background .2s, border-color .2s; }
    .hb-auth .hb-doc:hover{ background:rgba(229,193,88,0.09); border-color:rgba(229,193,88,0.65); }
    .hb-auth .hb-doc-ic{ width:34px; height:34px; flex:0 0 34px; border-radius:10px; display:grid; place-items:center;
        background:rgba(229,193,88,0.10); border:1px solid rgba(229,193,88,0.34); }
    .hb-auth .hb-doc-ic i{ color:#eec85e !important; font-size:14.5px; }
    .hb-auth .hb-doc-tx{ min-width:0; }
    .hb-auth .hb-doc-tx b{ display:block; color:#e6ebfa; font-size:14.5px; font-weight:700; }
    .hb-auth .hb-doc-tx span{ display:block; color:#79808f; font-size:13.5px; margin-top:2px;
        white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
    .hb-auth .hb-optional{ position:absolute; right:12px; top:50%; transform:translateY(-50%); pointer-events:none;
        font-size:11px; font-weight:800; letter-spacing:1px; text-transform:uppercase; color:#8a8371;
        background:rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.10); padding:3px 8px; border-radius:20px; }

    .hb-auth .hb-err{ display:none; color:#ff6b6b; font-size:14px; text-align:center; margin:2px 0 8px; }

    /* "This email already has a HOUSBE account." is not a field validation
       error — it is a fork in the road, and the visitor has to notice it before
       they keep typing. Set to the spec supplied with the bug report: 18px / 600
       / #FF6B6B / centred / 1.35, full width.
       NOTE ON "maximum two lines": deliberately NOT enforced with
       -webkit-line-clamp. The clickable "log in" is the last phrase in the
       sentence, so clamping is the one thing that could hide the action the
       message exists to offer. At 18px/1.35 in this sheet the copy wraps to two
       lines on its own; max-width keeps it there without truncating. */
    .hb-auth .hb-err.is-account{
        font-size:18px; font-weight:600; color:#FF6B6B; text-align:center;
        line-height:1.35; width:100%; max-width:34ch; margin:6px auto 10px;
    }
    .hb-auth .hb-err.is-account a{
        color:inherit; font-weight:700; text-decoration:underline;
        text-underline-offset:2px; cursor:pointer;
    }
    .hb-auth .hb-err.is-account a:hover{ color:#ff8f8f; }

    /* ---------------- primary buttons ---------------- */
    /* gold = create/continue as a guest; blue = log in as a member. The homepage
       buttons use the same two colours, so each sheet visibly belongs to the
       button that opened it. */
    .hb-auth .hb-btn{ position:relative; overflow:hidden; width:100%; box-sizing:border-box;
        border:none; cursor:pointer; font-family:inherit; margin-top:2px;
        display:flex; align-items:center; justify-content:center; gap:9px;
        padding:13px 16px; border-radius:12px;
        background:linear-gradient(135deg,#f7e6b8 0%,#e5c158 52%,#c9a541 100%); color:#1a1205;
        font-weight:800; font-size:15.5px; letter-spacing:0.3px;
        box-shadow:0 10px 26px rgba(212,176,106,0.30), inset 0 1px 0 rgba(255,255,255,0.5);
        transition:transform .15s, box-shadow .2s; }
    .hb-auth .hb-btn i{ color:#1a1205 !important; font-size:14.5px; }
    .hb-auth .hb-btn:hover{ transform:translateY(-2px);
        box-shadow:0 14px 34px rgba(212,176,106,0.45), inset 0 1px 0 rgba(255,255,255,0.5); }
    .hb-auth .hb-btn:active{ transform:translateY(0); }
    .hb-auth .hb-btn:disabled{ opacity:.72; cursor:default; transform:none; }

    .hb-auth .hb-btn-blue{ position:relative; overflow:hidden; width:100%; box-sizing:border-box;
        border:none; cursor:pointer; font-family:inherit; margin-top:2px;
        display:flex; align-items:center; justify-content:center; gap:9px;
        padding:13px 16px; border-radius:12px;
        background:linear-gradient(135deg,#5b93ff 0%,#2f6cf0 60%,#1f56d6 100%); color:#fff;
        font-weight:800; font-size:15.5px; letter-spacing:0.3px;
        box-shadow:0 10px 26px rgba(47,108,240,.35);
        transition:transform .15s, box-shadow .2s; }
    .hb-auth .hb-btn-blue i{ color:#fff !important; font-size:14.5px; }
    .hb-auth .hb-btn-blue:hover{ transform:translateY(-2px); box-shadow:0 14px 34px rgba(47,108,240,.5); }
    .hb-auth .hb-btn-blue:active{ transform:translateY(0); }
    .hb-auth .hb-btn-blue:disabled{ opacity:.72; cursor:default; transform:none; }

    /* ---------------- one-line swap between the two guest sheets ----------------
       "Don't have an account? Create account" and its mirror. A real <button>, not
       an <a>: it opens the other sheet in place rather than navigating anywhere. */
    .hb-auth .hb-swap{ text-align:center; color:#8a94a6; font-size:14px; margin:14px 0 0; }
    .hb-auth .hb-swap button{
        background:none; border:0; padding:0; font:inherit; cursor:pointer;
        color:#e5c158; font-weight:700; text-decoration:underline; text-underline-offset:3px;
        transition:color .2s; }
    .hb-auth .hb-swap button:hover{ color:#f7e6b8; }
    .hb-auth .hb-swap button:focus-visible{
        outline:2px solid rgba(229,193,88,0.85); outline-offset:3px; border-radius:4px; }

    /* ---------------- role grid (Deal Room log-in sheet) ---------------- */
    .hb-auth .hb-roles{ display:grid; grid-template-columns:repeat(2, minmax(0,1fr)); gap:10px; text-align:left; }
    .hb-auth .hb-role{
        position:relative; overflow:hidden; isolation:isolate;
        display:flex; align-items:center; gap:12px; text-decoration:none;
        padding:14px 13px; border-radius:15px;
        background:
            linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.02) 44%, rgba(255,255,255,0) 60%),
            linear-gradient(160deg, rgba(79,139,255,0.13) 0%, rgba(255,255,255,0.02) 100%);
        border:1px solid rgba(120,166,255,0.28);
        box-shadow:0 8px 22px rgba(0,0,0,0.32), inset 0 1px 0 rgba(255,255,255,0.14);
        transition:transform .22s cubic-bezier(.4,0,.2,1), border-color .22s, box-shadow .22s, background .22s; }
    .hb-auth .hb-role > *{ position:relative; z-index:2; }
    .hb-auth .hb-role::after{ content:""; position:absolute; inset:-1px; z-index:1; pointer-events:none;
        background:linear-gradient(105deg, transparent 34%, rgba(255,255,255,0.16) 48%, transparent 62%);
        transform:translateX(-125%); transition:transform .7s cubic-bezier(.4,0,.2,1); }
    .hb-auth .hb-role:hover::after{ transform:translateX(125%); }
    .hb-auth .hb-role:hover{ transform:translateY(-2px); border-color:rgba(150,188,255,0.7);
        box-shadow:0 14px 30px rgba(0,0,0,0.45), 0 0 26px rgba(79,139,255,0.22), inset 0 1px 0 rgba(255,255,255,0.2); }
    .hb-auth .hb-role:focus-visible{ outline:2px solid rgba(150,188,255,0.85); outline-offset:3px; }
    .hb-auth .hb-role-ic{ width:38px; height:38px; flex:0 0 38px; border-radius:11px; display:grid; place-items:center;
        background:rgba(79,139,255,0.15); border:1px solid rgba(120,166,255,0.45); }
    .hb-auth .hb-role-ic i{ color:#a9c6ff !important; font-size:16px; }
    .hb-auth .hb-role-tx{ min-width:0; }
    .hb-auth .hb-role-tx b{ display:block; color:#F4F1EA; font-size:15px; font-weight:800; letter-spacing:0.1px; }
    .hb-auth .hb-role-tx span{ display:block; color:#8a94a6; font-size:13px; line-height:1.45; margin-top:2px; }
    .hb-auth .hb-domain{ display:inline-flex; align-items:center; gap:6px; margin:13px auto 0;
        padding:6px 16px; border-radius:20px; background:rgba(255,255,255,0.04);
        border:1px solid rgba(212,176,106,0.22); color:#a99a72; font-size:13px; font-weight:700; letter-spacing:1.2px; }

    @media (prefers-reduced-motion: reduce){
        .hb-auth .hb-role, .hb-auth .hb-role::after, .hb-auth .hb-btn, .hb-auth .hb-btn-blue{ transition:none; }
        .hb-auth .hb-role:hover, .hb-auth .hb-btn:hover, .hb-auth .hb-btn-blue:hover{ transform:none; }
        .hb-auth .hb-role:hover::after{ transform:translateX(-125%); }
    }

    /* Phones: tighter gutters, the role grid goes single-column, and the
       "optional" pill leaves the padding reserve so the upload label keeps room. */
    @media (max-width:560px){
        .hb-auth .hb-roles{ grid-template-columns:1fr; }
    }
    @media (max-width:480px){
        .hb-auth .hb-auth-card{ padding:20px 15px 16px !important; border-radius:20px !important; }
        .hb-auth .hb-eyebrow-top{ margin-top:18px; }
        .hb-auth .hb-title{ font-size:21px; }
        .hb-auth .hb-rule > span{ font-size:11px; letter-spacing:1.4px; }
        .hb-auth .hb-doc{ padding:12px 14px; flex-wrap:wrap; }
        .hb-auth .hb-optional{ position:static; transform:none; margin-left:auto; }
        .hb-auth .hb-doc-tx{ flex:1 1 100%; order:3; }
    }
