/* Copied verbatim from Sam Workflow (pd-live origin/main 9073b821) static/inbox.css. Do not edit: override in styles.css. */
/* Inbox page: /inbox in the prototype's Outlook mailbox look (§8.2: one card, the top bar, the tabs line, the list
   beside the reading pane; fbru 19.10.2026), with the jobs and connectors folded at the foot. Linked
   after review.css; her token names (app.css aliases); dark-only rules as [data-theme="dark"]. CSP: no inline style,
   so every look lives in this file. Status colours are labels only, never a button fill. Works at 1440 and 400 px. */

/* ---------- her Mailbox: a list beside the reading pane ---------- */
.olm { border: 1px solid var(--border2); border-radius: 20px; overflow: hidden; overflow: clip; background: var(--panel);
  box-shadow: 0 3px 12px rgba(0, 0, 0, .016); margin-top: 6px; }
[data-theme="dark"] .olm { border-color: rgba(255, 255, 255, .07); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.olm-top { display: flex; justify-content: space-between; padding: 19px 26px; color: var(--muted); font-size: 12px;
  border-bottom: 1px solid var(--border); }
.olm-cols { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
.olm-side { min-width: 0; border-right: 1px solid var(--border); }
.olm-tabs { padding: 16px 26px; font-size: 11px; color: var(--muted); }
.olm-list { max-height: calc(100vh - 230px); overflow-y: auto; scrollbar-width: none; border-top: 1px solid var(--border); }
.olm-body { min-width: 0; min-height: 420px; }
.olm-em { all: unset; box-sizing: border-box; display: block; width: 100%; text-align: left; padding: 17px 26px;
  border-bottom: 1px solid var(--border); font-size: 11px; background: var(--panel); cursor: pointer; color: var(--ink); }
.olm-em:hover { background: var(--panel2); }
.olm-em.sel { background: var(--panel2); box-shadow: inset 3px 0 var(--ink); }
.olm-em:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.olm-row1 { display: flex; justify-content: space-between; gap: 10px; }
.olm-from { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.olm-em time { flex: none; font-size: 10px; color: var(--faint); }
.olm-em strong { display: block; font-size: 12px; font-weight: 500; margin: 4px 0; }
.olm-em small { display: block; font-size: 10px; color: var(--faint); }
.olm-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 7px; margin: 3px 0 7px;
  border: 1px solid var(--border2); border-radius: 6px; color: var(--muted); background: var(--panel2); font-size: 10px;
  font-weight: 500; line-height: 1.3; }
.olm-badge svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round;
  stroke-linejoin: round; }

/* the reading pane: one email (her H3 subject 23/500, the 10 px meta, 13/1.85 muted body, chips, Use in Sam chat) */
.olm-read { padding: 32px; }
.olm-read h3 { margin: 0 0 14px; font-size: 23px; font-weight: 500; letter-spacing: -.55px; line-height: 1.3; color: var(--ink); }
.olm-meta { margin: 0 0 22px; font-size: 10px; color: var(--faint); }
.olm-p { margin: 0 0 14px; font-size: 13px; line-height: 1.85; color: var(--muted); max-width: 820px; }
.olm-files { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 14px; }
.olm-file, .olm-chat { font: inherit; font-size: 11px; border: 1px solid var(--border2); border-radius: 9px;
  background: var(--panel2); color: var(--muted); padding: 10px 14px; cursor: pointer; }
.olm-file:hover, .olm-chat:hover { color: var(--ink); }
.olm-chat { border-radius: 8px; padding: 8px 12px; color: var(--ink); }
.olm-pane[hidden] { display: none; }
.olm-note { margin: 0 0 10px; font-size: 12.5px; color: var(--muted); }
.mbx-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.mbx-head .mbx-cfg-link { flex: none; margin-bottom: 4px; }
.mbx-more { margin: 18px 0 0; }
.mbx-more > summary { cursor: pointer; font-size: 12px; color: var(--faint); padding: 6px 2px; }
.mbx-more > .card { margin-top: 10px; }

/* each problem is one message in the reading pane (her .olm-body: a 23 px subject, muted lines, attachment chips) */
.olm .problem-card { background: none; box-shadow: none; border: 0; border-radius: 0; margin: 0; padding: 32px;
  border-bottom: 1px solid var(--border); scroll-margin-top: 12px; }
[data-theme="dark"] .olm .problem-card { border: 0; border-bottom: 1px solid var(--border); }
.olm .problem-card:last-child { border-bottom: 0; }
.olm .problem-card > h2:first-child { margin: 0 0 12px; padding: 0; border: 0; font-size: 23px; font-weight: 500;
  letter-spacing: -.55px; line-height: 1.35; color: var(--ink); }
.olm .problem-card:target > h2:first-child { text-decoration: underline; text-decoration-thickness: 1px;
  text-underline-offset: 6px; text-decoration-color: var(--border2); }
.inbox-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; margin: 0 0 18px; }
.inbox-block .h3 { margin: 0 0 8px; font-size: 10px; font-weight: 400; letter-spacing: .1px; color: var(--faint); }
.inbox-block > .muted { margin: 0 0 10px; font-size: 13px; line-height: 1.85; color: var(--muted); }

