/* crm-letters: the letter builder at /p/<id>/letter (crm-letters.js) on the walkthrough shell (walkthrough.css), and the
   Documents › Letters subtab in the deal room. The page's accent is the ledger's teal; the paper is a US Letter sheet. */
.letters{--g:#0e7490;--g2:#0891b2;--gsoft:#ecfeff;--gink:#164e63;--gtext:#0e7490;--gacc:#0e7490}
@media (prefers-color-scheme: dark){.letters{--gtext:#67e8f9;--gacc:#22d3ee;--gsoft:#0f2e36}}
.lt-h{margin:30px 0 10px;font:600 14px/1.4 var(--sans);color:var(--sub)}

/* who: a person is a row, an address a ticked line */
.lt-people{display:flex;flex-direction:column;border-top:1px solid var(--line)}
.lt-pers{display:flex;flex-wrap:wrap;align-items:baseline;gap:2px 12px;width:100%;min-height:48px;margin:0;padding:10px 12px;font:inherit;text-align:left;color:var(--ink);background:none;border:0;border-bottom:1px solid var(--line);cursor:pointer;transition:background-color .15s}
.lt-pers:hover{background:var(--pane)}
.lt-pers:disabled{opacity:.5;cursor:not-allowed}
.lt-pers:disabled:hover{background:none}
.lt-pers.on{background:var(--gsoft);box-shadow:inset 3px 0 0 var(--gacc)}
.lt-pn{font:600 16px/1.35 var(--sans)}
.lt-pn .wt-chip{margin:0 0 0 4px}
.lt-pr{font:14px/1.4 var(--sans);color:var(--sub)}
.lt-addrs{display:flex;flex-direction:column;gap:8px}
.lt-addr{display:flex;align-items:flex-start;gap:12px;padding:12px 14px;border:1px solid var(--line-2);border-radius:8px;cursor:pointer;transition:border-color .15s,background-color .15s}
.lt-addr:hover{border-color:color-mix(in srgb,var(--gacc) 45%,var(--line-2))}
.lt-addr.on{background:var(--gsoft);border-color:var(--gacc);box-shadow:inset 0 0 0 1px var(--gacc)}
.lt-addr.bad .lt-al{text-decoration:line-through;color:var(--sub)}
.lt-addr input{flex:0 0 auto;width:18px;height:18px;margin:3px 0 0;accent-color:var(--gacc)}
.lt-at{display:flex;flex-direction:column;gap:2px;min-width:0}
.lt-al{font:600 15px/1.35 var(--sans);color:var(--ink)}
.lt-am{font:13px/1.4 var(--sans);color:var(--sub)}

/* which letter: the fill-ins as a quiet list, the override box */
.lt-fills{margin:0;padding:0;list-style:none;border-top:1px solid var(--line)}
.lt-fills li{display:flex;gap:12px;padding:8px 0;font:14px/1.45 var(--sans);border-bottom:1px solid var(--line)}
.lt-fills b{flex:0 0 130px;font-weight:500;color:var(--sub)}
.lt-fills span{flex:1 1 auto;color:var(--ink)}
.lt-fills i.wt-flag{display:inline;margin:0;font-style:normal}
.letters .wt-ta.lt-ta{min-height:220px;font:15px/1.55 Georgia,"Times New Roman",Times,serif}

/* review */
.lt-cost{margin:0 0 14px;font:15px/1.5 var(--sans);color:var(--sub)}
.lt-cost b{font-weight:600;color:var(--ink)}
.lt-task{display:flex;flex-wrap:wrap;align-items:center;gap:6px 14px}
.lt-days{display:inline-flex;align-items:center;gap:6px;font:15px/1.4 var(--sans);color:var(--sub)}
.letters .lt-days .wt-in{width:4.5ch;min-height:0;padding:2px 0;text-align:center;font-size:16px}
.lt-confirm{margin-top:28px;padding:18px 20px;font:16px/1.5 var(--sans);color:var(--ink);background:var(--surface);border:1px solid var(--gacc);border-radius:10px}
.lt-confirm p{margin:0 0 14px}
.letters a.wt-big{text-decoration:none}

/* the paper: a letter sheet, then a page band and the enclosure sheet */
.letters .wt-doc{padding:0;background:transparent;box-shadow:none;border-radius:0}
.lt-sheet{position:relative;min-height:931px;padding:104px 72px 84px;font:14.5px/1.6 Georgia,"Times New Roman",Times,serif;color:#111;background:#fff;border-radius:2px;box-shadow:0 1px 2px rgba(15,23,42,.06),0 10px 30px rgba(15,23,42,.10)}
@media (prefers-color-scheme: dark){.lt-sheet{box-shadow:0 1px 2px rgba(0,0,0,.4),0 12px 36px rgba(0,0,0,.5)}}
.lt-sheet p{margin:0 0 14px}
.lt-sheet ul{margin:0 0 14px 22px;padding:0}
.lt-sheet li{margin:0 0 4px}
.lt-logo{position:absolute;top:40px;left:50%;width:30.3%;transform:translateX(-50%);display:block}
.lt-letterfoot{position:absolute;left:0;right:0;bottom:38px;text-align:center;font:11.5px/1.4 Arial,Helvetica,sans-serif;color:#999}
.lt-head.lt-e{display:inline-block;font-size:12.5px}
.lt-date{margin:0 0 22px;text-align:right}
.lt-to{margin:0 0 22px;line-height:1.45}
.lt-to i{color:#5b6675}
.lt-sig{margin:28px 0 0;line-height:1.5}
.lt-foot{margin-top:40px;font:12px/1.4 var(--sans);color:#5b6675}
.lt-f{padding:0 3px;background:#EEF2FF;border-bottom:1px solid #c7d2fe;border-radius:2px}
.lt-f.lt-e,.lt-head.lt-e{color:#8A4B00;background:#FBEFD9;border-bottom:1px solid #f59e0b;cursor:pointer}
.lt-break{margin:22px 0;font:11px/1.4 var(--sans);letter-spacing:.08em;text-transform:uppercase;text-align:center;color:var(--sub)}
.lt-encl{display:flex;flex-direction:column;padding:28px}
.lt-enclbox{flex:1 1 auto;display:flex;align-items:center;justify-content:center;min-height:800px;color:#5b6675;font:14px/1.5 var(--sans);text-align:center;background:#f8fafc}
.lt-enclbox iframe{width:100%;height:800px;border:0;background:#fff}
.lt-enclbox img{max-width:100%;max-height:800px;object-fit:contain}
.lt-enclname{margin-top:10px}

/* the Letters subtab */
.lt-send{margin-left:auto;text-decoration:none}
.docs .sech.lt-gap{margin-top:22px}
.lt-t td small{display:block;font-size:.68rem;color:var(--muted)}
.lt-t td{vertical-align:top}
.lt-note{display:block;max-width:22rem;margin-top:2px;font-size:.66rem;line-height:1.3;color:var(--muted);white-space:normal}
.lt-acts{white-space:nowrap;text-align:right}
.lt-acts .docs-a{margin-left:8px}
.lt-pill{display:inline-block;padding:1px 7px;font:600 .66rem/1.5 var(--sans);letter-spacing:.02em;border-radius:999px;color:var(--ink-2);background:var(--pane);border:1px solid var(--card-line);white-space:nowrap;vertical-align:1px}
.lt-pill.s-held{color:#8A4B00;background:#FBEFD9;border-color:#f59e0b}
.lt-pill.s-ordering,.lt-pill.s-ordered,.lt-pill.s-printed{color:#1d4ed8;background:#eff6ff;border-color:#bfdbfe}
.lt-pill.s-mailed{color:#0e7490;background:#ecfeff;border-color:#a5f3fc}
.lt-pill.s-delivered{color:var(--good);background:#f0fdf4;border-color:#bbf7d0}
.lt-pill.s-returned,.lt-pill.s-failed{color:var(--bad);background:#fef2f2;border-color:#fecaca}
.lt-pill.s-cancelled{text-decoration:line-through}
@media (prefers-color-scheme: dark){
  .lt-pill.s-held{background:#3a2a10;border-color:#8A4B00}
  .lt-pill.s-ordering,.lt-pill.s-ordered,.lt-pill.s-printed{color:#8fb4ff;background:#172036;border-color:#2b3a64}
  .lt-pill.s-mailed{color:#67e8f9;background:#0f2e36;border-color:#155e75}
  .lt-pill.s-delivered{background:#16332a;border-color:#1f5a3f}
  .lt-pill.s-returned,.lt-pill.s-failed{background:#3b1a1a;border-color:#7f1d1d}
}
.lt-tpls{list-style:none;margin:0;padding:0}
.lt-tpl{margin:0 0 10px;padding:8px 10px;border:1px solid var(--card-line);border-radius:8px;background:var(--surface)}
.lt-tpl.draft{border-style:dashed}
.lt-tplh{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:.78rem}
.lt-tplh .wt-chip{margin:0}
.lt-tplacts{margin-left:auto;display:flex;gap:10px}
.lt-tplb{margin:6px 0 4px;padding:8px 10px;max-height:160px;overflow:auto;font:.78rem/1.5 Georgia,"Times New Roman",Times,serif;color:var(--ink-2);background:var(--pane);border-left:3px solid var(--line-2);border-radius:0 6px 6px 0}
.lt-tplb p{margin:0 0 8px;white-space:pre-wrap}
.lt-tplb p:last-child{margin:0}
.lt-fillhint{margin:4px 0 0;font-size:.7rem;color:var(--muted)}
.lt-fillhint .wt-chip{font-size:.64rem}
.lt-hist{margin:8px 0 4px}
.lt-ed{display:flex;flex-direction:column;gap:8px;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line-2)}
.lt-ed label{display:flex;flex-direction:column;gap:3px;font:600 .7rem var(--sans);color:var(--label)}
.lt-ed .lt-ck{flex-direction:row;align-items:center;gap:8px;font-weight:500;color:var(--ink)}
.lt-in{font:.8rem/1.45 var(--sans);color:var(--ink);background:var(--surface);border:1px solid var(--line-2);border-radius:6px;padding:5px 8px}
.lt-eta{font:.82rem/1.5 Georgia,"Times New Roman",Times,serif;resize:vertical}
.lt-edacts{display:flex;align-items:center;gap:12px}

/* Download PDF: the letter sheet alone, at actual size; the enclosure is noted, not printed (the runner's PDF carries it) */
@media print{
  body.in-letters .top,body.in-letters .dr-strip,body.in-letters .wt-bar,body.in-letters .wt-left,body.in-letters .wt-split,body.in-letters .wt-zoom,body.in-letters .lt-break,body.in-letters .lt-encl{display:none!important}
  body.in-letters,body.in-letters .page,body.in-letters .dr,body.in-letters .wt-cols,body.in-letters .wt-right,body.in-letters .wt-sheet{display:block;height:auto;min-height:0;padding:0;margin:0;background:#fff;overflow:visible}
  body.in-letters .wt-doc{zoom:1!important;width:auto;margin:0}
  .lt-sheet{min-height:0;padding:0;box-shadow:none}
  .lt-logo{position:static;transform:none;width:2.57in;margin:0 auto .45in;print-color-adjust:exact;-webkit-print-color-adjust:exact}
  .lt-letterfoot{position:fixed;bottom:0}
  .lt-f{background:none;border:0;padding:0}
  .lt-f.lt-e,.lt-head.lt-e{background:none;border:0;color:#8A4B00}
}
.lt-gate{margin-top:10px}
.lt-signin{font-weight:600;white-space:nowrap}
