/* Hosting Portal — neutral defaults. Themes can restyle via the hp-* classes or CSS variables below. */
.hp-portal {
	--hp-ink: inherit;
	--hp-muted: color-mix(in srgb, currentColor 65%, transparent);
	--hp-line: color-mix(in srgb, currentColor 18%, transparent);
	--hp-surface: transparent;
	--hp-accent: #2563eb;
	--hp-accent-ink: #fff;
	--hp-radius: 8px;
	margin: 0;
}
/* Content keeps a readable width; the signed-in bar spans the full container (John, 2026-11-11). */
.hp-portal > :not(.hp-userbar) { max-width: 880px; }
.hp-portal .hp-title { margin: 0 0 16px; }
.hp-portal .hp-userbar { display: flex; flex-wrap: wrap; gap: 6px 16px; justify-content: space-between; align-items: center; padding: 10px 14px; margin: 0 0 24px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); font-size: .9375em; color: var(--hp-muted); }
.hp-portal .hp-userbar a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.hp-portal .hp-muted { color: var(--hp-muted); }
.hp-portal .hp-button {
	display: inline-block; padding: 10px 18px; border: 0; border-radius: var(--hp-radius);
	background: var(--hp-accent); color: var(--hp-accent-ink); font: inherit; font-weight: 600;
	text-decoration: none; cursor: pointer; line-height: 1.3; white-space: nowrap;
}
.hp-portal .hp-button--disabled { opacity: .5; cursor: not-allowed; }
.hp-portal .hp-company { margin: 0 0 28px; padding: 20px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: var(--hp-surface); }
.hp-portal .hp-company__head { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.hp-portal .hp-company__head h3 { margin: 0; }
.hp-portal .hp-role { font-size: .875em; color: var(--hp-muted); }
.hp-portal .hp-sites { list-style: none; margin: 0; padding: 0; }
.hp-portal .hp-site { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--hp-line); }
.hp-portal .hp-site__main { display: flex; flex-direction: column; min-width: 0; }
.hp-portal .hp-site__domain { overflow-wrap: anywhere; }
.hp-portal .hp-site__meta { font-size: .875em; color: var(--hp-muted); }
.hp-portal .hp-site__action { margin: 0; }
.hp-portal .hp-support { margin-top: 24px; color: var(--hp-muted); font-size: .9375em; }
@media (max-width: 560px) {
	.hp-portal .hp-site { flex-direction: column; align-items: stretch; }
	.hp-portal .hp-site .hp-button { width: 100%; text-align: center; }
}

