/* ============================================================
   TUL suggest v1 - the suggestion card's sheet (Launchpad 2b, 2026-10-25; A-021, the v3 card)
   ------------------------------------------------------------
   The rules of the card tul-suggest-v1.js (TUL_SUGGEST) draws. The closed card is the v3 decision card
   (design/launchpad, the Decisions panel): its own edge and radius, the agent label, the job's number and name
   on their own line when the read names them, then the hook. Open, the same card washes in and Yes is the one
   filled action. Every colour, size and font is a theme token (var()); this sheet defines none, so the card is
   the same in a light palette and the dark one. A change to the card's look is made here (and in the kernel),
   once - the Desk links it, and the Launchpad does.

   The host links it after its own <style> and before the family token sheet, which stays last in <head>
   (tests/test_tul_tokens.js). The frame rules that must win over a later host frame of equal weight
   (the Decisions panel's .hrow) carry the card's own classes twice, so there is one look.
   What stays on the page, and why: the Desk's section frame the card sits in (.hcard, .hhd, .hlbl and the
   rest of that set); Done for you's own rules (.hdn*); and two of the card's, unchanged - .hsgev i (the
   evidence tag) and .hsgpvh (the preview list's head) are tracked capitals, which the design ratchets count
   per file and only ever lower. The test holds them on the page. Done for you also wears .hsgmsg, .hsgx,
   .hsgfine, .hsglink and the preview's .hsgpv / .hsgpvp (and .hsgpvh).
   ============================================================ */
/* ---- Suggestions (C-06; SG-01, tul/381; A-021): one card a suggestion. CLOSED to the agent's label, the job line
   when the read names one, and its hook (the whole card the button that opens it). OPEN to what it is thinking,
   what it looked at, what Yes does, Yes / Not now / No and Ask about this ---- */
.hsg{display:block;cursor:default;padding:0}
.hsg.hrow.hsg{width:auto;margin:0 var(--sp-3) var(--sp-2);border:1px solid var(--line);border-radius:var(--r-card);background:var(--s1);overflow:hidden}
.hsg.hrow.hsg:first-of-type{margin-top:var(--sp-2)}
.hsg:hover{background:var(--s2)}
.hsg.hsghl{outline:2px solid var(--taupe);outline-offset:2px}
.hsgopen{display:block;width:100%;min-height:44px;margin:0;padding:var(--sp-3) var(--sp-4);border:0;background:none;color:inherit;font:inherit;
  text-align:left;cursor:pointer}
.hsgopen:hover{background:var(--s2)}
/* the 1.158.0 design gate (F1): the card clips an outer ring (overflow:hidden), so its focus is drawn inside it */
.hsgopen:focus-visible{outline:none;box-shadow:inset 0 0 0 2px var(--focus)}
.hsgag{display:block;margin:0 0 var(--sp-1);font-family:var(--fdisplay);font-size:11px;font-weight:600;color:var(--accent)}
/* AG-1: the agent's mark beside its label (colours on the mark, from the token sheet's --ag-* - TUL_HOOK.markHTML); Inter (a
   mark is under 13px); its negative margins keep the label line's height, so the hook never moves */
.hsgav{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;margin:-5px 6px -5px 0;vertical-align:middle;
  border:1px solid transparent;border-radius:50%;background:var(--ag-other);color:var(--ag-other-ink);font-family:var(--fbody);font-size:11px;font-weight:600;
  line-height:1;letter-spacing:0}
.hsgav[data-ag="other"]{border-color:var(--line-soft)}
.hsgjob{display:block;margin:0 0 var(--sp-1);font-size:12px;line-height:1.35;color:var(--muted);overflow-wrap:anywhere}
.hsghook{display:block;font-size:14px;font-weight:600;line-height:1.4;color:var(--ink);overflow-wrap:anywhere}
/* CH-3 (D-463): an agent's own hook past the closed card's room - whole, clamped to two lines on screen (open, in full) */
.hsghook.hsgclamp{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-clamp:2;overflow:hidden}
@media print{.hsghook.hsgclamp{display:block;-webkit-line-clamp:unset;line-clamp:unset;overflow:visible}}
/* F2: an open card washes in whether or not the pointer is on it - the frame rule above carries three classes */
.hsg.hsgon,.hsg.hsgon:hover,.hsg.hrow.hsg.hsgon,.hsg.hrow.hsg.hsgon:hover{background:var(--taupe-wash);border-color:var(--line)}
.hsg.hsgon .hsgopen{padding-bottom:var(--sp-1)}
.hsg.hsgon .hsgopen:hover{background:transparent}
.hsgbody{padding:0 var(--sp-4) var(--sp-4)}
.hsgthink,.hsgdo{margin:var(--sp-2) 0 0;font-size:13px;line-height:1.5;color:var(--ink-soft)}
/* DC-2 (decision cards, the card - D-361): the open card's anatomy - the kind beside the label (a card that goes outside TUL
   in the attention colour), the line, the substance (the email's own words, its line breaks kept), the facts as a label /
   value list (a value its source does not give in the attention colour; long values wrap - never sideways at 390px) and
   What I could not find */
