/* Zyna cabinet — «бумага и пометки на полях»: тёплая бумага, чернила, один сигнальный акцент. */
:root {
  --paper: #f5f0e6;
  --paper-2: #efe8da;
  --card: #fffdf8;
  --ink: #1d1b16;
  --ink-2: #4a463d;
  --muted: #8a8476;
  --line: #e2d9c6;
  --line-2: #d3c7ae;
  --signal: #ff5b1f;
  --signal-ink: #b93a0b;
  --signal-soft: #ffe4d6;
  --moss: #2f7a4b;
  --moss-soft: #dcefe2;
  --amber-soft: #fff1c9;
  --bad: #b3261e;
  --bad-soft: #fbe1dd;
  --radius: 14px;
  --shadow: 0 1px 0 rgba(29,27,22,.04), 0 12px 32px -18px rgba(29,27,22,.35);
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 16px; line-height: 1.55; color: var(--ink);
  background:
    radial-gradient(1200px 600px at 110% -10%, rgba(255,91,31,.07), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(47,122,75,.06), transparent 60%),
    var(--paper);
  min-height: 100vh;
}
body::before { /* paper grain */
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.11 0 0 0 0 0.1 0 0 0 0 0.08 0 0 0 .06 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
a { color: inherit; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--signal); }
h1, h2, h3 { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(26px, 4vw, 38px); }
h2 { font-size: 22px; }
h3 { font-size: 16px; }
p { margin: 0 0 1em; }
code, .mono { font-family: var(--mono); font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- top bar */
.top { position: relative; z-index: 2; border-bottom: 1px solid var(--line); background: rgba(245,240,230,.85); backdrop-filter: blur(6px); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font-size: 14px; position: relative; }
.brand-mark::after { content: ""; position: absolute; right: -3px; top: -3px; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); border: 2px solid var(--paper); }
.nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--ink-2); font-size: 15px; white-space: nowrap; }
.nav a:hover { background: var(--paper-2); }
.nav a.on { background: var(--ink); color: var(--paper); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.who form { margin: 0; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--ink-2); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- buttons, fields */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--ink); background: var(--ink);
  color: var(--paper); font: 600 15px/1 var(--body); padding: 13px 20px; border-radius: 12px; cursor: pointer; text-decoration: none;
  transition: transform .12s ease, box-shadow .12s ease, background .12s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 0 -2px var(--signal); }
.btn:active { transform: translateY(1px); box-shadow: none; }
a.btn[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.signal { background: var(--signal); border-color: var(--signal); color: #fff; }
.btn.signal:hover { box-shadow: 0 6px 0 -2px var(--ink); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn.ghost:hover { border-color: var(--ink); box-shadow: none; }
.btn.small { padding: 9px 14px; font-size: 14px; border-radius: 10px; }
.btn.wide { width: 100%; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: none; }
.btn.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

label.lbl { display: block; font-weight: 600; margin: 0 0 6px; font-size: 15px; }
.opt { font-weight: 400; color: var(--muted); font-size: 13px; margin-left: 6px; }
input[type=text], input[type=email], input[type=password], input[type=url], textarea, select {
  width: 100%; font: 16px/1.5 var(--body); color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; padding: 12px 14px; transition: border-color .12s, box-shadow .12s; appearance: none;
}
textarea { min-height: 110px; resize: vertical; }
textarea.tall { min-height: 170px; }
textarea.huge { min-height: 360px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255,91,31,.15); }
input.secret { font-family: var(--mono); font-size: 14px; letter-spacing: .01em; }
select { background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%);
  background-position: calc(100% - 20px) 52%, calc(100% - 15px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 12px; padding: 3px; background: var(--card); }
.seg label { padding: 8px 14px; border-radius: 9px; cursor: pointer; font-size: 15px; }
.seg input { display: none; }
.seg input:checked + span { font-weight: 600; }
.seg label:has(input:checked) { background: var(--ink); color: var(--paper); }

/* ---------- field with a margin note */
.field { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 28px; padding: 18px 0; border-top: 1px dashed var(--line); }
.field:first-of-type { border-top: 0; }
.note { font-size: 14px; color: var(--ink-2); padding-left: 16px; border-left: 2px solid var(--signal); align-self: start; margin-top: 30px; }
.note b { color: var(--ink); }
.note .eg { display: block; margin-top: 6px; color: var(--muted); font-style: italic; }

/* ---------- auth pages */
.auth { min-height: calc(100vh - 64px); display: grid; grid-template-columns: 1.1fr 1fr; }
.auth-side { padding: 72px 56px; display: flex; flex-direction: column; justify-content: center; gap: 28px; }
.auth-side h1 { font-size: clamp(30px, 4.4vw, 52px); max-width: 12ch; }
.auth-side h1 em { font-style: normal; color: var(--signal); }
.auth-points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 460px; }
.auth-points li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; color: var(--ink-2); }
.auth-points .n { font: 600 13px var(--display); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; }
.auth-card-wrap { display: grid; place-items: center; padding: 40px 24px; background: var(--card); border-left: 1px solid var(--line); }
.auth-card { width: 100%; max-width: 400px; }
.auth-card .field-s { margin-bottom: 16px; }

