/* Build 03 screens: pre-triage question editor, message lead provider,
   client import. Colours and fonts come from theme.css variables only. */

/* Question editor */
.qrow { display: grid; grid-template-columns: 72px 1fr 190px; gap: 14px; align-items: start;
        padding: 12px 0; border-top: 1px solid var(--border); }
.qrow:first-of-type { border-top: 0; }
.qrow.locked .qtext input:first-of-type { border-left: 3px solid var(--accent); }
.qrow .qorder input { width: 64px; padding: 7px 8px; }
.qrow .qtext label { display: block; margin-bottom: 5px; }
.qrow .qhelp { margin-top: 6px; font-size: 13px; padding: 7px 10px; }
.qrow .qflags { display: flex; flex-direction: column; gap: 6px; padding-top: 24px; }
.qrow .qflags .check { margin: 0; }
.lock-note { font-size: 11px; font-weight: 700; text-transform: none; letter-spacing: 0; color: var(--text-muted);
             margin-left: 6px; }
ol.qlist { margin: 0; padding-left: 20px; }
ol.qlist li { margin-bottom: 10px; }

/* Message lead provider */
.compose-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; }
textarea.compose { min-height: 280px; line-height: 1.5; }
.subject-rule { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Client import */
.import-counts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 16px; }
.import-counts .pill { font-size: 13px; padding: 5px 12px; }
table.data td.msgs { font-size: 13px; }
table.data td.msgs ul { margin: 0; padding-left: 16px; }
pre.csv { font-size: 12px; white-space: pre-wrap; word-break: break-all; background: var(--page-bg);
          border: 1px solid var(--border); border-radius: 8px; padding: 10px; }

@media (max-width: 900px) {
  .qrow { grid-template-columns: 1fr; gap: 6px; }
  .qrow .qflags { flex-direction: row; flex-wrap: wrap; gap: 14px; padding-top: 0; }
}

/* Text tones outside tables */
.t-bad { color: var(--bad-text); font-weight: 700; }
.t-good { color: var(--good-text); font-weight: 600; }
.t-warn { color: var(--warn-text); font-weight: 700; }

/* Fix pass 04 (review 03 L6): locked pre-triage questions are read-only. */
.qrow.locked { background: var(--muted-bg); border-left: 3px solid var(--accent); padding-left: 10px;
              padding-right: 10px; border-radius: var(--radius-sm); }
.qrow.locked .qlocked-label { margin: 2px 0 0; font-weight: 600; }
.qrow.locked .qpos { padding: 6px 0; font-variant-numeric: tabular-nums; }
.qrow.locked .qflags { gap: 4px; align-items: flex-start; }

/* Pass 28: Help pages (D-30) and the public forms' collection notice (D-25). */
.help-toc { columns: 2; column-gap: 32px; margin: 8px 0 0; padding-left: 18px; }
.help-toc li { margin: 4px 0; break-inside: avoid; }
@media (max-width: 720px) { .help-toc { columns: 1; } }
.help-page h2.help-h { font-size: 16px; margin: 18px 0 6px; }
.help-page p, .help-page li { max-width: 72ch; }
.notice .docbody { white-space: pre-line; }
/* Pass 28 (D-53): the action list's other daily tasks under the tiles. */
.todo-rows { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.todo-rows li a { text-decoration: none; }
.todo-rows li .n { display: inline-block; min-width: 1.6em; }
.todo-rows li.zero { opacity: .65; }