/* files: her attachment chips */
.file-list, .job-list { margin: 0; padding: 0; list-style: none; }
.olm .file-list { display: flex; flex-wrap: wrap; gap: 0 8px; }
.olm .file-list > li { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 5px 0 8px;
  padding: 10px 14px; border: 1px solid var(--border2); border-radius: 9px; background: var(--panel2); color: var(--muted);
  font-size: 11px; max-width: 100%; word-break: break-word; }
.olm .file-list > li::before { content: "▤"; color: var(--faint); }
.olm .file-list .file-name { font-weight: 500; color: var(--ink); }
.olm .file-list .muted { font-size: 11px; color: var(--faint); }
.olm .file-list .tag { font-size: 10.5px; padding: 1px 7px; }

/* the connector: her message meta */
.conn-card { background: none; border: 0; border-radius: 0; padding: 0; font-size: 13px; }
.conn-card p { margin: 0 0 4px; }
.conn-card p:last-child { margin-bottom: 0; }
.conn-name { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.conn-name strong { font-weight: 500; color: var(--ink); }
.conn-read { color: var(--muted); line-height: 1.7; }
.conn-card .actions { margin-top: 10px; }

/* run: the set picker and Run */
.inbox-run { border-top: 1px solid var(--border); padding-top: 16px; }
.run-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 6px; }
.run-set { flex: 0 1 320px; min-width: 0; }
.inbox-run .ui-why { display: block; margin-top: 4px; }

/* job progress: her Sam strip inside the message */
.job-box { margin-top: 16px; background: var(--panel2); border-radius: 12px; padding: 12px 16px; font-size: 12.5px; }
.job-box p { margin: 0 0 4px; }
.job-box p:last-child { margin-bottom: 0; }
.job-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; color: var(--ink); }
.job-meta { font-size: 11px; color: var(--faint); }
.job-none { margin: 16px 0 0; font-size: 12px; color: var(--faint); }
.tag.js-queued, .tag.js-running { background: var(--badge); color: var(--ink); }
.tag.js-done { background: var(--good-soft); color: var(--good); }
.tag.js-failed, .tag.js-stale { background: var(--badge); color: var(--muted); }

/* ---------- her drawer's panels: Live connectors (her Mailbox panel) and Known senders ---------- */
.mbx-cfg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 24px 0 14px;
  align-items: start; }
.mbx-cfg .card { padding: 0; margin: 0; overflow: hidden; }
.mbx-cfg .card > h2:first-child { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--border); font-size: 13px;
  font-weight: 500; color: var(--muted); }
.mbx-cfg .file-list > li, .sender-list > li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto;
  grid-template-areas: "name read state"; align-items: center; gap: 4px 12px; padding: 9px 16px;
  border-bottom: 1px solid var(--border); font-size: 13px; }
.mbx-cfg .file-list > li strong { grid-area: name; font-weight: 400; color: var(--muted); }
.mbx-cfg .file-list > li .tag { grid-area: state; justify-self: end; }
.mbx-cfg .file-list > li br { display: none; }
.mbx-cfg .file-list > li .muted { grid-area: read; color: var(--ink); font-weight: 500; line-height: 1.45; }
.sender-list { margin: 0; padding: 0; list-style: none; }
.sender-list > li { grid-template-columns: 170px minmax(0, 1fr); grid-template-areas: "name read"; }
.sender-list > li span { color: var(--muted); }
.sender-list > li b { font-weight: 500; color: var(--ink); line-height: 1.45; }
.mbx-cfg .helper { margin: 0; padding: 13px 16px; font-size: 12.5px; color: var(--muted); }

