/* Saved canvases. Paul's canvas, drawn as on the toolkit's interactive canvas: black rules, condensed capitals,
   his coral, cyan and yellow (assets/tokens.css). Plain text in each box; no calculator. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--mist); color: var(--ink); font: 16px/1.5 var(--font); }
main { max-width: 1200px; margin: 0 auto; padding: 16px 16px 48px; }
h1 { font: 600 clamp(1.75rem, 4vw, 2.5rem)/1.05 var(--display); margin: 0 0 8px; }
p.lede { color: var(--slate); margin: 0 0 16px; }
a { color: var(--ink); }
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 12px; }
input[type=text], input[type=email], select, textarea.notes { font: inherit; padding: 8px 10px; border: 1px solid var(--control); background: var(--paper); color: var(--ink); }
input.name { flex: 1 1 260px; font-size: 1.1rem; }
button { font: inherit; font-size: 0.9rem; padding: 8px 14px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); cursor: pointer; }
button.primary { background: var(--ink); color: var(--paper); }
button.link { border: 0; padding: 4px 6px; text-decoration: underline; background: none; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.msg { color: var(--slate); min-height: 1.5em; }
.err { color: var(--problem); font-weight: 600; }
.saved { color: var(--slate); font-size: 0.85rem; }
.hidden { display: none !important; }

.list { width: 100%; border-collapse: collapse; background: var(--paper); }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 0.5px solid var(--rule); }
.list th { border-bottom: 2px solid var(--line); color: var(--slate); font-weight: 600; font-size: 0.85rem; }

.canvas { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-areas:
  "ps ps ps ps ps ps ss ss ss ss ss ss"
  "ob ob re re bm bm bm bm va va sv sv"
  "ob ob re re om om om om va va sv sv"
  "ob ob re re pm pm pm pm va va sv sv"
  "cp cp cp cp ev ev ev ev cs cs cs cs";
  background: var(--paper); border: 1px solid var(--line); margin: 0 0 16px; }
.box { border: 1px solid var(--line); padding: 14px 12px 10px; display: flex; flex-direction: column; min-height: 150px; min-width: 0; }
.box h2 { margin: 0; font: 600 1.0625rem/1.1 var(--display); letter-spacing: 0.01em; text-transform: uppercase; }
.box .hint { margin: 2px 0 6px; font-size: 0.8rem; color: var(--slate); }
.problem { box-shadow: inset 0 5px var(--coral); } .problem h2 { color: var(--problem); }
.solution { box-shadow: inset 0 5px var(--cyan); } .solution h2 { color: var(--solution); }
.eval { box-shadow: inset 0 5px var(--yellow); background: var(--eval-fill); } .eval h2 { color: var(--ink); }
.box textarea, .box .text { flex: 1; width: 100%; min-height: 90px; resize: vertical; border: 0; font: inherit; font-size: 0.875rem; color: var(--ink); background: transparent; padding: 0; white-space: pre-wrap; }
.box select { margin-top: 6px; font-size: 0.8rem; padding: 4px 6px; }
.box .sure { margin-top: 6px; font-size: 0.8rem; color: var(--slate); }
.notes-wrap label { font-weight: 600; display: block; margin-bottom: 4px; }
textarea.notes { width: 100%; min-height: 120px; }

@media (max-width: 760px) {
  .canvas { grid-template-columns: 1fr; grid-template-areas: "ps" "ob" "re" "bm" "om" "pm" "cp" "ss" "sv" "va" "cs" "ev"; }
}
/* Print. The rules hang off html.print, which canvas-ui.js switches on just before printing (the Download button
   or the browser's own Print), so it can measure the printed canvas and scale it to fit one page. */
