:root { --ink:#16202A; --ink2:#5b6773; --rule:#d6dce2; --paper:#f5f7f9; --panel:#fff; --accent:#1e6a57; --soft:#dceee7; --err:#9c3a3a; }
* { box-sizing: border-box; }
body { margin:0; font: 15px/1.5 "Segoe UI", system-ui, sans-serif; color:var(--ink); background:var(--paper); }
a { color:var(--accent); text-decoration:none; } a:hover { text-decoration:underline; }
header.top { display:flex; align-items:center; gap:24px; padding:10px 24px; background:var(--panel); border-bottom:1px solid var(--rule); }
header.top .brand { display:inline-flex; align-items:center; gap:9px; font-weight:700; font-size:18px; letter-spacing:.03em; color:var(--ink); }
header.top .brand-mark { width:24px; height:24px; }
header.top nav a { margin-right:16px; }
header.top .who { margin-left:auto; color:var(--ink2); font-size:13px; }
.asof { background:#f6ebd0; color:#6b4a0c; padding:8px 24px; border-bottom:1px solid #e6d2a0; }
main { max-width:1200px; margin:0 auto; padding:24px; }
h1 { font-size:26px; margin:0 0 12px; } h2 { font-size:17px; margin:0 0 10px; } h3 { font-size:13px; text-transform:uppercase; letter-spacing:.06em; color:var(--ink2); margin:16px 0 6px; }
.muted { color:var(--ink2); } .mono { font-family: Consolas, "JetBrains Mono", monospace; font-size:.92em; }
.row { display:flex; gap:16px; align-items:flex-start; } .between { justify-content:space-between; }
.cols { display:grid; grid-template-columns:1fr 1fr; gap:16px; } @media (max-width:900px) { .cols { grid-template-columns:1fr; } }
.card { background:var(--panel); border:1px solid var(--rule); border-radius:6px; padding:16px; margin-bottom:16px; }
form.inline { display:flex; gap:10px; align-items:end; flex-wrap:wrap; }
label { display:flex; flex-direction:column; gap:4px; font-size:13px; color:var(--ink2); }
input, select { font:inherit; padding:6px 8px; border:1px solid var(--rule); border-radius:4px; min-width:220px; }
button { font:inherit; padding:7px 14px; border:1px solid var(--accent); background:var(--accent); color:#fff; border-radius:4px; cursor:pointer; }
button:hover { filter:brightness(1.1); }
.error { color:var(--err); }
table.grid { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--rule); border-radius:6px; }
table.grid th, table.grid td { text-align:left; padding:8px 10px; border-bottom:1px solid var(--rule); font-size:14px; }
table.grid th { font-size:12px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); background:#eef1f4; }
.pill { display:inline-block; font-size:11px; font-weight:600; padding:1px 8px; border-radius:99px; background:#e4e9ee; color:var(--ink2); }
.pill.s-held { background:var(--soft); color:var(--accent); } .pill.s-watchlist, .pill.s-pitched, .pill.s-working { background:#dce7f4; color:#2a5c8f; }
dl.kv { display:grid; grid-template-columns:max-content 1fr; gap:4px 16px; margin:0 0 12px; font-size:14px; align-items:baseline; } dl.kv dt { color:var(--ink2); } dl.kv dd { margin:0; }
ul.timeline { list-style:none; padding:0; margin:0; } ul.timeline li { padding:5px 0; border-bottom:1px solid var(--rule); font-size:14px; } ul.timeline li.current { background:#f2f7f5; }
.confirm { margin-top:10px; padding-top:10px; border-top:1px solid var(--rule); }
.card.narrow { max-width: 560px; margin: 40px auto; }
.people { display:flex; flex-wrap:wrap; gap:10px; margin: 12px 0 4px; }
button.person { background:var(--panel); color:var(--ink); border:1px solid var(--rule); display:flex; align-items:center; gap:10px; padding:10px 16px; }
button.person:hover { border-color:var(--accent); filter:none; }
button.person .initials { display:inline-block; background:var(--soft); color:var(--accent); font-weight:700; border-radius:99px; width:32px; height:32px; line-height:32px; text-align:center; font-size:13px; }
/* notes + suggestions */
.btn { display:inline-block; padding:7px 14px; border:1px solid var(--accent); background:var(--accent); color:#fff; border-radius:4px; }
.btn:hover { text-decoration:none; filter:brightness(1.1); } .btn.small { padding:3px 9px; font-size:12px; background:var(--panel); color:var(--accent); }
button.primary { background:#134a3d; } button.link { background:none; border:none; color:var(--accent); padding:0 6px; cursor:pointer; font-size:13px; }
.small { font-size:12.5px; }
.suggest { display:flex; flex-direction:column; gap:4px; margin-top:6px; max-width:640px; }
button.suggestion { display:flex; gap:12px; align-items:baseline; text-align:left; background:var(--panel); color:var(--ink); border:1px solid var(--rule); padding:6px 10px; }
button.suggestion:hover { border-color:var(--accent); background:#f2f7f5; filter:none; }
.stack { display:flex; flex-direction:column; gap:12px; } .stack label input, .stack label textarea, .stack label select { min-width:0; width:100%; }
textarea { font:inherit; padding:6px 8px; border:1px solid var(--rule); border-radius:4px; }
label.check { flex-direction:row; align-items:center; gap:8px; color:var(--ink); } label.check input { min-width:0; width:auto; }
.cols.wide { grid-template-columns: 2fr 1fr; }
.fields { display:grid; grid-template-columns:1fr 1fr; gap:10px 16px; } .fields label { min-width:0; }
.ok { color: var(--accent); }
.pill.t-pitch { background:#e9dff5; color:#5b3a8f; } .pill.t-onepager { background:#d8eef0; color:#176b73; } .pill.t-review { background:#f6ebd0; color:#6b4a0c; } .pill.t-meeting { background:#dce7f4; color:#2a5c8f; } .pill.t-earnings { background:var(--soft); color:var(--accent); } .pill.t-valuation { background:#fbe3d6; color:#8a4116; }
.snippet { font-size:13px; margin-top:2px; } mark { background:#fff1a8; padding:0 2px; }
article.note h1 { margin-top:8px; } article.note .lede { font-size:17px; color:var(--ink2); } article.note .body { line-height:1.6; max-width:72ch; }
article.note .body h2 { font-size:20px; margin:20px 0 6px; } article.note .body h3 { font-size:16px; text-transform:none; letter-spacing:0; color:var(--ink); margin:16px 0 4px; }
article.note .body blockquote { border-left:3px solid var(--rule); margin:0; padding:2px 12px; color:var(--ink2); }
dl.meta { background:#f2f5f7; padding:10px 12px; border-radius:4px; }
#editor { min-height:260px; background:var(--panel); } .ql-toolbar.ql-snow, .ql-container.ql-snow { border-color:var(--rule); }

.fields .span2 { grid-column: 1 / -1; } .fields .lbl { font-size:13px; color:var(--ink2); margin-bottom:4px; }
.req { font-size:11px; color:var(--err); font-weight:600; margin-left:4px; }
table.att { width:100%; border-collapse:collapse; } table.att th { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); text-align:left; padding:2px 4px; }
table.att td { padding:2px 4px; } table.att input { width:100%; min-width:0; }

.gsearch { margin-left: 24px; } .gsearch input { min-width: 320px; padding: 6px 10px; border-radius: 99px; background: var(--paper); }
button.danger { background:#fff; color:var(--err); border-color:#e0b4b4; } button.danger:hover { background:#fbeeee; filter:none; }
.callout-warn { background:#f6ebd0; color:#6b4a0c; border:1px solid #e6d2a0; padding:10px 14px; border-radius:6px; margin-bottom:12px; }
.card.highlight { border-color: var(--accent); background: #f2f7f5; }
details.extracted { margin-top:10px; } details.extracted summary { cursor:pointer; color:var(--accent); font-size:13px; }
details.extracted pre { white-space:pre-wrap; font-size:12.5px; max-height:420px; overflow:auto; background:var(--paper); padding:10px; border:1px solid var(--rule); border-radius:4px; }
ul.sub { list-style:none; padding-left:16px; margin:4px 0 0; } ul.sub li { border:none; padding:2px 0; font-size:13px; }
a.pill { text-decoration:none; }

/* tear sheet */
.tearsheet { display:grid; grid-template-columns:1fr; gap:0 24px; background:var(--panel); border:1px solid var(--rule); border-radius:8px; padding:6px 20px 14px; margin-bottom:16px; }
@media (min-width: 980px) { .tearsheet { grid-template-columns: 1.3fr 1fr; } }
.ts-field { padding:12px 0 10px; border-bottom:1px solid var(--rule); }
.ts-col .ts-field:last-child { border-bottom:none; }
.ts-field .ts-head { display:flex; justify-content:space-between; align-items:baseline; gap:12px; margin-bottom:4px; }
.ts-field h3 { margin:0; font-size:13px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); }
.ts-field .ts-meta { font-size:12.5px; color:var(--ink2); display:flex; gap:10px; align-items:center; white-space:nowrap; }
.ts-field p, .ts-field ul { margin:0; font-size:14px; line-height:1.55; } .ts-field ul { padding-left:20px; } .ts-field li { margin:2px 0; }
.ts-field .grade { font-size:26px; font-weight:600; line-height:1.2; letter-spacing:.02em; }
.ts-field p.empty { font-style:italic; }
.ts-field.stale h3 { color:#8a5a0a; } .pill.warn { background:#f6ebd0; color:#6b4a0c; }
.ts-field.editing { background:#f7f9fb; margin:0 -20px; padding:12px 20px; border-radius:6px; }
.ts-field textarea { width:100%; }
table.mgmt { border-collapse:collapse; font-size:14px; } table.mgmt td { padding:3px 10px 3px 0; vertical-align:baseline; } table.mgmt td.role { color:var(--ink2); width:70px; }
.rank .on { color:var(--accent); } .rank .off { color:var(--rule); } .rank { letter-spacing:2px; font-size:13px; } .rank.big { font-size:18px; }
.diff-body del { background:#f5dede; color:#9c3a3a; text-decoration:line-through; } .diff-body ins { background:var(--soft); color:var(--accent); text-decoration:none; }
.diff-body ul.diff-list { padding-left:20px; margin:0; } .card.hist { padding:12px 16px; }

select.lead { min-width:0; width:auto; padding:2px 6px; font-size:14px; border-color:transparent; background:transparent; cursor:pointer; }
select.lead:hover, select.lead:focus { border-color:var(--rule); background:var(--panel); }

.pill.auto { background:#eef1f4; color:var(--ink2); font-weight:500; text-transform:none; letter-spacing:0; }
form.autofill { margin: 4px 0 12px; align-items:center; } form.autofill button.small { padding:4px 10px; font-size:13px; }
.htmx-indicator { display:none; } .htmx-request .htmx-indicator, .htmx-request.htmx-indicator { display:inline; }
.autofill-report { background:#f2f7f5; border:1px solid var(--accent); border-radius:6px; padding:10px 14px; margin-bottom:12px; font-size:14px; }
.autofill-report ul { margin:6px 0; padding-left:20px; }

.checks { display:grid; grid-template-columns:repeat(auto-fill, minmax(220px, 1fr)); gap:4px 16px; max-height:180px; overflow:auto; padding:6px 8px; border:1px solid var(--rule); border-radius:4px; background:var(--panel); }
.lbl { font-size:13px; color:var(--ink2); margin-bottom:4px; }

/* status scheme */
.pill.s-portfolio_sequoia, .pill.s-portfolio_casimir, .pill.s-portfolio_both, .pill.s-portfolio_managers { background:var(--soft); color:var(--accent); }
.pill.s-in_progress { background:#dce7f4; color:#2a5c8f; } .pill.s-prospect { background:#eef1f4; color:var(--ink2); }
.pill.s-price_watch { background:#e9dff5; color:#5b3a8f; }
.body img, .ql-editor img { max-width:100%; height:auto; }
.pill.s-exited { background:#f6ebd0; color:#6b4a0c; } .pill.s-rejected { background:#f5dede; color:#9c3a3a; }

/* models + financials */
.fin-grid { display:grid; grid-template-columns:1fr; gap:16px; } @media (min-width: 1000px) { .fin-grid { grid-template-columns: 1.6fr 1fr; } }
table.fin { border-collapse:collapse; font-size:13px; white-space:nowrap; } table.fin th, table.fin td { padding:3px 8px; border-bottom:1px solid var(--rule); }
table.fin th { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); } table.fin th.est, table.fin td.est { background:#eef5f2; }
table.fin td.num, table.fin th.num { text-align:right; font-variant-numeric:tabular-nums; } table.fin tr.sub td { color:var(--ink2); font-style:italic; font-size:12px; }
.ts-val { border:1px solid var(--rule); border-radius:6px; padding:12px 14px; background:#f7f9fb; align-self:start; }
.ts-val .k { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); } .ts-val .big { font-size:28px; font-weight:600; font-variant-numeric:tabular-nums; line-height:1.1; }
.ts-val .row { display:flex; justify-content:space-between; gap:12px; font-size:13px; padding:4px 0; border-top:1px solid var(--rule); font-variant-numeric:tabular-nums; }
.ts-val .row:first-of-type { border-top:none; margin-top:6px; }
.pos { color:var(--accent); } .neg { color:var(--err); }
.pill.mv-current { background:var(--soft); color:var(--accent); } .pill.mv-candidate { background:#f6ebd0; color:#6b4a0c; } .pill.mv-superseded, .pill.mv-dismissed { background:#eef1f4; color:var(--ink2); }
.callout-warn ul { margin:4px 0 0; padding-left:20px; }

/* quote strip */
.quote { text-align:right; min-width:260px; }
.quote .q-price .big { font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; }
.quote .chg { font-size:14px; font-weight:600; margin-left:6px; }
.quote .q-mcap { font-size:14px; margin:2px 0; } .company-head .muted { font-size:14px; }
.quote .q-range { display:flex; align-items:center; gap:8px; margin:4px 0 2px; font-size:12px; font-variant-numeric:tabular-nums; }
.quote .q-range .bar { position:relative; flex:1; height:6px; background:var(--rule); border-radius:3px; min-width:120px; }
.quote .q-range .fill { position:absolute; left:0; top:0; height:6px; background:var(--soft); border-radius:3px; }
.quote .q-range .dot { position:absolute; top:-3px; width:12px; height:12px; margin-left:-6px; border-radius:50%; background:var(--accent); border:2px solid #fff; box-shadow:0 0 0 1px var(--accent); }
.ts-val .row.live { background:#eef5f2; margin:0 -14px; padding:4px 14px; }
/* the valuation box: one column per case (Base, Upside, Downside), a row each for target, IRR and MOIC */
.ts-val table.cases { width:100%; border-collapse:collapse; margin-top:6px; font-size:13px; font-variant-numeric:tabular-nums; }
.ts-val table.cases th, .ts-val table.cases td { padding:4px 6px; border-bottom:1px solid var(--rule); text-align:left; }
.ts-val table.cases th { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); font-weight:600; vertical-align:bottom; }
.ts-val table.cases th span { display:block; letter-spacing:0; text-transform:none; font-weight:400; }
.ts-val table.cases th.num, .ts-val table.cases td.num { text-align:right; }
.ts-val table.cases td.big { font-size:20px; font-weight:600; line-height:1.2; }
.ts-val table.cases tr.sub td { color:var(--ink2); font-size:12px; }
.ts-val table.cases tbody tr:last-child td { border-bottom:none; }
.ts-val table.cases + .row:first-of-type, .ts-val table.cases ~ .row { border-top:1px solid var(--rule); }

/* sortable tables */
table.sortable th.sortable-th { cursor:pointer; user-select:none; }
table.sortable th.sortable-th:hover { color:var(--ink); }
table.sortable th.sort-asc::after { content:" ▲"; font-size:9px; } table.sortable th.sort-desc::after { content:" ▼"; font-size:9px; }
table.sortable tr.filters th { padding:3px 6px; background:var(--panel); }
table.sortable tr.filters input { width:100%; min-width:0; padding:3px 6px; font-size:12px; border:1px solid var(--rule); border-radius:3px; }
/* excel-style column filter panel */
table.sortable th.sortable-th::before { content:"▾ "; color:var(--rule); font-size:10px; } table.sortable th.sortable-th.filtered::before { content:"▼ "; color:var(--accent); }
table.sortable th.sortable-th.filtered { color:var(--accent); }
.colfilter { position:absolute; z-index:50; width:230px; background:var(--panel); border:1px solid var(--rule); border-radius:6px; box-shadow:0 6px 20px rgba(22,32,42,.12); padding:6px; font-size:13px; }
.colfilter .cf-sort { display:flex; gap:4px; margin-bottom:5px; } .colfilter .cf-sort button { flex:1; background:var(--panel); color:var(--ink); border:1px solid var(--rule); padding:3px 4px; font-size:11.5px; white-space:nowrap; }
.colfilter .cf-search { width:100%; min-width:0; padding:3px 8px; margin-bottom:4px; font-size:12.5px; }
/* a filter row is a label; the global label rule stacks its children, so put the box back on the left of the text */
.colfilter .cf-item { display:flex; flex-direction:row; align-items:center; justify-content:flex-start; gap:7px; padding:2px 4px; color:var(--ink); font-size:12.5px; line-height:1.3; cursor:pointer; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.colfilter .cf-item:hover { background:var(--paper); border-radius:3px; }
.colfilter .cf-item input { min-width:0; width:14px; height:14px; margin:0; flex:none; accent-color:var(--accent); }
.colfilter .cf-all { border-bottom:1px solid var(--rule); padding-bottom:4px; margin-bottom:2px; }
.colfilter .cf-list { max-height:220px; overflow:auto; }
.colfilter .cf-actions { display:flex; justify-content:space-between; gap:6px; margin-top:6px; } .colfilter .cf-actions button { padding:3px 10px; font-size:12px; } .colfilter .cf-clear { background:var(--panel); color:var(--ink2); border:1px solid var(--rule); }

/* comp sheet */
.comp-tools { display:flex; flex-wrap:wrap; gap:8px 10px; align-items:center; }
.comp-tools form.inline { gap:6px; align-items:center; } .inline-lbl { flex-direction:row; align-items:center; gap:6px; }
button.small { padding:4px 10px; font-size:12.5px; } button.ghost { background:var(--panel); color:var(--accent); border:1px solid var(--rule); } button.ghost:hover { border-color:var(--accent); filter:none; }
.tablewrap { overflow-x:auto; }
table.comp th, table.comp td { white-space:nowrap; padding:6px 8px; font-size:13px; }
table.comp th { position:sticky; top:0; z-index:1; }
table.comp td.num, table.comp th.num { text-align:right; font-variant-numeric:tabular-nums; }
table.comp td .rank { font-size:11px; letter-spacing:1px; }
.colfilter .cf-range { display:flex; align-items:center; gap:6px; margin-bottom:6px; font-size:12px; color:var(--ink2); } .colfilter .cf-range input { min-width:0; width:80px; padding:3px 6px; font-size:12px; }
.colchooser { width:240px; } .colchooser .cf-head { display:flex; justify-content:space-between; align-items:center; margin-bottom:4px; } .colchooser .cf-group { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); margin:6px 0 2px; }
select.lead.status { font-size:12px; font-weight:600; border-radius:99px; padding:1px 6px; }
select.lead.status.s-portfolio_sequoia, select.lead.status.s-portfolio_casimir, select.lead.status.s-portfolio_both, select.lead.status.s-portfolio_managers { background:var(--soft); color:var(--accent); }
select.lead.status.s-in_progress { background:#dce7f4; color:#2a5c8f; } select.lead.status.s-prospect { background:#eef1f4; color:var(--ink2); }
select.lead.status.s-price_watch { background:#e9dff5; color:#5b3a8f; }
select.lead.status.s-exited { background:#f6ebd0; color:#6b4a0c; } select.lead.status.s-rejected { background:#f5dede; color:#9c3a3a; }
button.link.datebtn { padding:0; color:var(--ink2); font-size:inherit; text-decoration:underline dotted; } button.link.datebtn:hover { color:var(--accent); }
[hidden] { display:none !important; }
table.statusrep { table-layout:fixed; } table.statusrep td { overflow-wrap:anywhere; }
.docprev { border:1px solid var(--rule); border-radius:6px; margin:12px 0; background:var(--panel); overflow:hidden; }
.docprev-head { display:flex; gap:8px; align-items:center; padding:6px 12px; font-size:12.5px; color:var(--ink2); background:#eef1f4; border-bottom:1px solid var(--rule); }
.docprev-head span { flex:1; font-weight:600; color:var(--ink); }
.docprev iframe { display:block; width:100%; height:560px; border:0; background:#fff; }

/* meeting packets */
.packet ul.timeline li.discuss { background:#f2f7f5; }
.packet h2 { margin-top:0; } .packet .cols h3 { margin-top:10px; }
.packet h3.ng { margin:12px 0 2px; font-size:14px; } .packet h3.ng + ul.timeline { margin-left:14px; }
.pick-notes { margin-top:6px; } .pick-row { display:block; padding:3px 0; font-size:14px; } .pick-row.listed { color:var(--ink2); } .pick-row input { margin-right:6px; }
.print-only { display:none; }
@media print {
  @page { size: letter landscape; margin: 12mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  header.top, .noprint, .asof, form, button, details, .htmx-indicator { display:none !important; }
  .print-only { display:block; }
  html, body { background:#fff; }
  body { font-size:11px; color:#111; }
  main { max-width:none; padding:0; }
  h1 { font-size:20px; margin:0 0 4px; } h2 { font-size:14px; margin:0 0 6px; } h3 { font-size:11px; margin:10px 0 4px; }
  .card { border:1px solid #d0d5da; border-radius:4px; padding:8px 10px; margin:0 0 10px; box-shadow:none; break-inside:avoid; page-break-inside:avoid; }
  .card.highlight { background:#fff; }
  .row.between { display:flex; justify-content:space-between; align-items:flex-start; }
  .tablewrap { overflow:visible; }
  table { font-size:10.5px; width:100%; border-collapse:collapse; }
  table.grid th, table.grid td, table.fin th, table.fin td { padding:3px 5px; }
  table.grid th { background:#eef1f4 !important; color:#333; }
  thead { display:table-header-group; } tr { break-inside:avoid; page-break-inside:avoid; }
  a { color:inherit; text-decoration:none; }
  .pill { border:1px solid #999; padding:0 6px; font-size:9.5px; }
  .pos { color:#1e6a57; } .neg { color:#9c3a3a; }
  .mini-range .bar { border:1px solid #bbb; } .mini-range .dot { border-color:#fff; }
  ul.timeline li { padding:3px 0; } .snippet { font-size:10px; }
  .packet ul.timeline li.discuss { background:#f2f7f5; }
  .cols { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
  svg.funnel text { fill:#111; } .kpis { display:grid; grid-template-columns:repeat(5, 1fr); gap:8px; }
}

/* next steps: three cards to a row */
.ns-grid { display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:14px; margin-top:16px; align-items:start; }
@media (max-width:1000px) { .ns-grid { grid-template-columns:repeat(2, minmax(0, 1fr)); } } @media (max-width:640px) { .ns-grid { grid-template-columns:1fr; } }
.ns-grid .card { margin:0; padding:12px 14px; } .ns-grid .card h2 { font-size:15.5px; line-height:1.3; }
.ns-grid .card h2 a { overflow-wrap:anywhere; }
pre.lines { font:inherit; font-size:14px; line-height:1.5; white-space:pre-wrap; overflow-wrap:anywhere; margin:6px 0; tab-size:4; }
.ns-view pre.lines { margin:8px 0 6px; }
.ns-ver { display:block; margin-top:4px; } .ns-edit textarea { width:100%; min-width:0; }

/* file drop zones */
.dropzone { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; min-height:74px; padding:12px; border:2px dashed var(--rule); border-radius:6px; background:var(--paper); color:var(--ink2); cursor:pointer; text-align:center; font-size:13.5px; transition:border-color .15s, background .15s; }
.dropzone:hover, .dropzone.over { border-color:var(--accent); background:#f2f7f5; color:var(--ink); }
.dropzone.shake { border-color:var(--err); }
.dropzone .dz-files { color:var(--accent); font-weight:600; }
.pill.k-management { background:var(--soft); color:var(--accent); } .pill.k-investor-relations { background:#dce7f4; color:#2a5c8f; } .pill.k-sell-side { background:#f6ebd0; color:#6b4a0c; } .pill.k-expert { background:#e9dff5; color:#5b3a8f; }
table.career td, table.career th { padding:6px 8px; } .fields input { min-width:0; width:100%; }
details.bio { margin:0 0 10px; } details.bio summary { cursor:pointer; } details.bio p { line-height:1.5; max-width:80ch; }

/* reports */
.seg { display:inline-flex; border:1px solid var(--rule); border-radius:8px; overflow:hidden; background:var(--panel); }
.seg a { padding:6px 14px; font-size:13px; color:var(--ink2); border-right:1px solid var(--rule); } .seg a:last-child { border-right:none; }
.seg a:hover { background:var(--paper); text-decoration:none; } .seg a.on { background:var(--accent); color:#fff; }
.kpis { display:grid; grid-template-columns:repeat(5, 1fr); gap:12px; margin:14px 0 16px; }
@media (max-width:900px) { .kpis { grid-template-columns:repeat(2, 1fr); } }
.kpi { background:var(--panel); border:1px solid var(--rule); border-radius:8px; padding:12px 14px; }
.kpi .k { font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--ink2); } .kpi .v { font-size:28px; font-weight:600; line-height:1.15; margin:2px 0; font-variant-numeric:tabular-nums; }
.kpi .s { font-size:12px; color:var(--ink2); } .kpi.good .v { color:var(--accent); } .kpi.bad .v { color:#9c3a3a; }
.funnel-card { padding:20px 24px 14px; }
.funnel-wrap { max-width:900px; margin:0 auto; }
svg.funnel text { font:13px "Segoe UI", system-ui, sans-serif; fill:var(--ink); }
svg.funnel .cnt { font-size:22px; font-weight:700; fill:#fff; } svg.funnel .cnt.dark { fill:#16202A; }
svg.funnel .lbl { font-size:17px; font-weight:700; } svg.funnel polygon, svg.funnel rect { stroke:#fff; stroke-width:1.5; } svg.funnel .pct { font-size:13.5px; fill:var(--ink2); font-weight:400; }
svg.funnel .tick { stroke:var(--rule); stroke-width:1.5; } svg.funnel .link { fill:var(--accent); opacity:.14; } svg.funnel .sep { stroke:var(--rule); stroke-dasharray:4 4; }
svg.funnel .stage:hover polygon, svg.funnel .stage:hover rect { filter:brightness(1.12); }
details.stage-list { padding:8px 0; border-bottom:1px solid var(--rule); } details.stage-list summary { cursor:pointer; display:flex; align-items:center; gap:8px; }
details.stage-list ul.sub { margin-top:8px; } ul.cols3 { columns:3; column-gap:24px; } @media (max-width:900px) { ul.cols3 { columns:1; } }
.dot { display:inline-block; width:10px; height:10px; border-radius:50%; background:var(--accent); } .dot.d-rejected { background:#c0504d; } .dot.d-prospect { background:#4472c4; } .dot.d-in_progress { background:#5b9bd5; } .dot.d-onepager { background:#ed7d31; } .dot.d-pitch { background:#ffc000; } .dot.d-portfolio { background:#a9d18e; }
li.status-ev form.date-edit { vertical-align:middle; }
button.link.reasonbtn { padding:0; color:var(--ink); font-size:inherit; text-align:left; white-space:normal; } button.link.reasonbtn:hover { color:var(--accent); text-decoration:underline dotted; } td.reason-cell form.reason-edit { display:flex; align-items:center; }
.pill.big { font-size:14px; padding:6px 14px; letter-spacing:.01em; }
.position .big { font-size:26px; font-weight:600; font-variant-numeric:tabular-nums; margin-right:10px; }
.ts-fixed-link { padding:2px 0 8px; } .ts-fixed-link button.link { padding:0; }
button.xdel { background:none; border:none; color:#c0504d; font-size:16px; line-height:1; padding:0 4px; cursor:pointer; opacity:.55; } button.xdel:hover { opacity:1; filter:none; }
.report-cards { display:grid; grid-template-columns:repeat(auto-fill, minmax(300px, 1fr)); gap:14px; margin-top:14px; }
a.report-card { display:block; background:var(--panel); border:1px solid var(--rule); border-radius:8px; padding:16px 18px; color:var(--ink); text-decoration:none; }
a.report-card:hover { border-color:var(--accent); background:#f2f7f5; text-decoration:none; }
a.report-card .rc-title { font-size:17px; font-weight:600; color:var(--accent); margin-bottom:4px; } a.report-card .rc-desc { font-size:13.5px; color:var(--ink2); line-height:1.45; }

/* nav drop-down */
header.top nav .navmenu { position:relative; display:inline-block; margin-right:16px; }
header.top nav .navmenu > a { margin-right:0; }
header.top nav .navmenu-list { display:none; position:absolute; left:0; top:100%; z-index:60; min-width:170px; padding:6px 0; background:var(--panel); border:1px solid var(--rule); border-radius:6px; box-shadow:0 6px 20px rgba(22,32,42,.12); }
header.top nav .navmenu:hover .navmenu-list, header.top nav .navmenu:focus-within .navmenu-list { display:block; }
header.top nav .navmenu-list a { display:block; margin:0; padding:7px 14px; white-space:nowrap; }
header.top nav .navmenu-list a:hover { background:var(--paper); text-decoration:none; }

/* earnings calendar */
table.cal { width:100%; border-collapse:collapse; background:var(--panel); border:1px solid var(--rule); border-radius:6px; table-layout:fixed; }
table.cal th { font-size:11px; text-transform:uppercase; letter-spacing:.05em; color:var(--ink2); padding:6px; background:#eef1f4; border-bottom:1px solid var(--rule); }
table.cal td { vertical-align:top; height:92px; padding:4px 6px; border:1px solid var(--rule); font-size:12.5px; }
table.cal td.out { background:var(--paper); } table.cal td.out .dnum { color:#b5bdc5; }
table.cal td.past .ev { opacity:.5; } table.cal td.today { box-shadow: inset 0 0 0 2px var(--accent); }
table.cal .dnum { font-size:12px; color:var(--ink2); margin-bottom:3px; } table.cal td.today .dnum { color:var(--accent); font-weight:700; }
table.cal .ev { display:block; margin:2px 0; padding:2px 6px; border-radius:4px; font-family:Consolas, "JetBrains Mono", monospace; font-size:12px; color:#fff; text-decoration:none; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
table.cal .ev.casimir { background:#1e6a57; } table.cal .ev.sequoia { background:#2a5c8f; } table.cal .ev.both { background:linear-gradient(90deg, #1e6a57 50%, #2a5c8f 50%); } table.cal .ev:hover { filter:brightness(1.12); }
.dot.d-casimir { background:#1e6a57; } .dot.d-sequoia { background:#2a5c8f; } .dot.d-both { background:linear-gradient(90deg, #1e6a57 50%, #2a5c8f 50%); } .dot.d-other { background:#8a95a1; }
/* the agenda's two-week earnings calendar: shorter cells, grey chips for In progress names, the lead's initials on each chip */
table.cal.cal-sm td { height:64px; } table.cal .ev.other { background:#8a95a1; }
table.cal .ev .ev-lead { float:right; opacity:.8; font-size:10.5px; }
/* trading windows: a timeline, one row per name, bars placed by percentage of a four-month axis that starts today */
.tl { padding:14px 18px 10px; }
.tl-row { display:grid; grid-template-columns:72px 1fr; align-items:center; min-height:30px; }
.tl-name { font-family:Consolas, "JetBrains Mono", monospace; font-size:13px; font-weight:600; color:var(--ink); text-decoration:none; padding-right:10px; }
.tl-track { position:relative; height:26px; }
.tl-grid { position:absolute; top:0; bottom:0; border-left:1px solid var(--rule); }
.tl-today { position:absolute; top:-2px; bottom:-2px; border-left:2px solid var(--accent); z-index:2; }
.tl-bar { position:absolute; top:3px; height:20px; line-height:20px; border-radius:4px; color:#fff; font-size:12px; font-weight:600; text-align:center; text-decoration:none; overflow:hidden; white-space:nowrap; z-index:1; box-sizing:border-box; }
.tl-bar.cont-left { border-top-left-radius:0; border-bottom-left-radius:0; } .tl-bar.cont-right { border-top-right-radius:0; border-bottom-right-radius:0; }
.tl-bar:hover { filter:brightness(1.12); text-decoration:none; }
.tl-side { position:absolute; top:4px; font-size:12px; font-style:italic; color:var(--ink2); white-space:nowrap; }
.tl-axis { margin-top:4px; min-height:22px; } .tl-axis .tl-track { height:18px; border-top:1px solid var(--rule); }
.tl-tick { position:absolute; top:2px; transform:translateX(-50%); font-size:11px; color:var(--ink2); white-space:nowrap; }
.tl-tick:first-child { transform:none; } .tl-tick:last-child { transform:translateX(-100%); }
.tw-now { display:flex; flex-wrap:wrap; gap:6px; align-items:center; margin:12px 0 10px; }
.tw-now .tw-lbl { font-size:11px; letter-spacing:.06em; text-transform:uppercase; color:var(--ink2); margin-right:4px; }
.chip { display:inline-block; padding:3px 10px; border-radius:9px; font-family:Consolas, "JetBrains Mono", monospace; font-size:12.5px; color:#fff; text-decoration:none; }
.chip:hover { filter:brightness(1.12); text-decoration:none; }
.tw-now .tw-till { font-family:"Segoe UI", system-ui, sans-serif; font-size:11.5px; opacity:.85; margin-left:2px; }
.swatch { display:inline-block; width:10px; height:10px; border-radius:3px; margin-right:7px; vertical-align:baseline; }
details.tw-all summary { cursor:pointer; list-style:none; } details.tw-all summary::-webkit-details-marker { display:none; }
details.tw-all summary::before { content:"▸ "; color:var(--ink2); } details.tw-all[open] summary::before { content:"▾ "; }
a.btnlike { display:inline-block; padding:4px 10px; font-size:12.5px; border:1px solid var(--rule); border-radius:4px; background:var(--panel); color:var(--accent); text-decoration:none; } a.btnlike:hover { border-color:var(--accent); text-decoration:none; }
table.grid tfoot tr.total td { font-weight:700; border-top:2px solid var(--ink); border-bottom:none; background:var(--panel); }
.pill { white-space:nowrap; }
ul.topical { margin:0; padding-left:22px; list-style:disc; } ul.topical li { padding:4px 0; font-size:14.5px; } .pill.lead-pill { background:#eef1f4; color:var(--ink2); font-weight:500; text-transform:none; letter-spacing:0; margin-left:6px; }

.mini-range { display:inline-flex; align-items:center; gap:6px; font-size:11px; color:var(--ink2); font-variant-numeric:tabular-nums; white-space:nowrap; }
.mini-range .bar { position:relative; width:90px; height:5px; background:var(--rule); border-radius:3px; }
.mini-range .fill { position:absolute; left:0; top:0; height:5px; background:var(--soft); border-radius:3px; }
.mini-range .dot { position:absolute; top:-3px; width:11px; height:11px; margin-left:-5.5px; border-radius:50%; background:var(--accent); border:2px solid #fff; box-shadow:0 0 0 1px var(--accent); }
table.pf-snap th, table.pf-snap td { padding:5px 8px; font-size:13px; }
table.pf-snap { table-layout:fixed; } table.pf-snap td.clip { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; } table.pf-snap .mini-range .bar { width:70px; }
table.pf-snap.bench tr.total td { border-top:none; border-bottom:1px solid var(--rule); }

/* comp sheet: group headings over the columns, a rule where each group starts, italics for our-model figures */
table.compsheet { font-size:12.5px; }
table.compsheet th, table.compsheet td { padding:5px 8px; white-space:nowrap; }
table.compsheet thead tr.groups th { border-bottom:none; padding-bottom:0; background:transparent; cursor:default; }
table.compsheet thead tr.groups th.grp { text-align:center; font-weight:700; color:var(--ink); border-bottom:1px solid var(--ink); border-left:10px solid transparent; background-clip:padding-box; }
table.compsheet .gs { border-left:1px solid var(--rule); }
table.compsheet td.from-model, span.from-model { font-style:italic; color:var(--ink2); }
table.compsheet tbody tr:nth-child(even) td { background:color-mix(in srgb, var(--accent) 5%, transparent); }

/* a wide table scrolls sideways inside its own box; .wide lets the box use the whole window, not just the text column */
.table-scroll { overflow-x:auto; max-width:100%; padding-bottom:6px; }
.table-scroll.wide { width:max-content; min-width:100%; max-width:calc(100vw - 48px); position:relative; left:50%; transform:translateX(-50%); }
.table-scroll > table { margin:0; }
@media print { .table-scroll, .table-scroll.wide { overflow:visible; width:auto; max-width:none; position:static; transform:none; } }

/* comp sheet: Ticker and Name stay put while the rest scrolls sideways (opaque backgrounds so numbers pass underneath) */
table.compsheet { border-collapse:separate; border-spacing:0; }
table.compsheet .fz { position:sticky; z-index:2; background:var(--panel); }
table.compsheet .fz1 { left:0; width:76px; min-width:76px; max-width:76px; }
table.compsheet .fz2 { left:76px; box-shadow:1px 0 0 var(--rule); }
table.compsheet thead tr:not(.groups) th.fz { background:#eef1f4; }
table.compsheet tbody tr:nth-child(even) td.fz { background:color-mix(in srgb, var(--accent) 5%, var(--panel)); }
table.compsheet tfoot td.fz { background:var(--panel); }
@media print { table.compsheet .fz { position:static; } }
table.compsheet thead tr.groups th.fz { background:var(--panel); }

/* alerts: the count next to Reports, the kinds as pills, the bar on a company page */
.navbadge { display:inline-block; min-width:17px; margin-left:-8px; padding:0 5px; border-radius:99px; background:#c0504d; color:#fff !important; font-size:11px; font-weight:700; line-height:17px; text-align:center; vertical-align:top; text-decoration:none !important; }
/* alert tags are deliberately unlike the status pills: square, outlined, in their own colours */
.atag { display:inline-block; font-size:10.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; padding:1px 7px; border:1.5px solid currentColor; border-radius:3px; background:var(--panel); white-space:nowrap; }
.atag-buyable { color:#6b3fa0; }
.atag-thin { color:#c2570c; }
.atag-move, .atag-move_day, .atag-move_week { color:#374151; }
.pill.new { background:#c0504d; color:#fff; }
tr.is-new td { background:color-mix(in srgb, #c0504d 5%, transparent); }
.alertbar { margin:0 0 10px; padding:8px 12px; border:1px solid var(--rule); border-left:4px solid var(--accent); border-radius:6px; background:var(--panel); font-size:14px; }
.alertbar.alert-buyable { border-left-color:#6b3fa0; } .alertbar.alert-thin { border-left-color:#c2570c; } .alertbar.alert-move, .alertbar.alert-move_day, .alertbar.alert-move_week { border-left-color:#374151; }
@media print { .navbadge, .alertbar { display:none !important; } }
.navbadge.inmenu { margin-left:4px; vertical-align:middle; }

/* decision tracker: tiles sized to however many kinds of decision there are; decision tags are plain text labels */
.kpis.kpis-auto { grid-template-columns:repeat(auto-fit, minmax(170px, 1fr)); }
.dtag { font-weight:600; font-size:13px; white-space:nowrap; } .dtag a { color:inherit; text-decoration:underline; text-decoration-color:var(--rule); }

/* meeting requests: a plain row per request; Edit opens a form row beneath it */
table.requests th, table.requests td { padding:6px 8px; }
table.requests tr.rq-edit td { background:var(--paper); border-bottom:1px solid var(--rule); }
.pill.rq-requested { background:#eef1f4; color:var(--ink2); } .pill.rq-setting_up { background:#f6ebd0; color:#6b4a0c; } .pill.rq-scheduled { background:var(--soft); color:var(--accent); }
table#held tr.rq-past td { background:#fbf6ea; }

/* lists in a note: three levels, each with its own bullet, indented under its parent */
article.note .body ul, article.note .body ol { margin:6px 0 10px; padding-left:24px; }
article.note .body li { margin:3px 0; }
article.note .body ul { list-style:disc; } article.note .body ul ul { list-style:circle; margin:3px 0; } article.note .body ul ul ul { list-style:square; }

/* the model drop zone on a company page: the same zone as on notes, sized to sit beside the heading */
form.model-drop { margin:0; } .dropzone.compact { min-height:0; min-width:380px; padding:8px 16px; flex-direction:row; gap:10px; font-size:13px; cursor:pointer; }

/* meeting types: plain text with a coloured dot, a third look beside pills (statuses) and square tags (alerts) */
.mtype { display:inline-flex; align-items:center; gap:6px; font-size:13px; white-space:nowrap; }
.mtype i { width:9px; height:9px; border-radius:50%; background:#9aa5b1; flex:none; }
.mtype.mk-management i { background:#1e6a57; } .mtype.mk-ir i { background:#2a7fd4; } .mtype.mk-sellside i { background:#e0a100; }
.mtype.mk-buyside i { background:#7a4fc9; } .mtype.mk-expert i { background:#d9653b; } .mtype.mk-other i { background:#9aa5b1; }
