:root {
	color-scheme: dark;
	font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
	background: #111114;
	color: #f5f5f7;
	--panel: #1c1c21;
	--line: #ffffff16;
	--muted: #a2a2ac;
	--dim: #8e8e99;
	/* Shared with the Bjango portal; purple is reserved for the card artwork. */
	--accent: #4389fe;
	--link: #79a8ff;
	--link-hover: #a3c3ff;
	--accent-border: #4389fe4d;
	--accent-border-soft: #4389fe26;
	--accent-border-strong: #4389fe80;
	--accent-fill: #4389fe1a;
	--accent-fill-faint: #4389fe0d;
	--accent-copy: #b7cdf7;
	--primary-fill: linear-gradient(180deg, #4389fe, #496def);
	--primary-fill-hover: linear-gradient(180deg, #5293ff, #5478f5);
	--green: #8dcfb3;
	--amber: #dfbc7d;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-size: 13px; line-height: 1.5; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button:disabled:not(.is-loading) { opacity: .42; }
button:focus-visible, a.primary-button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--link);
	outline-offset: 3px;
}
.hidden { display: none !important; }
.visually-hidden {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}

.site-header, .page { width: min(800px, calc(100% - 40px)); margin: 0 auto; }
.site-header { padding: 24px 0 22px; }
.header-main { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 27px; font-weight: 740; line-height: 1.3; letter-spacing: -.045em; }
.page { margin-bottom: 40px; }
/* The signed-out homepage owns its layout; restore the normal header for every other view. */
body.showing-teams-home > .site-header { padding:0; }
body.showing-teams-home > .site-header .header-main { display:none; }
body.showing-teams-home > .page { width:100%; margin-bottom:0; }
.account-menu { position: relative; min-width: 0; }
.account-menu-button {
	display: flex; align-items: center; gap: 8px; max-width: 100%;
	padding: 6px 7px 6px 10px; border: 1px solid transparent; border-radius: 8px;
	background: none; color: var(--muted); font-size: 11px; line-height: 20px;
}
#account-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 230px; }
.account-chevron { display: block; flex: 0 0 12px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.account-menu-button:hover, .account-menu-button[aria-expanded="true"] { background: #ffffff06; border-color: var(--line); }
.account-dropdown {
	position: absolute; right: 0; top: calc(100% + 8px); z-index: 20;
	width: 248px; max-width: calc(100vw - 28px); padding: 7px;
	border: 1px solid #ffffff23; border-radius: 12px; background: #25252c; box-shadow: 0 12px 40px #0007;
}
.account-details { display: grid; gap: 3px; padding: 9px 9px 12px; margin-bottom: 5px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-details strong { font-size: 12px; font-weight: 550; }
.account-details span { font-size: 11px; color: var(--muted); }
.account-dropdown button { width: 100%; padding: 9px; text-align: left; border: 0; border-radius: 6px; background: none; font-size: 12px; }
.account-dropdown button:hover { background: var(--accent-fill-faint); }
.staging-banner { margin-top: 15px; padding: 9px 12px; border: 1px solid #d8b87835; border-radius: 8px; color: #dfc28f; background: #d8b8780a; font-size: 11px; }

.center-view { min-height: 58vh; display: grid; place-items: center; }
.supporting-view { width: min(720px, 100%); margin: 48px auto 0; }
.supporting-card { display: grid; grid-template-columns: 33% minmax(0, 1fr); border: 1px solid #ffffff21; border-radius: 16px; overflow: hidden; background: var(--panel); }
.supporting-identity { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 330px; padding: 26px; overflow: hidden; }
.supporting-identity .organization-art { width: 245px; height: 245px; top: -25px; right: -55px; }
.supporting-identity .eyebrow { margin-bottom: 8px; }
.supporting-name { font-size: 22px; line-height: 1.2; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.supporting-email { margin-top: 8px; color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.supporting-body { min-width: 0; padding: 30px; }
.supporting-body h1 { margin: 0 0 12px; font-size: 25px; line-height: 1.2; font-weight: 630; letter-spacing: -.035em; }
.supporting-body p { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.supporting-body .field { margin: 22px 0; }
.supporting-body .field input { min-height: 40px; }
.supporting-body .primary-button, .supporting-body .secondary-button { min-height: 36px; padding: 8px 13px; }
.supporting-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); margin-top: 23px; padding-top: 18px; }
.create-organization-actions { justify-content: flex-end; border: 0; margin-top: 24px; padding-top: 0; }
.sign-in-card { width: min(640px, 100%); margin: 0 auto; grid-template-columns: 37% minmax(0, 1fr); }
.sign-in-card .supporting-identity { min-height: 306px; }
.sign-in-card .supporting-name { font-size: 32px; letter-spacing: -.045em; }
.sign-in-card .supporting-body { display: flex; flex-direction: column; justify-content: center; padding: 34px; }
.sign-in-card .primary-button { margin-top: 9px; }
.member-welcome-card .supporting-identity { min-height: 430px; }
.member-organizations-label { margin: 20px 0 10px; font-size: 11px; color: var(--muted); }
.member-organizations { display: grid; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; }
.member-organizations li { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 13px 14px; border: 1px solid #ffffff13; border-radius: 9px; background: #ffffff04; }
.member-organizations strong { min-width: 0; font-size: 12px; font-weight: 560; line-height: 1.45; overflow-wrap: anywhere; }
.member-organizations .tag { flex-shrink: 0; }
.member-footer { margin-top: 23px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.member-back { margin-top: 18px; font-size: 12px; }
.spinner { width: 24px; height: 24px; border: 2px solid #ffffff30; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.organization-summary { display: grid; grid-template-columns: 32% minmax(0, 1fr); min-height: 232px; border: 1px solid #ffffff21; border-radius: 16px; overflow: hidden; background: var(--panel); }
.organization-summary-main { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; padding: 22px; overflow: hidden; }
.organization-summary-main, .member-sheet-identity, .supporting-identity { background: radial-gradient(ellipse at 15% 0%, #3c356a66, transparent 75%), linear-gradient(145deg, #25223e, #161823 85%); }
.organization-summary-main::after, .member-sheet-identity::after, .supporting-identity::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(180deg, #17182500 25%, #16172280 62%, #151622e8 100%); pointer-events: none; }
.organization-art { position: absolute; z-index: -2; top: -28px; right: -53px; width: 230px; height: 230px; background: url("../images/skala-beachball.svg") center / contain no-repeat; pointer-events: none; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.organization-identity { min-width: 0; }
.organization-identity > .eyebrow { margin-bottom: 5px; }
.organization-switcher-button { display: flex; align-items: center; gap: 8px; width: 100%; min-width: 0; padding: 0; border: 0; border-radius: 4px; background: none; text-align: left; }
.organization-name { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 21px; font-weight: 620; letter-spacing: -.045em; line-height: 1.3; }
.organization-switcher-icon { display: grid; place-items: center; flex: 0 0 14px; height: 20px; color: var(--muted); }
.organization-switcher-icon::before { content: ""; width: 5px; height: 5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-1.5px) rotate(45deg); }
.organization-switcher-button:hover { color: var(--link-hover); }
#edit-organization-button { display: inline-block; margin-top: 7px; font-size: 11px; }
.organization-meta { margin-top: 8px; font-size: 10px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.organization-summaries { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.summary-panel { position: relative; display: flex; flex-direction: column; align-items: stretch; min-width: 0; padding: 44px 22px 30px; border: 0; background: none; text-align: left; }
.summary-panel:hover:not(:disabled) { background: var(--accent-fill-faint); }
.summary-panel:focus-visible { outline-offset: -5px; border-radius: 7px; }
.summary-panel > .eyebrow { margin-bottom: 12px; }
.summary-seat-value { display: flex; align-items: baseline; gap: 6px; line-height: 1.2; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.summary-seat-value strong { font-size: 32px; font-weight: 560; }
.summary-seat-value > span { font-size: 19px; color: var(--muted); }
.seat-meter { display: block; height: 5px; width: 100%; margin-top: 12px; border-radius: 4px; background: #ffffff13; overflow: hidden; }
.seat-meter > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); }
.seat-meter.at-capacity > span { background: var(--amber); }
.summary-secondary { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.summary-secondary.at-capacity { color: var(--amber); }
.billing-summary::before, .members-summary::before { content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 1px; background: var(--line); }
.summary-primary { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 23px; font-weight: 550; line-height: 1.35; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.summary-primary .currency { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: 0; }
.summary-primary .amount { font-size: 25px; font-weight: 550; white-space: nowrap; }
.summary-primary.summary-message { font-size: 18px; }
.billing-summary .summary-secondary { margin-top: 6px; }

.section-tabs { display: flex; align-items: center; gap: 23px; margin: 19px 0; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.section-tab { position: relative; flex-shrink: 0; padding: 0 0 12px; border: 0; background: none; color: #9898a2; font-size: 12px; font-weight: 550; }
.section-tab:hover, .section-tab.active { color: #f5f5f7; }
.section-tab.active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--accent); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; }
.section-heading h2 { margin: 0 0 3px; font-size: 17px; font-weight: 620; letter-spacing: -.025em; line-height: 1.3; }
.section-heading .muted { font-size: 12px; }
.section-heading-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.muted { color: var(--muted); }
.link-button { padding: 0; border: 0; background: none; color: var(--link); font-size: 12px; }
.link-button:hover { color: var(--link-hover); }
.primary-button, .secondary-button, .danger-button, .compact-button, .pagination-button, .refresh-button { position: relative; }
.primary-button, .secondary-button, .danger-button, .compact-button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; padding: 7px 12px; border: 1px solid #ffffff20; border-radius: 8px; font-size: 12px; line-height: 18px; font-weight: 550; white-space: nowrap; }
.primary-button { color: white; background: var(--primary-fill); border-color: var(--accent-border); box-shadow: inset 0 1px #ffffff10; text-decoration: none; }
.secondary-button, .compact-button { background: #ffffff08; }
.danger-button { background: #dd71850d; border-color: #dd718525; color: #ec9d9d; }
.primary-button:hover:not(:disabled) { background: var(--primary-fill-hover); }
.secondary-button:hover:not(:disabled), .danger-button:hover:not(:disabled), .compact-button:hover:not(:disabled) { filter: brightness(1.1); }
.compact-button { min-height: 28px; padding: 4px 9px; font-size: 11px; }
.button-wide, .full-button { width: 100%; }
.refresh-button { min-width: 48px; min-height: 28px; font-size: 11px; }
.is-loading { color: transparent !important; pointer-events: none; }
.is-loading::after { content: ""; position: absolute; left: calc(50% - 7px); top: calc(50% - 7px); width: 12px; height: 12px; border: 2px solid #ffffff44; border-top-color: white; border-radius: 50%; animation: spin .7s linear infinite; }

.field { display: grid; gap: 7px; margin: 15px 0; }
.field > span { font-size: 11px; color: var(--muted); }
.field input, .field textarea, .field select, .user-search input, .member-toolbar > select { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #ffffff1b; border-radius: 7px; background: #121217; color: #f5f5f7; font-size: 12px; line-height: 1.4; }
.field input:focus, .field textarea:focus, .field select:focus, .user-search input:focus, .member-toolbar > select:focus { border-color: var(--accent-border-strong); }
.field textarea { resize: vertical; }
.checkbox-field { display: flex; align-items: center; gap: 10px; }
.checkbox-field input { width: 15px; height: 15px; accent-color: var(--accent); }
.checkbox-field > span { color: inherit; font-size: 12px; }
.member-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 10px; margin-bottom: 12px; }
.user-search { min-width: 0; }
.table-card { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; background: #19191e; }
.member-table { width: 100%; table-layout: fixed; border-collapse: collapse; }
.member-table tr { position: relative; cursor: pointer; }
.member-table td { border-bottom: 1px solid var(--line); padding: 11px 14px; text-align: left; }
.member-table tr:last-child td { border-bottom: 0; }
.member-table tr:hover { background: #ffffff03; }
.member-table .member-cell { width: 68%; }
.member-identity { display: flex; align-items: center; gap: 12px; min-width: 0; }
.member-avatar { display: grid; place-items: center; flex: 0 0 32px; height: 32px; border: 1px solid var(--accent-border-soft); border-radius: 10px; background: var(--accent-fill); color: var(--accent-copy); font-size: 10px; font-weight: 500; }
.member-avatar.pending { border: 1px dashed #c5b08355; background: none; color: #c8b892; }
.member-label { min-width: 0; }
.member-name { padding: 0; border: 0; background: none; text-align: left; color: inherit; font-size: 12px; font-weight: 560; overflow-wrap: anywhere; }
.member-email { display: block; margin-top: 1px; font-size: 11px; color: var(--dim); overflow-wrap: anywhere; }
.access-content { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.member-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px; }
.row-chevron { color: #777780; font-size: 15px; flex-shrink: 0; }
.tag { display: inline-flex; align-items: center; white-space: nowrap; padding: 2px 6px; border: 1px solid #ffffff0f; border-radius: 5px; background: #ffffff05; color: #bcbcc5; font-size: 10px; line-height: 16px; font-weight: 450; }
.tag-editor { color: var(--link); border-color: var(--accent-border-soft); background: var(--accent-fill-faint); }
.tag-pending { color: var(--amber); border-color: #d8b87825; background: #d8b8780b; }
.tag-active { color: var(--green); border-color: #78bf9825; background: #78bf980c; }
.tag-you { color: var(--link); border-color: var(--accent-border); background: var(--accent-fill-faint); }
.empty { padding: 30px 20px; text-align: center; color: var(--muted); font-size: 12px; }
.list-footer { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-top: 11px; }
#user-range { font-size: 11px; color: var(--dim); }
.user-pagination { display: flex; align-items: center; flex-shrink: 0; gap: 5px; white-space: nowrap; }
.pagination-button { width: 23px; height: 22px; padding: 0; border: 1px solid var(--line); border-radius: 5px; background: none; color: var(--muted); font-size: 15px; line-height: 18px; }
.pagination-label { padding: 0 3px; font-size: 11px; color: var(--muted); }
.refresh-status { min-height: 16px; margin-top: 4px; font-size: 10px; color: var(--muted); }

.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.detail-card { min-width: 0; padding: 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel); }
.detail-card-full { margin-top: 14px; }
.detail-value { margin: 6px 0 4px; font-size: 25px; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.detail-card .muted { font-size: 11px; }
.seat-detail-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.seat-breakdown { margin-top: 20px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.settings-list { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); }
.setting-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 15px; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border-bottom: 0; }
.setting-row > div { min-width: 0; }
.setting-row > span { flex-shrink: 0; font-size: 12px; }
.setting-title { font-size: 12px; font-weight: 550; }
.setting-row .muted { margin-top: 3px; font-size: 11px; }
.section-note, .field-note { font-size: 11px; color: var(--dim); line-height: 1.6; }
.field-note { margin: -5px 0 16px; }
.form-section-title { margin: 20px 0 10px; font-size: 12px; font-weight: 550; }
#billing-seat-summary > h3 { margin: 0 0 21px; font-size: 15px; line-height: 1.4; font-weight: 600; letter-spacing: -.015em; }
.subscription-details { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; }
.subscription-details.with-viewers { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.subscription-details > div { display: flex; flex-direction: column; min-width: 0; padding: 0 20px; }
.subscription-details > div:first-child { padding-left: 0; }
.subscription-details > div:last-child { padding-right: 0; }
.subscription-details > div + div { border-left: 1px solid var(--line); }
.subscription-details dt { margin: 0 0 7px; color: var(--muted); font-size: 12px; }
.subscription-details dd { margin: auto 0 0; font-size: 27px; font-weight: 550; letter-spacing: -.035em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.member-access-value { margin: 8px 0 0; font-size: 18px; font-weight: 550; }
.status-line { display: flex; align-items: center; gap: 7px; }
.status-dot { width: 7px; height: 7px; flex-shrink: 0; border-radius: 50%; background: #ffffff40; }
.status-dot.green { background: var(--green); }
.status-dot.orange { background: var(--amber); }
.enterprise-domain { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px 22px; padding: 16px 19px; margin-bottom: 14px; border: 1px solid var(--accent-border-soft); border-radius: 11px; background: var(--accent-fill-faint); }
.enterprise-domain-info { min-width: 0; flex: 1 1 220px; }
.enterprise-domain h3 { margin: 0; font-size: 12px; font-weight: 600; }
.enterprise-domain-detail { display: flex; align-items: baseline; flex-wrap: wrap; gap: 3px 10px; margin-top: 4px; color: var(--muted); font-size: 12px; }
#domain-status { overflow-wrap: anywhere; min-width: 0; }
.enterprise-verified { color: var(--green); white-space: nowrap; font-size: 11px; }
.enterprise-panel { border: 1px solid #ffffff21; border-radius: 13px; overflow: hidden; background: var(--panel); }
.enterprise-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.enterprise-feature { padding: 20px; min-width: 0; }
.enterprise-feature + .enterprise-feature { border-left: 1px solid var(--line); }
.enterprise-feature-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 10px; min-height: 22px; }
.enterprise-feature h3 { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 600; letter-spacing: -.01em; }
.enterprise-add { position: relative; padding: 2px 0; font-size: 11px; line-height: 18px; white-space: nowrap; }
.enterprise-description { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.enterprise-connections { margin-top: 24px; }
.enterprise-connection { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; min-height: 39px; }
.enterprise-connection + .enterprise-connection { border-top: 1px solid var(--line); margin-top: 13px; padding-top: 13px; }
.enterprise-empty-status { color: #b8b8c2; font-size: 13px; }
.enterprise-provider { flex: 1 1 140px; min-width: 0; }
.enterprise-provider-name { display: block; font-size: 14px; line-height: 1.4; font-weight: 550; overflow-wrap: anywhere; }
.enterprise-provider-detail { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; margin-top: 4px; color: var(--muted); font-size: 11px; }
.enterprise-connection-state { display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.enterprise-connection-state.connected { color: var(--green); }
.enterprise-connection-state.attention { color: var(--amber); }
.enterprise-connection-state.required { color: #efa1a8; }
.enterprise-connection-state.required .status-dot { background: currentColor; }
.enterprise-provider-detail .status-dot { width: 5px; height: 5px; }
.enterprise-footer { border-top: 1px solid var(--line); padding: 13px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 18px; }
.enterprise-footer p { margin: 0; color: var(--muted); font-size: 11px; flex: 1 1 260px; }

.notice, .preview, .error { padding: 12px 13px; border-radius: 9px; font-size: 12px; overflow-wrap: anywhere; }
.notice { margin-top: 12px; border: 1px solid #ffffff15; background: #ffffff03; color: var(--muted); }
.preview { margin: 13px 0; border: 1px solid var(--accent-border); background: var(--accent-fill-faint); color: var(--accent-copy); }
.error { margin-bottom: 12px; border: 1px solid #df718528; background: #df71850d; color: #eea1aa; }
.feedback-message { position: fixed; z-index: 120; bottom: 20px; left: 50%; transform: translateX(-50%); max-width: calc(100% - 30px); padding: 10px 17px; border: 1px solid var(--accent-border); border-radius: 9px; background: #242b38; box-shadow: 0 6px 24px #0007; font-size: 12px; }
.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: #060609b8; backdrop-filter: blur(5px); }
.modal { position: relative; width: min(480px, 100%); max-height: calc(100dvh - 48px); overflow: auto; padding: 24px; border: 1px solid #ffffff25; border-radius: 16px; background: #202027; box-shadow: 0 25px 120px #0008; }
.modal h3 { margin: 0 32px 7px 0; font-size: 19px; font-weight: 600; letter-spacing: -.025em; }
/* Static entry points announce the sheet without drawing a control focus ring. */
.modal:focus, .modal #modal-title:focus { outline: none; }
.modal-copy { color: var(--muted); font-size: 12px; }
.modal-close { position: absolute; top: 12px; right: 13px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 22px; }
.modal-actions { display: flex; align-items: center; gap: 8px; margin-top: 23px; }
.spacer { flex: 1; }
.modal-user-name { margin-top: 14px; font-size: 14px; font-weight: 550; overflow-wrap: anywhere; }
.modal-user-name + .muted { font-size: 11px; overflow-wrap: anywhere; }
.modal .detail-card { margin: 16px 0; }
.organization-options { display: grid; gap: 8px; margin: 16px 0; }
.organization-option { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: #ffffff04; text-align: left; font-size: 12px; overflow-wrap: anywhere; }
.organization-option > span { min-width: 0; }
.organization-option.active { border-color: var(--accent-border); background: var(--accent-fill); }
.organization-option:hover { background: #ffffff08; }
.organization-menu-actions { padding-top: 12px; border-top: 1px solid var(--line); }
.connection-requirement { margin: 16px 0; }

@media (max-width: 650px) {
	.site-header, .page { width: calc(100% - 28px); }
	.site-header { padding: 18px 0; }
	.brand { font-size: 25px; }
	.header-main { gap: 15px; }
	#account-name { max-width: 160px; }
	.account-menu-button { padding: 4px 5px; gap: 6px; font-size: 11px; }
	.organization-summary { grid-template-columns: 1fr; min-height: 0; }
	.organization-summary-main { min-height: 195px; padding: 19px 20px; }
	.summary-panel { padding: 23px 15px; }
	.summary-panel > .eyebrow { font-size: 9px; }
	.summary-seat-value { gap: 4px; }
	.summary-seat-value strong { font-size: 25px; }
	.summary-seat-value > span { font-size: 15px; }
	.summary-secondary { font-size: 10px; }
	.summary-primary { gap: 0 5px; }
	.summary-primary .currency { display: block; width: 100%; font-size: 9px; }
	.summary-primary .amount { font-size: 24px; }
	.summary-primary.summary-message { font-size: 17px; }
	.billing-summary::before { top: 20px; bottom: 20px; }
	.section-tabs { gap: 20px; }
	.section-tab { font-size: 11px; }
	.section-heading { gap: 10px; align-items: flex-start; }
	.section-heading h2 { font-size: 16px; }
	.section-heading .muted { font-size: 11px; }
	.section-heading-actions { gap: 7px; }
	.member-toolbar { grid-template-columns: minmax(0, 1fr) 119px; }
	.member-toolbar input, .member-toolbar > select { font-size: 11px; }
	.member-table tbody, .member-table tr { display: block; }
	.member-table tr { padding: 12px; border-bottom: 1px solid var(--line); }
	.member-table tr:last-child { border-bottom: 0; }
	.member-table td { display: block; width: auto !important; border: 0; padding: 0; }
	.member-identity { gap: 10px; align-items: flex-start; padding-right: 18px; }
	.member-avatar { flex-basis: 28px; height: 28px; margin-top: 2px; }
	.member-email { font-size: 10px; }
	.member-table .access-cell { padding: 5px 18px 0 38px; }
	.access-content, .member-tags { justify-content: flex-start; }
	.row-chevron { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); }
	#user-range, .pagination-label { font-size: 10px; }
	.pending-count-note { display: none; }
	.detail-grid { gap: 10px; }
	.detail-card { padding: 17px; }
	.detail-value { font-size: 20px; }
	.setting-row { padding: 14px; gap: 10px; flex-wrap: wrap; }
	.setting-row > span { font-size: 11px; }
	.settings-list .setting-row > div { flex: 1 1 160px; }
	.enterprise-features { grid-template-columns: 1fr; }
	.enterprise-feature + .enterprise-feature { border-left: 0; border-top: 1px solid var(--line); }
	.enterprise-connections { margin-top: 20px; }
	.enterprise-domain { padding: 16px; }
	.modal-backdrop { padding: 16px; }
	.modal { max-height: calc(100dvh - 32px); padding: 21px; }
	.modal-actions { flex-wrap: wrap; }
}
@media (max-width: 520px) {
	.subscription-details, .subscription-details.with-viewers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 0; }
	.subscription-details > div { padding: 0 14px; }
	.subscription-details > div:nth-child(odd) { padding-left: 0; border-left: 0; }
	.subscription-details dd { font-size: 25px; }
}
@media (pointer: coarse) {
	.enterprise-add, .enterprise-panel .secondary-button, .enterprise-domain .secondary-button, #enterprise-contact-button { min-height: 44px; }
	.enterprise-add { padding: 8px 4px; }
}
@media (max-width: 360px) {
	.summary-primary .amount { font-size: 21px; }
	.summary-seat-value strong { font-size: 23px; }
	.summary-seat-value > span { font-size: 13px; }
	.detail-grid { grid-template-columns: 1fr; }
	#account-name { max-width: 130px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Administrator source list and independent access editor. */
.administrator-layout { display:grid; grid-template-columns:220px minmax(0,1fr); gap:16px; align-items:start; }
.administrator-sidebar, .administrator-detail { border:1px solid var(--line); border-radius:13px; background:var(--card, #1c1c21); min-width:0; }
.administrator-sidebar { padding:12px 8px 8px; }
.administrator-list-heading { display:flex; align-items:center; justify-content:space-between; gap:8px; padding:0 5px 12px; color:var(--muted); font-size:11px; }
.administrator-sidebar .user-search { margin:0 4px 10px; }
.administrator-list { max-height:min(470px, 60dvh); overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-gutter:stable; }
.administrator-list-item { display:block; width:100%; text-align:left; padding:11px 10px; border:1px solid transparent; border-radius:8px; background:none; color:var(--text, #f5f5f7); cursor:pointer; }
.administrator-list-item + .administrator-list-item { margin-top:3px; }
.administrator-list-item:hover { background:#ffffff05; }
.administrator-list-item.selected { border-color:var(--accent-border); background:var(--accent-fill); }
.administrator-item-heading { display:flex; align-items:center; gap:7px; min-width:0; min-height:22px; }
.administrator-item-heading strong { flex:1; min-width:0; }
.administrator-item-heading .tag { flex:none; }
.administrator-list-item.selected .tag-you { color:#e1e4ee; border-color:#ffffff25; background:#ffffff05; }
.administrator-list-item strong, .administrator-list-item .administrator-item-email, .administrator-list-item small { display:block; overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }
.administrator-list-item strong { font-size:12px; font-weight:550; }
.administrator-list-item .administrator-item-email { font-size:11px; margin-top:3px; color:var(--muted); }
.administrator-list-item small { font-size:10px; color:var(--muted); margin-top:5px; }
.administrator-detail { padding:21px; }
.administrator-detail-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; padding-bottom:20px; border-bottom:1px solid var(--line); }
.administrator-detail-heading > div { min-width:0; overflow-wrap:anywhere; }
.administrator-detail-heading h3 { margin:0 0 5px; font-size:15px; line-height:1.35; }
.administrator-detail-heading .tag { flex-shrink:0; }
.administrator-detail h4, .administrator-add-sheet h4 { font-size:12px; margin:20px 0 9px; }
.administrator-note { color:var(--muted); font-size:11px; line-height:1.6; margin:0 0 15px; }
.permission-checks { display:grid; gap:0; }
.permission-check { display:flex; align-items:flex-start; gap:10px; padding:13px 0; border-bottom:1px solid #ffffff0a; cursor:pointer; }
.permission-check:last-child { border-bottom:0; }
.permission-check input { flex:0 0 auto; width:15px; height:15px; margin:2px 0 0; accent-color:var(--accent); }
.permission-check strong { display:block; font-size:12px; font-weight:550; }
.permission-check small { display:block; color:var(--muted); font-size:11px; line-height:1.5; margin-top:4px; }
.permission-check:has(input:disabled) { cursor:default; }
.administrator-actions { display:flex; flex-wrap:wrap; align-items:center; gap:8px; border-top:1px solid var(--line); margin-top:18px; padding-top:17px; }
.administrator-actions .primary-button { min-width:106px; }
.administrator-actions .danger-button { padding-left:0; padding-right:0; background:none; border-color:transparent; }
.administrator-back { display:none; margin-bottom:16px; }
.administrator-add-sheet { width:min(520px,100%); }
.administrator-add-modes { display:flex; gap:4px; padding:4px; background:#111116; border:1px solid var(--line); border-radius:8px; }
.administrator-add-modes button { flex:1; border:0; border-radius:5px; background:none; color:var(--muted); padding:8px; font:inherit; font-size:12px; }
.administrator-add-modes button[aria-pressed=true] { background:#ffffff10; color:#f5f5f7; }
.field select { appearance:none; -webkit-appearance:none; min-height:40px; padding-right:34px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='none' stroke='%23a2a2ac' stroke-width='1.5' d='m3 4.5 3 3 3-3'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-position:right 12px center; }
.member-sheet { width:min(660px,100%); padding:0; }
.member-sheet-grid { display:grid; grid-template-columns:38% minmax(0,1fr); }
.member-sheet-identity { position:relative; isolation:isolate; display:flex; flex-direction:column; justify-content:space-between; min-width:0; overflow:hidden; padding:24px 22px; }
.member-sheet-identity .organization-art { top:-14px; }
.member-sheet-brand { font-size:22px; font-weight:700; letter-spacing:-.05em; }
.member-sheet-person { margin-top:75px; overflow-wrap:anywhere; }
.member-sheet-person h2 { font-size:22px; line-height:1.25; margin:0; letter-spacing:-.035em; }
.member-sheet-person p { margin:8px 0; color:var(--muted); font-size:12px; }
.member-sheet-person .tag { margin-top:12px; }
.member-sheet-right { min-width:0; display:flex; flex-direction:column; }
.member-sheet-right > h3 { padding:23px 22px 12px; margin:0; }
.member-sheet-right form { display:flex; flex-direction:column; flex:1; }
.member-sheet-body { padding:0 22px 15px; flex:1; }
.member-sheet-actions { padding:16px 22px; margin:0; border-top:1px solid var(--line); flex-wrap:wrap; }
.member-sheet-actions .danger-button { padding:0; background:none; border:0; }
.invitation-details { display:grid; gap:18px; margin:10px 0 22px; }
.invitation-details dt { color:var(--muted); font-size:12px; }
.invitation-details dd { margin:5px 0 0; font-size:14px; font-weight:550; }
.invitation-details .invitation-access-value { font-size:18px; }
.modal.seat-purchase-sheet { width:min(700px,100%); padding:0; background:var(--panel); }
.seat-purchase-grid { grid-template-columns:32% minmax(0,1fr); min-height:450px; }
.seat-purchase-identity .member-sheet-person { margin-top:90px; }
.seat-purchase-identity h2 { margin-top:8px; }
.seat-purchase-identity .eyebrow { font-size:10px; letter-spacing:.1em; }
.seat-purchase-identity .member-sheet-person p { font-size:12px; line-height:1.65; margin-bottom:0; }
.seat-purchase-right > h3 { padding:23px 46px 14px 24px; margin:0; }
.seat-purchase-body { padding:0 24px 15px; }
.seat-purchase-quantity { display:flex; justify-content:space-between; align-items:center; gap:14px; margin:12px 0; }
.seat-purchase-quantity label { font-weight:600; font-size:13px; }
.seat-purchase-quantity p { margin:5px 0 0; font-size:11px; color:var(--muted); }
.seat-purchase-stepper { display:flex; flex:none; width:140px; height:42px; border:1px solid #ffffff25; border-radius:9px; background:#111114; }
.seat-purchase-stepper button { width:35px; flex:none; padding:0; border:0; background:#ffffff06; font-size:20px; }
.seat-purchase-stepper button:first-child { border-radius:8px 0 0 8px; }
.seat-purchase-stepper button:last-child { border-radius:0 8px 8px 0; }
.seat-purchase-stepper input { flex:1; min-width:0; width:0; border:0; padding:4px 0; background:transparent; text-align:center; font-size:18px; font-weight:600; font-variant-numeric:tabular-nums; appearance:textfield; }
.seat-purchase-stepper input:focus { outline:none; }
.seat-purchase-stepper input:focus-visible { background:var(--accent-fill-faint); }
.seat-purchase-stepper input::-webkit-inner-spin-button, .seat-purchase-stepper input::-webkit-outer-spin-button { appearance:none; margin:0; }
.seat-purchase-capacity { display:grid; grid-template-columns:1fr auto 1fr; gap:20px; align-items:center; margin:24px 0; }
.seat-purchase-capacity > div:last-child { text-align:right; }
.seat-purchase-capacity div > span { font-size:11px; color:var(--muted); }
.seat-purchase-capacity strong { display:block; margin-top:3px; font-size:28px; line-height:1.2; letter-spacing:-.03em; font-weight:600; font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.seat-capacity-arrow { color:var(--dim); font-size:18px; }
.seat-billing-timeline { padding-top:20px; border-top:1px solid var(--line); }
.seat-billing-moment { position:relative; padding-left:22px; }
.seat-billing-moment + .seat-billing-moment { padding-top:21px; }
.seat-billing-moment::before { content:""; position:absolute; left:0; top:5px; width:9px; height:9px; border-radius:50%; background:var(--accent); }
.seat-billing-moment + .seat-billing-moment::before { top:26px; background:#868998; }
.seat-billing-moment:first-child::after { content:""; position:absolute; left:4px; width:1px; top:14px; bottom:-26px; background:#ffffff20; }
.seat-billing-heading { display:flex; flex-wrap:wrap; justify-content:space-between; gap:5px 15px; }
.seat-billing-heading strong { font-size:13px; font-weight:600; }
.seat-billing-heading strong:last-child { font-variant-numeric:tabular-nums; overflow-wrap:anywhere; }
.seat-billing-moment p { margin:5px 0 0; color:var(--muted); font-size:12px; line-height:1.5; }
.estimate-updating .seat-billing-heading strong:last-child { color:var(--muted); }
.seat-price-field { position:relative; min-width:6em; text-align:right; }
.seat-price-field.is-estimating > span { visibility:hidden; }
.seat-price-field.is-estimating::after { content:""; position:absolute; right:0; top:calc(50% - 7px); width:14px; height:14px; border:2px solid #ffffff30; border-top-color:var(--accent); border-radius:50%; animation:spin .7s linear infinite; }
.seat-unit-price { text-align:left; }
.seat-unit-price.is-estimating::after { right:auto; left:0; }
.seat-estimate-feedback { min-height:39px; margin-top:15px; }
.seat-estimate-feedback p { margin:0; font-size:11px; color:var(--muted); }
.seat-estimate-feedback .seat-estimate-error { color:#f5a0a6; }
.seat-estimate-feedback button { margin-top:6px; font-size:12px; }
.seat-purchase-actions { padding:16px 24px; }
.seat-purchase-actions #seat-go { min-width:140px; font-variant-numeric:tabular-nums; }
.seat-purchase-sheet .modal-close { z-index:1; }
.seat-purchase-fixed { font-size:28px; line-height:1.2; font-weight:600; font-variant-numeric:tabular-nums; }
.connection-grid { min-height:470px; }
.connection-intro { margin:0 0 24px; color:var(--muted); font-size:13px; line-height:1.55; }
.connection-checklist { list-style:none; padding:0; margin:0; }
.connection-step { display:flex; align-items:flex-start; gap:11px; padding:14px 0; margin:0; }
.connection-step + .connection-step { border-top:1px solid var(--line); }
.connection-step > div { flex:1; min-width:0; }
.connection-step strong { font-size:12px; font-weight:550; }
.connection-step p { margin:4px 0 0; color:var(--muted); font-size:12px; line-height:1.55; }
.connection-step-marker { display:grid; place-items:center; flex:none; width:22px; height:22px; border:1px solid #ffffff26; border-radius:50%; font-size:11px; color:var(--muted); }
.connection-step-marker.is-complete { color:var(--green); background:#8dd6b80d; border-color:#8dd6b840; }
.connection-domain-details { margin-top:4px; }
.connection-domain-details summary { list-style:none; display:flex; align-items:center; gap:7px; width:fit-content; max-width:100%; padding:3px 0; font-size:12px; color:var(--link); cursor:pointer; }
.connection-domain-details summary::-webkit-details-marker { display:none; }
.connection-domain-summary { display:flex; align-items:baseline; flex-wrap:wrap; gap:4px 10px; }
.connection-pending-count { font-size:11px; color:var(--amber); }
.connection-disclosure { width:7px; height:7px; flex:none; margin:0 3px 3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); }
.connection-domain-details[open] .connection-disclosure { margin-bottom:-3px; transform:rotate(225deg); }
.connection-domain-list { list-style:none; margin:10px 0 0; padding:0 11px; border:1px solid var(--line); border-radius:8px; background:#ffffff02; max-height:190px; overflow-y:auto; overscroll-behavior:contain; scrollbar-width:thin; }
.connection-domain-list li { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:4px 10px; padding:9px 0; font-size:12px; }
.connection-domain-list li + li { border-top:1px solid var(--line); }
.connection-domain-name { flex:1 1 130px; min-width:0; overflow-wrap:anywhere; }
.connection-domain-list .tag { flex:none; font-size:11px; }
.connection-step .connection-domain-help { margin-top:9px; font-size:11px; }
.connection-cost { margin-top:15px; padding-top:18px; border-top:1px solid var(--line); }
.connection-cost > strong { font-size:23px; font-weight:600; letter-spacing:-.5px; }
.connection-cost > strong > span { font-size:12px; font-weight:400; letter-spacing:0; color:var(--muted); }
.connection-cost p, .connection-no-charge { margin:4px 0 0; font-size:11px; color:var(--muted); }
.connection-no-charge { padding-top:18px; margin-top:15px; border-top:1px solid var(--line); }
.connection-feedback { margin:15px 0 0; color:var(--muted); font-size:12px; }
.connection-feedback.error { color:#f5a0a6; }
.connection-refresh { margin-top:12px; font-size:12px; }
.connection-actions #connection-add-button { min-width:138px; }
.modal.connection-management-sheet { width:min(740px,100%); }
.connection-management-grid { min-height:475px; }
.connection-management-body > .enterprise-connection-state { margin:0 0 18px; font-size:11px; }
.connection-management-body .connection-intro { margin-bottom:22px; }
.connection-management-impact { padding:16px; border:1px solid var(--line); border-radius:10px; background:#ffffff02; }
.connection-management-impact { border-color:#f5a0a62b; }
.connection-management-impact > strong { font-size:12px; font-weight:550; }
.connection-management-impact p { margin:6px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.connection-management-fee { display:flex; align-items:baseline; flex-wrap:wrap; justify-content:space-between; gap:8px 16px; margin-top:24px; font-size:12px; }
.connection-management-fee > span { color:var(--muted); }
.connection-management-fee strong { font-size:14px; font-weight:550; font-variant-numeric:tabular-nums; }
.connection-management-fee strong > span { font-size:11px; font-weight:400; color:var(--muted); }
.connection-management-note { margin:8px 0 0; color:var(--muted); font-size:12px; line-height:1.6; }
.connection-management-actions { gap:10px; padding:16px 24px; }
.connection-management-actions .connection-management-remove { font-size:11px; min-width:56px; }
.connection-management-actions .connection-remove-confirm { background:#903e49; color:#fff; border:1px solid #d9788466; padding:10px 14px; min-width:145px; border-radius:9px; }
.connection-management-actions #connection-manage { min-width:125px; }
.connection-management-result { display:flex; flex:1; flex-direction:column; align-items:center; justify-content:center; padding:30px 24px 45px; text-align:center; }
.connection-management-check { display:grid; place-items:center; width:46px; height:46px; border:1px solid #8dd6b840; background:#8dd6b807; border-radius:50%; color:var(--green); font-size:23px; }
.connection-management-result h4 { font-size:21px; letter-spacing:-.4px; margin:23px 0 13px; }
.connection-management-result p { width:100%; max-width:none; margin:0; color:var(--muted); font-size:13px; line-height:1.6; text-wrap:balance; }
@media(max-width:380px) { .connection-management-actions { padding:16px; gap:8px; } .connection-management-actions .spacer { display:none; } .connection-management-actions #connection-manage { min-width:0; } }
@media(max-width:380px) { .connection-actions { padding:16px; } .connection-actions .spacer { display:none; } .connection-actions { justify-content:flex-end; } }
@media(pointer:coarse) { .connection-domain-details summary, .connection-sheet button { min-height:44px; } }
/* Invitation entry and review use the same full-height identity panel. The
   conditional purchase step uses the shared Add seats fields unchanged. */
.invite-grid { min-height:0; }
.invite-identity { justify-content:flex-start; }
.invite-identity .member-sheet-person { margin-top:44px; }
.invite-identity .member-sheet-person p { line-height:1.5; }
.invite-seat-overview { margin-top:auto; padding-top:22px; }
.invite-available { display:flex; align-items:baseline; gap:10px; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:9px; }
.invite-available strong { font-size:30px; line-height:1.2; letter-spacing:-.03em; font-weight:600; font-variant-numeric:tabular-nums; }
.invite-available span { font-size:11px; color:var(--muted); }
.invite-summary-row { display:flex; justify-content:space-between; align-items:baseline; gap:12px; padding:7px 0; color:var(--muted); font-size:12px; }
.invite-summary-row strong { color:#f5f5f7; font-weight:550; font-variant-numeric:tabular-nums; }
.invite-seat-overview > p { color:var(--muted); font-size:11px; line-height:1.5; margin:10px 0 0; }
.invite-heading { padding:23px 46px 14px 24px; }
.invite-heading > p { margin:0 0 4px; color:var(--muted); font-size:11px; }
.invite-heading h3 { margin:0; }
.invite-intro { margin:0 0 20px; color:var(--muted); font-size:12px; line-height:1.5; }
.invite-body .field { margin:0; }
.invite-body .field textarea { min-height:124px; padding:10px 12px; line-height:1.6; resize:vertical; }
.invite-hint { margin:7px 0 0; font-size:11px; color:var(--muted); }
.invite-access { display:flex; align-items:center; justify-content:space-between; gap:16px; margin:18px 0; }
.invite-access label { font-size:13px; font-weight:550; }
.invite-access small { display:block; margin-top:4px; font-size:11px; color:var(--muted); }
.invite-access-field { width:156px; max-width:54%; flex:none; }
.invite-access-field select { height:40px; padding:9px 34px 9px 12px; line-height:20px; background-position:right 12px center; }
.invite-recipient-summary { border:1px solid var(--line); border-radius:9px; padding:13px; margin-bottom:16px; background:#ffffff04; font-size:13px; }
.invite-recipient-summary > p { margin:5px 0 0; font-size:12px; color:var(--muted); overflow-wrap:anywhere; }
.invite-sheet details { margin-top:10px; }
.invite-sheet summary { color:var(--link); font-size:12px; padding:5px 0; cursor:pointer; }
.invite-recipient-scroll { max-height:176px; margin-top:6px; overflow-y:auto; overscroll-behavior-y:contain; scrollbar-gutter:stable; scrollbar-width:thin; scrollbar-color:#666573 #ffffff08; border-top:1px solid var(--line); }
.invite-recipient-scroll ul { list-style:none; margin:0; padding:0 9px 0 0; }
.invite-recipient-scroll li { padding:7px 0; margin:0; overflow-wrap:anywhere; color:var(--muted); font-size:12px; line-height:1.5; border-bottom:1px solid var(--line); }
.invite-recipient-scroll li:last-child { border-bottom:0; }
.invite-recipient-scroll small { display:block; font-size:11px; color:var(--dim); }
.invite-new-seats { margin-top:6px; padding-top:10px; border-top:1px solid var(--line); }
.invite-new-seats strong { color:var(--link); }
.invite-notice { border:1px solid var(--line); border-radius:9px; padding:12px 13px; margin-top:16px; font-size:12px; line-height:1.5; background:#ffffff04; }
.invite-notice p { color:var(--muted); margin:4px 0 0; }
.invite-body #invite-feedback { min-height:0; margin-top:12px; }
.invite-body #invite-feedback:has(#invite-status:empty):has(#invite-retry.hidden) { margin-top:0; }
.invite-actions #invite-go { min-width:150px; font-variant-numeric:tabular-nums; }
.invite-purchasing { min-height:450px; }
.invite-purchasing .invite-identity { justify-content:space-between; }
.invite-purchasing .member-sheet-person { margin-top:90px; }
#invite-result p { font-size:12px; line-height:1.6; }
@media(max-width:540px) {
    .invite-identity .member-sheet-person, .invite-purchasing .member-sheet-person { margin-top:22px; }
    .invite-seat-overview { padding-top:16px; }
    .invite-available { padding-bottom:8px; margin-bottom:6px; }
    .invite-available strong { font-size:24px; }
    .invite-seat-overview .invite-summary-row { padding:3px 0; }
    .invite-seat-overview > p, .invite-identity-copy { display:none; }
    .invite-heading { padding:20px 46px 12px 22px; }
    .invite-recipient-scroll { max-height:144px; }
    .invite-body .field textarea, .invite-access-field select { font-size:16px; }
    .invite-actions { padding:16px; }
    .invite-actions #invite-go { min-width:0; }
    .invite-purchasing .invite-actions #invite-go { flex:1 1 100%; }
}
@media(pointer:coarse) { .invite-actions button, .invite-sheet summary, .invite-access-field select { min-height:44px; } }
.billing-setup-grid { min-height:410px; }
.organization-progress { min-height:1.5em; margin:12px 0 0; font-size:12px; line-height:1.5; color:var(--muted); }
.checkout-result-body { flex:1; padding-top:20px; padding-bottom:28px; }
.checkout-result-body > p { margin:18px 0 0; color:var(--muted); font-size:13px; line-height:1.6; }
.checkout-result-body > p:first-child { margin-top:0; }
.checkout-result-body > .error { color:#f5a0a6; }
.checkout-result-body > .link-button { margin-top:18px; }
.checkout-result-symbol { display:grid; place-items:center; width:46px; height:46px; border:1px solid var(--line); border-radius:13px; background:#ffffff05; color:var(--muted); font-size:24px; }
.checkout-result-symbol.is-ready { width:52px; height:52px; border-radius:50%; margin-bottom:20px; background:var(--accent-fill-faint); border-color:#4389fe36; color:var(--link); }
.checkout-result-symbol .spinner { border-top-color:var(--link); }
.checkout-result-body.is-centered { display:flex; flex-direction:column; align-items:center; justify-content:center; text-align:center; min-height:230px; padding:20px 24px 36px; }
.checkout-result-body.is-centered h4 { margin:0 0 7px; font-size:16px; line-height:1.45; font-weight:550; letter-spacing:-.2px; }
.checkout-result-body.is-centered > p { max-width:270px; margin:0; line-height:1.65; }
.checkout-loading-dots { display:flex; align-items:center; justify-content:center; gap:8px; height:32px; margin-bottom:20px; }
.checkout-loading-dots span { width:7px; height:7px; border-radius:50%; background:var(--link); animation:checkout-dot-pulse 1.4s ease-in-out infinite; }
.checkout-loading-dots span:nth-child(2) { animation-delay:.16s; }
.checkout-loading-dots span:nth-child(3) { animation-delay:.32s; }
@keyframes checkout-dot-pulse { 0%,75%,100% { opacity:.3; transform:scale(.85); } 35% { opacity:1; transform:scale(1); } }
.seat-purchase-sheet:has(.checkout-result-body) .seat-purchase-actions { justify-content:flex-end; }
.billing-setup-sheet [data-checkout-action], .seat-purchase-sheet [data-seat-action] { min-width:148px; }
.billing-setup-intro { margin:0 0 24px; color:var(--muted); font-size:13px; line-height:1.5; }
.billing-setup-seat-note { margin:14px 0 24px; color:var(--muted); font-size:12px; }
.billing-setup-coupon { margin:0 0 22px; }
.billing-setup-coupon label { display:block; margin-bottom:7px; font-size:12px; font-weight:600; }
.billing-setup-coupon label span { font-weight:400; color:var(--muted); }
.billing-setup-coupon-controls { display:flex; align-items:center; gap:10px; }
.billing-setup-coupon input { flex:1; min-width:0; width:0; height:36px; border:1px solid #ffffff25; border-radius:8px; padding:7px 10px; background:#111114; }
.billing-setup-coupon input[readonly] { color:var(--green); }
.billing-setup-coupon-controls button { flex:none; min-width:74px; min-height:36px; padding:7px 11px; }
.billing-setup-coupon-saving { display:flex; justify-content:space-between; gap:14px; margin-bottom:12px; color:var(--green); font-size:12px; }
.billing-setup-coupon-saving strong { font-weight:500; }
.billing-setup-summary { border-top:1px solid var(--line); padding-top:20px; }
.billing-setup-summary-heading { display:flex; align-items:center; justify-content:space-between; gap:6px 14px; flex-wrap:wrap; }
.billing-setup-summary-heading strong { font-size:14px; font-weight:600; }
.billing-setup-summary-heading .seat-price-field { min-width:6ch; font-size:20px; letter-spacing:-.3px; }
.billing-setup-summary p { margin:5px 0 0; font-size:12px; color:var(--muted); }
.billing-setup-feedback { margin-top:22px; }
.billing-setup-sheet #checkout-go { min-width:174px; }
.billing-setup-status { display:flex; align-items:center; gap:20px; margin-top:18px; padding:18px 20px; border:1px solid var(--accent-border-soft); border-radius:12px; background:var(--accent-fill-faint); }
.billing-setup-status-message { display:flex; align-items:center; gap:14px; min-width:0; flex:1; }
.billing-setup-status-message h2 { margin:0 0 3px; font-size:13px; font-weight:600; }
.billing-setup-status-message p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.billing-setup-status-message .spinner { flex-shrink:0; width:20px; height:20px; border-top-color:var(--link); }
.billing-setup-status-actions { display:flex; align-items:center; gap:14px; flex-shrink:0; }
.billing-setup-status-actions .primary-button { min-width:130px; }
@media(max-width:580px) {
    .billing-setup-status { align-items:stretch; flex-direction:column; gap:14px; padding:16px; }
    .billing-setup-status-actions { justify-content:flex-end; }
}
@media(max-width:380px) {
    .billing-setup-sheet .seat-purchase-actions { padding:16px; justify-content:flex-end; }
    .billing-setup-sheet .seat-purchase-actions .spacer { display:none; }
}
@media(max-width:580px) {
    .seat-purchase-grid { grid-template-columns:minmax(0,1fr); }
    .seat-purchase-identity { padding:20px 22px; }
    .seat-purchase-identity .member-sheet-person { margin-top:22px; }
    .seat-purchase-identity .eyebrow { display:none; }
    .seat-purchase-identity h2 { font-size:23px; }
    .seat-purchase-identity .member-sheet-person p { margin-top:8px; }
    .seat-purchase-quantity { flex-wrap:wrap; }
    .seat-purchase-right > h3 { padding:22px 22px 10px; }
    .seat-purchase-body { padding:0 22px 15px; }
    .seat-purchase-actions { padding:16px 22px; }
}
@media(pointer:coarse) {
    .seat-purchase-stepper { height:44px; width:158px; }
    .seat-purchase-stepper button { width:44px; }
}
.summary-panel:disabled:not(.is-loading) { opacity:1; cursor:default; }
@media(max-width:640px) {
    .administrator-layout { grid-template-columns:minmax(0,1fr); }
    .administrator-layout:not(.show-detail) .administrator-detail { display:none; }
    .administrator-layout.show-detail .administrator-sidebar { display:none; }
    .administrator-back { display:inline-block; }
    .administrator-list { max-height:52dvh; }
    #section-administrators .section-heading { align-items:flex-start; flex-wrap:wrap; gap:12px; }
}
@media(max-width:540px) {
    .member-sheet-grid { grid-template-columns:minmax(0,1fr); }
    .member-sheet-identity { padding:22px; }
    .member-sheet-person { margin-top:28px; }
    .member-sheet-person h2 { font-size:21px; }
    .member-sheet-person .tag { margin-top:8px; }
    .member-sheet { padding:0; }
    .member-sheet .modal-close { z-index:1; }
}

/* Two-step administrator sheet: retain the footer while the contents scroll. */
.administrator-wizard { padding:0; overflow:hidden; }
.administrator-wizard #modal-content { display:flex; flex-direction:column; max-height:calc(100dvh - 50px); }
.administrator-wizard-heading { flex:none; padding:23px 24px 16px; }
.administrator-step-label { margin:6px 0 0; color:var(--muted); font-size:11px; }
.administrator-wizard-form { display:flex; flex-direction:column; min-height:0; }
.administrator-wizard-body { padding:0 24px 15px; overflow-y:auto; min-height:0; overscroll-behavior:contain; }
.administrator-wizard-actions { flex:none; margin:0; padding:16px 24px; border-top:1px solid var(--line); }
.administrator-wizard-actions .primary-button { min-width:122px; }
.administrator-member-search { margin:14px 0 10px; }
.administrator-member-picker { margin:0; padding:0; min-width:0; border:1px solid var(--line); border-radius:9px; overflow:hidden; }
.administrator-member-option { display:flex; align-items:center; gap:11px; min-height:49px; padding:9px 12px; cursor:pointer; }
.administrator-member-option + .administrator-member-option { border-top:1px solid #ffffff0b; }
.administrator-member-option:hover { background:#ffffff05; }
.administrator-member-option:has(input:checked) { background:var(--accent-fill); }
.administrator-member-option input { width:15px; height:15px; margin:0; flex:0 0 auto; accent-color:var(--accent); }
.administrator-member-option > span { display:block; min-width:0; }
.administrator-member-option strong, .administrator-member-option small { display:block; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.administrator-member-option strong { font-size:12px; font-weight:550; }
.administrator-member-option small { margin-top:3px; font-size:11px; color:var(--muted); }
.administrator-member-pagination { display:flex; align-items:center; justify-content:space-between; gap:8px; min-height:37px; margin-top:7px; font-size:11px; }
.administrator-selected-member { display:flex; align-items:baseline; gap:10px; margin-top:8px; padding-top:12px; border-top:1px solid var(--line); font-size:11px; }
.administrator-selected-member > span { flex:none; }
.administrator-selected-member strong { min-width:0; font-weight:500; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.administrator-recipient { border:1px solid var(--line); background:#ffffff03; padding:12px; border-radius:8px; margin-bottom:12px; overflow-wrap:anywhere; }
.administrator-recipient strong { display:block; font-size:13px; font-weight:550; }
.administrator-recipient span { display:block; font-size:11px; color:var(--muted); margin-top:4px; }
.administrator-wizard .permission-check { padding:10px 0; }
.administrator-wizard .administrator-note { margin-bottom:5px; }
.modal.supporting-sheet { width: min(700px, 100%); padding: 0; }
.supporting-sheet .supporting-card { border: 0; border-radius: 0; background: transparent; }
.supporting-sheet .modal-close { z-index: 2; }
.supporting-sheet h3 { margin: 0 24px 12px 0; font-size: 23px; line-height: 1.2; letter-spacing: -.035em; }
.seat-quantity-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0; padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: #ffffff03; }
.seat-quantity-row label { font-size: 12px; font-weight: 550; }
.seat-quantity-control { display: flex; align-items: center; gap: 6px; min-width: 0; }
.seat-quantity-control button { display: grid; place-items: center; width: 30px; height: 36px; padding: 0; border: 1px solid #ffffff20; border-radius: 7px; background: #ffffff08; font-size: 18px; }
.seat-quantity-control button:hover:not(:disabled) { background: #ffffff0d; }
.seat-quantity-control input { width: 70px; min-width: 0; height: 36px; padding: 8px 4px; border: 1px solid #ffffff20; border-radius: 7px; background: #121217; font-size: 13px; text-align: center; font-variant-numeric: tabular-nums; appearance: textfield; }
.seat-quantity-control input::-webkit-inner-spin-button, .seat-quantity-control input::-webkit-outer-spin-button { appearance: none; margin: 0; }
@media (max-width: 600px) {
	.supporting-view { margin-top: 25px; }
	.supporting-card, .sign-in-card { grid-template-columns: minmax(0, 1fr); }
	.supporting-identity, .sign-in-card .supporting-identity, .member-welcome-card .supporting-identity { min-height: 145px; padding: 22px; }
	.supporting-identity .organization-art { width: 235px; height: 235px; top: -80px; right: -35px; }
	.supporting-body, .sign-in-card .supporting-body { padding: 24px; }
	.supporting-sheet .supporting-identity { padding-right: 44px; }
	.member-organizations li { flex-wrap: wrap; gap: 8px 14px; }
	.member-organizations strong { flex: 1 1 130px; }
	.seat-quantity-row { padding: 14px; }
}
@media (pointer: coarse) {
	.supporting-body .primary-button, .supporting-body .secondary-button, .supporting-body .link-button { min-height: 44px; }
	.supporting-body .field input, .seat-quantity-control input { min-height: 44px; font-size: 16px; }
	.seat-quantity-control button { width: 40px; height: 44px; }
}
@media(max-width:540px) {
    .administrator-wizard #modal-content { max-height:calc(100dvh - 34px); }
    .administrator-wizard-heading { padding:21px 18px 16px; }
    .administrator-wizard-body { padding:0 18px 15px; }
    .administrator-wizard-actions { padding:14px 18px; gap:7px; }
    .administrator-wizard-actions { gap:6px; }
    .administrator-wizard-actions > button { padding-inline:8px; }
    .administrator-wizard-actions .primary-button { min-width:0; }
    .administrator-wizard-actions .spacer { flex-basis:0; }
}

.activity-portal { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px; border:1px solid var(--line); border-radius:12px; background:var(--panel); }
.activity-portal h3 { margin:0 0 6px; font-size:14px; font-weight:600; }
.activity-portal p { margin:0; max-width:470px; color:var(--muted); font-size:12px; }
.activity-portal button { flex-shrink:0; white-space:nowrap; }
@media (max-width:540px) { .activity-portal { flex-direction:column; align-items:flex-start; gap:18px; padding:18px; } }

/* Organization activity: compact rows, independent details, no fixed-width table. */
.activity-filters { display:grid; grid-template-columns:minmax(140px,1fr) minmax(220px,1.6fr) repeat(2,minmax(125px,.8fr)); gap:12px; margin-bottom:18px; }
.activity-filters label { display:flex; flex-direction:column; gap:6px; color:var(--muted); font-size:11px; min-width:0; }
.activity-filters input, .activity-filters select { width:100%; min-width:0; height:36px; margin:0; padding:7px 10px; border:1px solid #ffffff20; border-radius:7px; background:#141418; color:#f5f5f7; font-size:12px; }
.activity-more-filters { grid-column:1 / -1; font-size:11px; color:var(--muted); }
.activity-more-filters summary { cursor:pointer; width:fit-content; }
.activity-more-filters > div { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding-top:12px; }
.activity-more-filters .field-note { grid-column:1 / -1; margin:0; }
.activity-filter-actions { grid-column:1 / -1; display:flex; align-items:center; gap:14px; }
#section-activity .text-button { appearance:none; border:0; background:none; padding:0; color:var(--link); font:inherit; text-align:left; }
#section-activity .text-button:hover { color:var(--link-hover); }
.activity-list { border:1px solid #ffffff20; border-radius:12px; background:var(--panel); overflow:hidden; }
.activity-event + .activity-event { border-top:1px solid var(--line); }
.activity-event { padding:14px 17px; }
.activity-summary { display:grid; grid-template-columns:minmax(0,1fr) auto 155px; align-items:center; gap:12px; }
.activity-toggle { display:flex; flex-direction:column; gap:2px; min-width:0; text-align:left; border:0; background:none; padding:0 20px 0 0; position:relative; }
.activity-toggle::after { content:""; position:absolute; right:2px; top:7px; width:5px; height:5px; border-right:1.5px solid var(--muted); border-bottom:1.5px solid var(--muted); transform:rotate(-45deg); }
.activity-toggle[aria-expanded="true"]::after { transform:rotate(45deg); }
.activity-title { font-size:12px; font-weight:550; overflow-wrap:anywhere; }
.activity-subtitle { font-size:10px; color:var(--dim); overflow-wrap:anywhere; }
.activity-time { font-size:10px; color:var(--muted); text-align:right; }
.activity-outcome { font-size:9px; white-space:nowrap; }
.activity-outcome.success { color:var(--green); border-color:#8dcfb32b; background:#8dcfb30b; }
.activity-outcome.requested { color:var(--muted); }
.activity-outcome.failed, .activity-outcome.denied, .activity-outcome.unconfirmed { color:var(--amber); border-color:#dfbc7d33; background:#dfbc7d0b; }
.activity-identities { display:flex; flex-wrap:wrap; gap:3px 18px; margin-top:7px; font-size:11px; min-width:0; }
.activity-identity { min-width:0; overflow-wrap:anywhere; }
.activity-detail { margin-top:13px; padding-top:13px; border-top:1px solid var(--line); }
.activity-fields { display:grid; grid-template-columns:minmax(115px,160px) minmax(0,1fr); gap:7px 15px; margin:0; font-size:11px; }
.activity-fields dt { color:var(--muted); }
.activity-fields dd { margin:0; overflow-wrap:anywhere; white-space:pre-wrap; }
.activity-warning { margin:0 0 14px; color:var(--amber); font-size:11px; }
.activity-navigation { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 0 5px; font-size:11px; }
.activity-navigation > div { display:flex; gap:8px; }
#section-activity [data-activity-refresh] { min-width:76px; }
@media(max-width:760px) {
    .activity-filters { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .activity-summary { grid-template-columns:minmax(0,1fr) auto; gap:8px 12px; }
    .activity-time { grid-column:1 / -1; text-align:left; }
}
@media(max-width:450px) {
    .activity-filters .activity-search { grid-column:1 / -1; }
    .activity-filters > label:nth-child(2) { grid-column:1 / -1; }
    .activity-more-filters > div { grid-template-columns:minmax(0,1fr); }
    .activity-event { padding:13px; }
    .activity-fields { grid-template-columns:minmax(0,1fr); gap:3px; }
    .activity-fields dd { margin-bottom:8px; }
}