.hsgkind{font-family:var(--fbody);font-weight:600;color:var(--muted)}
.hsgkind.hsgout{color:var(--attn)}
.hsgline{margin:var(--sp-2) 0 0;font-size:13px;line-height:1.5;color:var(--ink)}
.hsgsub{margin:var(--sp-2) 0 0;padding:var(--sp-2) var(--sp-3);border-left:3px solid var(--line);border-radius:var(--r-ctl);background:var(--s2)}
.hsgsubh{margin:0;font-size:12px;font-weight:600;line-height:1.5;color:var(--ink)}
.hsgq2{margin:var(--sp-1) 0 0;font-size:13px;line-height:1.5;color:var(--ink-soft);white-space:pre-line;overflow-wrap:anywhere}
.hsgsubl{margin:var(--sp-1) 0 0;font-size:12px}
.hsgfx{display:grid;grid-template-columns:minmax(72px,max-content) minmax(0,1fr);gap:var(--sp-1) var(--sp-3);margin:var(--sp-2) 0 0;font-size:12px;line-height:1.45}
.hsgfr{display:contents}
.hsgfx dt{margin:0;font-weight:600;color:var(--muted)}
.hsgfx dd{margin:0;min-width:0;color:var(--ink-soft);overflow-wrap:anywhere}
.hsgfx dd.hsgmiss{font-weight:600;color:var(--attn)}
.hsgnf{margin:var(--sp-2) 0 0}
.hsgnf .hsgline{margin-top:2px}
.hsgbody .hsgacts{margin-top:var(--sp-3)}
.hsgthink b,.hsgdo b{font-weight:600;color:var(--ink)}
.hsgfacts{margin:var(--sp-2) 0 0}
.hsgfacts summary{cursor:pointer;font-size:12px;line-height:1.5;color:var(--muted)}
.hsgfacts summary:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.hsgwant{margin:var(--sp-3) 0 var(--sp-2);font-size:14px;font-weight:600;color:var(--ink)}
.hsgev{margin:var(--sp-2) 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:var(--sp-1) var(--sp-2)}
.hsgev li{font-size:12px;line-height:1.45;color:var(--muted);border:1px solid var(--line);border-radius:var(--r-ctl);padding:2px var(--sp-2);max-width:100%;
  overflow-wrap:anywhere}
.hsgev li i{margin-right:var(--sp-2)}
p.hsgev.none{display:block;font-size:12px;color:var(--warn);line-height:1.5}
.hsgmeta{margin-top:var(--sp-2);white-space:normal}
.hsglink{color:var(--accent);text-decoration:none;border-bottom:1px solid var(--line)}
.hsglink:hover{color:var(--ink-bright)}
.hsgacts{display:flex;flex-wrap:wrap;align-items:center;gap:var(--sp-2)}
.hsg .hsgacts .hverb{display:flex;align-items:center;justify-content:center;flex:1 1 100%;box-sizing:border-box;min-height:44px;
  margin:0;padding:0 var(--sp-4);border:0;border-radius:var(--r-ctl);background:var(--ink);color:var(--s0);
  font-family:var(--fbody);font-size:14px;font-weight:600;letter-spacing:0;text-transform:none;text-decoration:none;text-align:center}
.hsg .hsgacts .hverb:hover{background:var(--ink-bright);color:var(--s0)}
/* the 1.158.0 design gate (F3): one filled Yes in view - a second open card's Yes takes the ghost look */
.hsg.hsgon ~ .hsg.hsgon .hsgacts .hverb{background:var(--s1);color:var(--ink);border:1px solid var(--line)}
.hsg.hsgon ~ .hsg.hsgon .hsgacts .hverb:hover{background:var(--s2);color:var(--ink);border-color:var(--taupe)}
.hsg .hsgacts .hact{display:inline-flex;align-items:center;justify-content:center;flex:1 1 0;box-sizing:border-box;min-height:36px;
  padding:0 var(--sp-2);border:1px solid var(--line);border-radius:var(--r-ctl);background:var(--s1);color:var(--ink);
  font-family:var(--fbody);font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}
