/*
 * /dash styles. Tokens and base components come from /ds/tokens.css and /ds/bundle.css (vendored, see /ds/SOURCE).
 * This file adds only what the dash needs on top, from DASH_DESIGN_BRIEF_2026-10-31.md and DASH_MOCKUPS.html:
 * tokens only, flat (no shadows), no bold, one gradient phrase per H1, one gradient button per screen.
 * The one new value is --scrim (brief section 2), added once here.
 */
:root { --scrim: rgba(41, 41, 41, .4); }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--font-sans); }
b, strong { font-weight: inherit; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.qm-btn, .qm-btn:hover { box-shadow: none; text-decoration: none; }
.qm-btn { justify-content: center; min-height: 44px; cursor: pointer; }
.qm-btn.sm { min-height: 36px; }
.qm-btn[disabled], .qm-btn[aria-busy="true"] { opacity: .6; cursor: default; }
/* Busy button (billing-ui swapBtn, connect.js btn): label and busy text share one cell, so a busy button shows only the busy text
   and keeps its width. /auth/auth.css holds the same rules for the sign-in pages; the dash does not load that file. */
.swap { display: inline-grid; justify-items: center; }
.swap > * { grid-area: 1 / 1; transition: opacity 150ms cubic-bezier(0.25, 0.46, 0.45, 0.94); }
.swap .busy { opacity: 0; display: inline-flex; align-items: center; }
.qm-btn[aria-busy="true"] .swap .lbl { opacity: 0; }
.qm-btn[aria-busy="true"] .swap .busy { opacity: 1; }
.dots { display: inline-flex; gap: 4px; margin-left: 8px; }
.dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .3; animation: gidot 900ms ease infinite; }
.dots i:nth-child(2) { animation-delay: 150ms; }
.dots i:nth-child(3) { animation-delay: 300ms; }
@media (prefers-reduced-motion: reduce) { .swap > * { transition: none; } .dots i { animation: none; } }
.qm-btn.white { background: #fff; color: var(--navy); }
:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }

/* ---------------------------------------------------------------- top bar */
.dx-top { position: sticky; top: 0; z-index: 20; background: var(--bg); }
.dx-bar { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 32px; border-bottom: 1px solid var(--line); background: var(--bg); }
.dx-logo { display: block; flex: none; }
.dx-logo img { display: block; width: 108px; height: 28px; }
.dx-sp { flex: 1; }
.dx-menu-wrap { position: relative; }
.dx-sw { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--btn2-ink); background: transparent; border: 1px solid var(--btn2-line); border-radius: 10px; padding: 7px 12px; cursor: pointer; min-height: 36px; }
.dx-sw::after { content: ""; width: 6px; height: 6px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg); margin: -3px 0 0 4px; }
.dx-req { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; color: var(--ink-2); min-height: 36px; }
.dx-dot { min-width: 20px; height: 20px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 12px; display: grid; place-items: center; padding: 0 6px; }
/* The initials avatar: the same rule as auth.css .qw-av (brand gradient, League Spartan 400 at 40% of the circle). */
:where(.dx-av, .sc-avatar, .qw-av) { --av: 32px; width: var(--av); height: var(--av); border-radius: 50%; flex: none; position: relative; overflow: hidden; display: inline-grid; place-items: center; background: linear-gradient(117deg, #3079AE, #7ABDED); color: #fff; font-family: var(--font-sans); font-weight: 400; font-size: calc(var(--av) * .4); line-height: 1; letter-spacing: .02em; border: 0; padding: 0; cursor: default; }
button.dx-av { cursor: pointer; }
.dx-av.lg { --av: 56px; }
:is(.dx-av, .sc-avatar, .qw-av).photo { background: var(--surface-2); }
:is(.dx-av, .sc-avatar, .qw-av) img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.dx-pop { position: absolute; top: calc(100% + 8px); right: 0; min-width: 240px; max-width: 320px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px; z-index: 30; }
.dx-pop.left { right: auto; left: 0; }
.dx-pop .who { padding: 8px 12px 10px; font-size: 14px; color: var(--ink-2); border-bottom: 1px solid var(--line); margin-bottom: 4px; word-break: break-word; }
.dx-pop a, .dx-pop button { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; text-align: left; font-size: 15px; color: var(--ink); background: none; border: 0; border-radius: 8px; padding: 10px 12px; cursor: pointer; min-height: 44px; }
.dx-pop a:hover, .dx-pop button:hover { background: var(--alice); }
.dx-pop a[aria-current="page"] { color: var(--head); background: var(--wash); }
.dx-pop hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.dx-tabs { display: flex; gap: 6px; padding: 10px 32px; background: var(--bg-alt); border-bottom: 1px solid var(--line); overflow-x: auto; white-space: nowrap; position: relative; scrollbar-width: none; }
.dx-tabs::-webkit-scrollbar { display: none; }
.dx-tabs a { font-size: 14px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink-2); position: relative; flex: none; min-height: 34px; display: inline-flex; align-items: center; }
.dx-tabs a:hover { border-color: var(--core); }
.dx-tabs a.on { border-color: var(--core); color: var(--head); background: var(--surface); }
.dx-tabs a i { position: absolute; top: 4px; right: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--grad); }
.dx-tabs-wrap { position: relative; }

