/* Colours follow Slack (dark) and a monday.com-style light theme, switched from the avatar menu. Font: Lato, as Slack. */
:root {
  --bg: #1a1d21; --bg-0: rgba(26,29,33,0); --card: #222529; --card-hi: #27292d; --edge: #35373b; --edge-hi: #45474b;
  --ink: #d1d2d3; --ink-hi: #ffffff; --muted: #ababad; --dim: #8a8b8d;
  --acc: #1264a3; --acc-hi: #1d9bd1; --acc-deep: #0b4c8c; --link: #1d9bd1;
  --tag-bg: rgba(29,155,209,.12); --tag-edge: rgba(29,155,209,.35); --tag-ink: #1d9bd1; --panel-acc: #1c2a38;
  --g: #2bac76; --w: #e8a723; --b: #e01e5a;
  --t-task: #1d9bd1; --t-subitem: #8aa7ff; --t-update: #36c5f0; --t-external: #e8a723; --t-note: #ababad;
  --shadow: 0 1px 0 rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.18); --pop: 0 16px 40px rgba(0,0,0,.55);
  --ok-bg: #14241b; --ok-edge: #2f6f4f; --warn-edge: #5a4720; --bad-edge: #5c2a2a; --bad-bg: #2a1212; --row-ok: #182019; --sunk: #151515;
  --info-bg: #1d2a36; --info-edge: #2c5275; --info-ink: #bfe3ff;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff; --bg-0: rgba(255,255,255,0); --card: #f6f7fb; --card-hi: #eef0f6; --edge: #e1e3ea; --edge-hi: #c9ccd8;
  --ink: #323338; --ink-hi: #1d1c1d; --muted: #676879; --dim: #8f91a0;
  --acc: #1264a3; --acc-hi: #1264a3; --acc-deep: #0b4c8c; --link: #1264a3;
  --tag-bg: rgba(18,100,163,.08); --tag-edge: rgba(18,100,163,.3); --tag-ink: #1264a3; --panel-acc: #eef4fa;
  --g: #007a5a; --w: #b7791f; --b: #e01e5a;
  --t-task: #1264a3; --t-subitem: #5b5fc7; --t-update: #0b7285; --t-external: #b7791f; --t-note: #676879;
  --shadow: 0 1px 0 rgba(29,28,29,.08), 0 2px 6px rgba(29,28,29,.06); --pop: 0 12px 32px rgba(29,28,29,.16);
  --ok-bg: #e6f4ee; --ok-edge: #9fd3bd; --warn-edge: #e8c88a; --bad-edge: #f0b3c4; --bad-bg: #fdecef; --row-ok: #f1f8f4; --sunk: #f6f7fb;
  --info-bg: #eef4fa; --info-edge: #b9d3ea; --info-ink: #1264a3;
  color-scheme: light;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.46668 Lato, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--acc-hi); }