/* Portal sections */
.hp-portal .hp-tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 24px; border-bottom: 1px solid var(--hp-line); }
.hp-portal .hp-tabs a { padding: 10px 14px; text-decoration: none; color: var(--hp-muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 500; }
.hp-portal .hp-tabs a:hover { color: inherit; }
.hp-portal .hp-tabs a.is-active { color: inherit; border-bottom-color: var(--hp-accent); }
.hp-portal .hp-notice { padding: 12px 14px; margin: 0 0 20px; border: 1px solid var(--hp-line); border-left: 3px solid #1E9A55; border-radius: var(--hp-radius); }
.hp-portal .hp-notice--error { border-left-color: #C2410C; }
.hp-portal .hp-notice--warn { border-left-color: var(--hp-accent); }
.hp-portal .hp-company-pick { display: flex; gap: 10px; align-items: center; margin: 0 0 20px; }
.hp-portal .hp-panel { display: grid; gap: 16px; }
.hp-portal .hp-subtitle { margin: 16px 0 0; }
.hp-portal .hp-fieldset { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 16px 18px 6px; margin: 0 0 20px; }
.hp-portal .hp-fieldset legend { padding: 0 6px; font-weight: 600; }
.hp-portal .hp-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.hp-portal .hp-field { display: flex; flex-direction: column; gap: 4px; margin: 0 0 14px; min-width: 0; }
.hp-portal .hp-field--textarea, .hp-portal .hp-field--checkbox { grid-column: 1 / -1; }
.hp-portal .hp-field label, .hp-portal .hp-label { font-weight: 500; font-size: .9375em; }
.hp-portal .hp-field input, .hp-portal .hp-field select, .hp-portal .hp-field textarea { font: inherit; padding: 9px 11px; border: 1px solid var(--hp-line); border-radius: 6px; background: transparent; color: inherit; width: 100%; box-sizing: border-box; }
.hp-portal .hp-field--checkbox label { font-weight: 400; display: flex; gap: 8px; align-items: flex-start; }
.hp-portal .hp-field--checkbox input { width: auto; margin-top: 4px; }
.hp-portal .hp-help { font-size: .875em; color: var(--hp-muted); }
.hp-portal .hp-readonly { padding: 2px 0; }
.hp-portal .hp-people { list-style: none; margin: 0; padding: 0; }
.hp-portal .hp-person { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding: 12px 0; border-top: 1px solid var(--hp-line); }
.hp-portal .hp-person__main { display: flex; flex-direction: column; min-width: 0; }
.hp-portal .hp-person__main .hp-muted { overflow-wrap: anywhere; font-size: .9375em; }
.hp-portal .hp-person__actions { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }
.hp-portal .hp-person__actions form { display: flex; gap: 6px; align-items: center; margin: 0; }
.hp-portal .hp-person__actions select { font: inherit; padding: 9px 11px; border: 1px solid var(--hp-line); border-radius: 6px; background: transparent; color: inherit; }
.hp-portal .hp-link-button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.hp-portal .hp-danger { color: #C2410C; }
.hp-portal .hp-role-help { margin: 0 0 16px; padding-left: 18px; color: var(--hp-muted); font-size: .9375em; }
.hp-portal .hp-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 640px) { .hp-portal .hp-grid { grid-template-columns: minmax(0, 1fr); } }

/* Portal sections: keep site theme styles from overriding form text and headings */
.hp-portal .hp-title { font-size: 1.5em; line-height: 1.2; letter-spacing: -.01em; }
.hp-portal .hp-subtitle { font-size: 1.2em; line-height: 1.3; }
.hp-portal .hp-field label, .hp-portal .hp-label, .hp-portal .hp-field--checkbox label { color: inherit; opacity: 1; }
.hp-portal .hp-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.hp-portal .hp-tabs a { white-space: nowrap; }
@media (max-width: 480px) { .hp-portal .hp-tabs a { padding: 10px 8px; font-size: .9375em; } }

/* Sign-in on the portal page (sign in, code, forgot and set password) */
.hp-portal .hp-login { max-width: 440px; }
.hp-portal .hp-login__form { margin: 0 0 16px; }
.hp-portal .hp-login__form .hp-field { display: flex; flex-direction: column; gap: 6px; margin: 0 0 14px; }
.hp-portal .hp-login__form input[type=text], .hp-portal .hp-login__form input[type=password], .hp-portal .hp-login__code input.input { width: 100%; box-sizing: border-box; padding: 10px 12px; font: inherit; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); background: transparent; color: inherit; }
.hp-portal .hp-login__form .hp-field--checkbox label { display: flex; gap: 8px; align-items: center; font-weight: 400; }
.hp-portal .hp-login__actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.hp-portal .hp-help { font-size: .875em; }
/* The two-step provider's own fields */
.hp-portal .hp-login__code label { display: block; font-weight: 600; margin: 0 0 6px; }
.hp-portal .hp-login__code .authcode { font-size: 1.25em; letter-spacing: .15em; }
.hp-portal .hp-login__code .submit { margin: 14px 0 8px; padding: 0; }
.hp-portal .hp-login__code input[type=submit] { display: inline-block; padding: 10px 18px; border: 0; border-radius: var(--hp-radius); background: var(--hp-accent); color: var(--hp-accent-ink); font: inherit; font-weight: 600; cursor: pointer; }
.hp-portal .hp-login__code .two-factor-email-resend input[type=submit], .hp-portal .hp-login__code .backup-codes input[type=submit] { background: transparent; color: inherit; border: 1px solid var(--hp-line); font-weight: 400; padding: 8px 14px; }
.hp-portal .hp-login > .hp-muted:first-of-type, .hp-portal .hp-login > p { margin: 0 0 20px; }

/* Two-step setup and password on the Account tab */
.hp-portal .hp-security .hp-steps { margin: 0 0 8px; padding-left: 1.25em; }
.hp-portal .hp-security .hp-steps li { margin: 0 0 14px; }
.hp-portal .hp-qr { width: 200px; max-width: 100%; margin: 10px 0 6px; background: #fff; padding: 8px; border-radius: 8px; box-sizing: border-box; }
.hp-portal .hp-qr svg { display: block; width: 100%; height: auto; }
.hp-portal .hp-secret { font-size: .95em; letter-spacing: .05em; word-break: break-all; }
.hp-portal .hp-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 12px; }
.hp-portal .hp-inline-form label { flex-basis: 100%; font-weight: 500; font-size: .9375em; }
.hp-portal .hp-inline-form input { width: 9em; padding: 9px 11px; border: 1px solid var(--hp-line); border-radius: 6px; font: inherit; letter-spacing: .15em; background: transparent; color: inherit; }
.hp-portal .hp-button--quiet { background: transparent; color: inherit; border: 1px solid var(--hp-line); font-weight: 500; }
.hp-portal .hp-codes { display: grid; grid-template-columns: repeat(auto-fill, minmax(9em, 1fr)); gap: 6px; margin: 8px 0 0; padding: 0; list-style: none; }
.hp-portal .hp-field input[type=checkbox] { width: auto; }

/* WordPress sites and extra domains under each account */
.hp-portal .hp-wp { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.hp-portal .hp-wp li { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-size: .9375em; }
.hp-portal .hp-wp a { color: inherit; text-decoration-color: var(--hp-line); text-underline-offset: 3px; overflow-wrap: anywhere; }
.hp-portal .hp-wp__badge { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--hp-line); font: 600 10px/1 serif; color: var(--hp-muted); }
.hp-portal .hp-more { margin-top: 6px; font-size: .875em; color: var(--hp-muted); }
.hp-portal .hp-more summary { cursor: pointer; }
.hp-portal .hp-more ul { margin: 6px 0 0; padding-left: 1.1em; columns: 2 12em; }
.hp-portal .hp-site__main { min-width: 0; }

/* Open WordPress */
.hp-portal .hp-wp li { flex-wrap: wrap; }
.hp-portal .hp-wp__open { display: inline; margin: 0 0 0 4px; }
.hp-portal .hp-wp__open .hp-link-button, .hp-portal button.hp-link-button { background: none; border: 1px solid var(--hp-line); border-radius: 999px; padding: 2px 10px; font: inherit; font-size: .8125em; color: inherit; cursor: pointer; }
.hp-portal .hp-wp__open .hp-link-button:hover { border-color: var(--hp-accent); }
.hp-portal .hp-wp__as { font-size: .8125em; }
.hp-portal .hp-wp-choose { border-color: var(--hp-accent); }
.hp-portal .hp-wp-users { border: 0; padding: 0; margin: 0 0 10px; display: grid; gap: 6px; }
.hp-portal .hp-wp-user { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); cursor: pointer; }
.hp-portal .hp-wp-user:has(input:checked) { border-color: var(--hp-accent); }
@media (max-width: 520px) { .hp-portal .hp-wp-user { grid-template-columns: auto 1fr; } .hp-portal .hp-wp-user .hp-role { grid-column: 2; } }

/* Activity and sign-in history */
.hp-portal .hp-tl__list { list-style: none; margin: 8px 0 0 12px; padding: 0; border-left: 2px solid var(--hp-line); }
.hp-portal .hp-tl__item { position: relative; display: flex; gap: 12px; padding: 0 0 14px 22px; margin: 0; }
.hp-portal .hp-tl__icon { position: absolute; left: -13px; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hp-line); background: Canvas; display: grid; place-items: center; font-size: 11px; line-height: 1; }
.hp-portal .hp-tl__text { overflow-wrap: anywhere; padding-top: 2px; }
.hp-portal .hp-tl__meta { color: var(--hp-muted); font-size: .8125em; margin-top: 2px; }

