/**
 * Beta Hub — tester area.
 *
 * Everything is scoped under .bh and driven by tokens, so the host theme can't
 * bleed in and a palette change is a one-line edit.
 */

.bh {
	--bh-accent: #4f46e5;
	--bh-accent-dark: #4338ca;
	--bh-accent-soft: #eef2ff;
	--bh-ink: #16181d;
	--bh-ink-2: #5b6070;
	--bh-ink-3: #8b90a0;
	--bh-line: #e5e7eb;
	--bh-surface: #ffffff;
	--bh-bg: #f7f8fa;
	--bh-radius: 14px;
	--bh-shadow: 0 1px 2px rgba(16, 18, 29, .05), 0 8px 24px -12px rgba(16, 18, 29, .12);

	max-width: 780px;
	margin: 0 auto;
	padding: 8px 16px 64px;
	width: 100%;
	color: var(--bh-ink);
	/* Declared here on purpose: inheriting the theme's font is what makes this
	   look like unstyled HTML on a theme that sets none. */
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* Every screen sits in the middle of the viewport, on any size.
   min-height (never height): a long screen just grows past it, so a thread with
   many comments is never clipped off the top. */
.bh--center {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 100dvh;
	padding-top: 32px;
	padding-bottom: 32px;
}

.bh--center > * {
	width: 100%;
	margin-top: 0;
	margin-bottom: 0;
}

/* Short screens read better with the text centred over the centred block. */
.bh--center .bh-head {
	text-align: center;
}

.bh--center .bh-head--app {
	text-align: left;
}

.bh--center .bh-head__logo {
	justify-content: center;
}

/* Discount the wp-admin bar so "centred" is actually centred for logged-in users. */
body.admin-bar .bh--center {
	min-height: calc(100dvh - 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .bh--center {
		min-height: calc(100dvh - 46px);
	}
}

@supports not (min-height: 100dvh) {
	.bh--center { min-height: 100vh; }
	body.admin-bar .bh--center { min-height: calc(100vh - 32px); }
}

/* The apps grid gets the room it needs; text screens stay narrow to read well. */
.bh--wide {
	max-width: 1180px;
}

.bh *,
.bh *::before,
.bh *::after {
	box-sizing: border-box;
}

/* ------------------------------------------------------------------ Header */

.bh-head {
	margin-bottom: 24px;
}

.bh-head h1 {
	margin: 0;
	font-size: 30px;
	line-height: 1.2;
	letter-spacing: -.02em;
	font-weight: 700;
	color: var(--bh-ink);
}

.bh-head p {
	margin: 6px 0 0;
	color: var(--bh-ink-2);
	font-size: 15px;
}

.bh-back {
	display: inline-block;
	margin-bottom: 10px;
	color: var(--bh-ink-2);
	font-size: 14px;
	font-weight: 500;
	text-decoration: none;
}

.bh-back:hover {
	color: var(--bh-accent);
}

.bh-meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 12px;
}

.bh-edit {
	margin-left: auto;
	color: var(--bh-accent);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}

.bh-edit:hover {
	text-decoration: underline;
}

/* ------------------------------------------------------------------ Flash */

.bh-flash {
	padding: 12px 16px;
	margin-bottom: 20px;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 500;
}

.bh-flash--ok {
	background: #e8f6ee;
	color: #0f5a30;
}

.bh-flash--error {
	background: #fdecec;
	color: #8c2020;
}

/* ------------------------------------------------------------------- Gate */

.bh-gate {
	max-width: 420px;
	margin: 40px auto;
	padding: 40px 32px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 18px;
	box-shadow: var(--bh-shadow);
	text-align: center;
}

.bh-gate__icon {
	width: 56px;
	height: 56px;
	margin: 0 auto 18px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
}

.bh-gate__icon svg {
	width: 28px;
	height: 28px;
}

.bh-gate h2 {
	margin: 0 0 8px;
	font-size: 22px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.bh-gate p {
	margin: 0 0 24px;
	color: var(--bh-ink-2);
	font-size: 15px;
}

.bh-gate__message {
	margin: 0 auto 24px;
	max-width: 590px;
}

.bh-gate__message p {
	margin: 0 0 12px;
	line-height: 1.65;
}

.bh-gate__message p:last-child {
	margin-bottom: 0;
}

.bh-gate__actions {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 12px;
}

.bh-gate--login,
.bh-gate--pending {
	text-align: left;
}

.bh-gate__eyebrow,
.bh-gate__status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 750;
	letter-spacing: .1em;
	text-transform: uppercase;
}

.bh-gate__status span {
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--bh-green, #12ad78);
	box-shadow: 0 0 0 5px rgba(18, 173, 120, .12);
}

.bh-gate--login h2,
.bh-gate--pending h2 {
	margin-bottom: 12px;
	font-size: clamp(28px, 4vw, 42px);
	line-height: 1.06;
	text-wrap: balance;
}

.bh-gate p.bh-gate__lead {
	max-width: 650px;
	margin: 0 0 24px;
	font-size: 17px;
	line-height: 1.65;
	text-wrap: pretty;
}

.bh-gate__programs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.bh-gate__program {
	display: grid;
	grid-template-columns: 44px minmax(0, 1fr);
	align-items: center;
	gap: 13px;
	min-width: 0;
	padding: 16px;
	border: 1px solid var(--bh-line);
	border-radius: 13px;
	background: #f7faff;
}

.bh-gate__program--affiliate {
	border-color: #f2dfad;
	background: #fffaf0;
}

.bh-gate__program-icon {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	border-radius: 11px;
	background: var(--bh-accent);
	color: #fff;
}

.bh-gate__program--affiliate .bh-gate__program-icon {
	background: var(--bh-yellow, #f8b400);
	color: #312000;
}

.bh-gate__program-icon svg {
	width: 23px;
	height: 23px;
}

.bh-gate__program strong,
.bh-gate__program small {
	display: block;
}

.bh-gate__program strong {
	margin-bottom: 2px;
	font-size: 15px;
}

.bh-gate__program small {
	color: var(--bh-ink-2);
	font-size: 12px;
	line-height: 1.45;
}

.bh-gate__account-note {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 6px 10px;
	margin-bottom: 18px;
	padding: 14px 16px;
	border-left: 3px solid var(--bh-accent);
	border-radius: 5px 11px 11px 5px;
	background: var(--bh-accent-soft);
	font-size: 13px;
	line-height: 1.55;
}

.bh-gate__account-note strong {
	color: var(--bh-accent-dark);
}

.bh-gate--login .bh-google,
.bh-gate--login > .bh-btn {
	justify-content: center;
	width: 100%;
	min-height: 50px;
}

.bh-gate p.bh-gate__after-login {
	margin: 13px auto 0;
	color: var(--bh-ink-3);
	font-size: 12px;
	line-height: 1.5;
	text-align: center;
}

.bh-gate__steps {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 16px;
}

.bh-gate__step {
	position: relative;
	min-width: 0;
	min-height: 170px;
	overflow: hidden;
	padding: 18px;
	border: 1px solid #d9e4f7;
	border-radius: 13px;
	background: #f5f8ff;
}

.bh-gate__step--apps {
	border-color: #f2dfad;
	background: #fffaf0;
}

.bh-gate__step--contact {
	border-color: #cce9df;
	background: #f2fbf7;
}

.bh-gate__step-number {
	display: block;
	margin-bottom: 20px;
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: .08em;
}

.bh-gate__step--apps .bh-gate__step-number {
	color: #9a6500;
}

.bh-gate__step--contact .bh-gate__step-number {
	color: #087553;
}

.bh-gate__step strong {
	display: block;
	margin-bottom: 7px;
	font-size: 15px;
}

.bh-gate__step p {
	margin: 0;
	font-size: 12px;
	line-height: 1.55;
	text-wrap: pretty;
}

.bh-gate__profile-callout {
	display: grid;
	grid-template-columns: 46px minmax(0, 1fr) auto;
	align-items: center;
	gap: 14px;
	margin-bottom: 22px;
	padding: 16px;
	border-radius: 13px;
	background: var(--bh-ink);
	color: #fff;
}

.bh-gate__profile-icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 11px;
	background: rgba(255, 255, 255, .1);
	color: #fff;
}

.bh-gate__profile-icon svg {
	width: 24px;
	height: 24px;
}

.bh-gate__profile-copy strong,
.bh-gate__profile-copy small {
	display: block;
}

.bh-gate__profile-copy strong {
	margin-bottom: 2px;
	font-size: 15px;
}

.bh-gate__profile-copy small {
	color: rgba(255, 255, 255, .72);
	font-size: 12px;
	line-height: 1.45;
}

.bh-gate__profile-callout .bh-btn {
	flex: none;
	margin: 0;
	background: #fff;
	color: var(--bh-accent-dark);
	white-space: nowrap;
}

.bh-gate__profile-callout .bh-btn:hover {
	background: var(--bh-accent-soft);
	color: var(--bh-accent-dark);
}

.bh-gate__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding-top: 2px;
}

