/* The Ask for approval drawer (approval-ask.js; GitHub issue 501; docs/adr/0257): built on the New ticket drawer's
   look (.nt-drawer and its parts). It slides in from the right over the ticket; on a phone it is a full screen in three
   steps, with 44 px tap targets and no sideways scroll. Long text wraps; a field's value shows two lines with a fade (.title-cap). */
.ask-backdrop {
  position:fixed; inset:0; z-index:var(--z-dialog); display:flex; justify-content:flex-end; background:rgba(20,23,21,0); visibility:hidden;
  transition:background .22s ease, visibility 0s linear .22s; font-family:var(--font-ui);
}
.ask-backdrop.open { visibility:visible; background:rgba(20,23,21,.28); transition:background .22s ease; }
[data-theme="dark"] .ask-backdrop.open { background:rgba(0,0,0,.5); }
.ask-backdrop.open .nt-drawer { transform:none; opacity:1; }
@media (prefers-reduced-motion: reduce) { .ask-backdrop, .ask-backdrop .nt-drawer { transition:none; } }
.ask-drawer { width:min(680px,100%); }
.ask-drawer :focus-visible { outline:2px solid var(--spruce); outline-offset:2px; }
.ask-drawer [hidden] { display:none !important; }
.ask-drawer input[type="text"], .ask-drawer input[type="email"], .ask-drawer input[type="date"], .ask-drawer textarea {
  display:block; width:100%; margin:0; padding:var(--space-150); border:1px solid var(--control-border); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink);
  font:400 var(--text-md)/1.45 var(--font-ui); outline:none; transition:border-color .15s, box-shadow .15s; box-sizing:border-box;
}
.ask-drawer input:focus, .ask-drawer textarea:focus { border-color:var(--spruce); box-shadow:0 0 0 3px var(--control-focus); }
.ask-drawer input:disabled { background:var(--surface-2); color:var(--muted); }
.ask-drawer [aria-invalid="true"], .ask-drawer [aria-invalid="true"]:focus { border-color:var(--bad); box-shadow:0 0 0 3px var(--bad-soft); }
.ask-drawer textarea { min-height:112px; resize:vertical; }
.ask-drawer textarea.is-drop-target { outline:2px dashed var(--spruce); outline-offset:-4px; background:var(--spruce-pale); }
.ask-drawer .nt-label { margin-top:var(--space-200); }
.ask-drawer .nt-section > .nt-label:first-child, .ask-drawer .nt-section > div > .nt-label:first-child { margin-top:0; }
.ask-drawer .nt-field { margin:var(--space-150) 0 var(--space-75); }
.ask-loading { margin:var(--space-250) 0; color:var(--muted); font-size:var(--text-md); }
.ask-steps { display:none; }
.ask-kind { margin-bottom:var(--space-150); }
.ask-chips { display:flex; flex-wrap:wrap; gap:var(--space-100); margin:0 0 var(--space-150); padding:0; list-style:none; }
.ask-chip { display:flex; align-items:center; gap:var(--space-100); max-width:100%; min-width:0; padding:var(--space-50) var(--space-50) var(--space-50) var(--space-75); border:1px solid var(--line); border-radius:var(--radius-pill); background:var(--surface-2); }
.ask-chip .nt-avatar { width:26px; height:26px; }
.ask-chip-text { min-width:0; overflow-wrap:anywhere; }
.ask-chip-text b { display:block; color:var(--ink); font-size:var(--text-md); font-weight:600; }
.ask-chip-text small { display:block; color:var(--muted); font-size:var(--text-xs); }
.ask-chip.is-restricted { border-color:var(--saffron); background:var(--saffron-pale); }
.ask-chip-remove { display:grid; place-items:center; flex:0 0 auto; width:28px; height:28px; border-radius:var(--radius-round); background:transparent; color:var(--muted); }
.ask-chip-remove:hover { background:var(--hover-bg); color:var(--ink); }
.ask-chip-remove svg { width:14px; height:14px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; }
.ask-drawer .nt-combo input { padding-left:var(--space-500); }
.ask-line-hint { margin:var(--space-100) 0 0; color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.ask-typed { margin-top:var(--space-150); }
.ask-typed-row { display:flex; gap:var(--space-100); }
.ask-typed-row input { flex:1; min-width:0; }
.ask-need { display:flex; flex-wrap:wrap; gap:var(--space-100) var(--space-250); margin:var(--space-150) 0 0; padding:0; border:0; }
.ask-need legend { width:100%; margin-bottom:var(--space-75); padding:0; color:var(--ink-2); font-size:var(--text-sm); font-weight:500; }
.ask-radio { display:inline-flex; align-items:center; gap:var(--space-75); color:var(--ink); font-size:var(--text-md); }
.ask-quick { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100); margin-top:var(--space-150); }
.ask-quick-label { color:var(--muted); font-size:var(--text-sm); }
.ask-switch { display:inline-block; margin-top:var(--space-150); white-space:normal; text-align:left; }
.ask-stages { margin:var(--space-150) 0 0; padding:0; list-style:none; display:grid; gap:var(--space-75); }
.ask-stages li { padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); color:var(--ink); font-size:var(--text-md); overflow-wrap:anywhere; }
.ask-amount { display:flex; align-items:center; gap:var(--space-100); max-width:280px; }
.ask-currency { color:var(--muted); font-size:var(--text-sm); font-weight:600; }
.ask-fields { display:grid; gap:var(--space-50); }
.ask-need-tag { margin-left:var(--space-50); padding:0 var(--space-75); border-radius:var(--radius-pill); background:var(--surface-2); color:var(--muted); font-size:var(--text-xs); font-weight:600; }
.ask-need-tag.is-required { background:var(--spruce-pale); color:var(--spruce); }
.ask-note { display:block; margin-top:var(--space-50); color:var(--muted); font-size:var(--text-sm); overflow-wrap:anywhere; }
.ask-include, .ask-files { margin:0; padding:0; list-style:none; display:grid; gap:var(--space-50); }
/* Two columns where there is room: every ticket field is offered, so the list is long. */
@media (min-width: 641px) { .ask-include { grid-template-columns:repeat(2, minmax(0, 1fr)); column-gap:var(--space-150); } }
.ask-include-row, .ask-file { display:flex; align-items:flex-start; gap:var(--space-150); padding:var(--space-100) var(--space-100); border-radius:var(--radius-lg); }
.ask-include-row:hover, .ask-file:hover { background:var(--hover-bg-subtle, var(--surface-2)); }
.ask-include-row input, .ask-file input { flex:0 0 auto; width:18px; height:18px; margin:var(--space-25) 0 0; accent-color:var(--spruce); }
.ask-include-row label, .ask-file label { flex:1; min-width:0; cursor:pointer; }
.ask-include-row b, .ask-file b, .ask-file-text b { display:block; color:var(--ink); font-size:var(--text-md); font-weight:600; overflow-wrap:anywhere; }
.ask-include-value { margin-top:var(--space-25); color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.ask-include-value i { color:var(--muted); }
.ask-include-row.is-greyed b, .ask-include-row.is-greyed .ask-include-value { color:var(--muted); }
.ask-include-row.is-greyed label { cursor:default; }
.ask-file small, .ask-file-text small { display:block; color:var(--muted); font-size:var(--text-sm); }
.ask-file.is-new { align-items:center; }
.ask-file img { width:36px; height:36px; object-fit:cover; border-radius:var(--radius-md); }
.ask-file-icon { display:grid; place-items:center; width:36px; height:36px; border-radius:var(--radius-md); background:var(--surface-2); color:var(--muted); font-size:var(--text-lg); }
.ask-file-text { flex:1; min-width:0; }
.ask-files-row { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-100) var(--space-150); margin-top:var(--space-150); }
.ask-files-row small { flex:1 1 240px; color:var(--muted); font-size:var(--text-sm); }
.ask-preview-head { display:flex; align-items:baseline; justify-content:space-between; gap:var(--space-150); }
.ask-preview-status { color:var(--muted); font-size:var(--text-sm); }
.ask-tabs { display:flex; gap:var(--space-50); margin:var(--space-100) 0 var(--space-150); border-bottom:1px solid var(--line); }
.ask-tabs:empty { display:none; }
.ask-tabs [role="tab"] { padding:var(--space-100) var(--space-150); border-bottom:2px solid transparent; background:transparent; color:var(--ink-2); font-size:var(--text-md); font-weight:500; }
.ask-tabs [role="tab"][aria-selected="true"] { border-bottom-color:var(--spruce); color:var(--ink); font-weight:600; }
.ask-for { max-width:320px; margin-bottom:var(--space-150); }
.ask-preview { min-width:0; }
.ask-preview-empty { margin:0; padding:var(--space-200); border:1px dashed var(--line-strong, var(--line)); border-radius:var(--radius-lg); color:var(--ink-2); font-size:var(--text-md); overflow-wrap:anywhere; }
.ask-mail-head { display:grid; gap:var(--space-50); margin:0 0 var(--space-100); font-size:var(--text-sm); }
.ask-mail-head div { display:flex; gap:var(--space-100); min-width:0; }
.ask-mail-head dt { flex:0 0 64px; color:var(--muted); }
.ask-mail-head dd { flex:1; min-width:0; margin:0; color:var(--ink); overflow-wrap:anywhere; }
.ask-lang { margin-left:var(--space-75); padding:0 var(--space-75); border-radius:var(--radius-pill); background:var(--surface-2); color:var(--muted); font-size:var(--text-xs); }
.ask-mail-frame { display:block; width:100%; min-height:240px; border:1px solid var(--line); border-radius:var(--radius-lg); background:#ffffff; }
.ask-card { padding:var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); color:var(--ink); font-size:var(--text-md); overflow-wrap:anywhere; }
.ask-card-teams { border-left:4px solid #6264a7; }
.ask-card-slack { border-left:4px solid #4a154b; }
[data-theme="dark"] .ask-card-teams { border-left-color:#9ea2ff; }
[data-theme="dark"] .ask-card-slack { border-left-color:#e7a6ea; }
.ask-card p { margin:var(--space-75) 0; }
.ask-card-app { color:var(--muted); font-size:var(--text-xs); }
.ask-card-title { display:block; font-size:var(--text-lg); }
.ask-card-note { color:var(--ink-2); font-size:var(--text-sm); }
.ask-card-rows { display:grid; gap:var(--space-50); margin:var(--space-100) 0; }
.ask-card-rows div { display:grid; grid-template-columns:minmax(90px, 34%) 1fr; gap:var(--space-150); }
.ask-card-slack .ask-card-rows { grid-template-columns:1fr 1fr; gap:var(--space-150); }
.ask-card-slack .ask-card-rows div { grid-template-columns:1fr; gap:0; }
.ask-card-rows dt { color:var(--muted); font-weight:600; }
.ask-card-rows dd { margin:0; }
.ask-card-input { padding:var(--space-100) var(--space-150); border:1px solid var(--control-border); border-radius:var(--radius-md); color:var(--muted); font-size:var(--text-sm); }
.ask-card-actions { display:flex; flex-wrap:wrap; gap:var(--space-100); margin-top:var(--space-150); }
.ask-card-action { padding:var(--space-75) var(--space-150); border:1px solid var(--control-border); border-radius:var(--radius-md); font-size:var(--text-sm); font-weight:600; }
.ask-card-action.is-approve { border-color:var(--spruce); background:var(--spruce); color:var(--brand-ink); }
.ask-card-action.is-deny { border-color:var(--bad); color:var(--bad); }
.ask-foot { flex-direction:column; align-items:stretch; gap:var(--space-100); }
.ask-line { margin:0; color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.ask-line:empty { display:none; }
.ask-foot-error { margin:0; }
.ask-foot .nt-foot-actions { margin-left:auto; flex-wrap:wrap; justify-content:flex-end; }
.ask-back, .ask-next { display:none; }

/* A phone: a full screen in three steps (Who → What they see → Preview and send), 44 px tap targets. */
@media (max-width: 640px) {
  .ask-drawer { width:100%; border-left:0; }
  .ask-drawer .nt-head { flex-wrap:nowrap; }
  .ask-drawer .nt-head-text { flex:1 1 auto; min-width:0; }
  .ask-drawer .nt-head h2 { overflow-wrap:break-word; }
  .ask-steps { display:flex; gap:var(--space-50); margin:0; padding:var(--space-100) var(--space-200); list-style:none; border-bottom:1px solid var(--line); overflow:hidden; }
  .ask-steps li { flex:1 1 0; min-width:0; }
  .ask-steps button { display:flex; align-items:center; justify-content:center; gap:var(--space-75); width:100%; min-height:44px; padding:0 var(--space-50); border-radius:var(--radius-lg); background:transparent; color:var(--muted); font-size:var(--text-sm); font-weight:500; line-height:1.2; text-align:center; overflow-wrap:anywhere; }
  .ask-steps button[aria-current="step"] { background:var(--spruce-pale); color:var(--spruce); font-weight:600; }
  .ask-step-number { display:grid; place-items:center; flex:0 0 auto; width:22px; height:22px; border-radius:var(--radius-round); border:1px solid currentColor; font-size:var(--text-xs); }
  .ask-steps button.is-done .ask-step-number { background:var(--spruce); border-color:var(--spruce); color:var(--brand-ink); }
  .ask-drawer[data-ask-now="who"] [data-ask-step]:not([data-ask-step="who"]),
  .ask-drawer[data-ask-now="what"] [data-ask-step]:not([data-ask-step="what"]),
  .ask-drawer[data-ask-now="send"] [data-ask-step]:not([data-ask-step="send"]) { display:none; }
  .ask-back:not([hidden]), .ask-next:not([hidden]) { display:inline-flex; }
  .ask-drawer:not(.ask-on-last) #askSend { display:none; }
  .ask-drawer button, .ask-drawer input[type="text"], .ask-drawer input[type="email"], .ask-drawer input[type="date"], .ask-drawer .custom-select-trigger, .ask-drawer .nt-btn { min-height:44px; }
  .ask-drawer .nt-btn { display:inline-flex; align-items:center; justify-content:center; }
  .ask-drawer .nt-close { width:44px; height:44px; }
  .ask-chip-remove { width:44px; height:44px; }
  .ask-include-row, .ask-file { min-height:44px; padding:var(--space-100) var(--space-50); }
  .ask-include-row input, .ask-file input { width:22px; height:22px; }
  .ask-radio { min-height:44px; }
  .ask-tabs [role="tab"] { min-height:44px; flex:1; }
  .ask-amount { max-width:none; }
  .ask-card-slack .ask-card-rows { grid-template-columns:1fr; }
  .ask-foot { padding:var(--space-150) var(--space-200); }
  .ask-foot .nt-foot-actions { width:100%; flex-wrap:nowrap; }
  .ask-foot .nt-foot-actions .nt-btn { flex:1; }
  .ask-foot .nt-btn-ghost { display:none; }
}

/* ------------------------------------------------------------------------- The Approvals card (GitHub issue 502) */
/* One card for every record (approval-card.js): the head with its count, one request with its stage timeline (a dot and
   a line down the left), comments under each decision, the template's fields, notes, the buttons, and earlier requests
   folded. Long names wrap; nothing scrolls sideways. Colors are the page's own, so light and dark follow them. */
.apc { display:grid; gap:var(--space-150); min-width:0; }
.apc-head { display:flex; align-items:center; justify-content:space-between; gap:var(--space-100); min-width:0; }
.apc-head .apc-title { margin:0; }
.apc-count { flex:0 0 auto; padding:var(--space-25) var(--space-100); border-radius:var(--radius-pill); background:var(--surface-2); color:var(--ink-2); font-size:var(--text-xs); font-weight:var(--weight-semibold); }
.apc-request { display:grid; gap:var(--space-100); min-width:0; }
.apc-request-head { display:flex; flex-wrap:wrap; align-items:flex-start; justify-content:space-between; gap:var(--space-50) var(--space-100); min-width:0; }
.apc-request-title { flex:1 1 10rem; min-width:0; color:var(--ink); overflow-wrap:anywhere; }
.apc-amount, .apc-meta { margin:0; color:var(--muted); font-size:var(--text-sm); line-height:1.45; overflow-wrap:anywhere; }
.apc-amount { color:var(--ink); font-weight:var(--weight-semibold); }
.apc-stages { display:grid; margin:0; padding:0; list-style:none; }
.apc-stage { position:relative; display:grid; grid-template-columns:var(--space-200) minmax(0, 1fr); gap:var(--space-100); padding-bottom:var(--space-150); }
.apc-stage:last-child { padding-bottom:0; }
.apc-stage:not(:last-child)::before { content:''; position:absolute; top:var(--space-250); bottom:var(--space-25); left:calc(var(--space-100) - 1px); width:2px; border-radius:var(--radius-pill); background:var(--line); }
.apc-dot { width:var(--space-200); height:var(--space-200); margin-top:var(--space-25); border:2px solid var(--line-strong, var(--line)); border-radius:50%; background:var(--surface, transparent); }
.apc-dot-approved { border-color:var(--spruce); background:var(--spruce); }
.apc-dot-denied { border-color:var(--bad); background:var(--bad); }
.apc-dot-pending { border-color:var(--saffron); background:var(--saffron-pale); }
.apc-stage-body { display:grid; gap:var(--space-25); min-width:0; font-size:var(--text-sm); line-height:1.45; }
.apc-stage-name { color:var(--ink); overflow-wrap:anywhere; }
.apc-stage-name small { color:var(--muted); font-weight:400; }
.apc-stage-who { color:var(--ink-2); overflow-wrap:anywhere; }
.apc-stage-status { color:var(--muted); overflow-wrap:anywhere; }
.apc-stage.is-approved .apc-stage-status { color:var(--spruce-dark, var(--spruce)); }
.apc-stage.is-denied .apc-stage-status, .apc-stage.is-noAnswer .apc-stage-status { color:var(--bad); }
.apc-stage-note { color:var(--muted); font-size:var(--text-xs); overflow-wrap:anywhere; }
.apc-comment { margin:var(--space-25) 0 0; padding:var(--space-50) var(--space-100); border-left:3px solid var(--line); color:var(--ink); white-space:pre-line; overflow-wrap:anywhere; }
.apc-comment-by { display:block; color:var(--muted); font-size:var(--text-xs); white-space:normal; }
.apc-fields { display:grid; gap:var(--space-50); padding:var(--space-100) var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); }
.apc-fields-title { margin:0; color:var(--muted); font-size:var(--text-xs); font-weight:var(--weight-semibold); }
.apc-fields dl { display:grid; gap:var(--space-50); margin:0; }
.apc-fields dl > div { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); gap:var(--space-100); font-size:var(--text-sm); }
.apc-fields dt { color:var(--muted); overflow-wrap:anywhere; }
.apc-fields dd { margin:0; color:var(--ink); overflow-wrap:anywhere; }
.apc-note { margin:0; color:var(--ink-2); font-size:var(--text-sm); line-height:1.45; overflow-wrap:anywhere; }
.apc-actions { display:flex; flex-wrap:wrap; align-items:center; gap:var(--space-75) var(--space-150); }
.apc-empty { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:var(--space-100); }
.apc-empty p { margin:0; color:var(--muted); font-size:var(--text-md); }
.apc-earlier summary { color:var(--ink-2); font-size:var(--text-sm); font-weight:var(--weight-semibold); cursor:pointer; }
.apc-earlier > .apc-request { margin-top:var(--space-150); padding-top:var(--space-150); border-top:1px solid var(--line); }
/* Inside the Help panel's Approvals section the section's heading says "Approvals" and its count: never twice. */
#thBody-approvals .apc-head { display:none; }
/* The ticket's sidebar lays its cards' boxes out as "label … value" rows (styles.css .detail-side-card > div): the card
   stacks instead, its words start at the left, and its names keep the card's own weight. */
.detail-side-card.approval-side-card > .apc { display:grid; justify-content:stretch; align-items:stretch; padding:var(--space-150) var(--space-200); border-top:0; color:var(--ink); font-size:var(--text-md); text-align:left; }
.detail-side-card.approval-side-card > .apc b { color:var(--ink); font-weight:var(--weight-semibold); text-align:left; }
#thBody-approvals .detail-side-card.approval-side-card > .apc { padding:0; }
/* The ticket list's Waiting on column: long names wrap, as every cell does. */
.waiting-on-cell { overflow-wrap:anywhere; }
@media (max-width: 640px) {
  .apc-actions button, .apc-empty button, .apc-earlier summary { min-height:44px; }
  .apc-actions .nt-link, .apc-earlier summary { display:inline-flex; align-items:center; }
  .apc-fields dl > div { grid-template-columns:minmax(0, 1fr); gap:0; }
}

/* -------------------------------------------------------------- Side conversations (GitHub issue 510) */
/* The drawer (side-conversations.js) is the Ask for approval drawer's look; these are its own parts: a chip's channel,
   the vendor wait, and a thread's messages, what was sent on one side and each answer on the other. Long text wraps. */
/* One row for each person: who, how it goes, and Remove. */
.side-chips { flex-direction:column; flex-wrap:nowrap; }
.side-chip { width:100%; box-sizing:border-box; border-radius:var(--radius-lg); }
.side-chip .ask-chip-text { flex:1 1 auto; }
.side-chip .custom-select-wrapper { flex:0 0 auto; width:8.5rem; }
.side-channel { flex:0 0 auto; min-width:0; width:8.5rem; padding:var(--space-25) var(--space-75); border:1px solid var(--control-border); border-radius:var(--radius-md); background:var(--surface); color:var(--ink); font:500 var(--text-sm)/1.3 var(--font-ui); }
.side-channel-word { color:var(--muted); font-size:var(--text-xs); }
.side-wait { margin-top:var(--space-200); padding:var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); }
.side-wait-fields { margin-top:var(--space-100); }
.side-wait-fields.is-note label, .side-wait-fields.is-note select, .side-wait-fields.is-note input, .side-wait-fields.is-note .custom-select-wrapper { display:none; }
.side-status { display:inline-block; margin-right:var(--space-50); padding:0 var(--space-75); border-radius:var(--radius-pill); font-size:var(--text-xs); font-weight:var(--weight-semibold, 600); }
.side-status.is-open { background:var(--spruce-pale); color:var(--spruce); }
.side-status.is-closed { background:var(--surface-2); color:var(--muted); }
.side-thread-status, .side-thread-wait { margin:0 0 var(--space-150); color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.side-people { display:flex; flex-wrap:wrap; gap:var(--space-75); margin:0 0 var(--space-200); padding:0; list-style:none; }
.side-people li { min-width:0; padding:var(--space-50) var(--space-100); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.side-people small { color:var(--muted); }
.side-messages { display:grid; gap:var(--space-150); margin:0; padding:0; list-style:none; }
.side-message { max-width:88%; min-width:0; padding:var(--space-150); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); overflow-wrap:anywhere; }
.side-message.is-out { justify-self:end; border-color:var(--spruce-soft, var(--line)); background:var(--spruce-pale); }
.side-message.is-in { justify-self:start; }
.side-message-head { margin:0 0 var(--space-75); color:var(--muted); font-size:var(--text-sm); }
.side-message-head b { color:var(--ink); }
.side-message-text { margin:0; color:var(--ink); font-size:var(--text-md); line-height:1.5; white-space:pre-line; }
.side-message-fields { display:grid; gap:var(--space-25); margin:var(--space-100) 0 0; font-size:var(--text-sm); }
.side-message-fields div { display:grid; grid-template-columns:minmax(0, 2fr) minmax(0, 3fr); gap:var(--space-100); }
.side-message-fields dt { color:var(--muted); }
.side-message-fields dd { margin:0; color:var(--ink); }
.side-message-files { margin:var(--space-100) 0 0; padding:0; list-style:none; font-size:var(--text-sm); }
.side-message-files small { color:var(--muted); }
.side-thread .ask-foot textarea { min-height:80px; }
.side-end-wait { margin-top:var(--space-50); }
.side-rows small { overflow-wrap:anywhere; }
@media (max-width: 640px) {
  .side-message { max-width:100%; }
  .side-channel { min-height:44px; }
  .side-message-fields div { grid-template-columns:minmax(0, 1fr); gap:0; }
  .side-message-files a { display:inline-flex; align-items:center; min-height:44px; }
  .side-thread .ask-foot .nt-foot-actions { width:100%; }
  .side-thread .ask-foot .nt-foot-actions .nt-btn { flex:1; }
  .side-drawer:not(.ask-on-last) #sideSend { display:none; }
}

/* -------------------------------------------------------------- Find a vendor (GitHub issue 534) */
/* The drawer (vendor-finder.js) is the side conversation drawer's look: the location and category, the notes, and each
   ranked vendor as a card with its chips, its contact and Pick. Long names wrap to two lines with a fade (title-cap). */
.vf-filters { display:grid; grid-template-columns:repeat(2, minmax(0, 1fr)); gap:var(--space-200); }
.vf-filter { display:grid; gap:var(--space-50); min-width:0; }
.vf-filter select { width:100%; min-width:0; }
.vf-hint { color:var(--muted); font-size:var(--text-xs); overflow-wrap:anywhere; }
.vf-note { margin:var(--space-200) 0 0; padding:var(--space-100) var(--space-150); border-radius:var(--radius-md); background:var(--surface-2); color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.vf-note.is-urgent { background:var(--saffron-pale); color:var(--ink); }
.vf-status { margin:var(--space-200) 0 var(--space-100); color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.vf-hidden { margin:var(--space-150) 0 0; color:var(--muted); font-size:var(--text-sm); }
.vf-list { display:grid; gap:var(--space-150); margin:0; padding:0; list-style:none; }
.vf-row { display:grid; gap:var(--space-100); min-width:0; padding:var(--space-150) var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface); }
.vf-row.is-warn { border-color:var(--terra-pale); }
.vf-row-head { display:flex; align-items:flex-start; gap:var(--space-100); min-width:0; }
.vf-rank { flex:0 0 auto; display:grid; place-items:center; width:24px; height:24px; border-radius:var(--radius-round); background:var(--surface-2); color:var(--ink-2); font-size:var(--text-xs); font-weight:var(--weight-semibold, 600); }
.vf-name { flex:1 1 auto; min-width:0; margin:0; color:var(--ink); font-size:var(--text-md); font-weight:var(--weight-semibold, 600); line-height:1.35; }
.vf-chips { display:flex; flex-wrap:wrap; gap:var(--space-50); }
.vf-chip { display:inline-flex; align-items:center; padding:0 var(--space-75); border-radius:var(--radius-pill); background:var(--surface-2); color:var(--ink-2); font-size:var(--text-xs); line-height:1.8; }
.vf-chip.is-preferred { background:var(--spruce-pale); color:var(--spruce); font-weight:var(--weight-semibold, 600); }
.vf-chip.is-urgent { background:var(--saffron-pale); color:var(--warn-ink, var(--ink)); font-weight:var(--weight-semibold, 600); }
.vf-chip.is-warn { background:var(--terra-pale); color:var(--bad); font-weight:var(--weight-semibold, 600); }
.vf-chip.is-soon { background:var(--saffron-pale); color:var(--warn-ink, var(--ink)); }
.vf-chip.is-quiet { background:transparent; color:var(--muted); padding:0; }
.vf-why { margin:0; color:var(--ink-2); font-size:var(--text-sm); }
.vf-contact { display:grid; gap:var(--space-50); min-width:0; }
.vf-contact select { max-width:24rem; width:100%; }
.vf-contact-line { color:var(--muted); font-size:var(--text-xs); overflow-wrap:anywhere; }
.vf-row-actions { display:flex; justify-content:flex-end; }
.vf-link { margin-top:var(--space-200); padding:var(--space-200); border:1px solid var(--line); border-radius:var(--radius-lg); background:var(--surface-2); }
.vf-link h3 { margin:0 0 var(--space-100); font-size:var(--text-md); overflow-wrap:anywhere; }
.vf-link-why, .vf-link-contact { margin:0 0 var(--space-100); color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.vf-link-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:var(--space-100); margin-top:var(--space-150); }
.side-linked { margin:var(--space-100) 0 0; color:var(--ink-2); font-size:var(--text-sm); overflow-wrap:anywhere; }
.side-linked-label { color:var(--muted); }
@media (max-width: 640px) {
  .vf-filters { grid-template-columns:minmax(0, 1fr); }
  .vf-pick, .vf-link-actions .nt-btn { min-height:44px; flex:1; }
  .vf-row-actions { display:flex; }
  .vf-contact select { max-width:none; min-height:44px; }
  .vf-filter select { min-height:44px; }
}
.vf-contact .nt-field { margin:0; }