/* Messages */
.hp-portal .hp-msg-filters { display: flex; gap: 14px; margin: 0 0 12px; }
.hp-portal .hp-msg-filters .is-active { font-weight: 700; text-decoration: none; }
.hp-portal .hp-topics { list-style: none; margin: 0 0 18px; padding: 0; }
.hp-portal .hp-topics li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--hp-line); margin: 0; }
.hp-portal .hp-topic__head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 14px; }
.hp-portal .hp-thread { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 12px; }
.hp-portal .hp-thread__msg { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 12px 14px; margin: 0; max-width: 46rem; }
.hp-portal .hp-thread__msg.is-staff { border-left: 3px solid var(--hp-accent); }
.hp-portal .hp-thread__msg.is-me { margin-left: auto; }
.hp-portal .hp-thread__meta { font-size: .8125em; color: var(--hp-muted); margin-bottom: 6px; }
.hp-portal .hp-thread__body { overflow-wrap: anywhere; }
.hp-portal .hp-todos ul { list-style: none; margin: 0 0 16px; padding: 0; }
.hp-portal .hp-todos li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 6px 0; margin: 0; }
.hp-portal .hp-todos li.is-done > span:not(.hp-muted) { text-decoration: line-through; color: var(--hp-muted); }
.hp-portal .hp-check { width: 22px; height: 22px; border: 1.5px solid currentColor; border-radius: 5px; background: transparent; color: inherit; display: inline-grid; place-items: center; padding: 0; cursor: pointer; font-size: 14px; line-height: 1; }
.hp-portal .hp-check--ro { opacity: .5; cursor: default; }
.hp-portal .hp-todos form { margin: 0; display: inline; }
.hp-portal .hp-new-topic summary { cursor: pointer; font-weight: 600; margin: 8px 0; }

