/* TUL - the Launchpad's panel for a made document (tul-artifact-panel-v1.js, TUL_LP_ART; ART-d2). Tokens only (the family
   token sheet's names, linked last), light by default and dark by the tokens; class prefix tap-; nothing under 12px. On a
   desk the panel sits beside the conversation (a flex child of the frame, as the workspace pane does) so the conversation
   keeps its own room; at 820px and under it takes the whole screen, its controls 44px, a 16px gutter. Nothing scrolls
   sideways: a wide table in the preview scrolls inside its own box. The renderer's preview (.tart) is dressed here by its
   classes - black on white in print, the page's tokens on screen. */
.tap-line{margin:0}
/* LP-CHAT-1 (Nick's Option A, 2026-11-19): a made document in the chat is ONE compact card in the agent's column - an icon
   tile, the title, the kind and version, Filed once filed - then the agent's figure message (a bubble) and its quick replies */
.tap-line>.tlp-lwho{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;margin:0 0 10px}
.tap-col{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding-left:37px;min-width:0}
.tlp-cd .tap-col{padding-left:0}
.tap-open{display:flex;flex-direction:row;align-items:center;gap:12px;width:100%;max-width:440px;min-height:44px;padding:10px 12px;
  border:1px solid var(--line);border-radius:var(--r-card,8px);background:var(--s1);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.tap-open:hover{background:var(--s2)}
.tap-open:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tap-ico{flex:none;display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);
  background:var(--s2);color:var(--ink-2)}
.tap-otw{flex:1 1 auto;display:flex;flex-direction:column;gap:2px;min-width:0}
.tap-ot{font-size:14px;font-weight:600;overflow-wrap:anywhere}
.tap-om{font-size:12px;color:var(--ink-2)}
.tap-filedw{flex:none;font-size:12px;font-weight:500;color:var(--ok)}
.tap-msg{max-width:min(100%,600px);padding:10px 14px;border:1px solid var(--line-soft);border-radius:6px 18px 18px 18px;background:var(--s1);
  font-size:15px;line-height:1.6;overflow-wrap:anywhere}
.tap-msg p{margin:0}
.tap-mlist{margin:4px 0 0;padding-left:20px}
.tap-mlist li{margin:2px 0 0}
.tap-mlist li::marker{color:var(--taupe)}
.tap-msg .tap-okw{margin-top:6px}
.tap-msg .tap-bad1,.tap-msg .tap-quiet{margin-top:6px;font-size:13px}
.tap-replies{display:flex;flex-wrap:wrap;gap:8px;margin:4px 0 0}
.tap-btn.tap-reply{min-height:36px;padding:0 14px;border-radius:var(--r-pill);font-size:14px;font-weight:400}
.tap-btn.tap-reply[aria-pressed="true"]{border-color:var(--ink-2);background:var(--s2);box-shadow:inset 0 0 0 1px var(--ink-2)}
.tap-chg{display:flex;flex-direction:column;gap:8px;width:100%;max-width:440px;padding:12px 14px;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);background:var(--s1);scroll-margin-bottom:calc(var(--tlp-dock-h,0px) + 12px)}
.tap-chgq{margin:0;font-size:14px}
.tap-chg .tap-replies{margin:0}
.tap-chgl{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;font-size:13px;color:var(--ink-2)}
.tap-amt{flex:1 1 160px;min-width:0;min-height:36px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-ctl,4px);background:var(--s0);color:var(--ink);font:inherit;font-size:15px}
.tap-amt:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
/* ART-e: what is said beside the field (a figure not changed here, a value it cannot hold), and the form's quiet foot line;
   the opened document's form sits under its figure's line */