.bh-gate__footer .bh-gate__who {
	margin: 0;
}

.bh-gate__footer .bh-gate__actions {
	justify-content: flex-end;
}

.bh-google {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 12px 22px;
	background: var(--bh-surface);
	border: 1px solid #d4d6dd;
	border-radius: 10px;
	color: #2b2f38;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.bh-google:hover {
	border-color: #b9bcc6;
	box-shadow: 0 2px 8px rgba(16, 18, 29, .08);
	color: #2b2f38;
}

.bh-google svg {
	width: 18px;
	height: 18px;
}

/* ------------------------------------------------------------------ Cards */

/* Flex, not grid: with two apps the cards stay centred instead of hugging
   the left edge of a three-column track. */
.bh-grid {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 16px;
}

.bh-card {
	/* grow to fill the row, but never wider than this — four apps on a
	   desktop should sit on one line, not wrap 3 + 1. */
	flex: 1 1 186px;
	max-width: 264px;
}

/* One shape for every app: logo on top, name, then description. */
.bh-card {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 4px;
	padding: 26px 20px 22px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: var(--bh-radius);
	text-decoration: none;
	color: inherit;
	box-shadow: 0 1px 2px rgba(16, 18, 29, .04);
	transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

.bh-card:hover {
	transform: translateY(-2px);
	border-color: #d6d9e2;
	box-shadow: var(--bh-shadow);
	color: inherit;
}

.bh-card__logo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	margin-bottom: 14px;
	padding: 0 4px;
}

