/* v112-emails.css — night build phase 3. Tokens only.
   1 · #/workspace/emails (pages/lemails.js): the list of the eight emails, the chosen one's facts, and its preview — light, dark or plain text.
       The email itself draws in a shadow root with its own inline colours (data/emails.js); nothing here reaches inside it.
   2 · Send feedback (ui/sendfeedback.js): the shell sheet's body — what is attached, the text, the screenshot choice, what was sent before. */

/* ---------- 1 · the emails gallery ---------- */
.em{display:grid;grid-template-columns:232px minmax(0,1fr);gap:20px;align-items:start;min-width:0}
.em-list{position:sticky;top:calc(var(--top-h) + 18px);display:flex;flex-direction:column;gap:2px;min-width:0}
.em-li{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:var(--r-8);color:var(--fg-2);text-decoration:none;transition:var(--tr-ui)}
.em-li > svg{flex:none;margin-top:2px;color:var(--fg-3)}
.em-li-t{display:flex;flex-direction:column;min-width:0}
.em-li-t b{font-size:var(--t-body);line-height:var(--lh-body);font-weight:var(--w-medium);color:var(--fg)}
.em-li-t span{font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
@media (hover:hover){.em-li:hover{background:var(--hover)}}
.em-li.is-on{background:var(--selected)}
.em-li.is-on > svg{color:var(--fg)}
.em-li.is-on b{font-weight:var(--w-semibold)}

.em-view.sec.panel{margin-top:0;padding:20px 22px 18px;gap:14px;overflow:visible}
.em-hd{display:flex;align-items:flex-start;gap:12px;min-width:0}
.em-hd-ic{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:var(--r-8);background:var(--fill-1);color:var(--fg-2)}
.em-hd-t{min-width:0}
.em-hd-t h2{margin:0;font-size:var(--t-t2);line-height:var(--lh-t2);font-weight:var(--w-semibold);letter-spacing:var(--ls-t2);color:var(--fg)}
.em-hd-t p{margin:2px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.em-tools{display:flex;align-items:center;gap:12px;flex-wrap:wrap;min-width:0}
.em-tools > .grow{flex:1 1 0}
.em-seg .seg{flex-wrap:wrap}
.em-seg .seg>button{display:inline-flex;align-items:center;gap:6px}   /* P5v2: icon beside its label — it stacked above it and the underline crossed the text */
.em-seg .seg>button > svg{flex:none}
.em-seg + .em-seg{padding-left:12px;border-left:1px solid var(--ln-2)}
.em-proj .mb-p{color:var(--fg-3);margin-right:4px}
.em-act{display:flex;align-items:center;gap:8px;margin-left:auto}   /* "Send me a test" and ⋯ wrap together, never ⋯ alone */
.em-test{white-space:nowrap}

.em-meta{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:6px 16px;margin:0;padding:12px 14px;border-radius:var(--r-12);background:var(--fill-1);font-size:var(--t-co);line-height:var(--lh-co)}
.em-meta dt{color:var(--fg-3)}
.em-meta dd{margin:0;min-width:0;color:var(--fg);overflow-wrap:anywhere}
.em-meta .em-sub{display:block;color:var(--fg-3)}
.em-note,.em-foot{display:flex;align-items:flex-start;gap:8px;margin:0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.em-note > svg,.em-foot > svg{flex:none;margin-top:3px}
.em-note{color:var(--fg-2)}
.em-off{margin:0}
.em-off .stg-chip{white-space:normal;height:auto;min-height:22px;padding-top:2px;padding-bottom:2px;text-align:left}

/* the frame: the email draws its own page colour; the frame only edges it */
.em-frame{border:1px solid var(--bd-tl);border-radius:var(--r-12);overflow:hidden;min-width:0}
.em-host{display:block;min-width:0}
.em-pre{margin:0;padding:18px 20px;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere;font-family:var(--mono);font-size:var(--t-co);line-height:20px;color:var(--fg);background:var(--well)}
.em-wait{display:flex;align-items:center;gap:10px;padding:18px;border-radius:var(--r-12);background:var(--fill-1);font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-2)}

@media (max-width:1100px){
  .em{grid-template-columns:minmax(0,1fr)}
  .em-list{position:static;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px}
}
@media (max-width:560px){
  .em-list{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .em-li{padding:8px}
  .em-li-t span{display:none}
  .em-view.sec.panel{padding:16px 14px 14px}
  .em-meta{grid-template-columns:minmax(0,1fr);gap:2px}
  .em-meta dd + dt{margin-top:6px}
  .em-tools{gap:8px}
  .em-tools > .grow{display:none}
  .em-act{margin-left:0}
}

/* ---------- 2 · Send feedback (the shell's sheet, kind "feedback") ---------- */
.hs-sh.is-feedback{width:min(520px,100%)}
.sf-ctx{display:flex;flex-direction:column;gap:6px;margin:0 0 14px;padding:10px 12px;border-radius:var(--r-12);background:var(--fill-1)}
.sf-ctx-h{margin:0;font-size:var(--t-sh);line-height:var(--lh-sh);font-weight:var(--w-medium);color:var(--fg-3)}
.sf-ci{display:flex;align-items:flex-start;gap:8px;min-width:0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-2)}
.sf-ci > svg{flex:none;margin-top:3px;color:var(--fg-3)}
.sf-ci b{color:var(--fg);font-weight:var(--w-medium);overflow-wrap:anywhere}
.sf-lb{display:block;margin:0 0 6px;font-size:var(--t-body);line-height:var(--lh-body);font-weight:var(--w-medium);color:var(--fg)}
.sf-ta{display:block;width:100%;min-height:104px;resize:vertical;padding:9px 11px;border:1px solid var(--line-ctl);border-radius:var(--r-ctl);background:var(--surface-1);color:var(--fg);font:inherit;font-size:var(--t-body);line-height:var(--lh-body);transition:var(--tr-ui)}
@media (hover:hover){.sf-ta:hover{border-color:var(--line-ctl-h)}}
.sf-count{display:flex;justify-content:space-between;gap:12px;margin:4px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.sf-count .is-over{color:var(--neg)}
.sf-shot{display:flex;align-items:flex-start;gap:10px;margin:14px 0 0;padding:10px 12px;border:1px solid var(--bd-tl);border-radius:var(--r-12);cursor:pointer}
.sf-shot input{flex:none;margin:3px 0 0;width:16px;height:16px;accent-color:var(--accent)}
.sf-shot b{display:block;font-size:var(--t-body);line-height:var(--lh-body);font-weight:var(--w-medium);color:var(--fg)}
.sf-shot span span{display:block;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.sf-who{margin:12px 0 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.sf-sent{margin:16px 0 0;border-top:1px solid var(--ln-2);padding-top:12px}
.sf-sent-h{margin:0 0 8px;font-size:var(--t-sh);line-height:var(--lh-sh);font-weight:var(--w-medium);color:var(--fg-3)}
.sf-sent ol{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.sf-sent li{display:flex;flex-direction:column;gap:2px;min-width:0}
.sf-sent li p{margin:0;color:var(--fg);font-size:var(--t-co);line-height:var(--lh-co);overflow-wrap:anywhere}
.sf-sent li span{font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
.hs-sh-f .sf-f-l{margin-right:auto;align-self:center;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-3)}
@media (max-width:560px){ .hs-sh-f .sf-f-l{display:none} }

/* P6 (Oct 8 · G10c): the weekly email's three short sections — one line each, with where to open them (the digest page keeps them whole) */
.dg-one{margin:2px 0;font-size:var(--t-co);line-height:var(--lh-co);color:var(--fg-2)}
.dg-one b{color:var(--fg);font-weight:var(--w-semibold)}
.dg-one a{color:var(--link)}