.tap-chgerr{margin:0;font-size:13px;color:var(--bad);overflow-wrap:anywhere}
.tap-chgerr[data-tap-fwhy]{color:var(--ink-2)}
.tap-chgerr[hidden]{display:none}
.tap-chg .tap-chgnote{font-size:12px}
.tap-fig .tap-fchgf{margin-top:8px}
.tap-btn.tap-primary{border-color:var(--taupe);background:var(--taupe);color:var(--s0);font-weight:600}
.tap-btn.tap-primary:hover{border-color:var(--tan);background:var(--tan)}
.tap-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.tap-of{font-size:13px;color:var(--ink)}
.tap-ok{font-size:12px;color:var(--ok)}
.tap-quiet{margin:0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.tap-bad1{font-size:12px;color:var(--bad)}
/* the revise chip by the composer: a revise is armed only while it shows (the kernel draws it - artChip) */
.tap-chip{display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin:6px 0 0;padding:6px 6px 6px 12px;border:1px solid var(--attn);border-radius:var(--r-card,8px);background:var(--attn-soft);font-size:13px;color:var(--ink)}
.tap-chip[hidden]{display:none}
.tap-chipw{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.tap-chipx{min-height:32px;padding:0 10px;border:1px solid var(--line);border-radius:var(--r-ctl,4px);background:var(--s1);color:var(--ink);font:inherit;font-size:12px;cursor:pointer}
.tap-chipx:hover{background:var(--s2)}
.tap-chipx:focus-visible{outline:2px solid var(--focus);outline-offset:2px}

/* the panel, beside the conversation */
.tap{flex:0 1 46%;min-width:400px;max-width:760px;position:sticky;top:0;height:100vh;display:flex;flex-direction:column;
  border-left:1px solid var(--line);background:var(--s0);color:var(--ink);box-sizing:border-box}
.tap *,.tap *::before,.tap *::after{box-sizing:border-box}
.tap [hidden]{display:none}
.tap-sheet{display:flex;flex-direction:column;min-height:0;height:100%;font-size:14px;line-height:1.5}
.tap-hd{position:relative;display:flex;flex-direction:column;gap:2px;min-width:0;padding:14px 112px 10px 16px;border-bottom:1px solid var(--line-soft)}
.tap-k{margin:0;font-size:12px;font-weight:600;color:var(--ink-2)}
.tap-h{margin:0;font-size:18px;font-weight:600;line-height:1.3;overflow-wrap:anywhere}
.tap-h:focus{outline:none}
.tap-h:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tap-by{margin:0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.tap-x{position:absolute;top:12px;right:12px}
.tap-body{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;padding:12px 16px 24px;display:flex;flex-direction:column;gap:16px}
.tap-say{margin:0;padding:8px 12px;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);background:var(--s1);font-size:13px;overflow-wrap:anywhere}
.tap-say[data-tone="bad"]{border-color:var(--bad);background:var(--bad-soft)}
.tap-band{margin:0;padding:8px 12px;border-left:2px solid var(--attn);background:var(--attn-soft);font-size:13px;overflow-wrap:anywhere}
.tap-band p{margin:0}
.tap-bad{border-left-color:var(--bad);background:var(--bad-soft)}
.tap-files,.tap-acts{display:flex;flex-wrap:wrap;gap:8px;margin:0}
.tap-btn{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:0 12px;border:1px solid var(--line);border-radius:var(--r-ctl,4px);
  background:var(--s1);color:var(--ink);font:inherit;font-size:13px;font-weight:500;cursor:pointer;white-space:normal;text-align:left}
.tap-btn:hover{background:var(--s2)}
.tap-btn:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tap-btn[aria-busy="true"]{cursor:progress}
/* B2: drawn off - a document with a live table has no file or print here yet (the sentence above says why) */
.tap-btn[aria-disabled="true"]{opacity:.6;cursor:not-allowed}
.tap-btn[aria-disabled="true"]:hover{background:var(--s1)}
.tap-small{min-height:32px;padding:0 10px;font-size:12px}
.tap-sh{margin:0;font-size:15px;font-weight:600}
.tap-gh{margin:8px 0 0;font-size:13px;font-weight:600;color:var(--ink-2)}
.tap-lhead{margin:0;font-size:14px}
.tap-list,.tap-mark,.tap-prev,.tap-vers{display:flex;flex-direction:column;gap:8px;min-width:0}
.tap-figs,.tap-nr,.tap-vl{margin:0;padding:0;list-style:none;display:flex;flex-direction:column;gap:8px;min-width:0}
.tap-fig{display:flex;flex-direction:column;gap:2px;padding:8px 0;border-bottom:1px solid var(--line-soft);min-width:0}
.tap-flagged{padding-left:10px;border-left:2px solid var(--attn)}
.tap-f1{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;margin:0;overflow-wrap:anywhere}
.tap-f1 .tap-fv{margin-left:auto}
.tap-fn{font-weight:600}
.tap-fv{font-weight:600;font-variant-numeric:tabular-nums}
.tap-fs{margin:0;font-size:13px;color:var(--ink-2);overflow-wrap:anywhere}
.tap-flag{margin:0;font-size:13px;color:var(--ink);overflow-wrap:anywhere}
.tap-note{margin:0;font-size:13px;color:var(--ink-2);font-style:italic;overflow-wrap:anywhere}
.tap-nri{font-size:13px;overflow-wrap:anywhere}
.tap-typed{font-weight:600}
.tap-okw{margin:0;color:var(--ok)}
/* LP-CHAT-1: the figures on the opened document - ONE slim disclosure under the document, "Figures (N) - M to check", folded
   by default; inside, a figure a line with its Change, where it came from quiet under it; one quiet Ask the AI to check them */
.tap-list{gap:0;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);background:var(--s1)}
.tap-disch{margin:0}
.tap-btn.tap-disc{justify-content:flex-start;display:flex;align-items:center;gap:6px;width:100%;min-height:44px;padding:8px 40px 8px 14px;border:0;border-radius:var(--r-card,8px);background:none;color:var(--ink);
  font:inherit;font-size:14px;text-align:left;cursor:pointer;position:relative}
.tap-btn.tap-disc:hover{background:var(--s2)}
.tap-disc:focus-visible{outline:2px solid var(--focus);outline-offset:2px}
.tap-disc::after{content:"";position:absolute;right:18px;top:50%;width:7px;height:7px;margin-top:-6px;border-right:1.5px solid var(--ink-2);border-bottom:1.5px solid var(--ink-2);transform:rotate(45deg)}
.tap-disc[aria-expanded="true"]::after{margin-top:-2px;transform:rotate(-135deg)}
.tap-disct{font-weight:600}
.tap-discm{color:var(--ink-2)}
.tap-figbody{display:flex;flex-direction:column;gap:8px;padding:4px 14px 14px;border-top:1px solid var(--line-soft)}
.tap-tochk{font-weight:600;color:var(--attn)}
.tap-fs .tap-flag,.tap-fs .tap-note{font-size:13px}
.tap-btn.tap-quietbtn{border-color:transparent;background:none;color:var(--accent)}
.tap-btn.tap-quietbtn:hover{background:var(--s2)}
.tap-vi{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;font-size:13px;min-width:0;overflow-wrap:anywhere}
.tap-cur{font-size:12px;font-weight:600;color:var(--ink-2)}
.tap-foot{margin:0;font-size:12px;color:var(--ink-2)}
.tap-hint{margin:4px 0 0;padding-left:8px;border-left:2px solid var(--attn);font-size:12px;color:var(--ink-2)}
/* the renderer's preview: its own box scrolls sideways, never the page */
.tap-doc{max-width:100%;overflow-x:auto;padding:12px;border:1px solid var(--line-soft);border-radius:var(--r-card,8px);background:var(--s1);font-size:13px}
.tap-doc .tart-title{margin:0 0 8px;font-size:17px}
.tap-doc .tart-h{margin:12px 0 4px;font-size:15px}
.tap-doc .tart-p,.tap-doc .tart-note{margin:0 0 8px}
.tap-doc .tart-figs{margin:0 0 8px}
.tap-doc .tart-fig-line{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--line-soft)}
.tap-doc .tart-fig-line dt,.tap-doc .tart-fig-line dd{margin:0}
.tap-doc .tart-grid{border-collapse:collapse;min-width:100%}
.tap-doc .tart-grid th,.tap-doc .tart-grid td{padding:4px 8px;border-bottom:1px solid var(--line-soft);text-align:left;vertical-align:top}
.tap-doc .tart-r{text-align:right}
.tap-doc .tart-c{text-align:center}
.tap-doc .tart-b{font-weight:600}
.tap-doc .tart-i{font-style:italic}
.tap-doc .tart-tot td{font-weight:600}
.tap-doc .tart-wait,.tap-doc .tart-asof,.tap-doc .tart-flag,.tap-doc .tart-standing,.tap-doc .tart-unchecked{font-size:12px;color:var(--ink-2)}
.tap-doc .tart-lh-name{font-weight:600}
.tap-doc .tart-lh-line,.tap-doc .tart-lh-name{margin:0}