/* contain, never crop: app logos are rarely square. */
.bh-card__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.bh-card__letter {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 56px;
	height: 56px;
	border-radius: 16px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
	font-size: 24px;
	font-weight: 700;
	text-transform: uppercase;
}

.bh-card__name {
	font-size: 16px;
	font-weight: 650;
	line-height: 1.3;
	letter-spacing: -.01em;
	color: var(--bh-ink);
}

.bh-card__desc {
	color: var(--bh-ink-2);
	font-size: 13px;
	line-height: 1.5;
	overflow: hidden;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

.bh-card__count {
	position: absolute;
	top: 12px;
	right: 12px;
	min-width: 22px;
	height: 22px;
	padding: 0 7px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 999px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 700;
}

.bh-head__logo {
	display: flex;
	align-items: center;
	height: 54px;
}

.bh-head__logo img {
	max-width: min(100%, 340px);
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

/* ------------------------------------------------------------------- Tabs */

.bh-tabs {
	display: flex;
	gap: 4px;
	margin-bottom: 22px;
	padding: 4px;
	background: var(--bh-bg);
	border-radius: 12px;
}

.bh-tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 7px;
	padding: 10px 14px;
	border-radius: 9px;
	color: var(--bh-ink-2);
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.bh-tab:hover {
	color: var(--bh-ink);
}

.bh-tab.is-active {
	background: var(--bh-surface);
	color: var(--bh-ink);
	box-shadow: 0 1px 3px rgba(16, 18, 29, .1);
}

.bh-pill {
	min-width: 20px;
	padding: 1px 7px;
	border-radius: 999px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 700;
}

/* ------------------------------------------------------------------- Form */

.bh-form {
	padding: 26px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: var(--bh-radius);
	box-shadow: var(--bh-shadow);
}

.bh-field {
	margin-bottom: 20px;
}

.bh-field label {
	display: block;
	margin-bottom: 7px;
	font-size: 14px;
	font-weight: 650;
	color: var(--bh-ink);
}

.bh-opt {
	margin-left: 4px;
	color: var(--bh-ink-3);
	font-size: 13px;
	font-weight: 500;
}

.bh-form input[type="text"],
.bh-form textarea,
.bh-form select,
.bh-reply textarea {
	width: 100%;
	padding: 12px 14px;
	background: var(--bh-surface);
	border: 1px solid #d9dbe3;
	border-radius: 10px;
	color: var(--bh-ink);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.bh-form input[type="text"]::placeholder,
.bh-form textarea::placeholder,
.bh-reply textarea::placeholder {
	color: var(--bh-ink-3);
}

.bh-form input[type="text"]:focus,
.bh-form textarea:focus,
.bh-form select:focus,
.bh-reply textarea:focus {
	outline: none;
	border-color: var(--bh-accent);
	box-shadow: 0 0 0 3px rgba(79, 70, 229, .14);
}

.bh-form textarea,
.bh-reply textarea {
	resize: vertical;
	min-height: 120px;
}

.bh-form select {
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%235b6070' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round' d='m1 1.5 5 5 5-5'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	padding-right: 38px;
}

.bh-row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.bh-hint {
	margin: 14px 0 0;
	color: var(--bh-ink-3);
	font-size: 13px;
	text-align: center;
}

/* ----------------------------------------------------------------- Upload */

.bh-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 28px 20px;
	border: 1.5px dashed #cbd0dd;
	border-radius: 12px;
	background: #fbfbfd;
	color: var(--bh-ink-2);
	font-size: 14px;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s ease, background .15s ease, color .15s ease;
}

.bh-drop svg {
	width: 24px;
	height: 24px;
	color: var(--bh-ink-3);
}

.bh-drop:hover,
.bh-drop:focus-visible,
.bh-drop.is-over {
	border-color: var(--bh-accent);
	background: var(--bh-accent-soft);
	color: var(--bh-accent-dark);
	outline: none;
}

.bh-drop.is-over svg,
.bh-drop:hover svg {
	color: var(--bh-accent);
}

.bh-thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 12px;
}

.bh-thumbs:empty {
	margin-top: 0;
}

.bh-thumb {
	position: relative;
	width: 92px;
	height: 92px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--bh-line);
	background: var(--bh-bg);
}

