/* QA on the web (site/r/), DevQ brand (design/ui/screens/09-site).
   This sheet carries every rule the page needs: it does not rely on site.css.
   Tokens are the site's table of the spec; every text color keeps at least
   4.5:1 on bg, side, surface and surface-2 in both themes.
   Bump ?v= in site/r/index.html whenever this file changes. */

@font-face { font-family: 'Geist'; font-weight: 400; font-display: swap; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-display: swap; src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-display: swap; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 700; font-display: swap; src: url('fonts/geist-sans-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 400; font-display: swap; src: url('fonts/geist-mono-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-weight: 500; font-display: swap; src: url('fonts/geist-mono-latin-500-normal.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #FFFFFF; --side: #F7F6FA; --surface: #F4F3F8; --surface-2: #EFEDF5; --border: #E8E6EE; --track: #D9D6E2;
  --text: #14111C; --text-2: #4D4860; --text-3: #6B667E;
  --link: #5B3EF0; --brand: #6B4EFF; --focus: #6B4EFF;
  --lime: #C6F84E; --lime-ink: #14111C;
  --amber: #8A5300; --amber-dot: #F5B544; --danger: #C4232D; --ok: #1F7A45;
  --menu-bg: #FFFFFF; --shadow-menu: 0 14px 36px rgba(0, 0, 0, .14); --shadow-seg: 0 1px 2px rgba(0, 0, 0, .18);
  --veil: rgba(10, 9, 16, .35);
  --show-light: inline-block; --show-dark: none;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B667E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --font: 'Geist', Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-1: 120ms; --dur-2: 180ms; --dur-3: 240ms;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark; --google-bg: #17141F;
    --bg: #0E0C14; --side: #0A0910; --surface: #17141F; --surface-2: #211D2B; --border: #24202E; --track: #2E2A39;
    --text: #F4F2FA; --text-2: #B6B1C6; --text-3: #8C879E;
    --link: #A893FF; --brand: #8C74FF; --focus: #A893FF;
    --amber: #F5B544; --danger: #FF6B6B; --ok: #5BD08A;
    --menu-bg: #1C1925; --shadow-menu: 0 14px 36px rgba(0, 0, 0, .5); --shadow-seg: 0 1px 2px rgba(0, 0, 0, .4);
    --veil: rgba(10, 9, 16, .55);
    --show-light: none; --show-dark: inline-block;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C879E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
:root[data-theme="dark"] {
  color-scheme: dark; --google-bg: #17141F;
  --bg: #0E0C14; --side: #0A0910; --surface: #17141F; --surface-2: #211D2B; --border: #24202E; --track: #2E2A39;
  --text: #F4F2FA; --text-2: #B6B1C6; --text-3: #8C879E;
  --link: #A893FF; --brand: #8C74FF; --focus: #A893FF;
  --amber: #F5B544; --danger: #FF6B6B; --ok: #5BD08A;
  --menu-bg: #1C1925; --shadow-menu: 0 14px 36px rgba(0, 0, 0, .5); --shadow-seg: 0 1px 2px rgba(0, 0, 0, .4);
  --veil: rgba(10, 9, 16, .55);
  --show-light: none; --show-dark: inline-block;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C879E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { :root { --dur-1: 0ms; --dur-2: 80ms; --dur-3: 80ms; } }

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body.qa { margin: 0; background: var(--bg); color: var(--text); font: 400 14px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: var(--link); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: color var(--dur-1), text-decoration-color var(--dur-1), background-color var(--dur-1), box-shadow var(--dur-1); }
a:hover { text-decoration-color: currentColor; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; transition: color var(--dur-1), background-color var(--dur-1), border-color var(--dur-1), box-shadow var(--dur-1), opacity var(--dur-1); }
img { max-width: 100%; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.dim { color: var(--text-3); }
.small { font-size: 12.5px; }
.spacer { flex: 1; }
.nowrap { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.only-light { display: var(--show-light); }
.only-dark { display: var(--show-dark); }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; padding: 8px 12px; border-radius: 8px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { top: 12px; }
.ic { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ic-fill { fill: currentColor; stroke: none; }
.ic-bold { stroke-width: 2.4; }
:focus { outline: none; }
:focus-visible { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent), 0 0 0 1px var(--focus); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 11px; border: 1px solid var(--border); border-radius: 8px; background: transparent; color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; transition: background-color var(--dur-1), border-color var(--dur-1), opacity var(--dur-1), box-shadow var(--dur-1), color var(--dur-1); }
.btn:hover { background: var(--surface); text-decoration: none; }
.btn.primary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn.primary:hover { opacity: .88; background: var(--text); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--lime-ink); font-weight: 650; }
.btn.lime:hover { background: #B9F02F; }
.btn.small { height: 28px; font-size: 12.5px; border-radius: 7px; padding: 0 10px; gap: 5px; }
.btn.big { height: 40px; width: 100%; border-radius: 9px; font-size: 14px; gap: 10px; }
.btn.huge { height: 48px; width: 100%; border-radius: 12px; font-size: 16px; font-weight: 650; }
.btn[disabled] { opacity: .55; cursor: default; }
.btn[data-sure="1"] { border-color: var(--danger); color: var(--danger); }
.ib { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: none; padding: 0; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); transition: background-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
.ib:hover, .ib[aria-expanded="true"] { background: var(--surface-2); color: var(--text); }
.ib.boxed { width: 34px; height: 34px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-2); }
.linkish { padding: 0; border: 0; border-radius: 4px; background: none; color: var(--link); font-weight: 550; font-size: inherit; text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 2px; transition: color var(--dur-1), text-decoration-color var(--dur-1), box-shadow var(--dur-1); }
.linkish:hover { text-decoration-color: currentColor; }
.linkish.quiet { color: var(--text-3); font-size: 12.5px; }
.linkish.quiet:hover { color: var(--text); }
.clip { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; flex: none; padding: 0; border: 0; border-radius: 6px; background: transparent; color: var(--text-3); opacity: 0; transition: opacity var(--dur-1), background var(--dur-1), color var(--dur-1); }
tr:hover .clip, .card:hover .clip, .clip:focus-visible, .page-cell .clip { opacity: 1; }
.clip:hover { background: var(--surface-2); color: var(--text); }
.clip.ok { color: var(--ok); opacity: 1; }
.clip.bad { color: var(--danger); opacity: 1; }
@media (hover: none) { .clip { opacity: 1; } }

/* ---------- menus ---------- */
.qa-menu { position: fixed; z-index: 60; min-width: 200px; max-width: min(320px, calc(100vw - 16px)); padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--menu-bg); box-shadow: var(--shadow-menu); }
.qa-menu-item { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 32px; padding: 0 9px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; transition: background-color var(--dur-1), color var(--dur-1); }
.qa-menu-item.tall { min-height: 38px; padding: 0 8px; border-radius: 8px; }
.qa-menu-item[aria-checked="true"] { background: var(--surface-2); }
.qa-menu-item > span:not(.ws-tile) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-menu-item > span:not(.ws-tile) { flex: 1; min-width: 0; }
.qa-menu-item .ic { color: var(--text-3); }
.qa-menu-item:hover, .qa-menu-item:focus-visible { background: var(--surface-2); text-decoration: none; box-shadow: none; }
.qa-menu-item.danger, .qa-menu-item[data-sure="1"] { color: var(--danger); }
.qa-menu-sep { height: 1px; margin: 6px 0; background: var(--border); }
.qa-menu-note { padding: 6px 9px 4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); overflow-wrap: anywhere; }

/* ---------- shell ---------- */
.qa-shell { display: grid; grid-template-columns: minmax(0, 1fr); min-height: 100vh; }
.qa-shell.with-side { grid-template-columns: 248px minmax(0, 1fr); }
.qa-main { display: flex; flex-direction: column; min-width: 0; }
.qa-side { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 2px; background: var(--side); border-right: 1px solid var(--border); }
.side-brand { display: inline-flex; align-self: flex-start; padding: 4px 8px 12px; border-radius: 6px; }
.side-brand img, .brand img { height: 18px; width: auto; }
.side-ws { position: relative; display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 0 8px; margin: 0 0 10px; border: 0; border-radius: 9px; background: transparent; color: var(--text); text-align: left; transition: background-color var(--dur-1), box-shadow var(--dur-1); }
button.side-ws:hover, button.side-ws[aria-expanded="true"] { background: var(--surface-2); }
/* the workspace's picture, or its initial on its own color: 28 px in the sidebar, 22 in the menu, 72 in its settings */
.ws-tile { flex: none; width: var(--ts, 28px); height: var(--ts, 28px); border-radius: var(--tr, 8px); display: inline-flex; align-items: center; justify-content: center; overflow: hidden; background: var(--tile, #5B3EF0); color: #fff; font-size: calc(var(--ts, 28px) * .43); font-weight: 700; line-height: 1; }
.ws-tile.ws-pic { background: var(--surface-2); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.ws-tile img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.side-ws-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-ws-text b { font-size: 13.5px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-ws-text small, .side-person-text small { font-size: 11.5px; color: var(--text-3); }
.side-ws > .ic { color: var(--text-3); transition: transform var(--dur-2) var(--ease-out); }
button.side-ws[aria-expanded="true"] > .ic { transform: rotate(180deg); }
@media (prefers-reduced-motion: reduce) { .side-ws > .ic { transition: none; } button.side-ws[aria-expanded="true"] > .ic { transform: none; } }
.side-tool { position: relative; z-index: 1; width: 24px; height: 24px; }
.side-nav { display: grid; gap: 2px; }
.side-item { display: flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--text-2); font-size: 13.5px; font-weight: 500; min-width: 0; transition: background var(--dur-1), color var(--dur-1); }
.side-item .ic { color: var(--text-3); }
.side-item, .side-brand, .brand, .card-media { text-decoration: none; }
.side-item:hover { background: var(--surface-2); color: var(--text); }
.side-item.on { background: var(--surface-2); color: var(--text); font-weight: 600; }
.side-item.on .ic { color: var(--text); }
.side-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-count { font-family: var(--mono); font-size: 11.5px; color: var(--text-3); }
.side-title-row { display: flex; align-items: center; margin: 18px 0 4px; padding: 0 4px 0 10px; min-height: 24px; }
.side-title { flex: 1; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.side-empty { margin: 0 10px; font-size: 12.5px; line-height: 1.45; color: var(--text-3); }
.side-form { display: grid; gap: 8px; margin: 2px 0 10px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--bg); }
.side-form label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.side-form-actions { display: flex; gap: 6px; }
.side-person { display: flex; align-items: center; gap: 9px; margin-top: 12px; padding: 10px 4px 2px 8px; border-top: 1px solid var(--border); }
.side-person-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.side-person-text b { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-bones { display: grid; gap: 12px; padding: 6px 8px; }
.qa-scrim { display: none; }

.qa-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; height: 60px; flex: none; padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--border); }
.brand { display: inline-flex; align-items: center; border-radius: 6px; }
.with-side #brand, .side-open { display: none; }
.qa-crumbs { min-width: 0; flex: 0 1 auto; }
.crumbs { min-width: 0; }
.crumbs ol { display: flex; align-items: center; font-size: 13.5px; min-width: 0; }
.crumbs li { display: flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: '/'; margin: 0 8px; color: var(--text-3); }
.crumbs li > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 30ch; color: var(--text-3); font-weight: 500; border-radius: 4px; }
.crumbs li[aria-current] > * { color: var(--text); font-weight: 600; }
.crumbs a { text-decoration: none; }
.crumbs a:hover { color: var(--text); }
/* a ticket: its number, then its title a little quieter, cut with an ellipsis */
.crumbs li.crumb-long { flex: 0 1 auto; }
.crumbs li.crumb-long > * { max-width: min(64ch, 38vw); }
.crumbs li[aria-current] .crumb-sub { color: var(--text-2); font-weight: 500; }
.qa-find { position: relative; display: flex; align-items: center; gap: 8px; width: 260px; height: 34px; padding: 0 10px; border: 1px solid var(--border); border-radius: 8px; color: var(--text-3); font-size: 13px; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
.qa-find:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.qa-find input { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; background: none; color: var(--text); outline: none; box-shadow: none; }
.qa-find input::placeholder { color: var(--text-3); opacity: 1; }
.qa-find input::-webkit-search-cancel-button { display: none; }
.qa-find kbd { font-family: var(--mono); font-size: 11px; color: var(--text-3); white-space: nowrap; }
.find-list { position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; width: min(420px, calc(100vw - 24px)); padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--menu-bg); box-shadow: var(--shadow-menu); transform-origin: top right; }
.find-item { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 4px 9px; border-radius: 7px; color: var(--text); font-size: 13px; text-decoration: none; transition: background-color var(--dur-1); }
.find-item:hover { text-decoration: none; }
.find-item .ic { color: var(--text-3); }
.find-item[aria-selected="true"] { background: var(--surface-2); }
.find-title { flex: 1; min-width: 0; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-sub { flex: none; max-width: 40%; font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.find-none { padding: 10px 9px; font-size: 13px; color: var(--text-3); }
.qa-actions { display: flex; align-items: center; gap: 8px; }
.shared-by { font-size: 12px; color: var(--text-3); white-space: nowrap; }
.person-top { width: 34px; height: 34px; border-radius: 50%; }
.qa-content { flex: 1; width: 100%; min-height: calc(100vh - 60px); padding: 26px 32px 56px; }
/* running text keeps a line a person can read, whatever the width of the screen */
.page-head .by, .private-note, .verify-note, .comment p, .report-body, .integ-what, .integ-hint, .teambox-out p, .guest-note span, .replay-head p, .compare > .dim { max-width: 760px; }
.qa-foot { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: space-between; padding: 16px 32px; border-top: 1px solid var(--border); font-size: 12px; color: var(--text-3); }
.qa-foot nav { display: flex; gap: 16px; }
.qa-foot a { color: var(--text-3); text-decoration: none; }
.qa-foot a:hover { color: var(--text); }
/* while the page loads, the top bar keeps its place but shows nothing that would move when the page arrives */
.loading .qa-top > :not(.brand):not(.side-open), .veiled .qa-top > :not(.brand):not(.side-open) { visibility: hidden; }
.veiled .qa-main, .veiled .qa-side { pointer-events: none; }

/* ---------- small parts ---------- */
.av { display: inline-flex; align-items: center; justify-content: center; flex: none; width: var(--avs, 24px); height: var(--avs, 24px); border-radius: 50%; background: var(--av, #4E4A8C); color: #fff; font-size: calc(var(--avs, 24px) * .4); font-weight: 700; letter-spacing: 0; line-height: 1; }
.av-pic { background: var(--surface-2); overflow: hidden; }
.av-pic img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 50%; }
.avs { display: inline-flex; padding-left: 6px; }
.avs .av { margin-left: -6px; box-shadow: 0 0 0 2px var(--bg); }
.av-more { background: var(--surface-2); color: var(--text-2); }
.dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.dot-amber { background: var(--amber-dot); }
.dot-violet { background: var(--link); }
.dot-ok { background: var(--ok); }
.dot-danger { background: var(--danger); }
.dot-ink { background: var(--text); }
.dot-hollow { background: transparent; box-shadow: inset 0 0 0 1.5px var(--track); }
.bars { display: inline-flex; align-items: flex-end; gap: 1.5px; flex: none; }
.bars i { width: 3px; border-radius: 1px; background: var(--border); }
.bars i:nth-child(1) { height: 4px; } .bars i:nth-child(2) { height: 6px; } .bars i:nth-child(3) { height: 8px; } .bars i:nth-child(4) { height: 10px; }
.bars-low i.on { background: var(--text-3); }
.bars-medium i.on { background: var(--amber-dot); }
.bars-high i.on, .bars-critical i.on { background: var(--danger); }
.sev { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 550; color: var(--text-2); white-space: nowrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; border: 1px solid var(--border); border-radius: 7px; font-size: 12px; font-weight: 550; color: var(--text-2); white-space: nowrap; max-width: 100%; }
.pill.tall { height: 30px; border-radius: 8px; font-size: 12.5px; }
.pill-select { position: relative; padding-right: 6px; transition: border-color var(--dur-1), background var(--dur-1); }
.pill-select:hover { background: var(--surface); }
.pill-select:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.pill-select > .ic { color: var(--text-3); pointer-events: none; margin-left: -18px; }
.pill-lead { display: inline-flex; }
.pill-lead:empty { display: none; }
.status-select { appearance: none; -webkit-appearance: none; height: 100%; max-width: 150px; padding: 0 20px 0 0; border: 0; background: transparent; color: var(--text-2); font-size: inherit; font-weight: inherit; cursor: pointer; text-overflow: ellipsis; }
.status-select:focus-visible { box-shadow: none; }
.status-select[disabled] { opacity: .6; }
.who { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.chip { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip-quiet { background: transparent; border: 1px solid var(--border); color: var(--text-3); }
.chip-select { padding-right: 4px; }
.chip-select:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent), 0 0 0 1px var(--focus); }
.chip-select .ic { margin-left: -16px; pointer-events: none; color: var(--text-3); }
.badge { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.standing { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 13px; color: var(--text-3); }
.standing b { color: var(--text); font-weight: 600; }
.standing .with-dot { display: inline-flex; align-items: center; gap: 5px; }
.standing .dot { width: 6px; height: 6px; }
.seg { position: relative; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-ind { position: absolute; top: 3px; bottom: 3px; left: 3px; width: 0; border-radius: 7px; background: var(--bg); box-shadow: var(--shadow-seg); opacity: 0; transform-origin: left center; pointer-events: none; }
.seg button { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--text-3); font-size: 12.5px; font-weight: 500; white-space: nowrap; transition: color var(--dur-1), box-shadow var(--dur-1); }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { color: var(--text); font-weight: 600; }
.seg .n, .n { font-family: var(--mono); font-size: 11px; font-weight: 400; color: var(--text-3); }
.seg-icons { padding: 2px; border-radius: 8px; background: transparent; }
.seg-icons .seg-ind { top: 2px; bottom: 2px; border-radius: 6px; background: var(--surface-2); box-shadow: none; }
.seg-icons button { width: 28px; height: 26px; padding: 0; justify-content: center; border-radius: 6px; }
input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea, .integ-select, select[name] { width: 100%; min-height: 36px; padding: 7px 11px; border: 1px solid var(--border); border-radius: 9px; background: var(--bg); color: var(--text); font-size: 13.5px; transition: border-color var(--dur-1), box-shadow var(--dur-1); }
textarea { resize: vertical; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: var(--text-3); opacity: 1; }
select.integ-select, select[name]:not(.status-select) { appearance: none; -webkit-appearance: none; padding-right: 30px; text-overflow: ellipsis; background-image: var(--chev); background-position: right 9px center; background-size: 13px 13px; background-repeat: no-repeat; }
select.status-select { width: auto; min-height: 0; padding: 0 20px 0 0; border: 0; border-radius: 0; background: transparent; font-size: inherit; }
.form-err { color: var(--danger); font-size: 13px; font-weight: 500; }
.err-slot:empty { display: none; }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.label { font-size: 12px; font-weight: 600; color: var(--text-3); }

/* ---------- page head ---------- */
.page-head { display: flex; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.page-head-main { flex: 1; min-width: min(100%, 320px); }
.page-head h1 { font-size: 26px; line-height: 1.2; font-weight: 700; letter-spacing: -0.025em; overflow-wrap: anywhere; }
.ticket-head h1 { font-size: 24px; line-height: 1.25; letter-spacing: -0.022em; }
.kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-bottom: 8px; font-size: 12.5px; color: var(--text-3); }
.kicker:empty { display: none; }
.ticket-head .kicker { margin-bottom: 6px; }
.kicker .mono { font-size: 13px; }
.tracker-link { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 550; border-radius: 4px; }
.media-link { transition: border-color var(--dur-2), box-shadow var(--dur-2); }
.media-link:hover { border-color: var(--track); }
.page-head .by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 6px; font-size: 13.5px; color: var(--text-3); }
.by .mono { font-size: 12px; overflow-wrap: anywhere; }
.head-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.private-note { margin-top: 28px; font-size: 12.5px; color: var(--text-3); }
.qa-empty { margin-top: 24px; padding: 56px 20px; text-align: center; border: 1px dashed var(--border); border-radius: 12px; color: var(--text-3); }
.qa-empty b { display: block; margin-bottom: 4px; color: var(--text); font-weight: 600; }
.qa-empty p { font-size: 13.5px; }
.report-state { max-width: 460px; margin: 12vh auto 0; text-align: center; color: var(--text-2); }
.report-state h1 { margin-bottom: 8px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--text); }
.report-state p + p { margin-top: 18px; }
.scroll { overflow-x: auto; }

/* ---------- overview ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: 12px; }
.stat b { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; }
.stat span { font-size: 13px; font-weight: 550; color: var(--text-2); }
.stat small { font-size: 12px; color: var(--text-3); }
.client-head { display: flex; align-items: center; gap: 8px; height: 28px; margin-top: 26px; font-size: 13px; font-weight: 650; }
.client-head a { color: var(--text); border-radius: 4px; text-decoration: none; }
.client-head a:hover { color: var(--link); }
.client-head .n { font-size: 11.5px; }
table { width: 100%; border-collapse: collapse; }
th { height: 36px; padding: 0 12px 0 0; border-bottom: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-3); text-align: left; white-space: nowrap; }
td { padding: 8px 12px 8px 0; border-bottom: 1px solid var(--border); font-size: 13px; vertical-align: middle; }
.client:first-child .client-head { margin-top: 22px; }
.clients > .client:only-child > .scroll { margin-top: 12px; }
table.tasks td { height: 56px; }
table.tasks th:nth-child(2) { width: 27%; } table.tasks th:nth-child(3) { width: 170px; }
table.tasks th:last-child, .cell-more { width: 28px; padding-right: 0; }
.cell-task { min-width: 200px; }
.cell-task .card-title { display: block; font-size: 14px; font-weight: 600; color: var(--text); border-radius: 4px; }
.cell-task small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-3); }
.round-state { display: inline-flex; align-items: center; gap: 7px; color: var(--text-2); white-space: nowrap; }
table.log td { height: 44px; }
table.board a { color: var(--text); font-weight: 600; border-radius: 4px; }
tbody tr { transition: background-color var(--dur-1); }
table.tasks tbody tr:hover, table.board tbody tr:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); }
.cell-title { min-width: 220px; }
.cell-title a { margin-right: 4px; }
.page-cell { display: inline-flex; align-items: center; gap: 4px; max-width: 240px; color: var(--text-3); }
.page-cell .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; }
td.wrap { overflow-wrap: anywhere; }
.lv-error { color: var(--danger); font-weight: 600; }
.lv-warn, .lv-warning { color: var(--amber); font-weight: 600; }

/* ---------- a task ---------- */
.guest-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-top: 20px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--side); font-size: 13.5px; color: var(--text-2); }
.rounds { margin-top: 22px; }
.rounds .label { display: flex; align-items: center; height: 30px; }
.reviews { border-top: 1px solid var(--border); }
.review { display: flex; align-items: center; gap: 4px 12px; flex-wrap: wrap; min-height: 40px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.review > b { width: 70px; font-weight: 600; }
.review-state { display: inline-flex; align-items: center; gap: 7px; width: 150px; color: var(--text-2); }
.review-what { flex: 1; min-width: 160px; color: var(--text-2); }
.verify-note { margin-top: 12px; font-size: 13px; color: var(--text-3); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); overflow: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .card { transition: transform var(--dur-2) var(--ease-out), border-color var(--dur-2); }
  .card-ticket:hover { transform: translateY(-2px); border-color: var(--track); }
}
.card-media { position: relative; display: block; height: 150px; overflow: hidden; border-bottom: 1px solid var(--border); background: var(--surface); }
.card-media img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.card-blank { position: absolute; inset: 0; display: grid; place-items: center; color: var(--track); }
.card-time { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 6px; border-radius: 5px; background: rgba(20, 17, 28, .78); color: #fff; font-size: 11px; font-weight: 600; }
.card-body { display: block; padding: 12px; min-width: 0; }
.card-top { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.card-num { font-size: 12px; color: var(--text-3); }
.card-who { display: inline-flex; }
.card-ticket .card-title { display: block; margin-top: 6px; font-size: 14px; line-height: 1.35; font-weight: 600; color: var(--text); border-radius: 4px; overflow-wrap: anywhere; }
.card-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.card-path { flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 10px 12px; border-top: 1px solid var(--border); }
.check { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; }
.check textarea { flex: 1 1 100%; min-width: 180px; }
.check-actions { display: inline-flex; gap: 6px; }
.check .form-err { flex: 1 1 100%; }
.card-bone { padding: 0; }
.card-bone .card-body { display: grid; gap: 10px; }

/* ---------- a ticket ---------- */
.ticket { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; margin-top: 4px; align-items: start; }
.ticket-main { min-width: 0; }
.ticket-main > .toolbar { margin-top: 20px; }
.ticket-panel { margin-top: 20px; padding-left: 28px; border-left: 1px solid var(--border); min-width: 0; }
/* what was captured to look at (a screenshot, a recording, the replay, the design): one stage, as wide as its column */
.ticket-stage { min-width: 0; }
.media-box { position: relative; display: block; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.media { display: block; width: 100%; max-height: 70vh; object-fit: contain; object-position: top center; }
.media-none { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; margin-top: 20px; min-height: 200px; color: var(--text-3); font-size: 13.5px; }
.verify-box { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 16px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; background: var(--side); }
.verify-box > .dot { width: 8px; height: 8px; }
.verify-text { flex: 1; min-width: 200px; }
.verify-text b { display: block; font-size: 14px; font-weight: 650; }
.verify-text p { margin-top: 2px; font-size: 12.5px; color: var(--text-3); }
.verify-box .btn.small { height: 32px; font-size: 13px; border-radius: 8px; padding: 0 12px; }
.block { margin-top: 22px; }
.block > h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 13px; font-weight: 650; }
.thread { border-top: 1px solid var(--border); }
.comment { display: flex; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.comment > div { flex: 1; min-width: 0; }
.comment-by { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; font-size: 13px; }
.comment-by b { font-weight: 650; }
.comment p + p { margin-top: 4px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.mention { color: var(--link); font-weight: 550; }
.thread-none { padding: 12px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.teambox { display: grid; gap: 10px; margin-top: 12px; }
.teambox label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.teambox label > input, .teambox label > textarea, .teambox label > select { font-weight: 400; }
.teambox-out { justify-items: start; font-size: 13.5px; color: var(--text-2); }
.say { position: relative; display: grid; gap: 10px; justify-items: start; }
.say label { width: 100%; }
.say-box { position: relative; }
.say-box textarea { min-height: 40px; border-radius: 10px; }
.mention-list { position: absolute; left: 0; top: calc(100% + 4px); z-index: 10; min-width: 200px; padding: 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--menu-bg); box-shadow: var(--shadow-menu); }
.mention-list li { padding: 6px 9px; border-radius: 7px; font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color var(--dur-1); }
.mention-list li:hover { background: var(--surface); }
.mention-list li[aria-selected="true"] { background: var(--surface-2); }
.tabs { display: inline-flex; }
.tabpanel { margin-top: 12px; }
.tabpanel .block:first-child { margin-top: 0; }
.tabpanel .qa-empty { margin-top: 0; padding: 32px 16px; }
.facts { border-top: 1px solid var(--border); }
.facts > div { display: flex; gap: 12px; align-items: center; min-height: 34px; padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.facts dt { width: 96px; flex: none; color: var(--text-3); }
.facts dd { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.facts dd a { color: var(--text); text-decoration: underline; text-decoration-color: var(--track); text-underline-offset: 3px; }
.facts dd a:hover { text-decoration-color: currentColor; }
.facts b { font-weight: 600; }
.ticket-panel table.log td { height: 34px; padding: 6px 10px 6px 0; font-size: 12.5px; vertical-align: top; }
.ticket-panel th { height: 30px; }
.steps { display: grid; gap: 6px; padding: 8px 0; font-size: 12.5px; counter-reset: step; }
.steps li { overflow-wrap: anywhere; }
.tracker-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.tracker-actions .btn { height: 32px; }
.replay { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 12px; }
.replay-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.replay-head p { margin-top: 2px; max-width: 60ch; }
.replay-stage { overflow: hidden; border-radius: 8px; }
.replay.playing .replay-stage { margin-top: 12px; }
.replay .rr-player { max-width: 100%; box-shadow: none !important; background: var(--surface) !important; }
.compare { margin-top: 12px; }
.compare-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.compare-range { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-3); }
.compare-range input { accent-color: var(--brand); }
.compare-stage { position: relative; margin-top: 12px; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.compare-stage img { display: block; width: 100%; }
.compare-stage.overlay .compare-design { position: absolute; inset: 0; height: 100%; object-fit: contain; object-position: top center; }
.compare-stage.side { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--border); }
.compare-stage.side figure { background: var(--surface); }
.compare-stage figcaption { padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-3); background: var(--bg); }
.compare > .dim { margin-top: 8px; }
.figma-form { padding: 16px; border: 1px solid var(--border); border-radius: 12px; }
.figma-form h2 { font-size: 15px; font-weight: 650; }

/* ---------- dialogs and the sheet ---------- */
.qa-dialog { width: min(400px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 30px 30px 26px; border: 0; border-radius: 16px; background: var(--bg); color: var(--text); box-shadow: 0 16px 40px rgba(0, 0, 0, .3), 0 0 0 1px color-mix(in srgb, var(--text) 8%, transparent); overflow: auto; }
.qa-dialog::backdrop { background: var(--veil); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.signin-form { margin: 0; gap: 12px; }
.signin-mark { display: block; width: 36px; height: 36px; }
.signin-form h2 { margin-top: 4px; font-size: 22px; font-weight: 700; letter-spacing: -0.02em; }
.signin-why { margin: -6px 0 8px; font-size: 13.5px; line-height: 1.55; color: var(--text-2); }
.signin-form input { min-height: 38px; background: var(--surface); }
/* Google's colored G always sits on a white circle (26 px, G 18 px); the button follows the theme */
.btn.google { height: 42px; border-radius: 10px; background: var(--google-bg, #FFFFFF); font-weight: 600; }
.btn.google:hover { background: var(--google-bg, #FFFFFF); border-color: var(--track); }
.g-circle { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 26px; height: 26px; border-radius: 50%; overflow: hidden; background: #FFFFFF; box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); }
.g-circle img { display: block; flex: none; width: 36px; height: 36px; max-width: none; }
.ws-dialog { width: min(440px, calc(100vw - 32px)); padding: 24px; }
.ws-dialog::backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
.ws-form { display: block; margin: 0; }
.ws-head { display: flex; align-items: center; gap: 8px; }
.ws-head h2 { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.ws-note { margin: 4px 0 18px; font-size: 13px; color: var(--text-3); }
.ws-pic { display: flex; align-items: center; gap: 16px; }
.ws-tile-box { display: inline-flex; flex: none; }
.ws-tile-box .ws-tile { border-radius: 18px; }
.ws-pic-side { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ws-pic-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ws-pic-actions .btn { height: 32px; }
.ws-hint { font-size: 12px; line-height: 1.4; color: var(--text-3); }
.ws-field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; font-size: 13px; font-weight: 600; }
.ws-field input { min-height: 38px; padding: 0 12px; font-weight: 400; }
.ws-form .err-slot { margin-top: 10px; }
.ws-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 22px; }
.or { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--text-3); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.signin-form .btn.primary { margin-top: 4px; font-weight: 650; }
.signin-form .linkish { justify-self: center; font-size: 13px; }
.signin-help { text-align: center; }
.qa-sheet { width: min(460px, calc(100vw - 32px)); padding: 22px 24px 24px; }
.sheet-form { margin: 0; gap: 12px; }
.grabber { display: none; width: 36px; height: 4px; margin: 0 auto 4px; border-radius: 2px; background: var(--border); }
.sheet-head { display: flex; align-items: center; }
.sheet-head h2 { flex: 1; font-size: 18px; font-weight: 700; letter-spacing: -0.015em; }
.sheet-why { margin-top: -8px; font-size: 13px; color: var(--text-3); }
.sheet-form input, .sheet-form textarea, .sheet-form select { min-height: 42px; border-radius: 10px; font-size: 15px; }
.drop { transition: border-color var(--dur-1), box-shadow var(--dur-1), background-color var(--dur-1); display: flex !important; grid-auto-flow: column; align-items: center; gap: 10px; min-height: 64px; padding: 0 12px; border: 1px dashed var(--track); border-radius: 10px; font-size: 14px; font-weight: 550 !important; color: var(--text-2); cursor: pointer; overflow: hidden; }
.drop:hover { background: var(--surface); }
.drop:focus-within { border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 25%, transparent); }
.drop span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- integrations ---------- */
.integ-page { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); }
.integ-page.two { grid-template-columns: minmax(0, 1fr) minmax(0, 560px); align-items: start; }
.integ-col { min-width: 0; }
.integ-wide { display: grid; gap: 14px; padding-top: 66px; }
.integ-note { margin-top: 16px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 10px; background: var(--side); font-size: 13.5px; color: var(--text-2); }
.integ-note.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.setup, .integ-card { padding: 18px 20px 20px; border: 1px solid var(--border); border-radius: 14px; }
.setup { margin-top: 18px; padding-bottom: 6px; }
.setup-head { display: flex; align-items: center; gap: 10px; }
.setup-head h2, .integ-name h2 { font-size: 15px; font-weight: 650; }
/* everything done or skipped: one line of 52 px, and the steps fold out of it */
.setup.all-set { padding: 0 18px; }
.setup.all-set .setup-head { gap: 12px; min-height: 50px; }
.setup.all-set .setup-head h2 { font-size: 14px; }
.setup.all-set .setup-head .linkish { font-size: 12.5px; font-weight: 600; }
.setup.all-set .setup-steps { margin-top: 0; }
.fold { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur-3) var(--ease-out); }
.fold.open { grid-template-rows: 1fr; }
.fold-in { min-height: 0; overflow: hidden; opacity: 0; visibility: hidden; transition: opacity var(--dur-2) ease, visibility 0s linear var(--dur-3); }
.fold.open > .fold-in { opacity: 1; visibility: visible; transition: opacity var(--dur-2) ease 60ms, visibility 0s; }
.setup-steps { margin-top: 10px; border-top: 1px solid var(--border); }
.setup-step { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.setup-step:last-child { border-bottom: 0; }
.setup-mark { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--border); font-family: var(--mono); font-size: 11px; color: var(--text-3); }
.setup-step.done .setup-mark, .setup-mark.setup-all { border: 0; background: var(--lime); color: var(--lime-ink); }
.setup-what { flex: 1; min-width: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.setup-what b { flex: 1 1 auto; font-size: 13.5px; font-weight: 650; }
.setup-step.done .setup-what b, .setup-step.skipped .setup-what b { font-weight: 550; color: var(--text-2); }
.setup-what span { font-size: 12.5px; color: var(--text-3); }
.setup-step:not(.done) .setup-what span { flex: 1 1 100%; }
.setup-do { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.integ-grid { display: grid; gap: 14px; margin-top: 14px; }
.integ-page:not(.two) .integ-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); align-items: start; }
.integ-head { display: flex; align-items: center; gap: 12px; }
.integ-head .btn.small { height: 30px; border-radius: 8px; padding: 0 11px; }
.integ-head .ib.boxed { width: 32px; height: 32px; }
.integ-logo { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 9px; background: #FFFFFF; }
.integ-logo img { width: 22px; height: 22px; object-fit: contain; }
.integ-name { flex: 1; min-width: 0; }
.integ-state { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-3); min-width: 0; }
.integ-state > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.integ-state .dot { width: 6px; height: 6px; }
.integ-what { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--text-2); }
.integ-hint { margin-top: 12px; font-size: 12px; line-height: 1.5; color: var(--text-3); }
.integ-todo { font-size: 12px; font-weight: 600; color: var(--amber); }
.integ-card > .form-err { margin-top: 10px; }
/* settings: a title, then hairline rows of 44 px (label and an optional quieter line on the left, the control on the right) */
.integ-block { margin-top: 16px; }
.integ-block-title { margin-bottom: 2px; font-size: 12.5px; font-weight: 650; }
.integ-rows { border-top: 1px solid var(--border); }
.integ-row { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 5px 0; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--text); }
label.integ-row { cursor: pointer; }
.integ-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.integ-row-text small { font-size: 12px; color: var(--text-3); }
.integ-row-text small.integ-todo { color: var(--amber); }
.integ-row .integ-select { flex: none; width: 220px; max-width: 55%; }
.integ-wide .integ-row .integ-select { width: 230px; }
.integ-value { flex: none; max-width: 60%; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.integ-row.map .integ-row-text { flex-direction: row; }
.integ-row.chips { display: block; padding: 10px 0 12px; }
.integ-row.chips > .integ-todo { margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chips-count { display: block; }
.chips-count .linkish { font-size: 12px; color: var(--link); }
/* a value that is on or off: a real toggle button, 26 px, a pill */
.chip-toggle { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border: 1px solid var(--border); border-radius: 999px; background: transparent; color: var(--text-2); font-size: 12px; font-weight: 500; white-space: nowrap; max-width: 100%; transition: background-color var(--dur-1), border-color var(--dur-1), color var(--dur-1), box-shadow var(--dur-1); }
.chip-toggle > span { overflow: hidden; text-overflow: ellipsis; }
.chip-toggle:hover { border-color: var(--track); color: var(--text); }
.chip-toggle[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--text); font-weight: 600; }
.chip-toggle .ic { color: var(--link); }
.chip-toggle:disabled { cursor: default; }
.chip-toggle.ro { opacity: .6; }
.integ-select { min-height: 32px; height: 32px; padding-top: 0; padding-bottom: 0; border-radius: 8px; font-size: 13px; }
/* a switch: on is lime */
input.switch { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 32px; height: 18px; margin: 0; border: 0; border-radius: 999px; background: var(--track); transition: background-color var(--dur-2), box-shadow var(--dur-1); cursor: pointer; }
input.switch::after { content: ''; position: absolute; left: 2px; top: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .2); transition: transform var(--dur-2) var(--ease-out); }
input.switch:checked { background: var(--lime); }
input.switch:checked::after { transform: translateX(14px); }
input.switch:disabled { cursor: default; }
@media (prefers-reduced-motion: reduce) { input.switch::after { transition: none; } .fold { transition: none; } }
.hook-form { display: grid; gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.hook-form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.hook-form .integ-hint { margin-top: 0; }

/* ---------- loading ---------- */
.bone { display: block; border-radius: 6px; background: var(--surface-2); animation: bone 1.2s ease-in-out infinite alternate; }
.bone.line { height: 12px; width: 100%; margin-top: 10px; }
.bone.short { width: 34%; }
.bone.title { height: 28px; width: min(360px, 70%); margin-top: 8px; }
.bone.seg { height: 36px; width: 240px; border-radius: 9px; }
.bone.row { height: 40px; margin-top: 10px; border-radius: 8px; }
.bone-media { height: 330px; border: 0; }
.bone-rows { margin-top: 22px; }
.stat .bone.title { width: 60px; margin-top: 0; }
@keyframes bone { from { opacity: 1; } to { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .bone { animation: none; } }

/* ---------- wider screens: more room, used ---------- */
@media (min-width: 1600px) {
  .qa-content { padding: 28px 48px 56px; }
  .qa-foot { padding: 16px 48px; }
  .qa-find { width: 320px; }
  .ticket { grid-template-columns: minmax(0, 1fr) 460px; gap: 40px; }
  .integ-page.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (min-width: 2200px) {
  .integ-page.two .integ-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}

/* ---------- narrower screens ---------- */
@media (max-width: 1180px) {
  .ticket { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .ticket-panel { margin-top: 28px; padding: 22px 0 0; border-left: 0; border-top: 1px solid var(--border); }
  .integ-page.two { grid-template-columns: minmax(0, 1fr); }
  .integ-wide { padding-top: 0; }
}
@media (max-width: 900px) {
  .qa-shell.with-side { grid-template-columns: minmax(0, 1fr); }
  .qa-side { position: fixed; left: 0; top: 0; z-index: 40; width: 264px; max-width: 86vw; display: none; box-shadow: var(--shadow-menu); }
  .side-up .qa-side { display: flex; }
  .side-up .qa-scrim { display: block; position: fixed; inset: 0; z-index: 35; background: var(--veil); }
  .with-side .side-open { display: inline-flex; }
  .qa-top { padding: 0 16px; }
  .qa-content { padding: 22px 20px 48px; }
  .qa-foot { padding: 16px 20px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .crumbs li:not([aria-current]) { display: none; }
  .crumbs li + li::before { display: none; }
  .qa-find { width: 200px; }
  .qa-find kbd { display: none; }
}
@media (max-width: 640px) {
  .qa-find, .qa-crumbs { display: none; }
  .review-what { flex-basis: 100%; order: 3; }
  .qa-actions #copy-link span, .shared-by + #copy-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .qa-actions #copy-link { width: 34px; padding: 0; }
  .page-head h1 { font-size: 24px; }
  .guest-note { position: sticky; bottom: 12px; z-index: 5; box-shadow: var(--shadow-menu); background: var(--bg); }
  .guest-note .btn { width: 100%; height: 44px; font-size: 15px; }
  /* tickets are rows: number, title, where it stands */
  .cards { grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 1px solid var(--border); }
  .card-ticket { border: 0; border-bottom: 1px solid var(--border); border-radius: 0; }
  .card-ticket .card-media, .card-ticket .sev, .card-ticket .clip, .card-ticket .card-who, .card-ticket .card-path, .card-ticket .card-top .spacer { display: none; }
  .card-ticket .card-body { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 8px 0; }
  .card-ticket .card-title { flex: 1; margin: 0; }
  .card-ticket .card-foot { margin: 0; }
  .card-ticket .pill:not(.pill-select) { border: 0; padding: 0; }
  .card-ticket .pill:not(.pill-select) > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .card-actions { padding: 0 0 10px; }
  .review-state { width: auto; }
  /* dialogs come up from the bottom edge */
  .qa-sheet { width: 100%; max-width: 100%; margin: auto 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; max-height: 94dvh; box-shadow: 0 -12px 40px rgba(20, 17, 28, .18); }
  .grabber { display: block; }
  .integ-row:not(.chips):not(.map) { flex-wrap: wrap; gap: 6px 14px; }
  .integ-row .integ-select, .integ-wide .integ-row .integ-select { width: 100%; max-width: none; }
  .setup-step { flex-wrap: wrap; }
  .ws-pic { align-items: flex-start; }
}