/* ---------- alerts */
.alert { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; font-size: 15px; border: 1px solid transparent; }
.alert.bad { background: var(--bad-soft); color: var(--bad); border-color: #f0c2bb; }
.alert.ok { background: var(--moss-soft); color: var(--moss); border-color: #bfdcc8; }
.alert.warn { background: var(--amber-soft); color: #7a5a00; border-color: #f0dc9e; }
.alert.info { background: var(--paper-2); color: var(--ink-2); border-color: var(--line); }
.result { margin-top: 12px; font-size: 15px; display: none; }
.result.show { display: block; animation: rise .25s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* ---------- wizard */
.setup { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 48px; padding: 40px 0 80px; }
.rail { position: sticky; top: 24px; align-self: start; }
.rail h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 18px; font-family: var(--body); }
.rail ol { list-style: none; margin: 0; padding: 0; position: relative; }
.rail ol::before { content: ""; position: absolute; left: 17px; top: 18px; bottom: 18px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 11px); }
.rail li a { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: center; padding: 10px 0; text-decoration: none; }
.rail .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: 600 14px var(--display); background: var(--paper); border: 1.5px solid var(--line-2); color: var(--muted); transition: all .15s; }
.rail .t { font-weight: 600; line-height: 1.2; color: var(--ink-2); }
.rail .s { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.rail li.done .dot { background: var(--moss); border-color: var(--moss); color: #fff; }
.rail li.done .dot::after { content: "✓"; }
.rail li.done .dot span { display: none; }
.rail li.on .dot { background: var(--signal); border-color: var(--signal); color: #fff; transform: scale(1.08); box-shadow: 0 0 0 6px var(--signal-soft); }
.rail li.on .t { color: var(--ink); }
.rail .help { margin-top: 26px; font-size: 14px; color: var(--muted); padding: 14px 16px; border: 1px dashed var(--line-2); border-radius: 12px; }

.sheet { background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); padding: 36px 40px 32px; animation: rise .3s ease both; }
.kicker { font: 600 12px var(--body); text-transform: uppercase; letter-spacing: .14em; color: var(--signal-ink); margin-bottom: 10px; }
.lede { font-size: 17px; color: var(--ink-2); max-width: 60ch; }
.foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }

/* numbered how-to */
.howto { counter-reset: h; list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 34px 1fr; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--paper); border: 1px solid var(--line); }
.howto li::before { content: counter(h); width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 13px var(--display); }
.howto li > div { padding-top: 3px; }
.copy { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 14px; background: var(--card); border: 1px solid var(--line-2); border-radius: 8px; padding: 2px 8px; cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.copy.copied::after { content: " ✓ скопировано"; font-family: var(--body); color: var(--moss); font-size: 12px; }
.ext { font-weight: 600; }
.ext::after { content: " ↗"; color: var(--signal); }

.okline { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 14px; background: var(--moss-soft); color: var(--moss); margin: 14px 0; }
.okline::before { content: "✓"; width: 26px; height: 26px; border-radius: 50%; background: var(--moss); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.owner-box { margin-top: 18px; padding: 20px; border-radius: 16px; border: 1.5px dashed var(--signal); background: linear-gradient(180deg, #fff8f3, var(--card)); }
.waiting { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; margin-left: 12px; }
.waiting i { width: 8px; height: 8px; border-radius: 50%; background: var(--signal); animation: pulse 1.2s ease infinite; }
@keyframes pulse { 0%,100% { opacity: .25; transform: scale(.8); } 50% { opacity: 1; transform: scale(1.15); } }

.pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }

/* ---------- test chat */
.chat-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; margin-top: 18px; }
.phone { border: 1px solid var(--line-2); border-radius: 26px; background: #e8e1d2; overflow: hidden; display: flex; flex-direction: column; height: 520px; box-shadow: var(--shadow); }
.phone-top { display: flex; gap: 10px; align-items: center; padding: 12px 16px; background: var(--card); border-bottom: 1px solid var(--line); }
.ava { width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; font: 600 14px var(--display); flex: none; }
.phone-top b { display: block; font-size: 15px; line-height: 1.2; }
.phone-top span { font-size: 12px; color: var(--moss); }
.msgs { flex: 1; overflow-y: auto; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px;
  background-image: radial-gradient(rgba(29,27,22,.06) 1px, transparent 1px); background-size: 16px 16px; }
.b { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; animation: rise .2s ease both; }
.b.me { align-self: flex-end; background: var(--ink); color: var(--paper); border-bottom-right-radius: 5px; }
.b.bot { align-self: flex-start; background: var(--card); border-bottom-left-radius: 5px; box-shadow: 0 1px 0 rgba(0,0,0,.05); }
.b.mgr { align-self: flex-end; background: var(--moss); color: #fff; border-bottom-right-radius: 5px; }
.b.ev { align-self: center; max-width: 92%; background: var(--signal-soft); color: var(--signal-ink); font-size: 13px; border-radius: 10px; text-align: center; }
.b.typing { color: var(--muted); }
.composer { display: flex; gap: 8px; padding: 10px; background: var(--card); border-top: 1px solid var(--line); }
.composer input { border-radius: 999px; }
.composer .btn { border-radius: 999px; padding: 0 18px; }
.tries { display: grid; gap: 8px; }
.tries button { text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 15px var(--body); cursor: pointer; color: var(--ink-2); }
.tries button:hover { border-color: var(--ink); color: var(--ink); }

.launch { margin-top: 28px; padding: 26px; border-radius: 18px; background: var(--ink); color: var(--paper); display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.launch h2 { color: var(--paper); margin-bottom: 6px; }
.launch p { margin: 0; color: #cfc8b8; }
.launch.on { background: var(--moss); }

/* ---------- home */
.page { padding: 36px 0 80px; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: end; margin-bottom: 26px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 14px; font-weight: 600; background: var(--paper-2); }
.pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.live { background: var(--moss-soft); color: var(--moss); }
.pill.live::before { background: var(--moss); box-shadow: 0 0 0 0 rgba(47,122,75,.5); animation: ring 1.8s infinite; }
.pill.test { background: var(--amber-soft); color: #7a5a00; }
.pill.test::before { background: #d4a106; }
.pill.paused { background: var(--bad-soft); color: var(--bad); }
.pill.paused::before { background: var(--bad); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(47,122,75,.5); } 100% { box-shadow: 0 0 0 10px rgba(47,122,75,0); } }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 8px 0 26px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; }
.stat .v { font: 600 34px/1 var(--display); letter-spacing: -.02em; }
.stat .k { color: var(--muted); font-size: 14px; margin-top: 8px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 22px; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 22px 24px; }
.panel h2 { font-size: 18px; }
.warns { display: grid; gap: 10px; margin-bottom: 22px; }
.wrn { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.wrn.bad { border-color: #f0c2bb; background: var(--bad-soft); }
.wrn.warn { border-color: #f0dc9e; background: var(--amber-soft); }
.list { list-style: none; padding: 0; margin: 0; }
.list li { border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; }
.list a { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 4px; text-decoration: none; }
.list a:hover { background: var(--paper); border-radius: 10px; }
.list .nm { font-weight: 600; }
.list .sub { color: var(--muted); font-size: 13px; }
.tag { font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2); white-space: nowrap; }
.tag.hot { background: var(--signal-soft); color: var(--signal-ink); }
.tag.mute { background: var(--amber-soft); color: #7a5a00; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 18px; background: #ece5d6; border-radius: 18px; }
.thread .at { font-size: 11px; opacity: .6; display: block; margin-top: 3px; }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding: 8px; border-bottom: 1px solid var(--line); }
table.t td { padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
/* wide tables scroll inside their panel instead of pushing the page or clipping the last column */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; padding: 0 4px; }
table.t .nowrap, table.t .act { white-space: nowrap; }
table.t th.act, table.t td.act { width: 1%; text-align: right; }
table.t td.act form { margin: 0; display: inline-flex; gap: 6px; }
.btn.xs { padding: 6px 10px; font-size: 13px; border-radius: 8px; line-height: 1.2; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* admin: the clients table gets the full width, invites sit below it */
.admin-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.admin-t { min-width: 640px; }
.admin-t td.owner { overflow-wrap: anywhere; max-width: 260px; }
.admin-t .pill { font-size: 13px; padding: 4px 10px; }
.faq details { border-top: 1px solid var(--line); padding: 14px 0; }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::after { content: "+"; font-family: var(--display); color: var(--signal); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding-top: 10px; color: var(--ink-2); }

.reveal > * { animation: rise .4s ease both; }
.reveal > *:nth-child(2) { animation-delay: .05s; } .reveal > *:nth-child(3) { animation-delay: .1s; } .reveal > *:nth-child(4) { animation-delay: .15s; }

/* ---------- phones */
@media (max-width: 960px) {
  .setup { grid-template-columns: 1fr; gap: 18px; padding-top: 20px; }
  .rail { position: static; }
  .rail h3, .rail .help, .rail .s { display: none; }
  .rail ol { display: flex; gap: 6px; }
  .rail ol::before { display: none; }
  .rail li { flex: 1; }
  .rail li a { grid-template-columns: 1fr; justify-items: center; gap: 4px; text-align: center; padding: 4px 0; }
  .rail .t { font-size: 11px; font-weight: 500; }
  .rail .dot { width: 30px; height: 30px; font-size: 12px; }
  .field { grid-template-columns: 1fr; gap: 8px; }
  .note { margin-top: 0; }
  .chat-grid, .cols, .pick { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { padding: 36px 24px 8px; }
  .auth-card-wrap { border-left: 0; background: transparent; padding-top: 8px; }
  .launch { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; }
  .brand span.full, .who .email { display: none; }
  .sheet { padding: 24px 18px; border-radius: 16px; }
  .hero { grid-template-columns: 1fr; }
  .phone { height: 460px; }
  .foot .btn { flex: 1; }
}

textarea.filled, input.filled { border-color: var(--signal); background: #fffaf6; }

/* qualification: checkbox line, editor rows, card on the dialog page */
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--signal); flex: none; }
.qlist { display: grid; gap: 12px; margin-top: 18px; counter-reset: q; }
.qitem { counter-increment: q; display: grid; grid-template-columns: 34px minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: 12px;
  align-items: start; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); animation: rise .25s ease both; }
.qitem::before { content: counter(q); width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: var(--paper);
  display: grid; place-items: center; font: 600 13px var(--display); margin-top: 22px; }
.qitem .lbl { font-size: 12px; margin-bottom: 4px; }
.qitem .check { font-size: 13px; margin-top: 8px; }
.qitem .x { margin-top: 24px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 6px; }
.qitem .x:hover { color: var(--bad); }
.qitem .ftype { font-size: 12px; color: var(--muted); margin-top: 4px; min-height: 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chips button { border: 1px dashed var(--line-2); background: transparent; border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 14px;
  color: var(--ink-2); cursor: pointer; }
.chips button:hover { border-color: var(--signal); color: var(--signal-ink); }
.qcard { border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); padding: 14px 18px; margin-bottom: 18px; box-shadow: var(--shadow); }
.qcard-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 8px; }
.qrow { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-top: 1px dashed var(--line); font-size: 15px; }
.qrow span { color: var(--ink-2); }
.qrow b.muted { font-weight: 400; color: var(--muted); }
@media (max-width: 760px) {
  .qitem { grid-template-columns: 1fr auto; }
  .qitem::before { display: none; }
  .qitem > div { grid-column: 1 / -1; }
  .qitem .x { grid-row: 1; grid-column: 2; margin-top: 0; }
  .qitem > div:first-of-type { grid-column: 1; grid-row: 1; }
}
/* stage 3: organization switcher in the header */
.org-switch { margin: 0; }
.org-switch select { max-width: 220px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--paper); font: inherit; font-size: 14px; }
.org-name { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