.why { color: var(--muted); font-size: 13px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 6px; font-size: 18px; }
.arvo { font-family: Arvo, serif; font-weight: 700; }
.os { font-weight: 800; color: var(--acc-hi); }
.sep { color: var(--dim); margin: 0 4px; }
.cmd { color: var(--muted); font-size: 15px; }
.conns { display: flex; gap: 8px; flex-wrap: wrap; }
.conn { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--edge-hi); color: var(--muted); }
.conn i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--dim); }
.conn.live i { background: var(--g); } .conn.demo i { background: var(--w); }
main { max-width: 1500px; margin: 0 auto; padding: 0 24px 120px; display: flex; flex-direction: column; gap: 18px; }
.card { background: var(--card); border: 1px solid var(--edge); border-radius: 14px; padding: 20px; }
h1 { font-size: 20px; margin: 0 0 4px; } h2 { font-size: 17px; margin: 0; }
.pick-grid { display: grid; grid-template-columns: 320px 1fr; gap: 18px; margin: 16px 0 8px; }
.pick-grid .field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; text-transform: uppercase; letter-spacing: .06em; }
input, select, textarea { background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 8px; padding: 8px 10px; outline: none; width: 100%; }
input:focus, select:focus, textarea:focus { border-color: var(--acc); }
.search-select { position: relative; }
.list { position: absolute; z-index: 5; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 4px; list-style: none; background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 10px; max-height: 320px; overflow: auto; }
.list li { padding: 8px 10px; border-radius: 6px; cursor: pointer; } .list li:hover, .list li.on { background: var(--edge); }
.meetings { display: flex; flex-direction: column; gap: 6px; max-height: 260px; overflow: auto; }
.meeting { display: flex; justify-content: space-between; gap: 10px; text-align: left; background: var(--card-hi); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; cursor: pointer; }
.meeting:hover { border-color: var(--edge-hi); } .meeting.on { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc) inset; }
.meeting small { color: var(--muted); }
.paste summary { cursor: pointer; color: var(--muted); font-size: 13px; margin: 6px 0; } .paste textarea { margin-top: 6px; }
.actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.btn { border: 0; border-radius: 9px; padding: 8px 14px; cursor: pointer; font-weight: 600; color: #fff; background: var(--acc); }
.btn:disabled { opacity: .4; cursor: default; }
.btn.alt { background: var(--card-hi); border: 1px solid var(--edge-hi); color: var(--ink); font-weight: 500; }
.btn.alt:hover:not(:disabled) { border-color: var(--edge-hi); }
.btn.sm { padding: 4px 9px; font-size: 12.5px; }
.working ol { margin: 10px 0 0; padding-left: 20px; color: var(--muted); } .working li.done { color: var(--ink); } .working li.done::marker { content: "✓  "; color: var(--g); }
.review-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.review-head .actions { margin: 0; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin: 6px 0 10px; }
.tdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: 12px; background: var(--card); }
table.grid { border-collapse: collapse; width: 100%; min-width: 1240px; }
.grid th { position: sticky; top: 0; background: var(--card); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--dim); font-weight: 600; text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--edge); white-space: nowrap; }
.grid td { padding: 6px 8px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.grid tr.row td:first-child { border-left: 3px solid transparent; }
.grid tr.row.accepted td:first-child { border-left-color: var(--g); }
.grid tr.row.pushed { opacity: .55; }
.grid tr.row.child td.pulse-cell { padding-left: 26px; position: relative; }
.grid tr.row.child td.pulse-cell::before { content: "↳"; position: absolute; left: 10px; top: 13px; color: var(--dim); }
.grid input, .grid select, .grid textarea { background: transparent; border-color: transparent; padding: 6px 7px; border-radius: 6px; }
.grid input:hover, .grid select:hover, .grid textarea:hover { border-color: var(--edge-hi); }
.grid input:focus, .grid select:focus, .grid textarea:focus { background: var(--card-hi); border-color: var(--acc); }
.grid select option { background: var(--card-hi); }
.type-sel { font-weight: 600; font-size: 12.5px; min-width: 132px; }
.grid td.pulse-cell { min-width: 300px; }
.grid select[data-k="group"] { min-width: 160px; }
.pfx { color: var(--muted); font-size: 12px; margin-right: 2px; }
.pulse-wrap { display: flex; align-items: center; }
.flags { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 0 7px; }
.flag { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; border: 1px solid; }
.flag.w { color: var(--w); border-color: var(--warn-edge); } .flag.b { color: var(--b); border-color: var(--bad-edge); }
.flag button { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; padding: 0 0 0 4px; font-size: 11.5px; }
.vid { white-space: nowrap; font-size: 12.5px; text-decoration: none; display: inline-block; padding: 6px 0; }
.ok { color: var(--g); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.detail td { background: var(--sunk); }
.detail-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 6px 4px 10px 36px; }
.detail-grid label > span { display: block; font-size: 11.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.detail-grid textarea, .detail-grid select { background: var(--card-hi); border-color: var(--edge-hi); }
.quote { color: var(--muted); font-style: italic; font-size: 13px; margin: 8px 0 0; }
.expander { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 13px; padding: 6px 4px; }
.expander:hover, .del:hover { color: var(--ink); }
.del { background: none; border: 0; color: var(--dim); cursor: pointer; font-size: 16px; padding: 4px; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.summary .card { padding: 14px 16px; }
.summary h3 { margin: 0 0 8px; font-size: 13px; color: var(--muted); font-weight: 600; }
.bars div { display: grid; grid-template-columns: 130px 1fr 64px; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.bars i { display: block; height: 6px; border-radius: 3px; background: var(--acc-hi); }
.bars em { font-style: normal; color: var(--muted); text-align: right; }
.pushbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 16px; z-index: 20; width: min(760px, calc(100% - 32px)); display: flex; gap: 10px; align-items: center; background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.gap { flex: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(720px, 100%); background: var(--card); z-index: 40; display: flex; flex-direction: column; box-shadow: -20px 0 60px rgba(0,0,0,.5); }
.drawer-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 18px 22px 10px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 22px 18px; display: flex; flex-direction: column; gap: 10px; }
.drawer-foot { display: flex; gap: 8px; align-items: center; padding: 14px 22px; border-top: 1px solid var(--edge); }
.iconbtn { background: none; border: 1px solid var(--edge-hi); color: var(--muted); border-radius: 50%; width: 30px; height: 30px; cursor: pointer; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 30; }
.op { background: var(--card); border: 1px solid var(--edge); border-radius: 10px; padding: 10px 12px; }
.op small { color: var(--dim); text-transform: uppercase; letter-spacing: .05em; font-size: 11px; }
.op .vals { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.op.failed { border-color: var(--bad-edge); } .op.done { border-color: var(--ok-edge); }
.warnline { color: var(--w); font-size: 12.5px; }
.errline { color: var(--b); font-size: 12.5px; }
@media (max-width: 860px) {
  .pick-grid { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; padding-left: 8px; }
  main { padding: 0 16px 120px; } .top { padding: 16px; }
}
.grid select[data-k="billable"] { min-width: 128px; }
.expander, .btn.sm { white-space: nowrap; }
.grid select[data-k="owner"] { min-width: 112px; }

/* ===== OS shell ===== */
.shell { min-height: 100vh; display: flex; flex-direction: column; }
.ostop { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; gap: 12px; }
.mini-logo { background: none; border: 0; padding: 0; cursor: pointer; visibility: hidden; }
.mini-logo img { height: 26px; display: block; }
.shell[data-mode="chat"] .mini-logo { visibility: visible; }
.ostop-r { display: flex; align-items: center; gap: 12px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge-hi); background: var(--card-hi); color: var(--ink-hi); font-weight: 600; cursor: pointer; }
.acct-wrap { position: relative; }
.acct { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: 290px; background: var(--card); border: 1px solid var(--edge-hi); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.acct-row { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); text-decoration: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 14px; }
.acct-row:hover { background: var(--edge); }
.acct-row small { display: block; color: var(--muted); font-size: 12px; }
.hero { display: flex; justify-content: center; margin: 22vh 0 26px; }
/* Intro: logo assembles in the centre, glides into place, then the box fades up */
.hero-stage { position: relative; width: 363px; max-width: 80vw; aspect-ratio: 1088 / 304; }
.hero-stage img, .hero-stage video { position: absolute; inset: 0; width: 100%; height: 100%; display: block;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 6%, #000 94%, transparent 100%), linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect; }
.composer-wrap, .ostop-r { transition: opacity .6s ease; }
.shell.intro .composer-wrap, .shell.intro .ostop-r { opacity: 0; pointer-events: none; }
.shell.intro-centre .composer-wrap { display: none; }
.shell.intro-centre .hero { margin-top: calc(50vh - 110px); }
.shell[data-mode="chat"] .hero { display: none; }
.thread { flex: 1; width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 6px; }
.shell[data-mode="landing"] .thread { display: none; }
.composer-wrap { padding: 0 24px 18px; }
.shell[data-mode="chat"] .composer-wrap { position: sticky; bottom: 0; padding-top: 14px; background: linear-gradient(180deg, var(--bg-0), var(--bg) 30%); z-index: 15; }
.composer { max-width: 760px; margin: 0 auto; position: relative; }
.field { display: flex; align-items: center; gap: 8px; background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 18px; padding: 7px 7px 7px 8px; }
.field:focus-within { border-color: var(--edge-hi); }
#input { flex: 1; min-width: 0; background: none; border: 0; padding: 8px 4px; font-size: 15px; }
#input:focus { border: 0; }
.scope-btn { background: var(--edge); border: 1px solid var(--edge-hi); border-radius: 10px; padding: 6px 10px; cursor: pointer; font-size: 13px; color: var(--ink); white-space: nowrap; max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.cmd-chip { font-weight: 700; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--tag-edge); color: var(--link); cursor: pointer; white-space: nowrap; }
.go { width: 38px; height: 38px; flex: none; border-radius: 50%; border: 0; cursor: pointer; color: #fff; display: grid; place-items: center; background: var(--acc); }
.go svg { width: 17px; height: 17px; }
.foot { text-align: center; font-size: 11.5px; color: var(--dim); margin: 8px 0 0; }
.menu { position: absolute; left: 0; right: 0; bottom: calc(100% + 8px); margin: 0; list-style: none; background: var(--card); border: 1px solid var(--edge-hi); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); max-height: 50vh; overflow: auto; z-index: 20; }
.menu li { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; }
.menu li.on, .menu li:hover { background: var(--edge); }
.menu li b { color: var(--acc-hi); font-weight: 600; }
.menu li span { color: var(--muted); font-size: 13px; }
.menu li.head { display: block; cursor: default; color: var(--dim); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; background: none; }
.menu.scope li { grid-template-columns: minmax(0,1fr); }
.menu.scope li.search { cursor: default; background: none; padding: 4px; }
.msg { display: flex; gap: 12px; padding: 10px 4px; }
.msg .av { width: 34px; height: 34px; border-radius: 8px; background: var(--edge); color: var(--ink-hi); font-weight: 600; display: grid; place-items: center; flex: none; font-size: 14px; overflow: hidden; }
.msg .av img { width: 26px; }
.msg-main { flex: 1; min-width: 0; }
.msg-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: 4px; }
.msg-h b { color: var(--ink-hi); } .msg-h time { color: var(--dim); font-size: 11.5px; }
.msg-h .app { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--muted); background: var(--edge); border-radius: 3px; padding: 1px 4px; }
.msg-b .token { font-weight: 700; color: var(--link); }
.msg-b > .card { margin-top: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { background: var(--card-hi); border: 1px solid var(--edge-hi); color: var(--ink); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13px; }
.chip:hover { border-color: var(--edge-hi); }
.answer-bar { position: sticky; bottom: 92px; z-index: 12; margin-top: 12px; display: flex; gap: 10px; align-items: center; background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 14px; padding: 10px 12px 10px 16px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.client-pick { max-width: 420px; margin-top: 10px; }
.client-pick .opts { margin-top: 6px; max-height: 260px; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.client-pick .opts button { text-align: left; background: none; border: 0; color: var(--ink); padding: 7px 10px; border-radius: 8px; cursor: pointer; }
.client-pick .opts button:hover { background: var(--edge); }
@media (max-width: 860px) { .menu li { grid-template-columns: 1fr; gap: 2px; } .thread, .composer-wrap, .ostop { padding-left: 16px; padding-right: 16px; } .hero { margin-top: 16vh; } }
a.conn { text-decoration: none; }
.msg-b table.grid { min-width: 1180px; }
.msg-b .grid td.pulse-cell { min-width: 250px; }
.msg-b .grid td, .msg-b .grid th { padding-left: 6px; padding-right: 6px; }
.msg-b .type-sel { min-width: 120px; }
.msg-b .grid select[data-k="group"] { min-width: 140px; }
.opt-list { margin: 6px 0 4px; padding-left: 22px; } .opt-list li { padding: 2px 0; }
.menu.answers li { grid-template-columns: minmax(0,1fr) auto; }
.review-head { margin-top: 4px; }
/* Compact review table */
.msg-b table.grid { min-width: 1080px; }
.msg-b .grid td.pulse-cell { min-width: 230px; }
.msg-b .type-sel { min-width: 112px; }
.msg-b .grid select[data-k="group"] { min-width: 120px; max-width: 150px; }
.msg-b .grid select[data-k="owner"] { min-width: 92px; }
.msg-b .grid select[data-k="status"] { min-width: 122px; }
.msg-b .grid select[data-k="importance"] { min-width: 72px; }
.msg-b .grid select[data-k="billable"] { min-width: 112px; }
.msg-b .grid input[type="date"] { width: 132px; }
.msg-b .grid input[type="number"] { width: 64px !important; }

/* One column: conversation and the bottom box share the same width */
:root { --col: 1120px; }
.shell[data-mode="chat"] .thread { max-width: calc(var(--col) + 48px); }
.shell[data-mode="chat"] .composer { max-width: var(--col); }
.thread .msg { padding-left: 0; padding-right: 0; }
.msg-b .table-wrap { margin-top: 10px; }
.msg-b table.grid { min-width: 0; width: 100%; table-layout: auto; }

/* The task bar: where the work is managed while a meeting is open */
.taskbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: var(--panel-acc); border: 1px solid var(--tag-edge); border-bottom: 0; border-radius: 18px 18px 0 0; padding: 10px 12px 10px 16px; }
.taskbar + .field { border-top-left-radius: 0; border-top-right-radius: 0; border-color: var(--tag-edge); }
.taskbar[hidden] + .field { border-radius: 18px; border-color: var(--edge-hi); }
.tb-info { display: flex; flex-direction: column; min-width: 0; }
.tb-info b { color: var(--ink-hi); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 420px; }
.tb-info .why { font-size: 12.5px; }
.tb-actions { display: flex; gap: 6px; flex-wrap: wrap; }
@media (max-width: 860px) { .tb-info b { max-width: 70vw; } }
.msg-b .vid { font-size: 14px; padding: 6px 4px; }
.msg-b .expander { font-size: 14px; padding: 6px; }
.detail-grid label { display: block; margin-bottom: 8px; }
:root { --col: 1200px; }
.msg-b .type-sel { min-width: 104px; }
.msg-b .grid input[type="date"] { width: 118px; }
.msg-b .grid input[type="date"]::-webkit-calendar-picker-indicator { opacity: .35; margin-left: 0; }
.msg-b .grid select[data-k="status"] { min-width: 116px; }
.msg-b .grid select[data-k="group"] { min-width: 110px; max-width: 140px; }
.msg-b .grid td.pulse-cell { min-width: 220px; width: 100%; }
.msg-b .grid td, .msg-b .grid th { padding-left: 4px; padding-right: 4px; }
.tick { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--edge-hi); background: var(--card-hi); color: var(--dim); cursor: pointer; font-size: 15px; font-weight: 700; }
.tick:hover { border-color: var(--edge-hi); color: var(--ink); }
.tick.on { background: var(--acc); border-color: transparent; color: #fff; }
.test-pill { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--w); border: 1px solid var(--warn-edge); border-radius: 999px; padding: 1px 8px; vertical-align: 1px; }
.done-list { list-style: none; margin: 6px 0 0; padding: 0; max-width: 820px; }
.done-list li { display: grid; grid-template-columns: 18px minmax(0,1fr) auto; gap: 8px; align-items: baseline; padding: 4px 0; border-bottom: 1px solid var(--card-hi); font-size: 13.5px; }
.done-list li:last-child { border-bottom: 0; }
.done-list .mark { color: var(--g); font-weight: 700; }
.done-list li.bad .mark { color: var(--b); }
.done-list a { font-size: 12.5px; text-decoration: none; white-space: nowrap; }
.done-list a:hover { text-decoration: underline; }
.day-sep { display: flex; align-items: center; gap: 12px; margin: 14px 0 4px; color: var(--dim); font-size: 12px; font-weight: 600; }
.day-sep::before, .day-sep::after { content: ""; flex: 1; height: 1px; background: var(--edge); }
.day-sep span { border: 1px solid var(--edge); border-radius: 999px; padding: 2px 10px; }
.acct-me { padding: 10px 10px 8px; border-bottom: 1px solid var(--edge); margin-bottom: 4px; }
.acct-me b { display: block; color: var(--ink-hi); } .acct-me small { color: var(--muted); font-size: 12px; }
/* Progress while a meeting is being read */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.steps li { display: flex; align-items: center; gap: 10px; color: var(--dim); }
.steps li.now { color: var(--ink-hi); } .steps li.done { color: var(--muted); }
.steps .spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #333; flex: none; }
.steps li.now .spin { border-color: var(--acc-hi); border-right-color: transparent; animation: spin .8s linear infinite; }
.steps li.done .spin { border: 0; background: none; }
.steps li.done .spin::before { content: "✓"; color: var(--g); font-style: normal; font-weight: 700; font-size: 13px; position: relative; top: -3px; }
.progress { height: 4px; background: var(--edge); border-radius: 3px; margin: 14px 0 6px; overflow: hidden; max-width: 520px; }
.progress i { display: block; height: 100%; width: 0; background: var(--acc-hi); transition: width .5s linear; }
@keyframes spin { to { transform: rotate(360deg); } }
/* Progress inside the push button */
#tbPush { position: relative; overflow: hidden; }
#tbPush.pushing { opacity: 1; cursor: progress; }
#tbPush.pushing::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: rgba(255,255,255,.22); transition: width .2s linear; }
#tbPush.pushing::after { content: ""; display: inline-block; width: 11px; height: 11px; margin-left: 8px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
/* Fit the extra Start Date column */
.msg-b .grid td, .msg-b .grid th { padding-left: 3px; padding-right: 3px; }
.msg-b .grid input, .msg-b .grid select { font-size: 13px; padding: 5px 5px; }
.msg-b .type-sel { min-width: 96px; }
.msg-b .grid select[data-k="group"] { min-width: 96px; max-width: 118px; }
.msg-b .grid td.pulse-cell { min-width: 190px; }
.msg-b .grid select[data-k="owner"] { min-width: 76px; }
.msg-b .grid select[data-k="status"] { min-width: 104px; }
.msg-b .grid select[data-k="importance"] { min-width: 62px; }
.msg-b .grid input[type="date"] { width: 108px; }
.msg-b .grid input[type="number"] { width: 50px !important; }
.msg-b .grid th { font-size: 10.5px; }
/* Loading skeleton while history loads (no flash of the start screen) */
.skeleton { display: none; flex-direction: column; gap: 18px; padding-top: 12px; }
.shell.booting .skeleton { display: flex; }
.shell.booting .hero { display: none; }
.sk-msg { display: flex; gap: 12px; }
.sk-av { width: 34px; height: 34px; border-radius: 8px; background: var(--card-hi); flex: none; }
.sk-msg > div { flex: 1; display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.sk-line { display: block; height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--card-hi) 0%, var(--edge) 50%, var(--card-hi) 100%); background-size: 200% 100%; animation: sk 1.2s ease-in-out infinite; }
.w25 { width: 25%; } .w30 { width: 30%; } .w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
@keyframes sk { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.conn.alert { color: var(--b); border-color: var(--bad-edge); background: var(--bad-bg); text-decoration: none; }
.conn.alert i { background: var(--b); }
/* Fixed header: logo left, account right; the conversation scrolls underneath behind a fade */
.ostop { position: sticky; top: 0; z-index: 22; }
.mini-logo .mark { display: none; height: 30px; }
.thread .msg, .thread .day-sep { scroll-margin-top: 80px; }
@media (max-width: 600px) {
  .mini-logo .full { display: none; }
  .mini-logo .mark { display: block; }
}
.conn.alert { white-space: nowrap; } .conn.alert .short { display: none; }
@media (max-width: 600px) { .conn.alert .long { display: none; } .conn.alert .short { display: inline; } }
.typing { display: inline-flex; gap: 4px; padding: 6px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.msg-b ul, .msg-b ol { margin: 6px 0; padding-left: 20px; } .msg-b code { background: var(--edge); padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.src { margin-top: 8px; font-size: 12px; }
.scope-tag { font-weight: 600; margin-right: 2px; }
/* Always the working layout: logo top left, box at the bottom; menus fit on screen */
.shell[data-mode="chat"] .mini-logo, .mini-logo { visibility: visible; }
.shell .hero { display: none; }
.shell { min-height: 100vh; }
.shell .thread { flex: 1; }
.menu { max-height: min(50vh, calc(100vh - 200px)); }
.menu.scope { max-height: min(60vh, calc(100vh - 200px)); }
.menu.scope li.search { position: sticky; top: -6px; background: var(--card); z-index: 1; padding-top: 6px; }
.menu.scope li[data-scope=""] { position: sticky; top: 38px; background: var(--card); z-index: 1; }
/* /time-audit report */
.ta-h { margin: 16px 0 6px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.ta-wrap { overflow-x: auto; }
table.ta { border-collapse: collapse; width: 100%; font-size: 13.5px; }
.ta th { text-align: left; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px; border-bottom: 1px solid var(--edge); }
.ta td { padding: 7px 8px; border-bottom: 1px solid var(--card-hi); vertical-align: top; }
.ta td.save { color: var(--g); font-weight: 600; }
.ta-list { margin: 4px 0; padding-left: 20px; } .ta-list li { margin: 6px 0; }
/* The client a message is about: a small box at the start */
.scope-tag { display: inline-block; font-size: 12px; font-weight: 600; color: var(--tag-ink); border: 1px solid var(--tag-edge); background: var(--tag-bg); border-radius: 6px; padding: 1px 7px; margin-right: 6px; vertical-align: 1px; -webkit-text-fill-color: currentColor; }
.ta-note { border-left: 3px solid var(--tag-edge); background: var(--tag-bg); padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: 13.5px; }
.ta-cmds { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-direction: column; gap: 10px; }
.ta-cmd { background: var(--card); border: 1px solid var(--edge); border-radius: 10px; padding: 12px 14px; }
.ta-cmd p { margin: 4px 0; }
.ta-cmd-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ta-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--tag-edge); color: var(--tag-ink); font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ta-free { margin-left: auto; color: var(--g); font-weight: 700; }
.ta-num { font-size: 13.5px; }
.go { display: grid; place-items: center; padding: 0; line-height: 0; }
.go svg { width: 18px; height: 18px; display: block; margin: 0; }
.ta-answer { border: 1px solid var(--ok-edge); background: var(--ok-bg); border-radius: 12px; padding: 14px 16px; margin: 8px 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ta-big { font-size: 22px; font-weight: 800; color: var(--g); }
.ta-mode { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--tag-edge); color: var(--tag-ink); }
.ta-mode.auto { border-color: var(--ok-edge); color: var(--g); }
/* InspireOS avatar: the O on its own, no box */
.msg .av.os-av { background: none; }
.msg .av.os-av img { width: 32px; height: 32px; }
.back-link { text-decoration: none; font-weight: 600; color: var(--ink); border-color: var(--tag-edge); } .back-link:hover { border-color: var(--acc-hi); }
/* Review table: roomier, readable, scrolls sideways if needed */
.msg-b table.grid { min-width: 1420px; }
.msg-b .grid td, .msg-b .grid th { padding: 8px 8px; }
.msg-b .grid input, .msg-b .grid select, .msg-b .grid textarea { font-size: 13.5px; padding: 6px 8px; }
.msg-b .grid td.pulse-cell { min-width: 320px; width: 30%; }
.msg-b .grid td.pulse-cell textarea { width: 100%; resize: none; line-height: 1.35; overflow: hidden; font-family: inherit; white-space: normal; }
.msg-b .type-sel { min-width: 130px; }
.msg-b .grid select[data-k="group"] { min-width: 170px; max-width: 220px; }
.msg-b .grid select[data-k="owner"] { min-width: 120px; }
.msg-b .grid select[data-k="importance"] { min-width: 96px; }
.msg-b .grid select[data-k="status"] { min-width: 150px; }
.msg-b .grid input[type="date"] { width: 132px; }
.msg-b .grid input[type="number"] { width: 64px !important; }
.msg-b .grid th { font-size: 11px; white-space: nowrap; }
.details-btn { white-space: nowrap; background: var(--info-bg); border: 1px solid var(--info-edge); color: var(--info-ink); font-weight: 600; font-size: 12.5px; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.details-btn:hover, .details-btn.open { background: var(--tag-edge); color: #fff; }
.details-btn .chev { font-size: 11px; margin-left: 2px; }
.table-wrap { overflow-x: auto; scrollbar-width: thin; }
/* Row buttons pinned to the right edge; details panel stays in view while scrolling sideways */
.grid .row-actions { position: sticky; right: 0; background: var(--card); box-shadow: -10px 0 12px -10px rgba(0,0,0,.8); z-index: 1; }
.grid th.row-actions { background: var(--card); }
.grid tr.row.accepted td.row-actions { background: var(--row-ok); }
.grid .row-actions > div { display: flex; align-items: center; gap: 8px; }
.detail-grid { position: sticky; left: 0; max-width: min(1080px, calc(100vw - 280px)); }
/* Read-only review tables kept in the history */
.snap { margin-top: 8px; }
table.snap-grid { min-width: 900px; width: 100%; }
.snap-grid td { padding: 7px 10px; font-size: 13px; border-bottom: 1px solid var(--edge); vertical-align: top; }
.snap-grid td.snap-pulse { min-width: 280px; }
.snap-grid tr.child td.snap-pulse { padding-left: 22px; }
.snap-grid a { text-decoration: none; white-space: nowrap; }
/* /todo */
.todo-list { list-style: none; margin: 4px 0 8px; padding: 0; max-width: 980px; }
.todo-item { display: flex; justify-content: space-between; gap: 14px; padding: 8px 10px; border-bottom: 1px solid var(--card-hi); align-items: baseline; flex-wrap: wrap; }
.todo-item.overdue { border-left: 3px solid var(--b); } .todo-item.today { border-left: 3px solid var(--w); }
.todo-main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.todo-client { font-size: 11.5px; color: var(--tag-ink); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.todo-task { font-size: 14px; }
.todo-meta { display: flex; gap: 10px; align-items: baseline; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.todo-meta a { text-decoration: none; }
.todo-high { color: var(--b); font-weight: 700; }
.todo-more { margin: 10px 0; } .todo-more summary { cursor: pointer; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.todo-more[open] summary { margin-bottom: 4px; }

/* Two-stage workflow: bell, notifications, stage trail, recap drawer, /meetings */
.bell-wrap { position: relative; }
.bell { position: relative; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--edge-hi); background: var(--card-hi); color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.bell svg { width: 17px; height: 17px; }
.bell .badge { position: absolute; top: -4px; right: -4px; min-width: 17px; height: 17px; padding: 0 5px 0 3px; border-radius: 999px; background: #ff0e4d; background: color(display-p3 1 0.02 0.28); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 17px; text-align: center; }
.notes { position: absolute; right: 0; top: calc(100% + 8px); z-index: 25; width: min(360px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; background: var(--card); border: 1px solid var(--edge-hi); border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px rgba(0,0,0,.35); }
.notes-head { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 6px; font-size: 13px; color: var(--muted); }
.notes-head button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 12px; text-decoration: underline; }
.note { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--ink); padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.note:hover { background: var(--edge); }
.note.unread { background: var(--info-bg); }
.note small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.trail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 4px 0 8px; font-size: 12px; }
.trail span { border: 1px solid var(--edge-hi); border-radius: 999px; padding: 2px 9px; color: var(--muted); }
.trail span.on { color: var(--ink-hi); border-color: var(--ok-edge); background: var(--ok-bg); }
.trail i { color: var(--edge-hi); font-style: normal; }
.stage { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .03em; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--edge-hi); color: var(--muted); white-space: nowrap; }
.stage.signed_off { color: var(--w); border-color: var(--warn-edge); }
.stage.pushed { color: var(--link); border-color: var(--tag-edge); }
.stage.checked { color: var(--g); border-color: var(--ok-edge); }
.rec-list { list-style: none; margin: 6px 0 0; padding: 0; max-width: 820px; }
.rec-list li { display: grid; grid-template-columns: minmax(0,1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--card-hi); font-size: 13.5px; }
.rec-list li:last-child { border-bottom: 0; }
.mview { display: flex; gap: 12px; font-size: 13px; margin: 2px 0 6px; }
.mview button { background: none; border: 0; padding: 0; color: var(--muted); cursor: pointer; font: inherit; }
.mview button.on { color: var(--ink-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.inline-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.rcpts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rcpt { background: var(--card-hi); border: 1px solid var(--edge-hi); color: var(--ink); border-radius: 999px; padding: 4px 6px 4px 11px; font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.rcpt button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; line-height: 1; padding: 0 3px; }
.rcpt button:hover { color: var(--ink-hi); }
.recap-field { display: flex; flex-direction: column; gap: 6px; }
.recap-field label { font-size: 12px; color: var(--muted); }
.recap-field input, .recap-field select, .recap-field textarea { background: var(--bg); color: var(--ink); border: 1px solid var(--edge-hi); border-radius: 8px; padding: 9px 10px; font: inherit; font-size: 14px; }
.recap-field textarea { resize: vertical; line-height: 1.55; overflow: hidden; min-height: 110px; }
.recap-preview { background: #fff; border-radius: 10px; overflow-x: auto; }
.recap-preview a { pointer-events: none; }

.opt-list li.dim { opacity: .4; }
.opt-list li.picked { color: var(--ink-hi); }
.picked-tag { color: var(--g); font-weight: 600; font-size: 12.5px; margin-left: 6px; white-space: nowrap; }
.rcpt-name { background: none; border: 0; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.rcpt-name:hover { text-decoration: underline; }

/* ---- Slack-style restyle: crisp header, quieter body text with white bold, no fades ---- */
.ostop { background: var(--bg); border-bottom: 1px solid var(--edge); box-shadow: var(--shadow); padding: 10px 24px; margin-bottom: 14px; min-height: 60px; align-items: center; }
.mini-logo { display: flex; align-items: center; height: 40px; }
.mini-logo img.full { height: 29px; width: auto; }
.mini-logo .logo-l { display: none; }
:root[data-theme="light"] .mini-logo .logo-d { display: none; }
:root[data-theme="light"] .mini-logo .logo-l { display: block; }
@media (max-width: 860px) { .mini-logo img.full { display: none !important; } }
b, strong { color: var(--ink-hi); font-weight: 700; }
.msg-h b { font-weight: 900; }
.token, .msg-b .token, .cmd-chip { color: var(--link); -webkit-text-fill-color: currentColor; background: none; font-weight: 700; }
.cmd-chip { border-color: var(--tag-edge); background: var(--tag-bg); }
.btn.alt { background: var(--card-hi); color: var(--ink); border: 1px solid var(--edge-hi); }
.drawer, .acct, .notes, .menu { background: var(--card); color: var(--ink); box-shadow: var(--pop); }
.recap-field input, .recap-field select, .recap-field textarea { background: var(--bg); color: var(--ink); border-color: var(--edge-hi); }
.alerts-pill { font-size: 12.5px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--tag-edge); background: var(--tag-bg); color: var(--link); cursor: pointer; white-space: nowrap; }
.theme-row small { display: block; }
:root[data-theme="light"] .bell, :root[data-theme="light"] .avatar { background: var(--card); color: var(--ink); }
:root[data-theme="light"] .recap-preview { border: 1px solid var(--edge); }
.prep-agenda, .prep-points { margin: 4px 0 10px; padding-left: 22px; } .prep-agenda li, .prep-points li { padding: 3px 0; }
.prep-state { font-size: 12px; font-weight: 700; white-space: nowrap; color: var(--muted); } .prep-state.ok { color: var(--g); } .prep-state.warn { color: var(--w); } .prep-state.bad { color: var(--b); }

/* /page-copy content lab */
.pc-card .test-pill { margin-left: 6px; }
.pc-det { margin: 6px 0; } .pc-det summary { cursor: pointer; color: var(--link); font-weight: 700; font-size: 13.5px; } .pc-det p, .pc-det ul { font-size: 13.5px; }
.pc-list { display: grid; gap: 10px; margin-top: 8px; max-width: 860px; }
.pc-gap { border: 1px solid var(--edge); border-radius: 12px; padding: 12px 14px; background: var(--card); }
.pc-gap p { margin: 4px 0 8px; } .pc-gap-h { display: flex; gap: 10px; align-items: baseline; }
.pc-pri { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--tag-bg); color: var(--link); font-weight: 900; font-size: 12.5px; }
.pc-studio { position: fixed; inset: 0; z-index: 60; background: var(--bg); display: flex; flex-direction: column; }
.pc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 22px; border-bottom: 1px solid var(--edge); box-shadow: var(--shadow); flex-wrap: wrap; }
.pc-top-acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pc-body { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) 340px; overflow: hidden; }
.pc-main { overflow-y: auto; padding: 22px 32px 80px; } .pc-main label { display: block; font-size: 12px; color: var(--muted); margin: 10px 0 4px; }
.pc-in { width: 100%; max-width: 860px; } textarea.pc-in { resize: vertical; }
.pc-article { max-width: 860px; margin-top: 18px; padding: 20px 24px; border: 1px solid var(--edge); border-radius: 12px; outline: none; font-size: 16px; line-height: 1.7; background: var(--card); }
.pc-article:focus { border-color: var(--acc); } .pc-article h2 { font-size: 21px; margin: 26px 0 8px; } .pc-article h3 { font-size: 17px; margin: 18px 0 6px; } .pc-article a { color: var(--link); }
.pc-fig { margin: 18px 0; } .pc-fig img { width: 100%; max-height: 460px; object-fit: cover; border-radius: 10px; display: block; }
.pc-fig figcaption { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; } .pc-alt { flex: 1; min-width: 240px; font-size: 12.5px; padding: 5px 8px; }
.pc-mini { background: var(--card-hi); border: 1px solid var(--edge-hi); border-radius: 6px; padding: 3px 9px; font-size: 12px; cursor: pointer; color: var(--ink); }
.pc-side { overflow-y: auto; padding: 22px 20px 60px; border-left: 1px solid var(--edge); }
.pc-score { display: flex; align-items: baseline; gap: 10px; } .pc-score b { font-size: 46px; font-weight: 900; color: var(--c); line-height: 1; } .pc-score span { color: var(--muted); font-size: 13px; }
.pc-checks { list-style: none; padding: 0; margin: 10px 0; font-size: 13px; } .pc-checks li { display: grid; grid-template-columns: 18px 1fr; padding: 3px 0; }
.pc-checks li.ok span { color: var(--g); } .pc-checks li.part span { color: var(--w); } .pc-checks li.no span { color: var(--b); }
.pc-terms { display: flex; flex-wrap: wrap; gap: 5px; } .pc-terms span { font-size: 12px; border-radius: 999px; padding: 2px 9px; border: 1px solid var(--edge-hi); }
.pc-terms span i { font-style: normal; color: var(--muted); margin-left: 3px; } .pc-terms .ok { border-color: var(--ok-edge); background: var(--ok-bg); } .pc-terms .over { border-color: var(--warn-edge); } .pc-terms .no { opacity: .75; }
@media (max-width: 900px) { .pc-body { grid-template-columns: 1fr; } .pc-side { border-left: 0; border-top: 1px solid var(--edge); } }

/* Transparent logos: white text on dark, dark text on light (any page) */
.logo-l { display: none; }
:root[data-theme="light"] .logo-d { display: none !important; }
:root[data-theme="light"] .logo-l { display: block; }

/* tighter editor header */
.pc-main { padding-top: 16px; }
.pc-meta { max-width: 860px; display: flex; flex-direction: column; gap: 8px; }
.pc-h1 { font-size: 20px; font-weight: 700; padding: 8px 12px; border-radius: 10px; }
.pc-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px 10px; }
.pc-f { display: flex; flex-direction: column; gap: 3px; margin: 0 !important; } .pc-f > span { font-size: 11.5px; color: var(--muted); }
.pc-f > span b { font-weight: 400; margin-left: 4px; } .pc-f input, .pc-f textarea { padding: 6px 10px; font-size: 13.5px; border-radius: 8px; }
.pc-f textarea { resize: none; overflow: hidden; line-height: 1.45; } .pc-wide { grid-column: 1 / -1; }
.pc-url { display: flex; align-items: center; border: 1px solid var(--edge-hi); border-radius: 8px; background: var(--card-hi); } .pc-url i { font-style: normal; color: var(--muted); padding-left: 10px; } .pc-url input { border: 0; background: none; }
.pc-article { margin-top: 12px; }
@media (max-width: 900px) { .pc-grid { grid-template-columns: 1fr; } }

/* /page-copy tables, ratings and progress pills */
.pc-pills { margin: 0 0 10px; } .pc-pills span.pc-now { color: var(--link); border-color: var(--tag-edge); background: var(--tag-bg); font-weight: 700; }
.pc-table { table-layout: fixed; width: 100%; } .pc-table th:nth-child(1) { width: 62px; } .pc-table td { vertical-align: middle; }
.pc-table td.pc-t, .pc-table td.pc-angle { white-space: normal; word-break: break-word; } .pc-table td.n { text-align: right; white-space: nowrap; }
.pc-table td.pc-acts { white-space: nowrap; text-align: right; } .pc-table td.pc-acts .btn { margin-left: 6px; }
.pc-table tr.pc-more td { background: var(--sunk); white-space: normal; } .pc-table tr.pc-more p { margin: 4px 0; font-size: 13.5px; }
.pc-rate { display: inline-block; font-weight: 900; font-size: 12px; border-radius: 999px; padding: 2px 8px; border: 1px solid; white-space: nowrap; }
.pc-rate.rhi { color: var(--g); border-color: var(--ok-edge); background: var(--ok-bg); } .pc-rate.rmid { color: var(--w); border-color: var(--warn-edge); } .pc-rate.rlo { color: var(--muted); border-color: var(--edge-hi); }
.msg-b table.grid.pc-table { min-width: 0 !important; }
.pc-table th, .pc-table td { padding: 8px 8px; }
.pc-table th:last-child { width: 168px; }
.pc-table.pc-gaps th:nth-child(1) { width: 40px; } .pc-table.pc-gaps th:nth-child(3) { width: 26%; } .pc-table.pc-gaps th:nth-child(4) { width: 104px; } .pc-table.pc-gaps th:nth-child(5) { width: 84px; }
.pc-table.pc-ideas th:nth-child(2) { width: 34%; }
@media (max-width: 860px) { .pc-table.pc-gaps th:nth-child(3), .pc-table.pc-gaps td:nth-child(3) { display: none; } }
.pc-rank { color: var(--muted); font-weight: 700; }
.pc-table.pc-rep th:first-child { width: auto; } .pc-table.pc-rep th:last-child { width: auto; } .pc-table.pc-rep td.pc-t { white-space: normal; }
.pc-fig img { cursor: pointer; } .pc-fig.pc-sel img { outline: 3px solid var(--acc-hi); outline-offset: 3px; }
.pc-mini.pc-rm:hover { color: var(--b); border-color: var(--b); }

/* photo picker */
.pc-pick { position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.45); display: grid; place-items: center; padding: 24px; }
.pc-pick-box { width: min(1180px, 100%); height: min(820px, 100%); background: var(--bg); border: 1px solid var(--edge-hi); border-radius: 14px; box-shadow: var(--pop); display: flex; flex-direction: column; overflow: hidden; }
.pc-pick-top { display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--edge); } .pc-pick-top input { flex: 1; }
.pc-pick-body { flex: 1; display: grid; grid-template-columns: 1fr 330px; overflow: hidden; }
.pc-pick-grid { overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; align-content: start; }
.pc-th { padding: 0; border: 2px solid transparent; border-radius: 10px; background: var(--card); cursor: pointer; overflow: hidden; text-align: left; color: var(--ink); }
.pc-th img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; } .pc-th span { display: block; font-size: 11.5px; padding: 5px 7px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pc-th.on { border-color: var(--acc-hi); } .pc-more-th { grid-column: 1 / -1; justify-self: center; }
.pc-pick-side { border-left: 1px solid var(--edge); padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; }
.pc-pick-prev img { width: 100%; border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; } .pc-pick-prev p { margin: 4px 0 0; }
.pc-presets { display: flex; flex-wrap: wrap; gap: 6px; } .pc-pick-side textarea { width: 100%; resize: vertical; }
.pc-pick-ai { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .pc-pick-ai .errline { grid-column: 1 / -1; }
.pc-pick-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--edge); }
@media (max-width: 900px) { .pc-pick-body { grid-template-columns: 1fr; } .pc-pick-side { border-left: 0; border-top: 1px solid var(--edge); } }
.pc-th { display: flex; flex-direction: column; align-items: stretch; height: auto; }
.pc-th img { height: 118px !important; max-height: none !important; width: 100%; aspect-ratio: auto; flex: none; }
.pc-pick-grid { grid-auto-rows: max-content; }
.pc-pick-side textarea { min-height: 72px; padding: 8px 10px; font-size: 13.5px; }

/* table buttons: Details and Select/Write this the same size */
.pc-tb { display: inline-flex; align-items: center; justify-content: center; min-width: 76px; height: 30px; padding: 0 12px; border-radius: 8px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; border: 1px solid var(--acc); background: var(--acc); color: #fff; white-space: nowrap; }
.pc-tb.alt { background: var(--card-hi); border-color: var(--edge-hi); color: var(--ink); }
.pc-tb:hover { filter: brightness(1.08); } .pc-table td.pc-acts .pc-tb + .pc-tb { margin-left: 6px; }
.pc-table.pc-gaps th:last-child { width: 182px; } .pc-table.pc-ideas th:last-child { width: 196px; }

/* ---- Slack-style content lab: light lists, not boxed spreadsheets ---- */
.pc-wrap { margin: 6px 0 4px; max-width: 980px; overflow-x: auto; }
.msg-b table.pc-table { border-collapse: collapse; width: auto; min-width: 0 !important; max-width: 100%; table-layout: auto; font-size: 14.5px; }
.msg-b table.pc-table th { position: static; background: none; text-transform: none; letter-spacing: 0; font-size: 12.5px; font-weight: 700; color: var(--muted); text-align: left; padding: 2px 18px 6px 0; border-bottom: 1px solid var(--edge); white-space: nowrap; width: auto !important; }
.msg-b table.pc-table td { text-align: left !important; padding: 7px 18px 7px 0; border-bottom: 1px solid var(--edge); vertical-align: middle; white-space: nowrap; }
.msg-b table.pc-table tr:last-child td { border-bottom: 0; }
.msg-b table.pc-table td.pc-t { white-space: normal; min-width: 180px; max-width: 360px; } .msg-b table.pc-table td.pc-t b { font-weight: 700; }
.msg-b table.pc-table td.pc-angle { white-space: normal; min-width: 260px; max-width: 460px; color: var(--ink); }
.msg-b table.pc-table td.pc-rank { color: var(--muted); font-weight: 700; padding-right: 10px; }
.msg-b table.pc-table td.pc-acts { padding-right: 0; text-align: left !important; }
.msg-b table.pc-table tr.pc-row:hover td { background: var(--card); }
.msg-b table.pc-table tr.pc-more td { background: none; padding: 2px 18px 12px 0; white-space: normal; max-width: 760px; color: var(--ink); }
.pc-kw { color: var(--muted); }
.pc-tb { width: 84px; min-width: 84px; height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 6px; }
.pc-h { margin: 16px 0 6px; font-size: 15px; font-weight: 900; color: var(--ink-hi); text-transform: none; letter-spacing: 0; }
.pc-card .test-pill, .pc-pills ~ p .test-pill { font-size: 10.5px; }
.pc-rate { font-size: 12px; padding: 1px 7px; }