.bh-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-thumb__video,
.bh-thumb__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #1f2330;
	color: #fff;
	font-size: 20px;
}

.bh-thumb__loading {
	background: var(--bh-bg);
	color: var(--bh-ink-3);
	font-size: 12px;
	font-weight: 600;
}

.bh-thumb__x {
	position: absolute;
	top: 4px;
	right: 4px;
	width: 22px;
	height: 22px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: rgba(16, 18, 29, .68);
	color: #fff;
	font-size: 16px;
	line-height: 1;
	cursor: pointer;
}

.bh-thumb__x:hover {
	background: #c0392b;
}

/* ---------------------------------------------------------------- Buttons */

.bh-actions {
	display: flex;
	justify-content: flex-end;
	gap: 10px;
	margin-top: 24px;
}

.bh-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 26px;
	border: 0;
	border-radius: 10px;
	background: var(--bh-accent);
	color: #fff;
	font-family: inherit;
	font-size: 15px;
	font-weight: 650;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease, transform .1s ease;
}

.bh-btn:hover {
	background: var(--bh-accent-dark);
	color: #fff;
}

.bh-btn:active {
	transform: translateY(1px);
}

.bh-btn[disabled] {
	opacity: .6;
	cursor: not-allowed;
}

.bh-btn--ghost {
	background: transparent;
	color: var(--bh-ink-2);
	border: 1px solid #d9dbe3;
}

.bh-btn--ghost:hover {
	background: var(--bh-bg);
	color: var(--bh-ink);
}

/* ------------------------------------------------------------------- List */

.bh-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.bh-list li {
	margin: 0;
}

