/* Account area bundle (FRAMEWORK.md 9): what the box pages (pages/account.py)
   need beyond the vocabulary. Loaded by ui pages of the account area only. */

/* -- Saved-webhook picker (webhook_selector.js) -------------------------- */
/* The script appends the list to <body> and places it under the field. */
.webhook-selector-dropdown {
	position: absolute;
	z-index: var(--z-menu);
	box-sizing: border-box;
	max-block-size: 260px;
	overflow: auto;
	padding: var(--sp-1);
	border: 1px solid var(--border);
	border-radius: var(--radius-sm);
	background: var(--surface-2);
}

.webhook-selector-option {
	display: grid;
	gap: var(--sp-1);
	padding: var(--sp-1) var(--sp-2);
	border-radius: var(--radius-sm);
	cursor: pointer;
}

.webhook-selector-option:is(:hover, [aria-selected="true"]) {
	background: var(--bg);
}

.webhook-selector-option .label {
	font-size: var(--fs-sm);
	font-weight: 600;
}

.webhook-selector-option .meta {
	color: var(--text-muted);
	font-size: var(--fs-xs);
	word-break: break-all;
}

/* -- Profile and bridge (pages/account_profile.py, account_profile_load.py; profile_integrations.js, profile_sessions.js, bridge.js; lane M) -- */
/* Both pages are built from the vocabulary alone; no pr- or br- class is needed. */
/* Sessions: a device name wraps between its words and at its separator,
   never inside a word (the wrapped column's anywhere-break). */
[data-profile-sessions] .c-table .t-wrap,
[data-profile-sessions] .c-table .t-wrap * { overflow-wrap: normal; }
/* Games and Requests: an opponent's name, a username or a webhook's name
   wraps between its words, never inside one (A101). */
:is(#pr-games, [data-profile-requests]) .c-table .t-wrap,
:is(#pr-games, [data-profile-requests]) .c-table .t-wrap * { overflow-wrap: break-word; }
/* A webhook's event keys wrap at their dots, never inside a word (A102). */
[data-linked-integrations] .c-kv__key { overflow-wrap: break-word; }
/* Whole words hold the key's column, so on a phone the URL chip takes the
   line under its key and leaves the columns to the rows under it: the
   value's column is as wide as a button needs, not as wide as the chip. */
@media (max-width: 600px) {
	[data-linked-integrations] .c-kv__val:has(> .minecraft-host-chip) { grid-column: 1 / -1; contain: inline-size; }
}
/* Each integration card is as tall as its own rows, its foot under them (A108). */
[data-linked-integrations] .l-grid { align-items: start; }
/* A game's panel is drawn as the integration cards beside it: their inset
   and title size, under the section's own heading (A112). */
#pr-games .c-panel { padding: var(--sp-3); }
#pr-games .c-panel > .l-head .l-head__title { font-size: var(--fs-base); }
/* "Sent." in the place of Resend (verification, an email change) is no
   taller than the button it replaces, so the rows below stay put (A105). */
#pr-account .c-form--inline > .c-msg { padding-block: 0; }
/* -- end Profile and bridge -- */

/* -- Box pages (account_common.box_page) -- */
/* The form's message line keeps a line's room from the first paint, so a
   refusal or a sent line moves nothing under it (A106). */
.l-page--box .l-page__body > .c-form > .c-msg:empty {
	position: static;
	min-block-size: calc(1.4em + 2 * var(--sp-2) + 2px);
	background: none;
}
/* The line a finished step left (?done=) gives way to the form's own
   answer without moving the form (A114, form_submit.js). */
[data-done-note][data-done-stale] { visibility: hidden; }
