/*
 * QuestWorks Phase 2 pages (/start and /team). Loaded after tokens.css and auth.css.
 *
 * Source of the rules: docs/browser-first/design/phase2/START_AND_TEAM_BRIEF.md on origin/claude/p2-ui-briefs
 * (flags 14 and 15, sections 2.1 to 2.3, 3.2 and 6). The Design System rules copied here follow the
 * same convention as auth.css: bundle.css is not loaded; the module classes below are rebuilt from the
 * brief's description (chip4, pv3 sw, dg4, qm-empty, sp4 c) with the DS tokens.
 *
 * Rules: League Spartan 400 only, no shadows, one gradient button per screen, sky never alone, no
 * green, no mono. Only opacity, transform, border-color and background-color animate (plus the card
 * height ease that auth.css already has). Reduced motion: every movement is a 150ms fade.
 */

[hidden] { display: none !important; }

/* Flag 15 and flag 14: tap size and text colors that miss 4.5:1 in the DS. */
.qm-btn.sm { min-height: 44px; }
.qm-empty, .qm-tag { color: var(--ink-2); }
.qm-tag.on-alice, .chip-alice, .sp4 .c, .time-card .c { color: var(--head); }

/* ------------------------------------------------------------------ FlowCard */
.auth-card.flow { max-width: 560px; }
.flow-progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; overflow: hidden; pointer-events: none; }
.flow-progress i { display: block; height: 100%; background: var(--grad-line); transform-origin: left center; transform: scaleX(0); transition: transform var(--qw-dur-med) var(--qw-ease); }
.step-label { font-size: 12px; line-height: 1.4; letter-spacing: .10em; text-transform: uppercase; color: var(--ink-2); margin-bottom: 12px; }
.back-row { margin: -8px 0 8px -6px; }
.auth-card .lead.small, .lead.small { font-size: 14px; }
.invite-line { margin-top: 8px; font-size: 14px; color: var(--ink-2); }

/* Fields: select, textarea and the checkbox row join the one-column .ff4. */
.ff4 select, .ff4 textarea { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; transition: border-color var(--qw-dur-fast) var(--qw-ease); }
.ff4 textarea { min-height: 112px; resize: vertical; line-height: 1.45; }
.ff4 select:focus-visible, .ff4 textarea:focus-visible, .ff4 input:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.ff4 select:hover, .ff4 textarea:hover { border-color: var(--core); }
.ff4 textarea::placeholder { color: var(--ink-3); opacity: 1; }
.ff4 .err select, .ff4 .err textarea { border-color: var(--strained); }
.ff4 .opt { color: var(--ink-3); }
.ff4 .fl { font-size: 14px; color: var(--ink-2); }
.form-stack { display: grid; gap: 4px; }
.ff4 label.inline { display: block; }
.field-count { font-size: 14px; color: var(--ink-2); height: 20px; line-height: 20px; }
/* The team-name counter and its error share one 20px slot: the error replaces the counter, nothing moves. */
.slot20 { position: relative; height: 20px; }
[data-panel="workemail"] .msg:empty { display: none; }
[data-panel="workemail"] .small-line { margin-top: 0; }
.slot20 > .msg { position: absolute; top: 0; left: 0; right: 0; }
.slot20:has(> .msg[data-show]) > .field-count { opacity: 0; }
.msa-link { font-size: 14px; }
.msa-link a { color: var(--core); text-decoration: underline; text-underline-offset: 3px; }
.ff4 .ch { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; font-size: 14px; line-height: 1.45; color: var(--ink-2); padding: 10px 0; min-height: 44px; cursor: pointer; }
.ff4 .ch input { width: 20px; height: 20px; min-height: 0; margin: 2px 0 0; accent-color: var(--core); }
.ff4 .ch.err-ch { color: var(--ink); }
.ff4 .err .ch input { outline: 2px solid var(--strained); outline-offset: 1px; }

