:root {
    --hh-portal-navy: #0b2345;
    --hh-portal-blue: #1768c5;
    --hh-portal-blue-soft: #eaf3ff;
    --hh-portal-bg: #f4f7fb;
    --hh-portal-line: #dce6f2;
    --hh-portal-muted: #6d7f95;
    --hh-portal-green: #087a4a;
    --hh-portal-green-soft: #e8f8f0;
    --hh-portal-amber: #966000;
    --hh-portal-amber-soft: #fff4da;
    --hh-portal-danger: #b42318;
    --hh-portal-danger-soft: #fff0ee;
    --hh-portal-shadow: 0 12px 34px rgba(18, 45, 83, .08);
    --hh-portal-content: 1260px;
    --hh-portal-radius: 17px;
}

.hh-portal-page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin: 0 0 22px;
}

.hh-portal-page-heading h2 {
    margin: 4px 0 2px;
    color: var(--hh-portal-navy);
    font-size: clamp(27px, 3vw, 32px);
    font-weight: 800;
    letter-spacing: -.035em;
    line-height: 1.2;
}

.hh-portal-page-heading p {
    margin: 0;
    color: var(--hh-portal-muted);
    font-size: 13px;
}

.hh-portal-eyebrow {
    color: var(--hh-portal-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .12em;
}

.hh-portal-card {
    border: 1px solid var(--hh-portal-line);
    border-radius: var(--hh-portal-radius);
    background: #fff;
    box-shadow: var(--hh-portal-shadow);
}

.hh-portal-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
}

.hh-portal-status::before {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.hh-portal-status-success {
    background: var(--hh-portal-green-soft);
    color: var(--hh-portal-green);
}

.hh-portal-status-warning {
    background: var(--hh-portal-amber-soft);
    color: var(--hh-portal-amber);
}

.hh-portal-status-danger {
    background: var(--hh-portal-danger-soft);
    color: var(--hh-portal-danger);
}

.hh-portal-actions {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
}

.hh-portal-action {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 15px 18px;
    border: 1px solid #efd69f;
    border-radius: 15px;
    background: #fff9e9;
    color: #523d13;
}

.hh-portal-action-danger {
    border-color: #efc2bd;
    background: #fff3f1;
    color: #7d2118;
}

.hh-portal-action > i {
    display: grid;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, .7);
}

.hh-portal-action-copy {
    flex: 1;
    min-width: 0;
}

.hh-portal-action-copy strong,
.hh-portal-action-copy span {
    display: block;
}

.hh-portal-action-copy span {
    margin-top: 2px;
    font-size: 12px;
    opacity: .78;
}

.hh-portal-action .btn {
    min-height: 40px;
    border-radius: 10px;
    background: #fff;
    font-weight: 700;
}

.hh-portal-notification-button {
    position: relative;
    display: inline-grid;
    width: 38px;
    height: 38px;
    margin-right: 8px;
    place-items: center;
    border: 1px solid var(--hh-portal-line);
    border-radius: 11px;
    background: #fff;
    color: var(--hh-portal-blue);
    cursor: pointer;
}

.hh-portal-notification-count {
    position: absolute;
    top: -6px;
    right: -6px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    place-items: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #d92d20;
    color: #fff;
    font-size: 9px;
    line-height: 1;
}

.hh-portal-notification-drawer {
    position: fixed;
    top: 0;
    right: -410px;
    z-index: 1100;
    width: 390px;
    max-width: 100%;
    height: 100%;
    overflow-y: auto;
    border-left: 1px solid var(--hh-portal-line);
    background: #fff;
    box-shadow: -20px 0 50px rgba(15, 38, 69, .17);
    transition: right .2s ease;
}

.hh-portal-notification-drawer.is-open {
    right: 0;
}

.hh-portal-notification-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: 1px solid var(--hh-portal-line);
}

.hh-portal-notification-head h2 {
    margin: 0;
    font-size: 19px;
}

.hh-portal-notification-head button {
    border: 0;
    background: transparent;
    color: var(--hh-portal-muted);
    font-size: 25px;
}

.hh-portal-notification {
    display: flex;
    gap: 11px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--hh-portal-line);
    color: var(--hh-portal-navy);
    text-decoration: none;
}

.hh-portal-notification:hover {
    background: #f7faff;
    color: var(--hh-portal-blue);
}

.hh-portal-notification > i {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 6px;
    border-radius: 50%;
    background: var(--hh-portal-blue);
}