/* Setup wizard */
.hp-portal .hp-steps { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; margin: 0 0 20px; padding: 0; }
.hp-portal .hp-steps__item { display: flex; align-items: center; gap: 8px; color: var(--hp-muted, #4A5668); }
.hp-portal .hp-steps__item.is-now { color: inherit; font-weight: 600; }
.hp-portal .hp-steps__n { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--hp-line, #C7CDD6); font-size: 13px; }
.hp-portal .hp-steps__item.is-now .hp-steps__n { background: var(--hp-accent, #0F1A2A); color: var(--hp-accent-ink, #fff); border-color: transparent; }
.hp-portal .hp-steps__item.is-done .hp-steps__n { border-color: currentColor; }
.hp-portal .hp-setup__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 16px; }
.hp-portal .hp-setup__people { margin: 0 0 16px; padding-left: 18px; }
.hp-portal .hp-setup__add { padding: 16px; border: 1px solid var(--hp-line, #C7CDD6); border-radius: 8px; }

/* ACH / wire / check instructions: the block for the chosen payment method shows, and switches as the menu changes. */
.hp-portal .hp-pay-instructions { grid-column: 1 / -1; display: grid; gap: 12px; margin-top: 12px; }
.hp-portal .hp-pay { display: none; border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 12px 14px; }
.hp-portal .hp-pay[data-saved] { display: block; }
.hp-portal .hp-pay h4 { margin: 0 0 6px; font-size: 1em; }
.hp-portal .hp-pay__text { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.hp-portal form:has(select[name="co[preferred_payment]"]) .hp-pay { display: none; }
.hp-portal form:has(select[name="co[preferred_payment]"] option[value="card"]:checked) .hp-pay--card,
.hp-portal form:has(select[name="co[preferred_payment]"] option[value="ach"]:checked) .hp-pay--ach,
.hp-portal form:has(select[name="co[preferred_payment]"] option[value="wire"]:checked) .hp-pay--wire,
.hp-portal form:has(select[name="co[preferred_payment]"] option[value="check"]:checked) .hp-pay--check { display: block; }
/* Billing tab */
.hp-portal .hp-billing__summary { display: flex; flex-wrap: wrap; gap: 12px 32px; margin: 0 0 20px; }
.hp-portal .hp-billing__summary dt { color: var(--hp-muted); font-size: .875em; }
.hp-portal .hp-billing__summary dd { margin: 2px 0 0; font-size: 1.5em; font-weight: 600; font-variant-numeric: tabular-nums; }
.hp-portal .hp-billing__table { width: 100%; border-collapse: collapse; margin: 0 0 24px; }
.hp-portal .hp-billing__table th { text-align: left; font-size: .8125em; color: var(--hp-muted); font-weight: 600; border-bottom: 1px solid var(--hp-line); padding: 8px 8px 8px 0; }
.hp-portal .hp-billing__table td { border-bottom: 1px solid var(--hp-line); padding: 10px 8px 10px 0; font-variant-numeric: tabular-nums; }
.hp-portal .hp-billing__table .num { text-align: right; }
.hp-portal .hp-billing__table tr.is-due td { color: #b91c1c; }
.hp-portal .hp-billing__h { margin: 8px 0 10px; font-size: 1.1em; }
.hp-portal .hp-billing__how { display: grid; gap: 12px; }
.hp-portal .hp-billing__how .hp-pay { display: block; }
.hp-portal .hp-billing__pay { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin: 0 0 16px; }
.hp-portal .hp-billing__back { margin: 0 0 12px; }
@media (max-width: 640px) {
	.hp-portal .hp-billing__table thead { display: none; }
	.hp-portal .hp-billing__table tr { display: block; border-bottom: 1px solid var(--hp-line); padding: 8px 0; }
	.hp-portal .hp-billing__table td { display: flex; justify-content: space-between; border: 0; padding: 3px 0; }
	.hp-portal .hp-billing__table td::before { content: attr(data-label); color: var(--hp-muted); }
}
@media print {
	body * { visibility: hidden !important; }
	.hp-invoice, .hp-invoice * { visibility: visible !important; }
	.hp-invoice { position: absolute; left: 0; top: 0; width: 100%; }
}

/* State / province: the wrapper lets its select or text box sit in the field like any other */
.hp-portal .hp-region { display: contents; }

/* Registrars tab */
.hp-portal .hp-reg-keys { border: 1px solid var(--hp-line); border-radius: var(--hp-radius); padding: 10px 14px 0; margin: 0 0 14px; min-width: 0; }
.hp-portal .hp-reg-keys legend { font-weight: 600; padding: 0 4px; }
.hp-portal .hp-reg-guide { margin: 0 0 12px; } .hp-portal .hp-reg-guide ol { margin: 8px 0 0 20px; padding: 0; } .hp-portal .hp-reg-guide li { margin: 0 0 6px; }
.hp-portal .hp-reg-guide summary, .hp-portal .hp-reg-manage summary { cursor: pointer; font-weight: 500; }
.hp-portal .hp-reg-list .hp-site { flex-wrap: wrap; }
.hp-portal .hp-reg-manage { flex-basis: 100%; margin-top: 6px; }
.hp-portal [data-reg-fields][hidden] { display: none; }

/* Sign-in code page (6 boxes) */
.hp-portal .hp-otp-page { max-width: 420px; padding-top: 8px; }
.hp-portal .hp-otp-page .hp-title { margin-bottom: 6px; }
.hp-portal .hp-otp-page__to { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0 0 20px; overflow-wrap: anywhere; }
.hp-portal .hp-otp-page__to a { color: var(--hp-accent); text-decoration: none; font-weight: 500; }
.hp-portal .hp-otp { display: flex; gap: 10px; margin: 0 0 16px; }
.hp-portal .hp-otp[hidden] { display: none; }
.hp-portal .hp-otp__box { flex: 1 1 0; min-width: 0; max-width: 56px; aspect-ratio: 4 / 5; box-sizing: border-box; padding: 0; text-align: center; font: inherit; font-size: 1.75em; font-weight: 600; border: 1px solid var(--hp-line); border-radius: 10px; background: var(--hp-surface); color: inherit; caret-color: var(--hp-accent); }
.hp-portal .hp-otp__box:focus { outline: none; border-color: var(--hp-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hp-accent) 25%, transparent); }
.hp-portal [data-otp-form].hp-otp-ready .hp-otp-plain { display: none; }
.hp-portal .hp-otp-page__note { font-size: .9375em; }
.hp-portal .hp-otp-page__resend { margin: 4px 0 0; }
.hp-portal .hp-otp-error .hp-otp__box { border-color: #c2410c; }
.hp-portal .hp-otp-page__resend .hp-link-button[disabled] { color: var(--hp-muted); cursor: default; }
.hp-portal [data-otp-expired][hidden] { display: none; }
.hp-portal .hp-otp-page__resend .hp-link-button { border: 0; background: none; padding: 0; box-shadow: none; border-radius: 0; font: inherit; color: var(--hp-accent); cursor: pointer; text-decoration: none; font-weight: 500; }
.hp-portal .hp-otp-page__resend .hp-link-button:hover { text-decoration: underline; }