/* ---------- Recent jobs: her vertical timeline ---------- */
#recent { padding: 0; overflow: hidden; }
#recent > h2:first-child { margin: 0; padding: 11px 16px; border-bottom: 1px solid var(--border); }
#recent .job-list { padding: 16px 16px 4px; }
#recent .job-list > li { position: relative; margin: 0; padding: 0 0 16px 34px; font-size: 12.5px; color: var(--ink);
  line-height: 1.5; word-break: break-word; }
#recent .job-list > li::before { content: ""; position: absolute; left: 7px; top: 5px; width: 10px; height: 10px;
  border-radius: 50%; background: var(--faint); box-shadow: 0 0 0 4px var(--panel); }
#recent .job-list > li::after { content: ""; position: absolute; left: 12px; top: 19px; bottom: -2px; width: 1px;
  background: var(--faint); opacity: .4; }
#recent .job-list > li:last-child::after { display: none; }
#recent .job-list > li:first-child::before { background: var(--ink); }
#recent .job-list .tag { margin-right: 6px; font-size: 11px; padding: 1px 8px; }
#recent .job-list strong { font-weight: 500; }
#recent .job-list .muted { display: block; font-size: 11px; color: var(--faint); margin-top: 2px; }
#recent > .empty { margin: 0; padding: 16px; color: var(--faint); font-size: 12.5px; }

/* ---------- narrower screens (her 1000 px rule: one column) ---------- */
@media (max-width: 1000px) {
  .olm-cols { grid-template-columns: minmax(0, 1fr); }
  .olm-side { border-right: 0; border-bottom: 1px solid var(--border); }
  .olm-list { max-height: 360px; }
  .mbx-cfg { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .olm-top, .olm-tabs, .olm-em { padding-left: 16px; padding-right: 16px; }
  .olm .problem-card, .olm-read { padding: 22px 16px; }
  .olm .problem-card > h2:first-child { font-size: 20px; }
  .inbox-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .run-row { flex-direction: column; align-items: stretch; }
  .run-set { flex: 1 1 auto; }
  .mbx-cfg .file-list > li, .sender-list > li { grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "name state" "read read"; }
  .sender-list > li { grid-template-areas: "name name" "read read"; }
}

/* ---------- the message layout: the connector is her meta line, above the attachments ---------- */
.olm .inbox-grid { display: flex; flex-direction: column; gap: 6px; }
.olm .inbox-conn { order: -1; }
/* "Connector" over the meta line (the old Inbox's label, r-mail): the same faint 10 px label as "Files" */
.olm .inbox-conn .h3 { margin: 0 0 4px; }
.olm .inbox-conn .conn-card { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; font-size: 11px;
  color: var(--faint); letter-spacing: .1px; }
.olm .inbox-conn .conn-name strong { font-weight: 500; color: var(--muted); }
.olm .inbox-conn .conn-read { color: var(--faint); line-height: 1.5; }
.olm .inbox-conn .conn-read::before { content: "· "; }
.olm .inbox-conn .tag { font-size: 10.5px; padding: 1px 7px; }
.olm .file-list > li { margin: 4px 0; padding: 8px 12px; }
.more-files { margin: 2px 0 0; }
.more-files > summary { cursor: pointer; font-size: 11px; color: var(--muted); padding: 4px 0; list-style: none; }
.more-files > summary::-webkit-details-marker { display: none; }
.more-files > summary::before { content: "▸ "; color: var(--faint); }
.more-files[open] > summary::before { content: "▾ "; }
.more-files > summary:hover { color: var(--ink); }
/* the fold's action (r-mail): "Show all <total> files" reads as a link; it goes once the fold is open */
.more-files > summary .more-go { color: var(--ink); text-decoration: underline; text-decoration-color: var(--border2);
  text-underline-offset: 2px; }
.more-files > summary:hover .more-go { text-decoration-color: currentColor; }
.more-files[open] > summary .more-all { display: none; }