.hh-portal-notification-warning > i {
    background: #d89614;
}

.hh-portal-notification-danger > i {
    background: var(--hh-portal-danger);
}

.hh-portal-notification span,
.hh-portal-notification strong {
    display: block;
}

.hh-portal-notification span {
    margin-top: 3px;
    color: var(--hh-portal-muted);
    font-size: 12px;
}

.hh-portal-empty {
    padding: 30px 20px;
    color: var(--hh-portal-muted);
    text-align: center;
}

.hh-portal-notification-button:focus-visible,
.hh-portal-notification-head button:focus-visible,
.hh-portal-notification:focus-visible,
.hh-portal-action .btn:focus-visible {
    outline: 3px solid rgba(23, 104, 197, .22);
    outline-offset: 2px;
}

/* Authenticated, account-wide search autocomplete. */
.hh-v2-global-search .hh-v2-search-results {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    z-index: 1250;
    max-height: min(68vh, 560px);
    overflow-y: auto;
    padding: 8px;
    border: 1px solid var(--hh-portal-line);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 20px 50px rgba(11, 35, 69, .18);
}

.hh-v2-global-search .hh-v2-search-results[hidden] {
    display: none;
}

.hh-v2-search-group + .hh-v2-search-group {
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid #edf2f7;
}

.hh-v2-search-group-label {
    padding: 7px 10px 5px;
    color: var(--hh-portal-muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.hh-v2-search-result {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 8px 10px;
    border-radius: 10px;
    color: var(--hh-portal-navy) !important;
    text-decoration: none !important;
}

.hh-v2-search-result:hover,
.hh-v2-search-result.is-active {
    background: var(--hh-portal-blue-soft);
    color: var(--hh-portal-blue) !important;
}

.hh-v2-search-result > i {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 9px;
    background: #f0f5fb;
    color: var(--hh-portal-blue);
    font-size: 13px;
}

.hh-v2-search-result > span,
.hh-v2-search-result strong,
.hh-v2-search-result small {
    display: block;
    min-width: 0;
}

.hh-v2-search-result > span {
    overflow: hidden;
}

.hh-v2-search-result strong,
.hh-v2-search-result small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hh-v2-search-result strong {
    font-size: 12px;
    font-weight: 800;
}

.hh-v2-search-result small {
    margin-top: 3px;
    color: var(--hh-portal-muted);
    font-size: 10px;
    font-weight: 600;
}

.hh-v2-search-empty {
    padding: 24px 16px;
    color: var(--hh-portal-muted);
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.hh-v2-global-search input[aria-expanded="true"] {
    border-color: #8ab8e9;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(23, 104, 197, .1);
}

/*
 * Keep the redesigned views on the shell's 1260px content rhythm. Selectors
 * remain inside known HillHost page roots so module-owned SolusVM and
 * monitoring markup retains its own sizing and component rules.
 */
.hh-shell-v2 .hh-v2-primary-content .hh-dashboard,
.hh-shell-v2 .hh-v2-primary-content .hh-products-shell,
.hh-shell-v2 .hh-v2-primary-content .hh-billing-page,
.hh-shell-v2 .hh-v2-primary-content .hh-domains-page,
.hh-shell-v2 .hh-v2-primary-content .hh-page {
    width: 100%;
    max-width: var(--hh-portal-content);
    margin-right: auto;
    margin-left: auto;
}

.hh-shell-v2 .hh-v2-primary-content .hh-dashboard-panel.card,
.hh-shell-v2 .hh-v2-primary-content .hh-page .card {
    border-color: var(--hh-portal-line);
    border-radius: var(--hh-portal-radius);
    box-shadow: var(--hh-portal-shadow);
}

.hh-shell-v2 .hh-v2-primary-content .hh-heading-action,
.hh-shell-v2 .hh-v2-primary-content .hh-primary-action,
.hh-shell-v2 .hh-v2-primary-content .hh-dashboard-primary {
    min-height: 42px;
    border-radius: 10px;
}

@media (max-width: 767px) {
    .hh-portal-page-heading,
    .hh-portal-action {
        align-items: flex-start;
        flex-direction: column;
    }

    .hh-portal-action .btn {
        width: 100%;
    }
}

@media (max-width: 430px) {
    .hh-portal-page-heading h2 {
        font-size: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hh-portal-notification-drawer {
        transition: none;
    }
}
