.hp26-topbar-right.hp26-whois-enabled {
    padding-right: 159px !important;
}

.hp26-whois-trigger {
    position: absolute;
    top: 50%;
    right: 69px;
    z-index: 5;
    min-height: 25px;
    padding: 4px 8px;
    transform: translateY(-50%);
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 5px;
    background: rgba(255, 255, 255, .10);
    color: #fff;
    font: 700 11px/16px Arial, sans-serif;
    cursor: pointer;
}

.hp26-whois-trigger:hover,
.hp26-whois-trigger:focus-visible {
    background: #f5820b;
    color: #102957;
}

.hp26-whois-dialog {
    box-sizing: border-box;
    inset: 52px 16px auto auto;
    width: min(440px, calc(100vw - 32px));
    max-height: calc(100dvh - 68px);
    margin: 0;
    padding: 21px;
    overflow: auto;
    border: 1px solid #dce5f0;
    border-radius: 12px;
    background: #fff;
    color: #132b50;
    box-shadow: 0 12px 34px rgba(4, 20, 44, .23);
    font: 14px/1.5 Arial, sans-serif;
}

.hp26-whois-dialog::backdrop {
    background: rgba(4, 20, 44, .26);
}

.hp26-whois-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.hp26-whois-dialog #hp26-whois-title,
.hp26-whois-dialog .hp26-whois-output h3 {
    margin: 0;
    color: #132b50;
    font: 700 20px/1.3 Arial, sans-serif;
    overflow-wrap: anywhere;
}

.hp26-whois-close,
.hp26-whois-mine {
    padding: 4px 0;
    border: 0;
    background: transparent;
    color: #134d8f;
    cursor: pointer;
}

.hp26-whois-close { font-size: 24px; }
.hp26-whois-mine { margin-top: 6px; text-decoration: underline; }

.hp26-whois-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 700;
}

.hp26-whois-input-row { display: flex; gap: 6px; }
.hp26-whois-form #hp26-whois-query {
    flex: 1;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 8px;
    border: 1px solid #aebed0;
    border-radius: 6px;
    color: #132b50;
    font-size: 16px;
}

.hp26-whois-submit {
    padding: 6px 9px;
    border: 0;
    border-radius: 6px;
    background: #f5820b;
    color: #102957;
    font-weight: 700;
    cursor: pointer;
}

.hp26-whois-dialog button:disabled { opacity: .65; cursor: wait; }
.hp26-whois-status { margin: 9px 0; }
.hp26-whois-output p { margin: 8px 0 0; }
.hp26-whois-output dl {
    display: grid;
    grid-template-columns: minmax(85px, 1fr) minmax(0, 2fr);
    gap: 6px 9px;
    margin: 10px 0;
}
.hp26-whois-output dt { font-weight: 700; }
.hp26-whois-output dd { margin: 0; white-space: pre-line; overflow-wrap: anywhere; }
.hp26-whois-output a { color: #134d8f; text-decoration: underline; }

@media (max-width: 640px) {
    .hp26-topbar .hp26-topbar-right.hp26-whois-enabled { padding: 0 !important; }
    .hp26-topbar-right.hp26-whois-enabled > .hp26-whois-trigger {
        position: static;
        transform: none;
        min-height: 26px;
        padding: 3px 6px;
    }
}