/* Notes, link-like buttons, hairline rows. */
.note { font-size: 14px; color: var(--ink-2); }
.note:empty { display: none; }
.linklike { font: inherit; font-size: 14px; background: none; border: 0; padding: 0; min-height: 24px; color: var(--core); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; border-radius: 4px; }
.linklike:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.row-gap { margin-top: 16px; }
.hrow { display: grid; gap: 4px; padding: 16px 0; border-block: 1px solid var(--line); }
.hrow .big { font-size: 22px; color: var(--head); line-height: 1.25; }
.hrow .sub { font-size: 14px; color: var(--ink-2); }
.hrow + .hrow { border-top: 0; }
.stepper-actions { display: grid; gap: 8px; }

/* P7 inline disclosure: content rises 6px and fades in while the container eases its height. */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows var(--qw-dur-fast) var(--qw-ease), opacity var(--qw-dur-fast) var(--qw-ease); }
.reveal[data-open] { grid-template-rows: 1fr; opacity: 1; }
.reveal > .reveal-in { min-height: 0; overflow: hidden; padding: 4px; margin: -4px; transform: translateY(6px); transition: transform var(--qw-dur-fast) var(--qw-ease); }
.reveal[data-open] > .reveal-in { transform: none; }
.reveal:not([data-open]) { visibility: hidden; transition: grid-template-rows var(--qw-dur-fast) var(--qw-ease), opacity var(--qw-dur-fast) var(--qw-ease), visibility 0s linear var(--qw-dur-fast); }

/* ----------------------------------------------------------------- time cards */
.time-picker { display: grid; gap: 16px; }
.tz-line { margin: 0; }
.times { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 8px; transition: opacity 150ms var(--qw-ease); }
.times.fading, .fading { opacity: 0; }
.lbl { transition: opacity 150ms var(--qw-ease); }
.time-card { position: relative; display: grid; align-content: start; gap: 2px; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px; min-height: 96px; cursor: pointer; transition: border-color var(--qw-dur-fast) var(--qw-ease), background-color var(--qw-dur-fast) var(--qw-ease); }
.time-card:hover { border-color: var(--core); }
.time-card:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.time-card.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.time-card[aria-checked="true"] { border-color: var(--core); background: var(--alice); }
.time-card .tc-l, .time-card .tc-r { display: grid; gap: 2px; }
.time-card .wd { font-size: 14px; color: var(--ink-2); }
.time-card .dt { font-size: 17px; color: var(--ink); }
.time-card .tm { font-size: 22px; line-height: 1.2; color: var(--head); }
.time-card .c, .sp4 .c { justify-self: start; font-size: 12px; line-height: 1.4; background: var(--alice); border-radius: 999px; padding: 2px 10px; }
.time-card[aria-checked="true"] .c { background: var(--surface); }
.time-card .tc-mark { position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; opacity: 0; transform: scale(.85); transition: opacity var(--qw-dur-fast) var(--qw-ease), transform var(--qw-dur-fast) var(--qw-ease-snap); }
.time-card[aria-checked="true"] .tc-mark { opacity: 1; transform: none; }
.time-card .tc-mark svg { display: block; }
.time-card.skel { display: grid; place-items: center; align-content: center; cursor: default; pointer-events: none; border-color: var(--line); background: var(--surface-2); }
.time-card.skel .dots { margin: 0; color: var(--ink-2); }