.bh-list a {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 16px 18px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.bh-list a:hover {
	border-color: #d0d4e0;
	box-shadow: 0 2px 10px rgba(16, 18, 29, .07);
	color: inherit;
}

.bh-list__main {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
}

.bh-list__main strong {
	font-size: 15px;
	font-weight: 650;
	line-height: 1.35;
}

.bh-list__main small {
	margin-top: 3px;
	color: var(--bh-ink-3);
	font-size: 13px;
}

/* ----------------------------------------------------------------- Status */

.bh-status {
	flex: none;
	padding: 4px 11px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .01em;
	white-space: nowrap;
}

.bh-status--blue {
	background: #e6efff;
	color: #1e40af;
}

.bh-status--amber {
	background: #fdf1dd;
	color: #92610b;
}

.bh-status--green {
	background: #e3f5eb;
	color: #10633a;
}

.bh-status--gray {
	background: #eef0f3;
	color: #545a68;
}

.bh-tag {
	padding: 4px 11px;
	border-radius: 999px;
	background: var(--bh-bg);
	color: var(--bh-ink-2);
	font-size: 12px;
	font-weight: 600;
}

.bh-badge {
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .03em;
}

/* ------------------------------------------------------------------- Post */

.bh-post {
	padding: 24px 26px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: var(--bh-radius);
	box-shadow: var(--bh-shadow);
}

.bh-post__head {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 16px;
	margin-bottom: 16px;
	border-bottom: 1px solid var(--bh-line);
}

.bh-post__head img {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	flex: none;
}

.bh-post__head strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
	line-height: 1.3;
}

.bh-post__head small {
	color: var(--bh-ink-3);
	font-size: 13px;
}

.bh-post__body p {
	margin: 0 0 12px;
	font-size: 16px;
	line-height: 1.65;
}

.bh-post__body p:last-child {
	margin-bottom: 0;
}

.bh-media {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 10px;
	margin-top: 18px;
}

.bh-media img,
.bh-media video {
	width: 100%;
	border-radius: 10px;
	display: block;
	border: 1px solid var(--bh-line);
}

.bh-device {
	margin-top: 18px;
	padding-top: 14px;
	border-top: 1px solid var(--bh-line);
	font-size: 13px;
}

.bh-device summary {
	cursor: pointer;
	color: var(--bh-ink-3);
	font-weight: 600;
	list-style: none;
}

.bh-device summary::-webkit-details-marker {
	display: none;
}

.bh-device summary::before {
	content: "+ ";
}

.bh-device[open] summary::before {
	content: "\2212 ";
}

.bh-device dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 14px;
	margin: 12px 0 0;
	color: var(--bh-ink-2);
}

.bh-device dt {
	font-weight: 650;
	color: var(--bh-ink-3);
}

.bh-device dd {
	margin: 0;
	word-break: break-word;
}

/* ----------------------------------------------------------------- Thread */

.bh-thread {
	margin-top: 32px;
}

