/* Claims to search plan (Item 10): the list of cases, an open case with its five steps, and the plan line on a result
   that ran from a plan. One white card with chip-style tabs, as the sequence tools use. Every color and size comes
   from the tokens in style.css, which loads first. Marks in the claim text differ by line style as well as color, so
   the status reads without color too. Light mode only. */

/* style.css sets no margin on h1 to h3 and p; the section's smaller headings and lists follow it. */
#claims-section h4, #claims-section h5, #claims-section dl, #claims-section dd { margin: 0; }

/* The list of cases and the new case form */
.case-home { display: grid; gap: 20px; }
.case-form {
  display: grid; gap: 14px; padding: 18px; border: 1px solid var(--line-faint); border-radius: var(--radius-l); background: var(--card);
}
@media (min-width: 768px) {
  .case-form { padding: 22px 24px 24px; }
}
.claims-heading { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; color: var(--brand-ink); overflow-wrap: anywhere; }
.case-fields { display: grid; gap: 14px; }
@media (min-width: 768px) {
  .case-fields { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); }
}
.case-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
@media (max-width: 559px) {
  .case-form-actions .btn-primary { flex: 1 1 100%; }
}
.case-item { min-height: 0; }

/* The open case: a head with its facts, the step tabs, then one step at a time. */
.case-card { overflow: clip; border-color: var(--line-faint); scroll-margin-top: 16px; }
.case-head { display: grid; gap: 8px; padding: 14px 18px 12px; }
@media (min-width: 768px) {
  .case-head { padding: 18px 24px 14px; }
}
.case-back { justify-self: start; margin-left: -12px; }
.case-title { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.01em; color: var(--brand-ink); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .case-title { font-size: 24px; }
}
.case-title:focus { outline: none; }
.case-about-line { overflow-wrap: anywhere; }
.case-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 2px 0 0; padding: 0; list-style: none; }
.case-facts > li { padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 12.5px; line-height: 18px; color: var(--ink-2); }
.case-facts > li[data-tone="ok"] { background: var(--ok-tint); color: var(--ok); }
.case-facts > li.case-fact-open { padding: 0; background: none; }
.case-fact-button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 1px solid var(--warn-line); border-radius: 999px;
  background: var(--warn-tint); color: var(--warn); font-size: 13px; font-weight: 500; cursor: pointer;
}
.case-fact-open[data-tone="ok"] .case-fact-button { border-color: var(--line); background: var(--ok-tint); color: var(--ok); }
/* A demo case (demo data 1.0.0): its tag on the card and in the head, where it can be deleted. */
.case-demo { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.case-demo-line { margin: 0; }
.case-demo-tag { padding: 1px 8px; border-radius: 999px; background: var(--chip); font: 500 12px/18px var(--font-sans); color: var(--ink-2); white-space: nowrap; }
.case-tabs { margin-top: 4px; }
.case-panel { display: grid; gap: 18px; min-width: 0; padding: 18px; border-top: 1px solid var(--line-faint); }
@media (min-width: 768px) {
  .case-panel { padding: 22px 24px 24px; }
}
.case-panel > .btn { justify-self: start; }
.case-about { max-width: 72ch; }

/* Claims: the import form, what was read, one line per claim. */
.claims-import { display: grid; gap: 14px; padding: 16px; border: 1px dashed var(--line-2); border-radius: var(--radius); background: var(--well); }
.claims-import > .btn { justify-self: start; }
@media (max-width: 559px) {
  .claims-import > .btn { justify-self: stretch; }
}
textarea.claims-paste { min-height: 220px; }
.claims-xml { display: grid; gap: 8px; }
.claims-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.claims-chosen { font-size: 12.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.claims-summary { display: grid; gap: 8px; }
.claims-title { font-size: 14.5px; color: var(--ink); overflow-wrap: anywhere; }
.claims-facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.claims-facts li { padding: 3px 10px; border-radius: 999px; background: var(--chip); font-size: 12px; line-height: 18px; color: var(--ink-2); }
.claims-hash, .plan-hash, .result-plan-hash { font-size: 12px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-all; }
.claims-warnings { display: grid; gap: 4px; margin: 0; padding: 10px 12px 10px 30px; border: 1px solid var(--warn-line); border-radius: var(--radius-s); background: var(--warn-tint); color: var(--warn); font-size: 13.5px; }
.claims-subheading { font: 400 12px/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-link); }
.claims-index { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.claims-index-item { display: grid; gap: 2px; min-width: 0; padding: 4px 12px 10px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.claims-index-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0 12px; }
.claims-go { margin-left: -12px; font-weight: 500; color: var(--brand-link); }
.claims-index-count { margin-left: auto; font-size: 12px; color: var(--ink-2); }
/* A claim's start wraps whole below 768 px, on a phone and at 200% zoom or more, so no text is cut off there (WCAG
   1.4.10, 1.4.12). From 768 px it is a two-line preview, and the whole claim is under Review. */
.claims-first { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .claims-first { display: -webkit-box; overflow: hidden; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
}
.claims-again { border-top: 1px dashed var(--line-2); padding-top: 4px; }
.claims-again > summary, .plan-unlock > summary, .run-uncovered > summary, .explain-more > summary, .case-summary > summary {
  display: flex; align-items: center; gap: 8px; min-height: 44px; border-radius: var(--radius-s);
  font-size: 14px; font-weight: 500; color: var(--brand-link); list-style: none; cursor: pointer;
}
.claims-again > summary::-webkit-details-marker, .plan-unlock > summary::-webkit-details-marker, .run-uncovered > summary::-webkit-details-marker,
.explain-more > summary::-webkit-details-marker, .case-summary > summary::-webkit-details-marker { display: none; }
.claims-again > summary::before, .plan-unlock > summary::before, .run-uncovered > summary::before, .explain-more > summary::before,
.case-summary > summary::before { content: '+'; width: 12px; font: 500 15px/1 var(--font-mono); }
.claims-again[open] > summary::before, .plan-unlock[open] > summary::before, .run-uncovered[open] > summary::before, .explain-more[open] > summary::before,
.case-summary[open] > summary::before { content: '\2212'; }
/* Workflow spec C4: the case summary, at the top of the case under its own toggle, read when it opens. */
.case-summary { border-top: 1px dashed var(--line-2); padding-top: 4px; min-width: 0; }
.case-summary-body { display: grid; gap: 8px; max-width: 86ch; padding: 2px 0 8px; }
.claims-again > .claims-import { margin-top: 6px; }
.claims-again-note { padding: 4px 0 8px; }

/* Sets of claims (pilot spec D1): what the claims are and their date, each set as a soft block with "Current" in
   words, Make current with a note, and what changed, with added words underlined and removed words struck through. */
.claims-set-fields, .claims-changes-pick { display: grid; gap: 12px; min-width: 0; }
@media (min-width: 768px) {
  .claims-set-fields, .claims-changes-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.claims-sets, .claims-changes, .claims-changes-body { display: grid; gap: 8px; min-width: 0; }
.claims-subheading:focus { outline: none; }
.claims-subheading:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.claims-set-list, .claims-change-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.claims-set { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); }
.claims-set .claims-facts li { background: var(--card); }
.claims-set-head, .claims-change-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.claims-set-name, .claims-change-name { font-weight: 500; overflow-wrap: anywhere; }
.claims-set-tag, .claims-change-tag { padding: 1px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; }
.claims-set-tag { background: var(--ok-tint); color: var(--ok); }
.claims-set-actions, .claims-make { display: grid; gap: 10px; min-width: 0; }
.claims-set-actions > .btn { justify-self: start; }
.claims-make-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.claims-changes-line { font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.claims-changes-all { justify-self: start; }
.claims-change { display: grid; gap: 4px; min-width: 0; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.claims-change-tag { background: var(--chip); color: var(--ink-2); }
.claims-change[data-status="amended"] .claims-change-tag { background: var(--warn-tint); color: var(--warn); }
.claims-change[data-status="added"] .claims-change-tag { background: var(--ok-tint); color: var(--ok); }
.claims-change[data-status="cancelled"] .claims-change-tag { background: var(--bad-tint); color: var(--bad); }
.claims-change-words { font-size: 13.5px; line-height: 1.6; color: var(--ink); white-space: pre-line; overflow-wrap: anywhere; }
.claims-change[data-status="cancelled"] .claims-change-words { color: var(--ink-2); }
.claims-change-words ins, .claims-change-words del { padding: 0 1px; border-radius: 3px; color: var(--ink); box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.claims-change-words ins { background: var(--ok-tint); text-decoration: underline solid var(--ok) 2px; text-underline-offset: 3px; }
.claims-change-words del { background: var(--bad-tint); text-decoration: line-through solid var(--bad) 2px; }
@media (max-width: 559px) {
  .claims-set-actions > .btn, .claims-changes-all { justify-self: stretch; }
}

/* Review: the tools over the claims, then each claim with its text and its features. */
.review-tools { display: grid; gap: 10px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* The Ask button names the model, whose name can be long, so its words wrap on a narrow screen. */
.review-ask { padding-block: 10px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.claims-model, .claims-locked { max-width: 80ch; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.claims-locked { border-color: var(--line); background: var(--ok-tint); color: var(--ok); font-weight: 500; }
/* While the model reads a case: the run tint and color, as a running job has, with a clock that does not jump. */
.claims-asking { background: var(--run-tint); color: var(--run); font-weight: 500; font-variant-numeric: tabular-nums; }
.claims-legend-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.claims-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin: 0; padding: 0; list-style: none; font-size: 13px; }

/* A mark shows where a feature came from in the claim text. The underline style carries the status as well as the
   tint: dashed to review, dotted suggested, solid accepted, double rejected. */
.claim-mark { padding: 1px 0; border-radius: 3px; background: var(--warn-tint); color: var(--ink); text-decoration: underline dashed var(--warn) 2px; text-underline-offset: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.claim-mark[data-status="suggested"] { background: var(--run-tint); text-decoration: underline dotted var(--run) 2px; }
.claim-mark[data-status="accepted"] { background: var(--ok-tint); text-decoration: underline solid var(--ok) 2px; }
.claim-mark[data-status="rejected"] { background: var(--soft); text-decoration: underline double var(--ink-3) 1px; }
.claim-mark.is-lit { background: var(--brand-tint-strong); outline: 2px solid var(--brand-link); outline-offset: 1px; }
.claims-legend .claim-mark { padding: 2px 6px; }

.claim-blocks { display: grid; gap: 16px; }
.claim-block { display: grid; gap: 12px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-margin-top: 16px; }
@media (min-width: 768px) {
  .claim-block { padding: 18px 20px; }
}
.claim-block > .btn { justify-self: start; }
.claim-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; }
.claim-title { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--brand-ink); scroll-margin-top: 16px; }
.claim-title:focus { outline: none; }
.claim-title:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.claim-tally { margin-left: auto; font-size: 12px; color: var(--ink-2); }
/* The claim exactly as imported: its own line breaks and spaces stay. */
.claim-text { max-width: 86ch; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); font-size: 15px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.claim-none { padding: 0 2px; }

.feature-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.feature { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); scroll-margin-top: 16px; }
.feature[data-status="suggested"] { background: var(--run-tint); }
.feature[data-status="accepted"] { background: var(--ok-tint); }
.feature[data-status="rejected"] { background: var(--soft); }
.feature:focus { outline: none; }
.feature:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.feature-kind { font: 400 11.5px/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-link); }
.feature-what { font-size: 14.5px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.feature-status { margin-left: auto; padding: 2px 9px; border-radius: 999px; background: var(--warn-tint); color: var(--warn); font-size: 12px; line-height: 18px; font-weight: 500; overflow-wrap: anywhere; }
.feature-status[data-status="suggested"] { background: var(--card); color: var(--run); }
.feature-status[data-status="accepted"] { background: var(--card); color: var(--ok); }
.feature-status[data-status="rejected"] { background: var(--card); color: var(--ink-2); }
.feature-quote { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.feature-meta { font-size: 12px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.feature-note { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.feature-actions, .feature-form-actions, .plan-item-actions, .plan-actions, .plan-banner-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.feature-actions { margin: 2px 0 -6px -8px; }
/* On wider screens a feature's buttons sit to the right of its words, so each row stays short. */
@media (min-width: 768px) {
  .feature { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .feature > :not(.feature-actions):not(.feature-form) { grid-column: 1; }
  .feature > .feature-actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; margin: -6px -8px 0 0; }
  .feature > .feature-form { grid-column: 1 / -1; }
}
.feature-form { display: grid; gap: 12px; margin-top: 4px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); }
.feature-span { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px 12px; }
.feature-span .field { width: 9rem; }
.feature-preview { font-size: 14px; line-height: 1.55; overflow-wrap: anywhere; white-space: pre-wrap; }
.feature-details { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); align-items: end; gap: 10px 12px; }
.feature-details .check, .feature-details .row, .feature-details .field:has(textarea) { grid-column: 1 / -1; }
.feature-details textarea.input { min-height: 96px; }
.feature-checks { display: flex; flex-wrap: wrap; gap: 0 18px; }
.feature-checks > legend { margin-bottom: 0; }

/* Plan: the lock banner, then the features no search covers beside the searches on wide screens. */
.plan-banner { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-tint); }
.plan-banner[data-state="locked"] { border-color: var(--line); background: var(--ok-tint); }
.plan-banner-title { font-size: 16px; line-height: 1.35; font-weight: 600; color: var(--warn); }
.plan-banner[data-state="locked"] .plan-banner-title { color: var(--ok); }
.plan-banner-title:focus { outline: none; }
.plan-banner .hint { color: var(--ink); }
.plan-banner .plan-hash { color: var(--ink); }
.plan-banner-set { font-size: 14px; font-weight: 500; color: var(--ink); }
.plan-banner-actions { align-items: flex-start; margin-top: 4px; }
.plan-unlock { flex: 1 1 260px; min-width: 0; }
.plan-unlock[open] { display: grid; gap: 10px; }
.plan-unlock > .btn { justify-self: start; }

.plan-layout { display: grid; gap: 18px; min-width: 0; }
.plan-main { display: grid; gap: 22px; min-width: 0; }
@media (min-width: 1024px) {
  .plan-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 300px); align-items: start; }
  .plan-side { position: sticky; top: 16px; grid-column: 2; grid-row: 1; }
  .plan-main { grid-column: 1; grid-row: 1; }
}
.plan-side { display: grid; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--warn-line); border-radius: var(--radius); background: var(--warn-tint); }
.plan-side:has(.plan-all-covered) { border-color: var(--line); background: var(--ok-tint); }
.plan-side .hint { color: var(--ink); }
.plan-uncovered { display: grid; gap: 6px; max-height: min(440px, 60vh); margin: 0; padding: 2px; overflow-y: auto; list-style: none; }
.plan-uncovered-item { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.plan-uncovered-item > .btn { justify-self: start; margin: 0 0 -6px -10px; }
.plan-all-covered { font-size: 14px; font-weight: 500; color: var(--ok); }

.plan-section { display: grid; gap: 12px; min-width: 0; }
.plan-heading { font-size: 16px; line-height: 1.35; font-weight: 600; letter-spacing: -0.005em; color: var(--brand-ink); overflow-wrap: anywhere; scroll-margin-top: 16px; }
.plan-heading:focus { outline: none; }
.plan-heading:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.plan-facts { display: grid; gap: 8px; margin: 0; }
.plan-fact { display: grid; gap: 2px; min-width: 0; }
@media (min-width: 640px) {
  .plan-fact { grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; }
}
.plan-fact dt { font: 400 11.5px/1.6 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2); }
.plan-fact dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; }
.plan-settings { display: grid; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.plan-settings > .btn { justify-self: start; }
.plan-settings-fields { display: grid; gap: 12px; }
@media (min-width: 640px) {
  .plan-settings-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
textarea.plan-notes { min-height: 72px; }
.plan-sequences:empty { display: none; }

.plan-items { display: grid; gap: 10px; }
.plan-item, .plan-group { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-margin-top: 16px; }
.plan-item:focus, .plan-group:focus { outline: none; }
.plan-item:focus-visible, .plan-group:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.plan-item-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.plan-item-id { padding: 1px 8px; border-radius: 6px; background: var(--brand-tint); font-size: 12.5px; font-weight: 500; color: var(--brand-ink); }
.plan-item-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.plan-covers { display: grid; gap: 4px; margin: 0; padding-left: 18px; }
.plan-covers li { overflow-wrap: anywhere; }
.plan-letters { font-size: 12.5px; word-break: break-all; }
.plan-item-actions { margin: 0 0 -6px -8px; }
.plan-editor { display: grid; gap: 14px; min-width: 0; padding: 14px; border: 1px solid var(--brand-tint-strong); border-radius: var(--radius); background: var(--well); scroll-margin-top: 16px; }
.plan-editor .plan-item-actions { margin: 0; }
/* A plain block, not a grid: a grid capped by max-height shrinks its rows to each label's 44 px minimum, and a label
   that wraps to three lines then spills over the next one. In a block each label keeps the height of its words. */
.plan-cover-list { max-height: 300px; padding: 0 2px; overflow-y: auto; }
.plan-cover-list .check { align-items: flex-start; padding-block: 10px; font-size: 13.5px; line-height: 1.45; overflow-wrap: anywhere; }
.plan-cover-list .check input { margin-top: 1px; }
.plan-query-fields { display: grid; gap: 12px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 12px; }
.plan-how { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.plan-editor textarea.input { min-height: 72px; }
.plan-editor textarea.input-code { min-height: 96px; }
.plan-actions { gap: 8px; }
.plan-actions .hint { flex: 1 1 100%; }
.plan-lock { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.plan-lock > .btn { justify-self: start; }
@media (max-width: 559px) {
  .plan-lock > .btn { justify-self: stretch; }
}
.plan-lock-line { font-size: 14px; }
.plan-problems { display: grid; gap: 4px; margin: 0; padding-left: 20px; font-size: 14px; color: var(--bad); }
.plan-problems li { overflow-wrap: anywhere; }
.plan-versions { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.plan-version { display: grid; gap: 4px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); scroll-margin-top: 16px; }
.plan-version.is-picked { border-color: var(--brand-link); box-shadow: 0 0 0 1px var(--brand-link); }
.plan-version:focus { outline: none; }
.plan-version:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.plan-version-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan-version-tag { padding: 1px 8px; border-radius: 999px; background: var(--ok-tint); font-size: 12px; font-weight: 500; color: var(--ok); }
.plan-version-check { font-size: 13.5px; font-weight: 500; }
.plan-version-check:empty { display: none; }
.plan-version-check[data-tone="ok"] { color: var(--ok); }
.plan-version-check[data-tone="bad"] { color: var(--bad); }
.plan-version .plan-item-actions { margin-top: 2px; }

/* Query groups and the plan's size against this server's limits. */
.plan-group-line { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.plan-group .plan-editor { padding: 12px; }
.plan-size { padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.plan-size-line { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.plan-limits, .plan-runs { display: grid; gap: 4px; margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; }
.plan-limits li, .plan-runs li { overflow-wrap: anywhere; }
.plan-runs { padding-left: 0; list-style: none; }

/* Run: the version, what it runs, then each run with its jobs. */
.run-empty { display: grid; justify-items: center; gap: 10px; }
.run-detail { display: grid; gap: 8px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.run-detail .plan-heading:focus { outline: none; }
.run-uncovered .plan-covers { padding-bottom: 6px; font-size: 13.5px; }
.run-form { display: grid; gap: 12px; margin-top: 6px; }
.run-form > .btn { justify-self: start; }
@media (max-width: 559px) {
  .run-form > .btn { justify-self: stretch; }
}
.run-item { align-items: flex-start; padding-block: 10px; }
.run-item input { margin-top: 2px; }
.run-item-text { display: grid; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.run-item-text strong { font-weight: 500; }
.runs { display: grid; gap: 10px; }
.run { display: grid; gap: 6px; min-width: 0; padding: 14px; border: 1px solid var(--line-faint); border-radius: var(--radius); background: var(--card); scroll-margin-top: 16px; }
.run-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.run-title:focus { outline: none; }
.run-title:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.run-jobs, .run-group-jobs { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.run-jobs { margin-top: 4px; }
.run-group { display: grid; gap: 6px; }
.run-group-title { font-size: 14px; overflow-wrap: anywhere; }
.run-job { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); }
.run-job[data-tone="bad"] { border-color: var(--bad-line); }
.run-job-end { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-left: auto; }
.run-job-end .btn { margin-block: -4px; }
.run-job-end .tool-bad { font-size: 13px; overflow-wrap: anywhere; }

/* Log */
.log-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.log-verify-line { flex: 1 1 280px; min-width: 0; font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-word; }
.log-verify-line[data-tone="ok"] { color: var(--ok); font-weight: 500; }
.log-verify-line[data-tone="bad"] { padding: 10px 12px; border: 1px solid var(--bad-line); border-radius: var(--radius-s); background: var(--bad-tint); color: var(--bad); font-weight: 500; }
.log-verify-line:focus { outline: none; }
.log-verify-line:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.log-events { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.log-event { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); scroll-margin-top: 16px; }
.log-event[data-broken="true"] { border-color: var(--bad-line); background: var(--bad-tint); }
.log-event:focus { outline: none; }
.log-event:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.log-event-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.log-event-head strong { font-size: 13.5px; font-weight: 600; }
.log-event-type { font-size: 12px; color: var(--brand-link); }
.log-event-text { font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.log-event-hash { font-size: 11.5px; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-all; }
.log-event-broken { font-size: 13.5px; font-weight: 500; color: var(--bad); }

/* Report: the searches in the case, notes, and the report itself. */
.report-searches, .report-notes { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.report-search { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; min-width: 0; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); }
.report-search[data-tone="bad"] { border-color: var(--bad-line); }
.report-search-text { display: grid; gap: 2px; flex: 1 1 260px; min-width: 0; overflow-wrap: anywhere; }
.report-search-text strong { font-size: 14.5px; font-weight: 500; color: var(--ink); }
.report-search-end { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-left: auto; }
.report-form { display: grid; gap: 10px; max-width: 72ch; }
.report-form > .btn { justify-self: start; }
textarea.report-note-input { min-height: 84px; }
.report-note { display: grid; gap: 4px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.report-note-head { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 10px; }
.report-note-head strong { font-size: 13.5px; font-weight: 600; }
.report-note-head .btn { margin-left: auto; }
.report-note-body { font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-about { max-width: 72ch; }
.report-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.report-made { font-size: 13.5px; color: var(--ink-2); overflow-wrap: anywhere; word-break: break-word; }
.report-made:empty { display: none; }
@media (max-width: 559px) {
  .report-form > .btn { justify-self: stretch; }
  .report-actions > .btn { flex: 1 1 100%; }
}

/* Report: a result file imported into the case (pilot spec P6), and the rows of one that did not join. A failed
   import says why in the bad color and in words. */
.report-import-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.report-import-error { font-size: 13px; line-height: 1.5; color: var(--bad); overflow-wrap: anywhere; }
#report-import-status:empty { display: none; }
.report-unresolved { display: grid; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.report-unresolved-title:focus { outline: none; }
.report-unresolved-title:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.report-unresolved-cell, .report-unresolved-cell small { overflow-wrap: anywhere; }

/* Report: a result file with a header row, its columns matched by hand (RV22). The preview is a row for each column,
   with the field it fills or Kept as extra, and its values in the first rows, so it fits a phone; the line above it
   names the rows that will be skipped. After the import, its report lists what was read and skipped. */
.report-import-panels { display: grid; gap: 10px; min-width: 0; }
.report-import-panels:empty { display: none; }
.report-columns { display: grid; gap: 10px; min-width: 0; margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); }
.report-columns > legend { padding: 0 4px; }
.report-columns-layout { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.report-columns-layout > .field { flex: 1 1 14rem; min-width: 0; }
.report-columns-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: 8px 14px; }
.report-columns-fields > .field, .report-columns-layout .input, .report-columns-fields .input { min-width: 0; max-width: 100%; }
.report-columns-table tbody th {
  padding: 10px 12px; border-bottom: 1px solid var(--line-faint); background: none; vertical-align: top; white-space: normal; overflow-wrap: anywhere;
  font: 400 13px/1.4 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--ink);
}
.report-columns-table tbody tr:last-child th { border-bottom: 0; }
.report-columns-field { color: var(--brand-link); font-weight: 600; }
.report-columns-extra { color: var(--ink-2); }
.report-columns-values { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 0; padding: 0; list-style: none; }
.report-columns-value { min-width: 0; overflow-wrap: anywhere; font-family: var(--font-mono); font-size: 12.5px; }
.report-columns-blank { font-family: inherit; font-style: italic; color: var(--ink-2); }
#report-columns-problems:empty, #report-columns-from:empty, #report-columns-preview:empty { display: none; }
.report-import-report-lines { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
#report-import-report-map, #report-import-report-extra { overflow-wrap: anywhere; }

/* Report: claim charts (claims-charts.mjs). A table for each claim charted: its features down the side, its references
   across. A cell's fill shows its answer and its first line says it in words: green Met, red Not met, gray Not shown,
   amber Unclear. The chart fits its frame: below 1024 px it stacks, and the form that sets a cell opens under the
   table. Its class names are its own (claim-chart, claim-chart-table), apart from the search page's result charts. */
.charts { display: grid; gap: 18px; min-width: 0; }
.claim-chart { display: grid; gap: 10px; min-width: 0; }
.chart-line { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.claim-chart-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.claim-chart-title:focus { outline: none; }
.claim-chart-title:focus-visible, .chart-scroll:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.claim-chart-table th { white-space: normal; font: 500 13.5px/1.4 var(--font-sans); letter-spacing: 0; text-transform: none; color: var(--ink); vertical-align: top; overflow-wrap: anywhere; }
.claim-chart-table thead th.chart-corner { font: 400 11px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.claim-chart-table tbody th { max-width: 22rem; padding: 10px 12px; border-bottom: 1px solid var(--line-faint); background: var(--card); text-align: left; }
.claim-chart-table tbody tr:last-child th { border-bottom: 0; }
.chart-feature strong { display: block; font-weight: 500; }
.chart-feature small, .chart-ref-date, .chart-ref-kept { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.chart-ref-name { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: var(--brand-link); }
.chart-ref-kept { color: var(--ok); font-weight: 500; }
.chart-cell { overflow-wrap: anywhere; }
.chart-cell .btn, .chart-ref .btn { white-space: normal; text-align: left; }
.claim-chart-table td.chart-cell[data-state="met"] { background: var(--ok-tint); }
.claim-chart-table td.chart-cell[data-state="notMet"] { background: var(--bad-tint); }
.claim-chart-table td.chart-cell[data-state="notShown"] { background: var(--soft); }
.claim-chart-table td.chart-cell[data-state="unclear"] { background: var(--warn-tint); }
.claim-chart-table td .chart-state { font-size: 14px; font-weight: 600; }
.chart-cell[data-state="met"] .chart-state { color: var(--ok); }
.chart-cell[data-state="notMet"] .chart-state { color: var(--bad); }
.chart-cell[data-state="notShown"] .chart-state { color: var(--ink-2); }
.chart-cell[data-state="unclear"] .chart-state { color: var(--warn); }
.claim-chart-table td small.chart-changed { color: var(--warn); font-weight: 500; }
.chart-facts { display: grid; gap: 2px; margin: 6px 0 0; padding-left: 16px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.chart-note, .chart-source { margin-top: 6px; font-size: 13px; line-height: 1.45; color: var(--ink); }
.chart-source { color: var(--ink-2); }
.chart-cell-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 6px; }
/* Below 1024 px a chart stacks, so it never scrolls sideways: its references first, each with its link, date and
   Remove, then each feature with its cells one under another, each cell named by its reference. */
@media (max-width: 1023.98px) {
  .claim-chart-table, .claim-chart-table thead, .claim-chart-table tbody, .claim-chart-table tr, .claim-chart-table th, .claim-chart-table td { display: block; }
  .claim-chart-table thead th.chart-corner { display: none; }
  .claim-chart-table thead th.chart-ref { border-bottom: 1px solid var(--line-faint); }
  .claim-chart-table tbody tr { border-top: 1px solid var(--line); }
  .claim-chart-table tbody th { max-width: none; }
  .claim-chart-table td.chart-cell { border-bottom: 1px solid var(--line-faint); }
  .claim-chart-table td.chart-cell[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 600 13px/1.4 var(--font-sans); color: var(--ink); overflow-wrap: anywhere; }
}
.chart-tools { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.chart-add { flex: 1 1 16rem; min-width: 0; max-width: 28rem; }
.chart-add .input { min-width: 0; max-width: 100%; }
.chart-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
.chart-form-title { font-size: 14.5px; font-weight: 600; color: var(--brand-ink); overflow-wrap: anywhere; }
.chart-form > .hint { overflow-wrap: anywhere; }
.charts-choose[open] { display: grid; gap: 8px; }
.charts-choose > summary { display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; color: var(--brand-link); cursor: pointer; }
.charts-claims { display: grid; gap: 10px; }
.charts-claim-list { display: flex; flex-wrap: wrap; gap: 0 18px; }
@media (max-width: 559px) {
  .chart-tools > .btn, .chart-form .explain-form-actions > .btn { flex: 1 1 100%; }
}

/* Report: why each reference counts (feature 1C). Under each search, each kept publication is a white card of its
   draft sentences. A sentence is a rounded block whose fill shows its state, and its state line says it in
   words: white to decide, green accepted or edited, gray rejected, amber when the draft changed after its decision. */
.explain { display: grid; gap: 18px; min-width: 0; }
.explain-about { max-width: 72ch; }
.explain-search { display: grid; gap: 10px; min-width: 0; }
.explain-search-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.explain-publications, .explain-sentences { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.explain-publication { display: grid; gap: 10px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
@media (min-width: 768px) {
  .explain-publication { padding: 14px 16px; }
}
.explain-publication-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; min-width: 0; }
.explain-publication-head strong { font-size: 14.5px; font-weight: 600; color: var(--brand-ink); overflow-wrap: anywhere; }
.explain-publication-head .hint { overflow-wrap: anywhere; }
.explain-sentence { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); scroll-margin-top: 16px; }
.explain-sentence[data-state="accept"], .explain-sentence[data-state="edit"] { background: var(--ok-tint); }
.explain-sentence[data-state="reject"] { background: var(--soft); }
.explain-sentence[data-state="stale"] { border-color: var(--warn-line); background: var(--warn-tint); }
.explain-sentence:focus { outline: none; }
.explain-sentence:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.explain-kind { font: 400 11.5px/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-link); }
.explain-text { max-width: 86ch; font-size: 14.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.explain-sentence[data-state="reject"] .explain-text { color: var(--ink-2); }
.explain-draft { max-width: 86ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.explain-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-width: 0; }
.explain-state { font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.explain-sentence[data-state="accept"] .explain-state, .explain-sentence[data-state="edit"] .explain-state { color: var(--ok); font-weight: 500; }
.explain-sentence[data-state="stale"] .explain-state { color: var(--warn); font-weight: 500; }
.explain-source { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; min-width: 0; font-size: 13px; color: var(--ink-2); }
.explain-source .btn { overflow-wrap: anywhere; }
.explain-actions, .explain-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
/* On wider screens a sentence's buttons sit to the right of its words, as a feature's do. */
@media (min-width: 768px) {
  .explain-sentence { grid-template-columns: minmax(0, 1fr) auto; column-gap: 16px; }
  .explain-sentence > :not(.explain-actions):not(.explain-form) { grid-column: 1; }
  .explain-sentence > .explain-actions { grid-column: 2; grid-row: 1 / span 3; align-self: start; }
  .explain-sentence > .explain-form { grid-column: 1 / -1; }
}
.explain-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
textarea.explain-input { min-height: 84px; }
.explain-more[open] { display: grid; gap: 8px; }
.explain-problem { padding: 10px 12px; border: 1px solid var(--bad-line); border-radius: var(--radius-s); background: var(--bad-tint); color: var(--bad); font-size: 14px; overflow-wrap: anywhere; }
@media (max-width: 559px) {
  .explain-form-actions > .btn { flex: 1 1 100%; }
}

/* References (pilot spec P5): the prior art date line and the tools, the searches that add nothing in the warning
   box, then each claim feature: its heading with its feature ID, the claim's words on the well with a rule on the
   left, a quiet line with its threshold, searches and counts, and its references as the review desk's one-line rows
   (style.css), the rank first and each rank key's score beside it. Rank, Reference and Meets always show; Coverage and
   Date from a list width of 560 px; Query Match, E-value and Mark from 880 px. An open row has the selected row's tint
   and the detail under it. */
.refs-rules { max-width: 86ch; }
.refs-date { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.refs-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.refs-view-line { max-width: 86ch; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.refs { display: grid; gap: 24px; min-width: 0; }
.refs-feature { display: grid; gap: 8px; min-width: 0; }
.refs-feature > .btn { justify-self: start; }
.refs-feature-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; min-width: 0; }
.refs-feature-title { font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.refs-words { max-width: 86ch; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--well); font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }
.refs-line { font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.refs-table .refs-col-rank { width: 56px; }
.refs-table .refs-col-meets { width: 84px; }
.refs-table .refs-col-num { width: 88px; }
.refs-table .refs-col-date { width: 120px; }
.refs-table .refs-col-evalue { width: 96px; }
.refs-table .refs-col-mark { width: 88px; }
.refs-table .refs-c2, .refs-table .refs-c3 { display: none; }
@container result-list (min-width: 560px) {
  .refs-table .refs-c2 { display: table-cell; }
}
@container result-list (min-width: 880px) {
  .refs-table .refs-c3 { display: table-cell; }
}
@container result-list (max-width: 479.98px) {
  .refs-table .refs-col-rank { width: 48px; }
  .refs-table .refs-col-meets { width: 76px; }
}
.refs-table td.refs-col-meets { font-size: 13.5px; color: var(--ink-2); }
.refs-table .refs-meets { color: var(--ok); font-weight: 500; }
.refs-more { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: 13.5px; color: var(--ink-2); }
.refs-detail-words { display: grid; gap: 4px; margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.refs-detail-actions { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 559px) {
  .refs-tools > .btn, .refs-tools > .export-format { flex: 1 1 100%; }
}
/* Workflow spec C4: By feature or All references, two buttons in a group with the pressed one raised; All references'
   columns, Best rank and Date from 560 px of list width, Family and Mark from 880 px; its open row lists the reference
   under each feature. The summary of the results leads the step in a card. */
.refs-switch { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 2px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--soft); }
.refs-switch > .btn[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
/* A best rank such as "1 under F2 and F3" takes a second line in its cell with wider text spacing (WCAG 1.4.12), as a
   family and a date do, rather than being cut off: Firefox cut it off at 1280 px (0.113.1). */
.refs-table .refs-col-best { width: 128px; }
.refs-table td.refs-col-best { white-space: normal; overflow-wrap: anywhere; }
/* A family's number and count take a second line in the cell, as a date does in a result's list (style.css,
   td.col-date), rather than being cut off with wider text spacing (WCAG 1.4.12). */
.refs-table .refs-col-family { width: 168px; white-space: normal; overflow-wrap: anywhere; }
.refs-all-features { display: grid; gap: 6px; margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.refs-all-best { color: var(--ink-2); }
.refs-results { display: grid; gap: 8px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
@media (max-width: 559px) {
  .refs-switch { display: flex; flex: 1 1 100%; }
  .refs-switch > .btn { flex: 1 1 0; }
}

/* A result that ran from a plan names the plan version and its fingerprint. */
.result-plan { display: grid; gap: 6px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--ok-tint); }
.result-plan > p:first-child { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.result-plan .result-plan-hash { color: var(--ink); }
.result-plan > .btn { justify-self: start; }

@media (prefers-reduced-motion: no-preference) {
  .claim-mark, .feature, .case-fact-button { transition: background-color 0.2s ease, border-color 0.2s ease, outline-color 0.2s ease; }
}
@media (forced-colors: active) {
  .claim-mark { border: 1px solid CanvasText; }
  .claim-mark.is-lit { outline: 2px solid Highlight; }
}

/* Release 0.50.0: the case's application number and prior art date, the dates a publication offers, a run's
   progress, and the buttons that add a set offered on request. */
.case-application-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.case-application-line { font-size: 14px; color: var(--ink); overflow-wrap: anywhere; }
.case-application-row .btn { margin-block: -2px; }
.case-application-form { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.claims-dates { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.claims-dates > .btn { justify-self: start; }
.claims-dates .claims-subheading:focus { outline: none; }
.claims-dates .claims-subheading:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
@media (max-width: 559px) {
  .claims-dates > .btn { justify-self: stretch; }
}
.run-progress { font-size: 14px; font-weight: 500; color: var(--ink); overflow-wrap: anywhere; }
.run-progress[data-tone="ok"] { color: var(--ok); }
.run-progress[data-tone="warn"] { color: var(--warn); }
.run-pending { font-size: 13px; }
.run-later { font-size: 13px; }
.plan-add-target { white-space: normal; text-align: left; }

/* Summaries filled in from fixed templates (pilot spec P5). Each is a rounded block, with no colored edge down one
   side, whose fill shows its state while its words say it: the well to decide, the green tint accepted or edited,
   --soft rejected, the amber tint and line when its facts or template changed after its decision, the red tint and
   line when it did not pass its checks. Under its words, a muted line names the template that filled it in, then the
   decision and "In the report", then the buttons. The References step's searches and the Claims step's claimed SEQ ID NOs are white cards, each with
   its name over its summary; an open reference row shows its summary under a mono "Summary" kicker. */
.summaries-status, .summary-about { max-width: 86ch; }
.summaries-status.explain-problem { max-width: none; }
.summary { display: grid; gap: 6px; min-width: 0; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--well); scroll-margin-top: 16px; }
.summary[data-state="accept"], .summary[data-state="edit"] { background: var(--ok-tint); }
.summary[data-state="reject"] { background: var(--soft); }
.summary[data-state="stale"] { border-color: var(--warn-line); background: var(--warn-tint); }
.summary[data-state="problem"] { border-color: var(--bad-line); background: var(--bad-tint); }
.summary:focus { outline: none; }
.summary:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.summary-text { max-width: 86ch; font-size: 14.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.summary[data-state="reject"] .summary-text { color: var(--ink-2); }
.summary-draft, .summary-origin { max-width: 86ch; font-size: 13px; line-height: 1.5; color: var(--ink-2); overflow-wrap: anywhere; }
.summary-note { max-width: 86ch; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--warn); overflow-wrap: anywhere; }
.summary-problem { max-width: 86ch; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--bad); overflow-wrap: anywhere; }
.summary-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px; min-width: 0; }
.summary-decision { font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.summary[data-state="accept"] .summary-decision, .summary[data-state="edit"] .summary-decision { color: var(--ok); font-weight: 500; }
.summary[data-state="stale"] .summary-decision { color: var(--warn); font-weight: 500; }
.summary-report { font: 400 11.5px/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ok); }
.summary-actions, .summary-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.summary-form { display: grid; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--card); }
textarea.summary-input { min-height: 120px; }
.summary-heading { font: 400 11.5px/1.25 var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-link); }
/* Buyer readiness spec S1: the model's draft (Pilot), under a summary's text or under a kept publication's sentences,
   in a white box with a dashed edge, so it reads as apart from the template's text. Its fill follows the draft's
   decision as the summary's does: green accepted or edited, --soft rejected, amber after a change in the case. */
.summary-kept { display: grid; gap: 6px; min-width: 0; }
.summary-kept:focus { outline: none; }
.summary-kept:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.summary-pilot { display: grid; gap: 6px; min-width: 0; padding: 10px 12px; border: 1px dashed var(--line-2); border-radius: var(--radius-s); background: var(--card); }
.summary-pilot[data-state="accept"], .summary-pilot[data-state="edit"] { background: var(--ok-tint); }
.summary-pilot[data-state="reject"] { background: var(--soft); }
.summary-pilot[data-state="stale"] { border-color: var(--warn-line); background: var(--warn-tint); }
.summary-pilot-title { font-size: 13px; line-height: 1.4; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.summary-pilot-text { max-width: 86ch; font-size: 14.5px; line-height: 1.55; color: var(--ink); overflow-wrap: anywhere; }
.summary-pilot[data-state="reject"] .summary-pilot-text { color: var(--ink-2); }
.summary-pilot-decision { font-size: 13px; line-height: 1.45; color: var(--ink-2); overflow-wrap: anywhere; }
.summary-pilot[data-state="accept"] .summary-pilot-decision, .summary-pilot[data-state="edit"] .summary-pilot-decision { color: var(--ok); font-weight: 500; }
.summary-pilot[data-state="stale"] .summary-pilot-decision { color: var(--warn); font-weight: 500; }
.summary-drafting { max-width: 86ch; font-size: 13px; line-height: 1.5; font-weight: 500; color: var(--ink-2); overflow-wrap: anywhere; }
/* The edit box sits a box deeper than a summary's own, so it and its field may shrink to the room left. */
.summary-pilot .summary-form, .summary-pilot textarea.summary-input { min-width: 0; }
/* The button names the model, so its words wrap on a phone, as the Review step's button to ask the model does. */
.summary-ask { padding-block: 10px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.refs-detail-summary { display: grid; gap: 6px; min-width: 0; }
.summary-seqids, .summary-seqids-list, .refs-searches { display: grid; gap: 10px; min-width: 0; }
.summary-subjects { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.summary-subject { display: grid; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); scroll-margin-top: 16px; }
.summary-subject:focus { outline: none; }
.summary-subject:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; }
.summary-subject-name { font-size: 14.5px; font-weight: 600; color: var(--brand-ink); overflow-wrap: anywhere; }
@media (min-width: 768px) {
  .summary-subject { padding: 14px 16px; }
}
@media (max-width: 559px) {
  .summary-form-actions > .btn { flex: 1 1 100%; }
  .summary-pilot { padding: 8px 10px; }
  .summary-pilot .summary-form { padding: 10px; }
}

/* Pilot spec S2: handing a case to a colleague. On a hosted server the head has a row with the case's last handover
   and a quiet small Hand over button, which opens a soft box like the application form's: the colleague's account,
   then what moves, before the case goes. */
.case-handover-row { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; min-width: 0; }
.case-handover-line { overflow-wrap: anywhere; }
.case-handover-row .btn { margin-block: -2px; }
.case-handover-form { display: grid; gap: 10px; min-width: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--soft); }
.case-handover-step { display: grid; gap: 10px; min-width: 0; }
.case-handover-question { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--brand-ink); overflow-wrap: anywhere; }
.case-handover-question:focus { outline: none; }
.case-handover-question:focus-visible { outline: 2px solid var(--brand-link); outline-offset: 2px; border-radius: 4px; }
.case-handover-moves { display: grid; gap: 6px; margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.5; color: var(--ink); }
@media (min-width: 768px) {
  .case-handover-field { max-width: 420px; }
}
/* A claim feature's follow-up searches in the References step; follow-up-box.mjs draws the list (style.css). */
.refs-follow-ups { display: grid; gap: 4px; min-width: 0; margin-top: 12px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--well); }
.refs-follow-ups-title { margin: 0; font-size: 14px; line-height: 20px; font-weight: 600; color: var(--ink); }
.refs-follow-ups .follow-up-list { margin-top: 4px; }