@media print { @page { size: landscape; margin: 0.4in; } }
html.print body { background: #fff; }
html.print .no-print, html.print .notes-wrap { display: none !important; }
html.print .box { min-height: 0; break-inside: avoid; } html.print .box.tall { break-inside: auto; }
html.print .box textarea, html.print .box .text { font-size: 9pt; min-height: 0; }
html.print main { padding: 0; max-width: none; margin: 0; }
html.print .box .hint, html.print .guide, html.print .progress, html.print .next, html.print #retry, html.print .saved, html.print .msg { display: none !important; }
html.print input.name { border: 0; padding: 0; min-height: 0; font: 600 18pt/1.1 var(--display); background: none; }
.print-only { display: none; }
html.print .box textarea, html.print .box select { display: none; } html.print .print-only { display: block; }
.list + p { margin-top: 12px; }

/* Deal list state, next step, progress line, guidance and the deal log (launch items 1 to 6). */
.table-wrap { overflow-x: auto; }
.list td { vertical-align: top; }
.next label { font-weight: 600; }
.next input[type=text] { flex: 1 1 320px; }
.next input[type=date], .log input[type=date] { font: inherit; padding: 7px 8px; border: 1px solid var(--control); background: var(--paper); color: var(--ink); }
.progress { margin: 0 0 12px; color: var(--slate); }
.progress button.link { padding: 0; font-size: inherit; color: var(--ink); }
.guide { margin: 0 0 6px; font-size: 0.8rem; }
.guide summary { cursor: pointer; text-decoration: underline; color: var(--ink); }
.guide p, .guide ul { margin: 6px 0; } .guide ul { padding-left: 18px; }
.guide .sub { font-weight: 600; margin-bottom: 0; }
.guide .eg { white-space: pre-wrap; color: var(--slate); }
.log h2 { font: 600 1.25rem/1.1 var(--display); margin: 24px 0 4px; }
.log input[type=text] { flex: 1 1 320px; }
.log ul { list-style: none; padding: 0; margin: 0; background: var(--paper); }
.log li { padding: 8px 12px; border-bottom: 0.5px solid var(--rule); }
.log .when { font-weight: 600; margin-right: 6px; }
.box .count { margin: 2px 0 0; font-size: 0.75rem; color: var(--problem); min-height: 0; }
.box .count:empty { display: none; }
.box textarea { field-sizing: content; resize: none; overflow: hidden; }
#share-panel input { flex: 1 1 100%; min-width: 0; width: 100%; }
.legend { font-size: 0.8rem; color: var(--slate); margin: -8px 0 16px; }
html.print .legend { font-size: 7.5pt; margin: 2pt 0 4pt; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seller { margin: 0 0 16px; } .seller summary { cursor: pointer; text-decoration: underline; }
.seller input { flex: 1 1 180px; min-width: 0; }
html.print #meta { display: block !important; }
.warn { color: #8a5a00; } .today { color: var(--ink); }
.empty { background: var(--paper); border: 1px solid var(--rule); padding: 16px; margin: 0 0 16px; }
@media (max-width: 600px) {
  .list thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .list tr { display: block; border-bottom: 2px solid var(--line); padding: 8px 0; }
  .list td { display: flex; gap: 8px; border: 0; padding: 4px 12px; }
  .list td::before { content: attr(data-label); flex: 0 0 9.5em; color: var(--slate); font-size: 0.85rem; }
  .list td:first-child { font-weight: 600; }
  .list td:first-child::before, .list td:last-child::before { content: none; }
}
/* I12: a skip link, and touch targets of at least 44px */
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; z-index: 10; }
.skip:focus { top: 8px; }
main button, main select, main input, main summary { min-height: 44px; }
main button.link { display: inline-flex; align-items: center; }
main summary { display: flex; align-items: center; }
.progress details { margin-top: 4px; } .progress ul { margin: 4px 0 0; padding-left: 18px; }
html.print .legend, html.print main > .lede:last-child, html.print main > p.print-only { break-before: avoid; }
html.print .skip { display: none; }
#snap-label { flex: 1 1 220px; min-width: 0; }
dialog { max-width: 480px; border: 1px solid var(--line); padding: 16px; } dialog::backdrop { background: rgb(0 0 0 / 0.35); }