/* ------------------------------------------------------------------- page */
.dx-pg { padding: 32px; max-width: 1184px; margin: 0 auto; }
.dx-ph { margin-bottom: 24px; }
.dx-ph .ey { font-size: 12px; line-height: 1.4; letter-spacing: .12em; text-transform: uppercase; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; width: fit-content; margin-bottom: 6px; }
.dx-ph h1 { margin: 0; font: 400 34px/1.15 var(--font-sans); color: var(--head); letter-spacing: -.01em; }
.dx-ph h1:focus { outline: none; }
.dx-ph p.ld { margin-top: 8px; color: var(--ink-2); font-size: 17px; max-width: 680px; }
.dx-cols { display: grid; grid-template-columns: minmax(0, 1fr) 352px; gap: 48px; align-items: start; }
.dx-stack > * + * { margin-top: 16px; }
.dx-note { background: var(--wash); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; font-size: 15px; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.dx-note.quiet { margin-bottom: 16px; }
.dx-note button { flex: none; }
.dx-mono { font: 400 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dx-small { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.dx-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.dx-card h2, .dx-card h3 { margin: 0 0 4px; font: 400 18px/1.3 var(--font-sans); color: var(--head); letter-spacing: 0; }
.dx-card .sub { color: var(--ink-2); font-size: 15px; }
.dx-card.wash { background: var(--wash); }
.dx-card.empty { background: var(--surface-2); }
.dx-eyebrow { font: 400 12px/1.4 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.dx-when { font: 400 22px/1.25 var(--font-sans); color: var(--head); margin: 6px 0 2px; letter-spacing: -.01em; }
.dx-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 16px; }
.dx-txt { font: inherit; font-size: 15px; color: var(--btn2-ink); background: none; border: 0; padding: 8px 4px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 36px; }
.dx-chip { display: inline-block; font: 400 11px/1.3 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--core-ink); background: var(--alice); border-radius: 999px; padding: 3px 9px; white-space: nowrap; }
.dx-chip.q { color: var(--ink-2); background: var(--surface-2); }
.dx-link { font-size: 15px; background: none; border: 0; padding: 0; cursor: pointer; }
.dx-link span { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dx-link::after { content: " \2192"; color: var(--core); }

/* skeleton, empty, error */
.dx-skel { background: var(--surface-2); border-radius: 8px; height: 14px; margin: 10px 0; animation: qw-skel 1.6s ease-in-out infinite; }
@keyframes qw-skel { 50% { opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .dx-skel { animation: none; } }
.dx-skel.t { height: 22px; width: 55%; }
.dx-skel.b { height: 64px; border-radius: 12px; }
.dx-fail { text-align: left; padding: 8px 0; }
.dx-center { max-width: 560px; margin: 0 auto; padding: 96px 24px; text-align: center; }
.dx-center h1 { font: 400 34px/1.15 var(--font-sans); color: var(--head); }
.dx-center h1:focus { outline: none; }
.dx-center p { color: var(--ink-2); margin-top: 8px; }
.dx-center .dx-actions { justify-content: center; margin-top: 24px; }

/* checklist */
.dx-cl { list-style: none; margin: 12px 0 0; padding: 0; }
.dx-cl li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; flex-wrap: wrap; }
.dx-cl li:first-child { border-top: 0; }
.dx-cl .c { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-2); flex: none; }
.dx-cl .done .c { border: 0; background: var(--grad); position: relative; }
.dx-cl .done .c::after { content: ""; position: absolute; left: 7px; top: 4px; width: 6px; height: 11px; border-right: 2px solid #fff; border-bottom: 2px solid #fff; transform: rotate(45deg); }
.dx-cl .done .t { color: var(--ink-2); }
.dx-cl .t { flex: 1; min-width: 0; }
.dx-cl .r { font-size: 14px; color: var(--ink-2); }

/* score */
.dx-num { font: 200 88px/0.9 var(--font-sans); letter-spacing: -.05em; color: var(--ink-3); }
.dx-srow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 14px; }
.dx-sc { background: var(--grad); border-radius: 16px; padding: 20px 22px; color: #fff; }
.dx-sc .lb { font-size: 17px; }
.dx-sc .big { display: flex; align-items: baseline; gap: 8px; margin-top: 6px; }
.dx-sc .big span { font: 200 64px/1 var(--font-sans); letter-spacing: -.03em; }
.dx-sc .big small { font-size: 23px; opacity: .85; }
.dx-sc .meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; font-size: 16px; }
.dx-sc .meta .s2 { font-size: 14px; opacity: .9; }
.dx-wtag { border: 1.5px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 3px 10px; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.dx-sc .qm-btn { margin-top: 16px; }
.dx-ins { background: var(--wash); border-radius: 16px; padding: 20px 22px; font-size: 23px; line-height: 1.45; color: var(--head); }
.dx-pill { display: inline-block; font-size: 12px; padding: 3px 10px; border-radius: 999px; white-space: nowrap; color: #fff; }
.dx-pill.Developing { background: var(--developing); color: #5A4210; }
.dx-pill.Forming { background: var(--forming); }
.dx-pill.Strained { background: var(--strained); }
.dx-pill.Performing { background: var(--grad); }
.dx-pill.Thriving { background: var(--thriving); }
.dx-pat h2 { font: 400 22px/1.25 var(--font-sans); margin: 0 0 8px; }
.dx-pat ul { list-style: none; margin: 0; padding: 0; }
.dx-pat li { display: flex; flex-direction: column; gap: 4px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 17px; line-height: 1.5; }
.dx-pat-h { font-size: 18px; line-height: 1.3; color: var(--head); }
.dx-pat li:first-child { border-top: 0; }
.dx-pat .ft { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.dx-workson { font-size: 17px; line-height: 1.5; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.dx-workson-p { color: var(--head); }
.dx-prompt h2 { font: 400 22px/1.25 var(--font-sans); margin: 4px 0 6px; }
.dx-prompt p { max-width: 620px; font-size: 16px; }

/* rows (members, requests) */
.dx-rows { list-style: none; margin: 8px 0 0; padding: 0; }
.dx-row { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.dx-row:first-child { border-top: 0; }
.dx-row .w { flex: 1; min-width: 0; }
.dx-row .w p { font-size: 16px; }
.dx-row .nm { color: var(--ink); }
.dx-row .sb { font-size: 14px; color: var(--ink-2); }
.dx-menu-btn { min-width: 44px; min-height: 44px; background: none; border: 0; color: var(--ink-2); cursor: pointer; border-radius: 8px; font-size: 20px; line-height: 1; }
.dx-menu-btn:hover { background: var(--alice); }
.dx-field { display: block; font-size: 16px; line-height: 1.3; color: var(--ink); margin-bottom: 24px; }
/* Same field rhythm as auth.css (label 16px ink, hint 14px ink-2 4px under it, control 8px under that). */
.dx-field input, .dx-field select, .dx-field textarea { display: block; width: 100%; margin-top: 8px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 17px; color: var(--ink); background: var(--surface); height: 48px; }
.dx-field textarea { height: auto; padding: 12px 14px; min-height: 96px; resize: vertical; }
.dx-field input:focus, .dx-field select:focus, .dx-field textarea:focus { outline: none; border-color: var(--core); }
.dx-field .hint { display: block; font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 4px; }
.dx-field.bad input, .dx-field.bad textarea { border-color: var(--strained-ink); }
.dx-msg { min-height: 20px; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.dx-msg.bad { color: var(--strained-ink); }
.dx-copy { display: flex; gap: 8px; align-items: center; }
.dx-copy input { flex: 1; min-width: 0; height: 44px; margin: 0; }
.dx-toggle { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); font-size: 16px; }
.dx-toggle:first-of-type { border-top: 0; }
.dx-toggle input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--core); flex: none; }
.dx-toggle .h { color: var(--ink-2); font-size: 14px; display: block; }
.dx-times { display: grid; gap: 8px; margin-top: 12px; }
.dx-time { display: flex; justify-content: space-between; gap: 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: var(--surface); cursor: pointer; font-size: 16px; color: var(--head); min-height: 56px; }
.dx-time[aria-checked="true"] { border-color: var(--core); background: var(--wash); }
.dx-time span.c { color: var(--ink-2); font-size: 14px; }
.dx-section-gap { margin-top: 32px; }
.dx-h2 { font: 400 22px/1.25 var(--font-sans); color: var(--head); margin: 0 0 12px; }
.dx-two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* dialog */
dialog.dx-dlg { border: 1px solid var(--line); border-radius: 16px; padding: 24px; width: min(480px, calc(100% - 32px)); background: var(--surface); color: var(--ink); }
dialog.dx-dlg::backdrop { background: var(--scrim); }
dialog.dx-dlg h2 { margin: 0 0 10px; font: 400 22px/1.25 var(--font-sans); color: var(--head); }
dialog.dx-dlg h2:focus { outline: none; }
dialog.dx-dlg p { font-size: 16px; margin-bottom: 8px; }
dialog.dx-dlg .acts { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
dialog.dx-dlg .acts .qm-btn { width: 100%; }
dialog.dx-dlg .acts .dx-txt { align-self: center; }

/* ---------------------------------------------------------------- 390 */
@media (max-width: 640px) {
  .dx-bar { padding: 0 16px; gap: 10px; }
  .dx-logo img { width: 96px; }
  .dx-req .l { display: none; }
  .dx-tabs { padding: 10px 16px; }
  .dx-tabs-wrap::after { content: ""; position: absolute; right: 0; top: 0; bottom: 1px; width: 24px; background: linear-gradient(90deg, rgba(252, 253, 255, 0), var(--bg-alt)); pointer-events: none; }
  .dx-pg { padding: 24px 16px; }
  .dx-ph h1 { font-size: 28px; }
  .dx-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .dx-card { padding: 16px; }
  .dx-num { font-size: 64px; }
  .dx-actions .qm-btn { width: 100%; }
  .dx-srow { grid-template-columns: minmax(0, 1fr); }
  .dx-sc .big span { font-size: 52px; }
  .dx-sc .qm-btn { width: 100%; }
  .dx-ins { font-size: 20px; }
  .dx-two { grid-template-columns: 1fr; }
  .dx-note { flex-direction: column; align-items: flex-start; }
  .dx-pop { position: fixed; left: 16px; right: 16px; top: 72px; max-width: none; }
  dialog.dx-dlg { margin: auto 0 0 0; width: 100%; max-width: none; border-radius: 16px 16px 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .dx-fade { animation: dx-fade .2s ease both; }
  @keyframes dx-fade { from { opacity: 0; } to { opacity: 1; } }
}
.qm-em { font-style: normal; }
.dx-sharelbl { margin-top: 10px; }
.dx-copy input { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; background: var(--surface); }
.dx-msg:empty { display: none; }
@font-face { font-family: "IBM Plex Mono"; src: url("/ds/fonts/IBMPlexMono-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
.dx-prov { gap: 10px; }
.dx-prov img { display: block; flex: none; }
.dx-export { margin-top: 16px; }
.dx-export .dx-actions { margin-top: 8px; }
@media (max-width: 640px) { .dx-prov { width: 100%; justify-content: center; } }
.dx-consent-row { border-top: 1px solid var(--line); }
.dx-consent-row .dx-toggle { border-top: 0; }
.dx-consent-row .dx-msg { margin: 0 0 8px 32px; }
#hist-body { margin-top: 8px; }
#hist-body[hidden] { display: none; }

/* Guest Passes (A3): a pass row keeps its chip and buttons together and drops them under the name on a phone. */
.gp-row { flex-wrap: wrap; }
.gp-row .w { flex: 1 1 160px; }
.gp-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; }
@media (max-width: 560px) { .gp-acts { width: 100%; margin-left: 0; } }

/* Guest Passes: the read sits inside the candidate's row, under the name, full width (no rule, so it reads as part of that row). */
.gp-read { flex: 1 1 100%; padding-top: 4px; }
.gp-read p { margin: 0; overflow-wrap: anywhere; }
.gp-read-h { font-weight: 600; margin-bottom: 2px !important; }