/* a desk narrower than the side menu and the panel together: the conversation keeps its room */
@media (max-width:1100px){
  .tap{flex-basis:52%;min-width:360px}
}
/* the workspace frame in full mode (html.tws-on .tlp-shell[data-kind="full"], tul-launchpad-v1.css) is a two-column grid with
   no conversation in it: the panel is not a third grid child there - it sits over the right of the frame, the whole height */
@media (min-width:821px){
  html.tws-on .tlp-shell[data-kind="full"]>.tap{position:fixed;top:0;right:0;bottom:0;width:min(640px,100vw);max-width:none;height:auto;z-index:79;box-shadow:var(--sh-2)}
}
/* a phone: the whole screen with a 16px gutter; 44px controls */
@media (max-width:820px){
  .tap{position:fixed;inset:0;z-index:80;width:100vw;max-width:none;min-width:0;height:100%;border-left:0}
  .tap-hd{padding:12px 104px 10px 16px}
  .tap-body{padding-left:16px;padding-right:16px}
  .tap-btn,.tap-small,.tap-open,.tap-chipx{min-height:44px}
  .tap-files .tap-btn{flex:1 1 140px}
  .tap-col{padding-left:0}
  .tap-btn.tap-reply,.tap-amt,.tap-btn.tap-disc{min-height:44px}
  .tap-amt{font-size:16px}
}
/* the print page: only the document, black on white */
.tap-print{display:none}
@media print{
  .tap{display:none}
  html.tap-printing body>*:not(.tap-print){display:none!important}
  html.tap-printing .tap-print{display:block;font-family:Arial,sans-serif}
}