.hsg .hsgacts .hact:hover{border-color:var(--taupe);background:var(--s2);color:var(--ink)}
.hsg .hsgacts .hverb:focus-visible,.hsg .hsgacts .hact:focus-visible{outline:none;box-shadow:var(--focus-ring)}
.hsgacts [aria-disabled="true"]{opacity:.55;cursor:progress}
.hsgoff{max-width:200px;white-space:normal}
.hsgmsg{margin:0;padding:11px var(--sp-4);border-bottom:1px solid var(--line-soft);font-size:13px;line-height:1.5;color:var(--bad)}
.hsgmsg.ok{color:var(--good)}
.hsgmsg:focus{outline:none;box-shadow:inset 3px 0 0 var(--accent)}
.hsgmsg .hsglink{margin-left:var(--sp-1)}
.hsgx{margin-left:var(--sp-2);vertical-align:baseline}
.hsgfine{margin:0;padding:var(--sp-2) var(--sp-4);font-size:12px;color:var(--muted);line-height:1.5}
/* SG-01 round 2: the cards put aside until tomorrow (Not now) - one quiet line under the stack, and the cards when shown */
.hsgaway{margin:0;padding:10px 15px;border-top:1px solid var(--line-soft);font-size:12px;color:var(--muted);line-height:1.5}
.hsgawaybtn{margin-left:var(--sp-2);vertical-align:baseline;border-color:var(--line)}
.hsg.hsgaside .hsghook,.hsg.hsgaside .hsgjob{color:var(--ink-soft)}
/* Ask about this: one question box, its answer under it */
.hsgask{margin-top:var(--sp-3);padding-top:var(--sp-2);border-top:1px solid var(--line-soft)}
.hsglab{display:block;font-family:var(--fbody);font-size:12px;font-weight:600;text-transform:none;letter-spacing:0;color:var(--ink-soft);margin-bottom:var(--sp-1)}
.hsgaskrow{display:flex;gap:var(--sp-2);align-items:flex-start}
.hsgq{flex:1 1 auto;min-width:0;box-sizing:border-box;resize:vertical;font:inherit;font-size:13px;line-height:1.4;color:var(--ink);
  background:var(--s2);border:1px solid var(--line);border-radius:var(--r-ctl);padding:var(--sp-2)}
.hsgq:focus{outline:none;border-color:var(--accent);box-shadow:var(--focus-ring)}
.hsgq::placeholder{color:var(--muted)}
.hsgaskrow .hact{border-color:var(--line);min-height:36px}
/* F4: Ask, Show them / Hide them and Clear speak as the card's other buttons do (sentence case, the body face) */
.hsg .hsgaskrow .hact,.hsgawaybtn.hact,.hsgx.hact{font-family:var(--fbody);font-size:13px;font-weight:600;letter-spacing:0;text-transform:none}
.hsgnote{margin:var(--sp-1) 0 0;font-size:12px;color:var(--muted);line-height:1.4}
.hsgans{margin:var(--sp-2) 0 0;font-size:13px;line-height:1.5;color:var(--ink-soft)}
.hsgans.bad{color:var(--bad)}
.hsgcite{display:block;margin-top:var(--sp-1);font-size:12px;color:var(--muted)}
/* the preview in the Accept window (tul-ui-v1.js draws it; the words are the tool's) */
.hsgpv{margin:0;padding-left:18px;font-size:13px;line-height:1.5}
.hsgpv li{margin:2px 0}
.hsgpv.warn{color:var(--warn)}
.hsgpvp{margin:0;font-size:13px;line-height:1.5}

@media(max-width:560px){
  .hsgopen{padding:14px 15px}
  .hsgacts .hverb,.hsgacts .hact,.hsgaskrow .hact,.hsgawaybtn{min-height:44px}
  .hsg .hsgacts .hverb,.hsg .hsgacts .hact,.hsg .hsgaskrow .hact{min-height:44px}
  /* the 1.152.0 design gate (H2): the Ask about this box at 16px on a phone, so tapping into it never zooms the page */
  .hsgq{font-size:16px}
  .hsg .hsgacts .hverb{flex:1 1 100%}
}
