/* THE REPORT AND THE PLAYTEST (#336, ui/report.js, ui/playtest.js; the picture is design-313's `sheet-report`): two pages of the frame's one sheet (sheet.css `the frame`). What the report sends, and what the playtest is for, are
   the sheet's own line at the side; the page's parts stand in the body. Nothing here is a length, a colour or a time of its own: the HUD's tokens (data/hud.js) and the rows of data/report.js `look` (the parts both pages share:
   `form-*`; the picture: `report-*`) and data/playtest.js `look`, which each page sets on its body as custom properties (tests/report.test.mjs holds this rule). Read after sheet.css (index.html). */

/* the body of either page: its parts one under another, each as wide as it needs, the box and the list as wide as the body */
.report-page, .playtest-page, .playtest-parts, .playtest-part { display: grid; justify-items: start; align-content: start; gap: var(--form-gap); min-width: 0; }
.report-grp, .playtest-grp { display: grid; justify-self: stretch; gap: var(--form-group-gap); min-width: 0; }
.playtest-list { display: grid; justify-self: stretch; gap: var(--playtest-list-gap); min-width: 0; }

/* the picture: the view as it stood, in its own proportions, on the thin edge. Without one, the line that says so stands in its place, in the plain ink on the same edge. */
.report-picture { display: grid; justify-items: start; }
.report-snap { display: block; width: auto; height: auto; max-width: 100%; max-height: var(--report-shot-max); border: var(--form-edge) solid var(--rule); background: var(--black); }
.report-nopicture { margin: 0; padding: var(--form-nopicture-pad); border: var(--form-edge) solid var(--ink-faint); font: var(--weight-read) var(--size-read) / var(--form-line-lead) var(--font-text); color: var(--ink); }

/* the box for what happened (the design's `.field`): the dark, a thin edge, the placeholder in the dim ink, the ink's edge when it has the focus; the label over it at the say size */
.report-label, .playtest-label { font: var(--weight-say) var(--size-say) / var(--form-say-lead) var(--font-text); color: var(--ink); }
.report-note, .playtest-note {
  box-sizing: border-box; width: 100%; min-height: var(--form-field-min); max-height: var(--form-field-max); margin: 0; padding: var(--form-field-pad-y) var(--form-field-pad-x); resize: vertical;
  font: var(--weight-read) var(--form-field-size) / var(--form-field-lead) var(--font-text); color: var(--ink); background-color: var(--form-field-ground); border: var(--form-edge) solid var(--ink-faint); border-radius: 0; color-scheme: dark;
}
.report-note:focus-visible, .playtest-note:focus-visible { border-color: var(--ink); outline: none; }
.report-note::placeholder, .playtest-note::placeholder { color: var(--ink-dim); opacity: 1; }
.report-note:read-only, .playtest-note:read-only { color: var(--ink-dim); }

/* Send is the one lit button of a page (the design's `.btn.go`: the lamp on its edge and a wash of it); Refresh and Go there are the base's plain buttons. The base's own hover fills it as it fills any button. */
.report-send, .playtest-send { border-color: var(--lamp); background: linear-gradient(90deg, var(--form-go-wash), var(--form-go-wash-end)); box-shadow: inset var(--plate-rule) 0 0 var(--lamp); }

/* a button and the one line beside it: what became of it. The line is in ink; a failure is in the warning's ink, the one the frame's foot uses. */
.report-actions, .playtest-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--form-actions-gap); }
.report-status, .playtest-status { margin: 0; font: var(--weight-read) var(--size-read) / var(--form-line-lead) var(--font-text); color: var(--ink); overflow-wrap: anywhere; }
.report-status:empty, .playtest-status:empty { display: none; }
.report-status[data-level='warn'], .playtest-status[data-level='warn'] { color: var(--lamp); }
.report-link, .playtest-link { color: var(--ink); }

/* the playtest's list (the design's `.row.noico`): a row to each item, its title and under it, small, what to try; the chosen one has the lamp's edge and wash (the frame's own rows for a chosen line) */
.playtest-cap { font: var(--weight-label) var(--size-label) / var(--sheet-label-lead) var(--font-text); letter-spacing: var(--track-label); text-transform: uppercase; color: var(--ink-faint); }
.playtest-rows { display: grid; }
.playtest-row {
  display: grid; align-content: center; gap: var(--playtest-row-gap); box-sizing: border-box; width: 100%; min-height: var(--playtest-row-min); margin: 0; padding: var(--playtest-row-pad);
  border: 0; border-bottom: var(--form-edge) solid var(--rule); border-left: var(--plate-rule) solid transparent; border-radius: 0; background: none;
  font: var(--weight-say) var(--playtest-row-name) / var(--playtest-row-lead) var(--font-text); letter-spacing: normal; text-transform: none; text-align: left; color: var(--ink);
  transition: background var(--warm), border-color var(--warm);
}
.playtest-row:hover:not(:disabled), .playtest-row:focus-visible:not(:disabled) { background: var(--wash); color: var(--ink); }
.playtest-row:focus-visible { outline: var(--plate-rule) solid var(--ink-dim); outline-offset: calc(-1 * var(--plate-rule)); }
.playtest-row[aria-current]:not(:disabled) { border-left-color: var(--lamp); background: linear-gradient(90deg, var(--sheet-line-wash), transparent var(--sheet-line-wash-end)); }
.playtest-name { overflow-wrap: anywhere; }
.playtest-small { font: var(--weight-read) var(--size-label) / var(--playtest-small-lead) var(--font-text); color: var(--ink-dim); }
.playtest-small:empty { display: none; }