.bh-thread h2 {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.bh-reply {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 12px;
	padding: 18px;
	margin-bottom: 22px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 12px;
}

.bh-reply textarea {
	min-height: 84px;
}

.bh-comments {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.bh-comments li {
	display: flex;
	gap: 12px;
	padding: 16px 18px;
	margin: 0;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 12px;
}

.bh-comments li.is-staff {
	background: var(--bh-accent-soft);
	border-color: #d9dcfa;
}

.bh-comments img {
	width: 36px;
	height: 36px;
	border-radius: 50%;
	flex: none;
}

.bh-comments__head {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 4px;
}

.bh-comments__head strong {
	font-size: 14px;
	font-weight: 650;
}

.bh-comments__head small {
	color: var(--bh-ink-3);
	font-size: 12px;
}

.bh-comments p {
	margin: 0 0 8px;
	font-size: 15px;
	line-height: 1.6;
}

.bh-comments p:last-child {
	margin-bottom: 0;
}

/* ------------------------------------------------------------------ Blank */

/* First-run state. Someone landing here needs a way forward, not a dead end. */
.bh-blank {
	max-width: 460px;
	margin: 24px auto;
	padding: 44px 34px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 18px;
	box-shadow: var(--bh-shadow);
	text-align: center;
}

.bh-blank__icon {
	width: 58px;
	height: 58px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 16px;
	background: var(--bh-accent-soft);
	color: var(--bh-accent);
}

.bh-blank__icon svg {
	width: 28px;
	height: 28px;
}

.bh-blank h2 {
	margin: 0 0 10px;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: -.01em;
	color: var(--bh-ink);
}

.bh-blank p {
	margin: 0 0 22px;
	color: var(--bh-ink-2);
	font-size: 15px;
	line-height: 1.6;
}

/* Block-level so it can't share a line box with the divider that follows. */
.bh-blank .bh-btn {
	display: flex;
	width: fit-content;
	margin: 0 auto;
}

.bh-blank__hint {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--bh-line);
	color: var(--bh-ink-3);
	font-size: 13px;
}

/* ------------------------------------------------------------------ Empty */

.bh-empty {
	padding: 44px 24px;
	background: var(--bh-surface);
	border: 1px dashed #d5d9e3;
	border-radius: var(--bh-radius);
	color: var(--bh-ink-2);
	text-align: center;
	font-size: 15px;
}

/* ----------------------------------------------------------------- Mobile */

@media (max-width: 640px) {
	.bh {
		font-size: 15px;
	}

	.bh-head h1 {
		font-size: 25px;
	}

	.bh-form,
	.bh-post {
		padding: 20px 18px;
		border-radius: 12px;
	}

	.bh-row {
		grid-template-columns: 1fr;
		gap: 0;
	}

	.bh-actions {
		flex-direction: column-reverse;
	}

	.bh-btn {
		width: 100%;
		padding: 14px 20px;
	}

	.bh-grid {
		gap: 12px;
	}

	.bh-card {
		flex: 1 1 calc(50% - 6px);
		max-width: none;
		padding: 22px 14px 18px;
	}

	.bh-list a {
		align-items: flex-start;
		flex-direction: column;
		gap: 8px;
	}

	.bh-gate {
		padding: 32px 22px;
	}

	.bh-edit {
		margin-left: 0;
	}
}

.bh-gate__who {
	margin: -12px 0 22px;
	padding: 8px 14px;
	display: inline-block;
	border-radius: 8px;
	background: var(--bh-bg);
	color: var(--bh-ink-2);
	font-size: 14px;
	font-weight: 600;
	word-break: break-all;
}

.bh-gate .bh-btn {
	display: flex;
	width: fit-content;
	margin: 0 auto;
}

.bh-gate__actions .bh-btn {
	margin: 0;
}

@media (max-width: 560px) {
	.bh-gate--login,
	.bh-gate--pending {
		padding: 28px 20px;
	}

	.bh-gate__programs,
	.bh-gate__steps {
		grid-template-columns: 1fr;
	}

	.bh-gate__account-note {
		grid-template-columns: 1fr;
	}

	.bh-gate__step {
		min-height: 0;
	}

	.bh-gate__step-number {
		margin-bottom: 10px;
	}

	.bh-gate__profile-callout {
		grid-template-columns: 42px minmax(0, 1fr);
	}

	.bh-gate__profile-callout .bh-btn {
		grid-column: 1 / -1;
		justify-content: center;
		width: 100%;
	}

	.bh-gate__footer {
		align-items: stretch;
		flex-direction: column;
	}

	.bh-gate__footer .bh-gate__who {
		align-self: flex-start;
	}

	.bh-gate__actions {
		align-items: stretch;
		flex-direction: column;
	}

	.bh-gate__actions .bh-btn {
		justify-content: center;
		width: 100%;
	}
}

/* ---------------------------------------------------------------- Session */

.bh-session {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	margin-top: 34px;
	padding-top: 18px;
	border-top: 1px solid var(--bh-line);
	color: var(--bh-ink-3);
	font-size: 13px;
}

.bh-session__me {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 6px 10px 6px 6px;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: background .15s ease;
}

.bh-session__me:hover {
	background: var(--bh-bg);
	color: inherit;
}

/* Squircle, matching the app icons sitting right above it. */
.bh-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
	width: 40px;
	height: 40px;
	border-radius: 12px;
	overflow: hidden;
	background: var(--bh-accent-soft);
}

.bh-avatar img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.bh-avatar__letter {
	color: var(--bh-accent);
	font-size: 17px;
	font-weight: 700;
	text-transform: uppercase;
}

