:root { --line: #e3e3e0; --ink: #1b1b1a; --muted: #6b6b66; --ok: #107a3e; --okbg: #e3f4ea; --no: #b42318; --nobg: #fdecea; --warn: #8a5a00; --warnbg: #fff4d6; --chrome: #fafaf8; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font: 13px/1.4 -apple-system, "system-ui", "Segoe UI", Roboto, sans-serif; color: var(--ink); background: var(--chrome); display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); background: #fff; flex: none; }
.brand { font-weight: 650; font-size: 14px; }
.brand .sub { font-weight: 400; color: var(--muted); margin-left: 8px; font-size: 12px; }
.tally { display: flex; gap: 6px; margin-left: auto; }
.save { color: var(--muted); min-width: 120px; text-align: right; font-size: 12px; }
.save.err { color: var(--no); }
.navlink { color: #3b6fd8; text-decoration: none; font-weight: 600; font-size: 13px; white-space: nowrap; }
.navlink:hover { text-decoration: underline; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: #efefec; color: var(--muted); white-space: nowrap; }
.pill.approved { background: var(--okbg); color: var(--ok); }
.pill.denied { background: var(--nobg); color: var(--no); }
.pill.stale { background: var(--warnbg); color: var(--warn); }

.layout { flex: 1 1 auto; display: grid; grid-template-columns: 250px minmax(640px, 1fr) 400px; min-height: 0; }
.list { border-right: 1px solid var(--line); overflow-y: auto; background: #fff; }
.item { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: none; padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; }
.item:hover { background: #f5f5f2; }
.item.sel { background: #eef3fb; box-shadow: inset 3px 0 0 #3b6fd8; }
.item .row1 { display: flex; align-items: center; gap: 6px; margin-bottom: 3px; }
.item .num { font-weight: 700; }
.item .plat { font-size: 11px; color: var(--muted); }
.item .pill { margin-left: auto; }
.item .ttl { font-weight: 550; }
.item .when { color: var(--muted); font-size: 12px; }

.stage { overflow: auto; min-width: 0; position: relative; }
.stage.x { background: #000; }
.stage.li { background: rgb(244, 242, 238); }
.stage-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 8px 12px; font-size: 12px; background: rgba(250, 250, 248, 0.94); border-bottom: 1px solid var(--line); }
.stage-bar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.stage-bar .seg button { border: 0; background: #fff; padding: 3px 10px; font: inherit; cursor: pointer; color: var(--muted); }
.stage-bar .seg button.on { background: #1b1b1a; color: #fff; }
.stage-bar .hint { color: var(--muted); margin-left: auto; }
.x-wrap { width: 600px; margin: 0 auto; border-left: 1px solid rgb(47, 51, 54); border-right: 1px solid rgb(47, 51, 54); min-height: calc(100% - 41px); background: #000; }
.li-wrap { padding: 16px 0 40px; }
.ctx { opacity: 1; }
.ctx-label { width: 598px; margin: 0 auto; padding: 6px 16px; font: 12px/16px -apple-system, sans-serif; color: rgb(113, 118, 123); }
.li-wrap .ctx-label { width: 552px; padding: 0 0 6px; color: var(--muted); }
.locked-banner { width: 598px; margin: 0 auto; }

.panel { border-left: 1px solid var(--line); background: #fff; overflow-y: auto; padding: 14px 16px 40px; display: flex; flex-direction: column; gap: 14px; }
.panel h2 { font-size: 15px; margin: 0; }
.panel .meta { color: var(--muted); font-size: 12px; margin-top: 2px; }
.box { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; overflow-wrap: anywhere; }
.box.warn { background: var(--warnbg); border-color: #f0dca0; color: #5c3d00; }
.box.note { background: #f6f7f9; }
.box ul { margin: 0; padding-left: 16px; }
.box li + li { margin-top: 4px; }
.label { font-weight: 600; font-size: 12px; display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.label .right { margin-left: auto; font-weight: 500; }
textarea.editor { width: 100%; min-height: 220px; resize: vertical; font: 14px/1.45 -apple-system, sans-serif; padding: 10px; border: 1px solid #cfcfca; border-radius: 8px; color: var(--ink); }
textarea.editor:focus { outline: 2px solid #3b6fd8; outline-offset: -1px; border-color: transparent; }
textarea.editor[readonly] { background: #f4f4f1; color: #555; }
.count { font-variant-numeric: tabular-nums; }
.count.over { color: var(--no); font-weight: 700; }
.count.near { color: var(--warn); }
.diffnote { font-size: 12px; color: var(--muted); margin-top: 4px; }
.media-list { display: flex; flex-direction: column; gap: 6px; }
.mrow { display: flex; align-items: center; gap: 8px; }
.mrow img, .mrow video { width: 64px; height: 40px; object-fit: cover; border-radius: 4px; background: #ddd; flex: none; }
.mrow .mname { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; }
.mrow .mdim { color: var(--muted); font-size: 11px; }
.icon-btn { border: 1px solid var(--line); background: #fff; border-radius: 6px; width: 26px; height: 26px; cursor: pointer; font-size: 13px; line-height: 1; padding: 0; color: var(--ink); }
.icon-btn:disabled { opacity: 0.35; cursor: default; }
.btn { border: 1px solid #cfcfca; background: #fff; border-radius: 7px; padding: 6px 12px; font: inherit; font-weight: 600; cursor: pointer; color: var(--ink); }
.btn:hover { background: #f4f4f1; }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.approve { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.approve:hover { background: #0c6532; }
.btn.deny { color: var(--no); border-color: #e7b4ae; }
.btn.deny:hover { background: var(--nobg); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; }
.decision { border-radius: 8px; padding: 10px 12px; }
.decision.approved { background: var(--okbg); color: #0b4f29; }
.decision.denied { background: var(--nobg); color: #7a1a12; }
.decision.stale { background: var(--warnbg); color: #5c3d00; }
.decision b { display: block; margin-bottom: 2px; }
input.note { width: 100%; padding: 7px 9px; border: 1px solid #cfcfca; border-radius: 7px; font: inherit; }
.history { font-size: 12px; color: var(--muted); }
.history div + div { margin-top: 3px; }
.toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%); background: #1b1b1a; color: #fff; padding: 8px 14px; border-radius: 8px; font-size: 12px; z-index: 50; }

.picker { width: min(980px, 92vw); max-height: 86vh; border: 1px solid var(--line); border-radius: 12px; padding: 0; }
.picker::backdrop { background: rgba(0, 0, 0, 0.35); }
.picker-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; margin: 0; }
.picker-hint { color: var(--muted); font-size: 12px; margin-right: auto; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; padding: 14px 16px; }
.pcell { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; background: #fff; position: relative; padding: 0; text-align: left; font: inherit; }
.pcell img, .pcell video { width: 100%; height: 110px; object-fit: cover; display: block; background: #ddd; }
.pcell .pn { padding: 5px 8px; font-size: 11px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pcell.in { outline: 3px solid #3b6fd8; outline-offset: -3px; }
.pcell.in::after { content: "Added"; position: absolute; top: 6px; right: 6px; background: #3b6fd8; color: #fff; font-size: 11px; padding: 1px 6px; border-radius: 999px; }

.item.archived { opacity: 0.7; }
.arch-toggle { display: block; width: 100%; text-align: left; border: 0; border-bottom: 1px solid var(--line); background: #f6f6f3; padding: 8px 12px; font: inherit; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; }
.arch-toggle:hover { background: #efefec; }
.list-empty { padding: 14px 12px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.part + .part { border-top: 1px dashed #cfcfca; padding-top: 12px; }
.btn.small { padding: 2px 8px; font-size: 11px; font-weight: 600; }
.label .right + .btn.small { margin-left: 0; }

/* Mentions: hover cards (X dark, LinkedIn light) and the panel list. Click a mention to open the profile. */
[data-mention] { cursor: pointer; }
.xt-mention[data-mention]:hover > span, .li-link[data-mention]:hover strong { text-decoration: underline; }
.hc { position: fixed; z-index: 60; width: 300px; padding: 16px; overflow-wrap: anywhere; max-height: calc(100vh - 16px); overflow-y: auto; }
.hc a { color: inherit; text-decoration: none; }
.hc-x { background: #000; color: rgb(231, 233, 234); border-radius: 16px; box-shadow: rgba(255, 255, 255, 0.2) 0 0 15px, rgba(255, 255, 255, 0.15) 0 0 3px 1px;
  font: 15px/20px TwitterChirp, -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hc-x .hc-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.hc-x .hc-av { width: 64px; height: 64px; border-radius: 999px; overflow: hidden; background: rgb(51, 54, 57); display: block; }
.hc-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hc-x .hc-open { background: rgb(239, 243, 244); color: rgb(15, 20, 25); font-weight: 700; font-size: 14px; border-radius: 999px; padding: 0 16px; line-height: 32px; }
.hc-x .hc-name { display: flex; align-items: center; gap: 2px; font-weight: 700; font-size: 17px; line-height: 24px; }
.hc-x .hc-name:hover span { text-decoration: underline; }
.hc-badge { width: 20px; height: 20px; fill: rgb(29, 155, 240); flex: none; }
.hc-badge.gray, .mbadge.gray { fill: rgb(130, 154, 171); }
.hc-x .hc-handle { color: rgb(113, 118, 123); }
.hc-x .hc-bio { margin-top: 12px; white-space: pre-wrap; }
.hc-x .hc-facts { margin-top: 8px; color: rgb(113, 118, 123); font-size: 14px; }
.hc-x .hc-counts { margin-top: 12px; color: rgb(113, 118, 123); font-size: 14px; white-space: pre; }
.hc-x .hc-counts b { color: rgb(231, 233, 234); font-weight: 700; }
.hc-check { margin-top: 12px; padding-top: 10px; font: 12px/16px -apple-system, "system-ui", sans-serif; }
.hc-x .hc-check { border-top: 1px solid rgb(47, 51, 54); }
.hc-check.ok { color: #3fbf73; } .hc-check.bad { color: #f4212e; font-weight: 600; } .hc-check.warn { color: #d9a400; } .hc-check.wait { color: rgb(113, 118, 123); }
.hc-li .hc-check.ok { color: var(--ok); } .hc-li .hc-check.warn { color: var(--warn); } .hc-li .hc-check.bad { color: var(--no); }

.hc-li { background: #fff; color: rgba(0, 0, 0, 0.9); border-radius: 8px; width: 340px; box-shadow: 0 0 0 1px rgba(140, 140, 140, 0.2), 0 4px 12px rgba(0, 0, 0, 0.18);
  font: 14px/20px system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
.hc-li .hc-row { display: flex; gap: 12px; align-items: flex-start; }
.hc-li .hc-av { width: 56px; height: 56px; border-radius: 999px; overflow: hidden; flex: none; background: #eee; display: block; }
.hc-li .hc-av.square { border-radius: 4px; }
.hc-li .hc-info { min-width: 0; }
.hc-li .hc-name { display: block; font-weight: 600; font-size: 16px; line-height: 20px; }
.hc-li a.hc-name:hover { text-decoration: underline; color: rgb(10, 102, 194); }
.hc-li .hc-sub { color: rgba(0, 0, 0, 0.75); font-size: 14px; line-height: 18px; margin-top: 2px; }
.hc-sub2 { color: rgba(0, 0, 0, 0.6); font-size: 12px; line-height: 16px; margin-top: 2px; }
.hc-li .hc-url { display: block; margin-top: 10px; color: rgb(10, 102, 194); font-size: 12px; }
.hc-li .hc-note { margin-top: 8px; padding: 6px 8px; border-radius: 6px; background: var(--warnbg); color: #5c3d00; font-size: 12px; line-height: 16px; }
.hc-li .hc-btns { display: flex; gap: 8px; margin-top: 12px; align-items: center; }
.hc-li .hc-open { border: 1px solid rgb(10, 102, 194); color: rgb(10, 102, 194); border-radius: 999px; padding: 4px 14px; font-weight: 600; font-size: 14px; }
.hc-li .hc-open:hover { background: rgba(10, 102, 194, 0.08); }
.hc-ghost { display: inline-block; border: 1px solid #cfcfca; background: #fff; border-radius: 999px; padding: 3px 12px; font: 600 12px/18px -apple-system, "system-ui", sans-serif; color: rgba(0, 0, 0, 0.75); cursor: pointer; white-space: nowrap; }
.hc-ghost:hover { background: #f4f4f1; }
.hc-li .hc-check { border-top: 1px solid rgba(140, 140, 140, 0.2); }
.hc-link { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; align-items: flex-start; width: 100%; }
.hc-guesses { width: 100%; font-size: 12px; color: rgba(0, 0, 0, 0.6); }
.hc-guess { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 1px solid rgba(140, 140, 140, 0.25); border-radius: 6px; margin-bottom: 6px; color: rgba(0, 0, 0, 0.9); }
.hc-pasterow { display: flex; gap: 6px; width: 100%; }
.hc-input { flex: 1 1 auto; min-width: 0; padding: 4px 8px; border: 1px solid #cfcfca; border-radius: 6px; font: 12px/18px -apple-system, "system-ui", sans-serif; }
.hc-err { color: var(--no); font-size: 12px; }

.mentions .mention-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.mentions .mention-row:first-of-type { border-top: 0; }
.mav { width: 32px; height: 32px; border-radius: 999px; overflow: hidden; background: #e6e6e2; flex: none; }
.mav.square { border-radius: 4px; }
.mav img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mention-row .mname { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.mention-row .mtop { display: flex; align-items: center; gap: 3px; }
.mbadge { width: 15px; height: 15px; fill: rgb(29, 155, 240); flex: none; }
.mention-row .mdim { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mverdict { font-size: 11px; line-height: 15px; }
.mverdict.ok { color: var(--ok); } .mverdict.bad { color: var(--no); font-weight: 600; } .mverdict.warn { color: var(--warn); } .mverdict.wait { color: var(--muted); }
.mention-row .btn.small { flex: none; text-decoration: none; }
[data-mention]:focus { outline: none; }
[data-mention]:focus-visible { outline: 2px solid rgb(29, 155, 240); outline-offset: 2px; border-radius: 3px; }
.hc-li .hc-note.bad { background: var(--nobg); color: #7a1a12; font-weight: 600; }

/* scheduling */
.conn { display: flex; gap: 6px; align-items: center; }
.pill.scheduled, .pill.posting { background: #e7efff; color: #1d4ed8; }
.pill.posted { background: var(--okbg); color: var(--ok); }
.pill.failed { background: var(--nobg); color: var(--no); }
.decision.scheduled, .decision.posting { background: #e7efff; color: #1e3a8a; }
.decision.posted { background: var(--okbg); color: #0b4f29; }
.decision.failed { background: var(--nobg); color: #7a1a12; }
.decision .post-link { display: inline-block; margin: 4px 12px 0 0; color: inherit; font-weight: 600; }
.when-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 2px 0 8px; }
.when-label { font-weight: 600; }
.when-input { font: inherit; padding: 5px 8px; border: 1px solid #cfcfca; border-radius: 7px; color: var(--ink); background: #fff; }
.when-row .hint { color: var(--muted); font-size: 12px; }
.problems ul { margin: 6px 0 8px; padding-left: 18px; }
.problems li + li { margin-top: 6px; }
.problems li .btn { margin-left: 4px; }
.picks { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 6px; }
.picks .diffnote { flex-basis: 100%; margin-top: 0; }
.chip { border: 1px solid #cfcfca; background: #fff; border-radius: 999px; padding: 3px 10px; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); }
.chip:hover { background: #f4f4f1; }
.chip.best { border-color: #9cc9ad; }
.chip.test { border-style: dashed; }
.spacing-warn { margin: 0 0 8px; line-height: 1.5; }
.spacing-warn .btn { margin-top: 6px; }
.chip.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.pill.waiting, .pill.handoff, .pill.held { background: var(--warnbg); color: var(--warn); }
.decision.waiting, .decision.handoff, .decision.held { background: var(--warnbg); color: #5c3d00; }
