/* ==================================================================
   Operational tests - the canon shell atoms, scoped (program decision 158)
   The Operation Tests canon consumes th-* shell classes from its deps/threshold-ops.css, a sheet Threshold
   never loads: 169 of its 256 th-* classes already exist in shipped Threshold sheets with other values, and it
   redeclares .th-grid. The rules the module renders are lifted here verbatim from
   docs/design-canon/operation-tests/handoff/operational-tests/deps/threshold-ops.css, each selector prefixed
   with the module root .ot-app, so no shipped surface changes. The canon sheet's older token names map to
   Threshold's (--th-serif to --th-font-serif, --th-mono to --th-font-mono, --th-radius to --th-radius-5,
   --th-radius-sm to --th-radius-3, --th-sunk to --th-paper-sunk), and its --th-shadow-pop value is written out as the
   Work Queues lift writes it. No hex, no token declaration.
   Later Operational tests slices add the rules they render to this sheet.
   ================================================================== */

/* The canon page sets its body to 13.5px/1.45 sans (.th-body); Threshold's reset sets line-height 1.5. */
.ot-app { font-size: 13.5px; line-height: 1.45; }
.ot-app a { color: var(--th-advant); text-decoration: none; }
.ot-app a:hover { color: var(--th-advant-deep); }

/* ---------- page head ---------- */
.ot-app .th-h1 { margin: 0; font: 500 23px/1.25 var(--th-font-serif); letter-spacing: -.012em; color: var(--th-ink); text-wrap: pretty; }
.ot-app .th-sub { margin-top: 4px; font-size: 12.5px; color: var(--th-ink-2); line-height: 1.45; max-width: 760px; }
.ot-app .th-kicker { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-ink-2); }

/* ---------- filter chips and menus ---------- */
.ot-app .th-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 10px; border-radius: 999px; font: inherit; font-size: 12px; cursor: pointer; white-space: nowrap; border: 1px solid var(--th-line-2); background: var(--th-paper); color: var(--th-ink-2); }
.ot-app .th-chip:hover { border-color: var(--th-ink-4); }
.ot-app .th-chip.is-set { border-color: var(--th-advant); background: var(--th-advant-soft); color: var(--th-advant-deep); }
.ot-app .th-chip__label { color: var(--th-ink-2); }
.ot-app .th-chip__value { font-weight: 500; }
.ot-app .th-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 200px; background: var(--th-paper-sunk); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-5); box-shadow: 0 8px 24px oklch(20% 0.01 255 / 0.12); padding: 4px; }
.ot-app .th-menu__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 6px 10px; border: 0; border-radius: var(--th-radius-3); background: transparent; font: inherit; font-size: 12.5px; color: var(--th-ink); cursor: pointer; text-align: left; }
.ot-app .th-menu__item:hover { background: var(--th-paper-2); }
.ot-app .th-menu__mark { font: 11px var(--th-font-mono); color: var(--th-advant-deep); }
.ot-app .th-menu { max-width: calc(100vw - 16px); overflow-y: auto; }

/* ---------- banners, empty and denied states ---------- */
.ot-app .th-banner { border-radius: var(--th-radius-5); padding: 10px 12px; display: grid; grid-template-columns: 16px minmax(0,1fr); gap: 9px; font-size: 12.5px; line-height: 1.5; }
.ot-app .th-banner.is-warn { border: 1px solid var(--th-warn); background: var(--th-warn-soft); color: var(--th-warn-ink); }
.ot-app .th-banner.is-neutral { border: 1px solid var(--th-line-2); background: var(--th-paper-2); color: var(--th-ink-2); }
.ot-app .th-empty { padding: 44px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ot-app .th-empty__icon { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--th-paper-2); border: 1px solid var(--th-line); color: var(--th-ink-2); }
.ot-app .th-empty__title { font-size: 14.5px; font-weight: 600; color: var(--th-ink); }
.ot-app .th-empty__body { font-size: 12.5px; max-width: 420px; color: var(--th-ink-2); line-height: 1.5; }
.ot-app .th-denied { margin: 24px; border: 1px solid var(--th-line); border-radius: var(--th-radius-5); background: var(--th-paper-sunk); padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.ot-app .th-denied__title { font: 600 17px var(--th-font-serif); color: var(--th-ink); }

/* ---------- the canon list table (README Fault 2: restored under .ot-grid by operational-tests.css) ---------- */
.ot-app .th-grid { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.ot-app .th-grid th { text-align: left; font-weight: 600; font-size: 10.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--th-ink-2); background: var(--th-paper-2); border-bottom: 1px solid var(--th-line); padding: 8px 10px; }
.ot-app .th-grid th:first-child, .ot-app .th-grid td:first-child { padding-left: 16px; }
.ot-app .th-grid th:last-child, .ot-app .th-grid td:last-child { padding-right: 16px; }
.ot-app .th-grid td { padding: 9px 10px; vertical-align: top; min-width: 0; }

/* ---------- dialog form fields (inside the shared ThresholdDialog, which renders outside .ot-app) ---------- */
.ot-dialog .th-kicker { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--th-ink-2); }
.ot-dialog .th-field { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--th-ink-2); }
.ot-dialog .th-textarea { font: inherit; font-size: 13px; padding: 7px 10px; border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); background: var(--th-paper); color: var(--th-ink); resize: vertical; line-height: 1.5; }
.ot-dialog .th-textarea:focus { border-color: var(--th-advant); outline: 0; }
/* The canon's ".ot-app .cc-btn { white-space: nowrap; }" (operational-tests.css), for the dialog's own buttons. */
.ot-dialog .cc-btn { white-space: nowrap; }

/* ---------- search (OT-14, the Test files list) ---------- */
.ot-app .th-search { display: flex; align-items: center; gap: 8px; background: var(--th-paper-sunk); border: 1px solid var(--th-line-2); border-radius: var(--th-radius-3); padding: 5px 10px; font-size: 12.5px; color: var(--th-ink-2); } .ot-app .th-search:focus-within { border-color: var(--th-advant); }
.ot-app .th-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; color: var(--th-ink); }
/* A list pill stays on one line, as the Live All Files list keeps it (all-files.css, .af-page .cc-pill). */
.ot-app .th-grid .cc-pill { white-space: nowrap; }