.bh-avatar--big {
	width: 92px;
	height: 92px;
	border-radius: 24px;
}

.bh-avatar--big .bh-avatar__letter {
	font-size: 36px;
}

.bh-session__who {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	text-align: left;
	overflow: hidden;
}

.bh-session__who strong {
	color: var(--bh-ink);
	font-size: 14px;
	font-weight: 650;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.bh-session__who small {
	color: var(--bh-accent);
	font-size: 12px;
	font-weight: 600;
}

.bh-session__out {
	color: var(--bh-ink-2);
	font-weight: 600;
	text-decoration: none;
	padding: 5px 12px;
	border: 1px solid var(--bh-line);
	border-radius: 8px;
	transition: border-color .15s ease, color .15s ease, background .15s ease;
}

.bh-session__out:hover {
	border-color: #d0d4e0;
	background: var(--bh-bg);
	color: var(--bh-ink);
}

/* ----------------------------------------------------------------- Profile */

.bh-photo {
	display: flex;
	align-items: center;
	gap: 20px;
	padding-bottom: 22px;
	margin-bottom: 22px;
	border-bottom: 1px solid var(--bh-line);
}

.bh-photo__actions {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 8px;
}

.bh-photo__actions small {
	color: var(--bh-ink-3);
	font-size: 12px;
}

.bh-photo .bh-btn {
	padding: 9px 18px;
	font-size: 14px;
}

.bh-link-danger {
	padding: 0;
	border: 0;
	background: none;
	color: #b23b3b;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: underline;
}

.bh-fieldset {
	margin: 4px 0 0;
	padding: 18px 18px 4px;
	border: 1px solid var(--bh-line);
	border-radius: 12px;
	background: #fcfcfe;
}

.bh-fieldset legend {
	padding: 0 8px;
	font-size: 14px;
	font-weight: 650;
	color: var(--bh-ink);
}

.bh-fieldset__note {
	margin: 0 0 14px;
	color: var(--bh-ink-3);
	font-size: 13px;
}

/* ---------------------------------------------------------------- Payments */

.bh-payments {
	margin-top: 32px;
}

.bh-payments h2 {
	margin: 0 0 14px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}

.bh-total {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	padding: 16px 20px;
	margin-bottom: 12px;
	border-radius: 12px;
	background: var(--bh-accent-soft);
}

.bh-total span {
	color: var(--bh-accent-dark);
	font-size: 14px;
	font-weight: 600;
}

.bh-total strong {
	color: var(--bh-accent-dark);
	font-size: 24px;
	font-weight: 700;
	letter-spacing: -.02em;
}

.bh-payments__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.bh-payments__list li {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin: 0;
	padding: 14px 18px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: 12px;
}

.bh-payments__main {
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.bh-payments__main strong {
	font-size: 16px;
	font-weight: 650;
}

.bh-payments__main small {
	margin-top: 2px;
	color: var(--bh-ink-2);
	font-size: 13px;
}

.bh-payments__date {
	flex: none;
	color: var(--bh-ink-3);
	font-size: 13px;
	font-weight: 600;
}

@media (max-width: 640px) {
	.bh-photo {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.bh-photo__actions {
		align-items: center;
	}
}

/* -------------------------------------------------------------- Promo link */

.bh-promo-link {
	padding: 20px 22px;
	margin-bottom: 22px;
	background: var(--bh-surface);
	border: 1px solid var(--bh-line);
	border-radius: var(--bh-radius);
	box-shadow: var(--bh-shadow);
}

.bh-promo-link strong {
	display: block;
	font-size: 15px;
	font-weight: 650;
}

.bh-promo-link p {
	margin: 4px 0 12px;
	color: var(--bh-ink-2);
	font-size: 14px;
}

.bh-promo-link__row {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.bh-promo-link__row code {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 14px;
	background: var(--bh-bg);
	border-radius: 8px;
	font-size: 14px;
	color: var(--bh-ink);
	word-break: break-all;
	user-select: all;
}

.bh-promo-link .bh-flash {
	margin: 10px 0 0;
}

.bh-form__title {
	margin: 0 0 18px;
	font-size: 17px;
	font-weight: 700;
	letter-spacing: -.01em;
}