/* Weekday chips (chip4) and the picker. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip4 { font: inherit; font-size: 14px; min-height: 44px; min-width: 52px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color var(--qw-dur-fast) var(--qw-ease), background-color var(--qw-dur-fast) var(--qw-ease), color var(--qw-dur-fast) var(--qw-ease); }
.chip4:hover { border-color: var(--core); }
.chip4:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.chip4.on { background: var(--btn-bg); color: #fff; border-color: transparent; }
.picker-block { display: grid; gap: 16px; }

/* Switch row (pv3 sw). */
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 12px 0; border-block: 1px solid var(--line); cursor: pointer; }
.sw-row .t { display: grid; gap: 2px; }
.sw-row .t b { font-weight: 400; color: var(--ink); }
.sw-row .t span { font-size: 14px; color: var(--ink-2); }
.sw { position: relative; flex: none; width: 44px; height: 26px; border-radius: 999px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: background-color var(--qw-dur-fast) var(--qw-ease); }
.sw::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform var(--qw-dur-fast) var(--qw-ease); }
.sw[aria-checked="true"] { background: var(--btn-bg); }
.sw[aria-checked="true"]::after { transform: translateX(18px); }
.sw:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }

/* Teammate emails. */
.email-box { display: grid; gap: 6px; }
.email-box .hint { font-size: 14px; color: var(--ink-2); }
.email-box textarea { min-height: 140px; max-height: 280px; overflow-y: auto; overflow-wrap: anywhere; }
.result-line { font-size: 14px; color: var(--ink-2); min-height: 20px; line-height: 20px; }
.result-line.bad { color: var(--strained-ink); overflow-wrap: anywhere; }
.small-line.bad { color: var(--strained-ink); overflow-wrap: anywhere; }
.sec-status { display: grid; gap: 4px; }
.sec-status .sub { font-size: 14px; color: var(--ink-2); }
.sec-status.rise, .sec-sub.rise, .sec-row.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.sec-sub { margin-top: 4px; font-size: 14px; color: var(--ink-2); }
.sec-sub.bad { color: var(--strained-ink); overflow-wrap: anywhere; }
.sec-count { font-size: 17px; color: var(--ink); line-height: 1.4; }
.sec-count .num { transition: opacity 150ms linear; }
.sec-count .num.fading { opacity: 0; }
.sec-working { display: inline-flex; align-items: center; gap: 4px; font-size: 17px; color: var(--ink); }
.sec-working .dots { display: inline-flex; gap: 3px; margin-left: 4px; }
.btn-pair { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
.btn-pair .qm-btn { min-height: 44px; }
.row-with-mark { display: flex; align-items: center; gap: 10px; }
.invite-panel { display: grid; gap: 12px; }
.invite-panel .actions-row { display: grid; gap: 8px; }
.invite-panel .actions-row .qm-btn { justify-content: center; text-align: center; }

/* Copy button (P4): the copy icon swaps to the check mark for 1.5 seconds. */
.copy-btn .ic-yes { display: none; width: 16px; height: 16px; }
.copy-btn.copied .ic-copy { display: none; }
.copy-btn.copied .ic-yes { display: block; }
.copy-btn.copied .swap .lbl { opacity: 0; }

/* Done. */
.done-mark { margin-bottom: 16px; }
.done-mark .mark { margin-bottom: 0; }
.done-actions { display: grid; gap: 8px; margin-top: 8px; }
.done-actions .small-line { margin: 0; }
.done-actions .qm-btn, .change-panel .actions-row .qm-btn { justify-content: center; text-align: center; }

/* ------------------------------------------------------------------ WorkShell */
.work-header .logo-link { flex: none; }
.work-header { justify-content: space-between; }
.work-right { display: flex; align-items: center; gap: 16px; font-size: 14px; color: var(--ink-2); min-width: 0; }
.work-right .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 280px; }
.work { width: 100%; max-width: 800px; margin: 0 auto; padding: 48px 20px 96px; opacity: 0; }
.work[data-ready] { opacity: 1; animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.work h1 { font-size: 40px; line-height: 1.1; letter-spacing: -0.02em; outline: none; }
.work .qm-lead { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin-top: 12px; }
.work > section { padding: 32px 0; border-top: 1px solid var(--line); }
.work > section.first { border-top: 0; padding-top: 0; }
/* A card between sections (the free score card, the connect card) keeps 24px from the next section's divider, so the divider
   never runs along the card's own border (Asa, 2026-11-02). */
.work > :not(section):not(:empty) + section { margin-top: 24px; }
.work .qm-h3 { font-size: 22px; line-height: 1.25; letter-spacing: -0.015em; margin-bottom: 16px; }
.work .count { color: var(--ink-2); }
.sec-line { font-size: 17px; color: var(--ink-2); }
.sec-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.sec-info { flex: 1 1 240px; min-width: 0; }
.sec-row .when { font-size: 22px; color: var(--head); line-height: 1.25; }
.sec-row .when small { display: block; font-size: 14px; color: var(--ink-2); }
.change-panel { margin-top: 16px; display: grid; gap: 16px; }
.change-panel .actions-row { display: grid; gap: 8px; }
#msg-reset[data-show] { margin-top: 12px; }
.gd-rows + .sec-line, .gd-rows + .sec-sub { margin-top: 12px; }
.gd-rows .hrow .step-label { margin: 0; }
.gd-rows .hrow .sec-count { font-size: 17px; }
.gd-rows .hrow .sec-count.muted { color: var(--ink-3); }
.gd-rows .hrow.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.foot-link { margin: 40px 0 0; font-size: 17px; }
.work .pick-list.flat + .p2-note { margin-top: 24px; }
.p2-note { margin-top: 12px; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.moved-line { margin-top: 12px; font-size: 14px; color: var(--ink-2); animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.connect-mount:empty { display: none; }
.page-progress { position: fixed; z-index: 5; opacity: 1; }

.members { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.member-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px 0; min-height: 64px; border-bottom: 1px solid var(--line); background: transparent; }
.member-row.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.member-row.leaving { opacity: 0; transition: opacity var(--qw-dur-fast) var(--qw-ease); }
.member-row.collapsing { transition: transform var(--qw-dur-fast) var(--qw-ease), opacity var(--qw-dur-fast) var(--qw-ease); }
.member-row .nm { font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.member-row .sb { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.member-row .rm { opacity: 0; transition: opacity var(--qw-dur-fast) var(--qw-ease); }
.member-row:hover .rm, .member-row:focus-within .rm, .member-row .rm:focus-visible { opacity: 1; }
.member-row .fail { grid-column: 2 / -1; font-size: 14px; color: var(--strained-ink); }
.qm-empty { display: grid; gap: 16px; justify-items: start; padding: 24px; background: var(--surface-2); border-radius: 12px; }
.qm-empty p { margin: 0; }
.sec-fail { font-size: 14px; color: var(--ink-2); }

.skel-block { height: 64px; border-radius: 12px; background: var(--surface-2); }
.work-center { max-width: 560px; margin: 0 auto; padding: 96px 20px; opacity: 0; }
.work-center[data-ready] { opacity: 1; animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.work-center h1 { font-size: 30px; line-height: 1.1; letter-spacing: -0.02em; outline: none; }
.work-center .lead { margin-top: 12px; color: var(--ink-2); }
.work-center .body { margin-top: 24px; display: grid; gap: 16px; justify-items: start; }
.work-center .body > .time-picker { justify-self: stretch; width: 100%; }
.work-center .body > .actions-row { justify-self: stretch; }
.work-center .tag-soon { margin-bottom: 16px; }

/* ------------------------------------------------------------------ dialog (dg4) */
dialog.dg4 { border: 0; padding: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; display: none; place-items: center; overflow: visible; color: var(--ink); }
dialog.dg4[open] { display: grid; }
dialog.dg4::backdrop { background: rgba(41, 41, 41, .4); opacity: 0; transition: opacity var(--qw-dur-fast) var(--qw-ease); }
dialog.dg4.shown::backdrop { opacity: 1; }
dialog.dg4 .box { width: min(420px, calc(100% - 32px)); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: grid; gap: 12px; opacity: 0; transform: translateY(10px); transition: opacity var(--qw-dur-fast) var(--qw-ease), transform var(--qw-dur-med) var(--qw-ease-snap); }
dialog.dg4.shown .box { opacity: 1; transform: none; }
dialog.dg4 h2 { outline: none; }
dialog.dg4 .lead { color: var(--ink-2); font-size: 17px; }
dialog.dg4 .acts { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
dialog.dg4 .acts .qm-btn { min-height: 44px; justify-content: center; }
dialog.dg4 .msg { height: 0; margin-top: -4px; }


/* ------------------------------------------------- first game day choice (/start step 3) */
/* Two equal cards, neither selected on load. The radio is the control; the card paints its state. */
.choice-cards { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.choice-card { position: relative; display: grid; align-content: start; gap: 6px; padding: 16px 16px 16px 16px; min-height: 132px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; transition: border-color var(--qw-dur-fast) var(--qw-ease), background-color var(--qw-dur-fast) var(--qw-ease); }
.choice-card:hover { border-color: var(--core); }
.choice-card input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.choice-card:has(input:focus-visible) { outline: 2px solid var(--core); outline-offset: 2px; }
.choice-card:has(input:checked) { border-color: var(--core); background: var(--alice); }
.choice-card .cc-t { font-size: 17px; line-height: 1.3; color: var(--head); padding-right: 28px; }
.choice-card .cc-d { font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.choice-card .cc-mark { position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; opacity: 0; transform: scale(.85); transition: opacity var(--qw-dur-fast) var(--qw-ease), transform var(--qw-dur-fast) var(--qw-ease-snap); }
.choice-card:has(input:checked) .cc-mark { opacity: 1; transform: none; }
.choice-card .cc-mark svg { display: block; }
.pick-fields { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; margin-top: 4px; }
.pick-fields input[type="date"] { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; transition: border-color var(--qw-dur-fast) var(--qw-ease); }
.pick-fields input[type="date"]:hover { border-color: var(--core); }
.pick-fields .err input, .pick-fields .err select { border-color: var(--strained); }
#choice + .msg { margin-top: 4px; }
#pick-reveal .reveal-in { display: grid; gap: 8px; }
#pick-reveal .tz-line { margin: 0; }
.pick-note, .pick-warn { margin: 0; font-size: 14px; line-height: 1.45; padding: 10px 14px; border-radius: 10px; overflow-wrap: anywhere; }
.pick-note { background: var(--alice); color: var(--head); }
.pick-warn { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line-2); }
.pick-note:not([hidden]), .pick-warn:not([hidden]) { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
@media (max-width: 480px) {
  .choice-cards { grid-template-columns: 1fr; gap: 12px; }
  .choice-card { min-height: 0; }
  .pick-fields { grid-template-columns: 1fr; gap: 8px; }
}

/* ------------------------------------------------------------------ narrow */
@media (max-width: 480px) {
  .times { grid-template-columns: 1fr; gap: 8px; }
  .time-card { grid-template-columns: minmax(0, 1fr) auto; align-items: center; min-height: 64px; padding: 10px 16px 10px 44px; gap: 12px; }
  .time-card .tc-r { justify-items: end; text-align: right; }
  .time-card .tc-mark { top: 50%; left: 14px; right: auto; margin-top: -9px; }
  .time-card.skel { grid-template-columns: 1fr; padding: 10px 16px; }
  .work { padding: 32px 20px 96px; }
  .work h1 { font-size: 30px; }
  .work .qm-lead { font-size: 17px; }
  .work-right .who { display: none; }
  .member-row .rm { display: none; }
  .member-row[data-tap] { cursor: pointer; }
  .sec-row .when { font-size: 20px; }
  dialog.dg4 { place-items: start center; }
  dialog.dg4 .box { margin-top: 24px; width: calc(100% - 16px); }
  dialog.dg4 .acts { flex-direction: column-reverse; }
  dialog.dg4 .acts .qm-btn { width: 100%; }
}

/* ------------------------------------------------------------ reduced motion */
@media (prefers-reduced-motion: reduce) {
  /* Every movement becomes a 150ms opacity fade; looping motion stops (auth.css shows the static dots). */
  .work[data-ready], .work-center[data-ready], .time-card.rise, .pick-note:not([hidden]), .pick-warn:not([hidden]), .member-row.rise, .sec-status.rise, .sec-sub.rise, .sec-row.rise, .moved-line { animation: fade-in 150ms linear both; }
  .flow-progress i { transition: none; }
  .reveal, .reveal > .reveal-in { transition: opacity 150ms linear; transform: none; }
  .reveal:not([data-open]) { transition: opacity 150ms linear; }
  .choice-card, .choice-card .cc-mark, .time-card, .time-card .tc-mark, .chip4, .sw, .sw::after, .member-row .rm, .times, .lbl { transition: opacity 150ms linear, border-color 0s, background-color 0s; }
  .time-card .tc-mark { transform: none; }
  .sw[aria-checked="true"]::after { transform: translateX(18px); }
  dialog.dg4 .box { transform: none; transition: opacity 150ms linear; }
  dialog.dg4::backdrop { transition: opacity 150ms linear; }
  .member-row.collapsing { transition: opacity 150ms linear; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ======================================================================================================
   Phase 2 W10 / W10b: the connect card on /team, the channel picker, /team/connect-teams, /integrations,
   /invite-a-lead and the /start install states. Source: docs/browser-first/design/phase2/UNLOCK_AND_CONNECT_BRIEF_W10.md.
   No new tokens: every value below is a token or a number the sections above already use.
   ====================================================================================================== */

/* One card, hairline rows (the same composition as the member rows). The card is the only one on /team. */
.connect-mount > .connect-card { padding: 24px; margin: 32px 0; }
.connect-mount > .p2-note { margin: 32px 0; }
.connect-card.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.connect-card .step-label { margin: 0; }
.connect-card .connected-line { margin: 8px 0 0; font-size: 17px; color: var(--ink); overflow-wrap: anywhere; }
.connect-card .pick-list { margin-top: 16px; }
.connect-card .p2-note { margin-top: 16px; }

.pick-list { list-style: none; margin: 24px 0 0; padding: 0; border-top: 1px solid var(--line); }
.pick-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; align-items: center; padding: 12px 0; min-height: 64px; border-bottom: 1px solid var(--line); }
.pick-list > .pick-row:last-child { border-bottom: 0; padding-bottom: 0; }
.pick-row.rise { animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.pick-row .pr-t { font-size: 17px; line-height: 1.3; color: var(--ink); font-weight: 400; overflow-wrap: anywhere; }
.pick-row .pr-l { font-size: 14px; line-height: 1.4; color: var(--ink-2); margin-top: 2px; overflow-wrap: anywhere; }
.pick-row .pr-a { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pick-row .pr-x { grid-column: 1 / -1; min-width: 0; }
.pick-row .pr-note { margin: 0; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.pick-row .pr-note.bad { color: var(--strained-ink); }
.pick-row .pr-done { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.pick-row .pr-done svg { width: 18px; height: 18px; flex: none; }
.pr-x .reveal-in > .lead-form { padding-top: 8px; }

/* Radio rows (the Slack channels): the selected state of a time card. */
.pick-opts { display: grid; gap: 8px; max-height: 50vh; overflow-y: auto; padding: 2px; margin: -2px; }
.pick-row.opt { position: relative; grid-template-columns: minmax(0, 1fr); gap: 0; text-align: left; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 44px 10px 16px; min-height: 56px; width: 100%; cursor: pointer; transition: border-color var(--qw-dur-fast) var(--qw-ease), background-color var(--qw-dur-fast) var(--qw-ease); }
.pick-row.opt:hover { border-color: var(--core); }
.pick-row.opt:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.pick-row[aria-checked="true"] { border-color: var(--core); background: var(--alice); }
.pick-row .tc-mark { position: absolute; top: 50%; right: 14px; margin-top: -9px; width: 18px; height: 18px; opacity: 0; transform: scale(.85); transition: opacity var(--qw-dur-fast) var(--qw-ease), transform var(--qw-dur-fast) var(--qw-ease-snap); }
.pick-row[aria-checked="true"] .tc-mark { opacity: 1; transform: none; }
.pick-row .tc-mark svg { display: block; }
.pick-wrap { display: grid; gap: 12px; min-width: 0; }
.pick-wrap .ff4 input[type="search"] { font: inherit; font-size: 16px; padding: 11px 14px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); min-height: 44px; width: 100%; }
.pick-wrap .ff4 input[type="search"]:focus-visible { outline: 2px solid var(--core); outline-offset: 2px; }
.pick-wrap .qm-empty { padding: 16px; }
.pick-wrap .sec-working { font-size: 14px; color: var(--ink-2); }
dialog.dg4 .box.wide { width: min(480px, calc(100% - 32px)); }

/* The invite form on /invite-a-lead. */
.lead-form { display: grid; gap: 8px; }
.lead-form .ff4 { gap: 6px; }
.lead-form .small-line { margin: 8px 0; }
.lead-form .note-toggle { justify-self: start; padding: 10px 0; min-height: 44px; }
.lead-form .msg { margin: 0; }

/* /team/connect-teams: the code. */
.copy-field input.code { font-size: 24px; letter-spacing: .3em; text-align: center; padding-left: calc(14px + .3em); min-height: 56px; font-variant-numeric: tabular-nums; }
.teams-code { margin-top: 24px; }
.teams-code .copy-field { margin-top: 0; }
.teams-code .copy-row .qm-btn { align-self: center; }
.teams-wait { display: inline-flex; align-items: center; margin: 0; font-size: 14px; color: var(--ink-2); animation: rise var(--qw-dur-med) var(--qw-ease) both; }
.teams-actions { display: grid; gap: 12px; margin-top: 24px; }

/* /start install states: the "Post in ..." button sits beside Copy link. */
.linklike.pad { padding: 10px 0; min-height: 44px; }
.copy-row .post-btn { flex: none; min-height: 44px; justify-content: center; }
.copy-row .post-btn .pr-done { gap: 6px; }
.post-line { margin: 8px 0 0; }

/* /integrations and the other WorkShell pages that carry a list. */
.work .pick-list.flat { margin-top: 24px; }
.work .pick-list.flat > .pick-row:last-child { border-bottom: 1px solid var(--line); padding-bottom: 12px; }

@media (max-width: 480px) {
  .connect-mount > .connect-card { padding: 20px; }
  .pick-row { grid-template-columns: minmax(0, 1fr); }
  .pick-row .pr-a { justify-content: flex-start; }
  .pick-row.opt { grid-template-columns: minmax(0, 1fr); }
  .pick-list.inline-actions .pick-row { grid-template-columns: minmax(0, 1fr) auto; }
  dialog.dg4 .box.wide { width: calc(100% - 16px); }
}

@media (prefers-reduced-motion: reduce) {
  .connect-card.rise, .pick-row.rise, .teams-wait { animation: fade-in 150ms linear both; }
  .pick-row.opt, .pick-row .tc-mark { transition: opacity 150ms linear, border-color 0s, background-color 0s; }
  .pick-row .tc-mark { transform: none; }
}
.pick-list.flat .pr-a .qm-btn { min-width: 112px; justify-content: center; }
.pick-list.inline-actions .pr-a { justify-content: flex-end; }

.lead-form .qm-btn, #btn-another { justify-content: center; }
.lead-form .qm-btn .swap, #btn-another .swap { justify-items: center; }
