/* Airbrx brand (Signal is the source): Inter, one accent #FD6C1D, dark band #16181C, off-white surfaces. */
:root {
  --accent: #FD6C1D;
  --dark: #16181C;
  --page: #F6F4F1;
  --surface: #FBFAF8;
  --line: #E4E0DA;
  --text: #16181C;
  --muted: #6B6F76;
  --error: #B42318;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: Inter, system-ui, sans-serif; background: var(--page); color: var(--text); font-size: 15px; line-height: 1.5; }
a { color: var(--accent); }

.band { background: var(--dark); color: #fff; display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; }
.brand { color: #fff; text-decoration: none; font-weight: 700; font-size: 18px; }
.brand span { color: var(--accent); }
#account { display: flex; align-items: center; gap: 16px; }
#account .muted { color: #B9BCC2; }

main { max-width: 1100px; margin: 24px auto; padding: 0 24px; display: grid; gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px 24px; }
.card h1, .card h2 { margin: 0 0 8px; }
.card h2 { font-size: 18px; }
.signin { max-width: 420px; margin: 60px auto; text-align: center; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }

button { font: inherit; cursor: pointer; }
button.primary { background: var(--accent); color: #fff; border: 0; border-radius: 8px; padding: 10px 20px; font-weight: 600; }
button.primary:disabled { opacity: 0.6; cursor: default; }
button.link { background: none; border: 0; color: #fff; text-decoration: underline; padding: 0; }
input[type=search] { font: inherit; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; min-width: 280px; background: #fff; }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }

.access { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 12px 0 0; }
.access dt { font-weight: 600; }
.access dd { margin: 0; }
.pill { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; border: 1px solid var(--line); background: #fff; }
.pill.grant { border-color: var(--accent); color: var(--accent); }
.pill.warn { border-color: var(--accent); background: var(--accent); color: #fff; }

.card.warn { border-color: var(--accent); border-left-width: 4px; }
.overlaps { margin: 8px 0 0; padding-left: 18px; }
.overlaps > li { margin-bottom: 10px; }
.overlaps ul { margin: 4px 0 0; padding-left: 18px; color: var(--text); }

.muted { color: var(--muted); }
.small { font-size: 13px; }
.error { color: var(--error); }

/* ---- shell: nav, admin mode ---- */
.band { border-bottom: 3px solid var(--dark); }
.band-left { display: flex; align-items: center; gap: 28px; }
#nav { display: flex; gap: 18px; }
#nav a, #account a.who { color: #D9DBDF; text-decoration: none; }
#nav a:hover, #account a.who:hover { color: #fff; }
#nav a.active { color: #fff; font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); padding-bottom: 2px; }
.admin-flag { display: none; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--dark); background: var(--accent); border-radius: 999px; padding: 2px 10px; }
body.admin-mode .band { border-bottom-color: var(--accent); }
body.admin-mode .admin-flag { display: inline-block; }

/* ---- dashboard ---- */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.dash-head h1 { margin: 0; font-size: 26px; letter-spacing: -0.01em; }
.dash-head p { margin: 2px 0 0; }
.mode { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.mode a { padding: 5px 16px; border-radius: 999px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.mode a.on { background: var(--dark); color: #fff; }
body.admin-mode .mode a.on { background: var(--accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.tile.warn { border-color: var(--accent); }
.tile-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 600; }
.tile-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; margin-top: 2px; }
.tile-value small { font-size: 15px; font-weight: 500; color: var(--muted); }
.tile.warn .tile-value { color: var(--accent); }
.tile-note { font-size: 13px; color: var(--muted); }

.cols { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 20px; align-items: start; }
.col { display: grid; gap: 20px; }
@media (max-width: 860px) { .cols { grid-template-columns: 1fr; } .dash-head { flex-direction: column; align-items: flex-start; } }

.list { list-style: none; margin: 8px 0 0; padding: 0; }
.list > li { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.list > li:first-child { border-top: 0; }
.list a, .overlaps a { color: inherit; text-decoration: none; }
.list a:hover { color: var(--accent); }
.amount { font-weight: 600; white-space: nowrap; }
.activity > li { justify-content: flex-start; }
.activity .when { min-width: 52px; padding-top: 2px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

details > summary { cursor: pointer; list-style: none; }
details > summary::-webkit-details-marker { display: none; }
details.attention { border-top: 1px solid var(--line); padding: 10px 0 2px; }
details.attention > summary::before { content: '▸'; display: inline-block; width: 16px; color: var(--muted); }
details.attention[open] > summary::before { content: '▾'; }
details.attention .list { margin-left: 16px; }
#overlaps summary.row { margin-bottom: 0; }
#overlaps summary h2 { margin: 0; }
#overlaps details[open] summary.row { margin-bottom: 8px; }


td.num, th.num { text-align: right; }

/* ---- admin: tabs, people ---- */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-top: -6px; }
.tabs a { color: var(--muted); text-decoration: none; font-weight: 600; padding: 6px 0 10px; }
.tabs a.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.tile-label a { color: inherit; }

select, .addperson input, .override input { font: inherit; padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.toolbar .filters { display: flex; flex-wrap: wrap; gap: 10px; }
.toolbar input[type=search] { min-width: 240px; }
.small-btn { font-size: 13px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--text); }
.small-btn:hover { border-color: var(--text); }
.small-btn.danger { color: var(--error); }
.small-btn.danger:hover { border-color: var(--error); }

table.people td { vertical-align: middle; }
table.people tr.open > td { border-bottom-color: transparent; background: #fff; }
.pill.role { padding-right: 4px; background: var(--page); }
.pill.deny { border-color: var(--error); color: var(--error); }
.pill .x { border: 0; background: none; color: var(--muted); padding: 0 4px; font-size: 14px; line-height: 1; }
.pill .x:hover { color: var(--error); }
select.addrole { font-size: 13px; padding: 2px 6px; margin-left: 4px; color: var(--muted); }
tr.detail-row > td { background: #fff; padding: 4px 16px 18px; }
.detail h3 { font-size: 14px; margin: 8px 0 6px; }
.detail-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
@media (max-width: 860px) { .detail-cols { grid-template-columns: 1fr; } }
form.override, form.addperson { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
form.addperson { padding: 14px; margin: 0 0 14px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
form.addperson p { flex-basis: 100%; margin: 0; }

/* ---- deals: heat, flags, filters, who's working what ---- */
.heat { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: middle; margin-right: 4px; }
.heat.hot { background: var(--accent); }
.heat.warm { background: #FDB48A; }
.heat.cold { background: #C9CCD1; }
td.heatcell { width: 18px; padding-right: 0; }
.pill.nudge { border-color: #FDB48A; background: #FFF1E8; color: #A3460F; }
.pill.help { border-color: var(--error); background: #FDECEA; color: var(--error); }
.pill.faint { color: var(--muted); }

.deal-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { border: 0; background: none; padding: 5px 10px; font-size: 13px; color: var(--muted); border-left: 1px solid var(--line); }
.seg button:first-child { border-left: 0; }
.seg button.on { background: var(--dark); color: #fff; }
.deal-filters select { font-size: 13px; padding: 5px 8px; }
.link-btn { border: 0; background: none; color: var(--accent); font-size: 13px; padding: 0 4px; }
.legend { margin: 4px 0 8px; }
table.deals td { padding: 7px 8px; }
table.deals td:nth-child(3) { width: 110px; }
table.deals td:nth-child(4) { width: 80px; }
table.deals td:nth-child(5) { width: 96px; }
details.more > summary { color: var(--accent); padding: 8px 0; }

table.working th, table.working td { padding: 6px 6px; }
.countbtn { border: 0; background: none; padding: 1px 6px; border-radius: 6px; font-weight: 600; color: var(--text); }
.countbtn:hover { background: var(--page); color: var(--accent); }
.countbtn.nudge { color: #A3460F; }
.countbtn.help { color: var(--error); }

.list.talking .grow { flex: 1; min-width: 0; display: grid; gap: 2px; }
.list.talking .meta { text-align: right; white-space: nowrap; min-width: 90px; }
.deal { display: inline-block; margin-right: 8px; }
.note { color: var(--text); }

/* ---- company page ---- */
a.co { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
a.co:hover { color: var(--accent); border-bottom-color: var(--accent); }
.crumb { margin: 0 0 -8px; }
.crumb a { color: var(--muted); text-decoration: none; }
.crumb a:hover { color: var(--accent); }
.dash-head h1 .pill { font-size: 13px; vertical-align: middle; font-weight: 500; letter-spacing: 0; }
.list.timeline > li { justify-content: flex-start; }
.list.timeline .when { min-width: 56px; }
.list .grow { flex: 1; min-width: 0; display: grid; gap: 3px; }
.expandable { cursor: pointer; white-space: pre-line; }
.clamp.expandable { -webkit-line-clamp: 4; }

/* ---- tiles that go somewhere ---- */
.tile.go { cursor: pointer; transition: border-color 0.12s, box-shadow 0.12s; }
.tile.go:hover, .tile.go:focus-visible { border-color: var(--accent); box-shadow: 0 2px 10px rgba(22, 24, 28, 0.06); outline: none; }
.tile-pick { cursor: pointer; border-bottom: 1px dotted var(--muted); }
.tile-pick:hover, .tile-pick:focus-visible { color: var(--accent); border-bottom-color: var(--accent); outline: none; }

/* ---- record pages (docs/record-pages.md) ---- */
main:has(.record) { max-width: 1440px; }
.record { display: grid; grid-template-columns: 320px minmax(0, 1fr) 320px; gap: 20px; align-items: start; }
@media (max-width: 1180px) { .record { grid-template-columns: 300px minmax(0, 1fr); } .rec-right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); } }
@media (max-width: 760px) { .record { grid-template-columns: 1fr; } }
.rec-left, .rec-right { display: grid; gap: 16px; align-content: start; }
.rec-left { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 18px; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto; }
.rec-head { display: flex; gap: 12px; align-items: flex-start; }
.rec-head h1 { font-size: 20px; margin: 0 0 2px; line-height: 1.25; }
.rec-head > div:last-child { display: grid; gap: 4px; min-width: 0; }
.avatar { flex: none; width: 44px; height: 44px; border-radius: 10px; background: var(--dark); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 18px; }
.avatar.person { border-radius: 50%; background: var(--accent); font-size: 15px; }
.avatar.deal { background: #2F6B4F; }
.rec-actions { display: flex; gap: 8px; justify-content: space-between; }
.action { flex: 1; display: grid; justify-items: center; gap: 4px; border: 0; background: none; font-size: 12px; color: var(--muted); padding: 0; }
.action span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; font-weight: 700; color: var(--text); }
.action:hover span { border-color: var(--accent); color: var(--accent); }
.highlights { display: grid; gap: 6px; margin: 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.highlights div { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.highlights dt { color: var(--muted); }
.highlights dd { margin: 0; text-align: right; }

.props h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 0 0 6px; }
.props dl { margin: 0; display: grid; gap: 2px; }
.prop { padding: 5px 8px; margin: 0 -8px; border-radius: 6px; }
.prop dt { font-size: 12px; color: var(--muted); }
.prop dd { margin: 0; font-size: 14px; overflow-wrap: anywhere; white-space: pre-line; }
.prop.editable { cursor: pointer; }
.prop.editable:hover, .prop.editable:focus-visible { background: #fff; box-shadow: inset 0 0 0 1px var(--line); outline: none; }
.prop.editing { background: #fff; box-shadow: inset 0 0 0 1px var(--accent); cursor: default; }
.prop.editing input, .prop.editing select, .prop.editing textarea { width: 100%; font: inherit; font-size: 14px; padding: 5px 8px; border: 1px solid var(--line); border-radius: 6px; margin-top: 2px; }

.composer { display: grid; gap: 8px; padding-bottom: 14px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.composer textarea, .tl-edit textarea, .addform input, .addform select { font: inherit; width: 100%; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.composer-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.composer-row select, .composer-row input[type=date] { font: inherit; font-size: 13px; padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.composer-row .primary { margin-left: auto; padding: 7px 16px; }
.tl-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.tl-bar input[type=search] { min-width: 180px; padding: 5px 10px; font-size: 13px; }
.tl-month { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 16px 0 4px; }
.tl { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.tl-month + .tl { border-top: 0; }
.tl-icon { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--page); color: var(--muted); border: 1px solid var(--line); }
.tl-icon.email { background: #EAF1FB; color: #2B5EA7; border-color: #CFDDF2; }
.tl-icon.call { background: #EAF6EF; color: #2F6B4F; border-color: #CDE7D7; }
.tl-icon.meeting { background: #FFF1E8; color: #A3460F; border-color: #FBD5BC; }
.tl.change .tl-icon { width: 22px; height: 22px; margin: 0 3px; font-size: 11px; }
.tl.change { padding: 6px 0; }
.tl.change em { font-style: normal; font-weight: 600; }
.tl .note { margin-top: 4px; }
.tl-actions { float: right; visibility: hidden; }
.tl:hover .tl-actions { visibility: visible; }
.link-btn.danger { color: var(--error); }
.tl-edit { display: grid; gap: 8px; margin-top: 8px; }

.assoc h2 { font-size: 15px; }
.addform { display: grid; gap: 8px; margin-bottom: 10px; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.claim-actions { margin-top: 4px; }
.pill.warn a, a.pill { color: inherit; text-decoration: none; }

.pipeline { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.pipeline ol { display: flex; flex: 1; margin: 0; padding: 0; list-style: none; min-width: 300px; }
.pipeline li { flex: 1; }
.pipeline li > * { display: block; width: 100%; text-align: center; padding: 7px 6px; font-size: 13px; font-weight: 600; color: var(--muted); background: var(--page); border: 0; border-right: 2px solid var(--surface); }
.pipeline li:first-child > * { border-radius: 6px 0 0 6px; }
.pipeline li:last-child > * { border-radius: 0 6px 6px 0; border-right: 0; }
.pipeline li.past > * { background: #FDD9C3; color: #A3460F; }
.pipeline li.now > * { background: var(--accent); color: #fff; }
.pipeline button:hover { box-shadow: inset 0 0 0 2px var(--accent); }
.pipeline.closed li > * { opacity: 0.55; }
.pipeline p { flex-basis: 100%; margin: 0; }
.small-btn.won { border-color: #2F6B4F; color: #2F6B4F; }

/* hidden means hidden, whatever display a class sets */
[hidden] { display: none !important; }
/* collapsible association cards */
.assoc h2.fold { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.assoc .chev { font-size: 11px; color: var(--muted); transition: transform 0.15s; }
.assoc.collapsed .chev { transform: rotate(-90deg); }
.assoc.collapsed .assoc-body, .assoc.collapsed .addform { display: none !important; }

/* ---- next steps and the pipeline ---- */
:root { --st-good: #0ca30c; --st-warning: #fab219; --st-critical: #d03b3b; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 2px 10px; font-size: 12px; cursor: pointer; }
.chip:hover { border-color: var(--accent); }

.next { margin-top: 2px; color: var(--muted); }
.next span[aria-hidden] { display: inline-block; width: 14px; height: 14px; line-height: 14px; text-align: center; border-radius: 50%; font-size: 10px; font-weight: 700; color: #fff; margin-right: 2px; }
.next.booked span[aria-hidden] { background: var(--st-good); }
.next.overdue span[aria-hidden] { background: var(--st-critical); }
.next.none span[aria-hidden] { background: var(--st-warning); color: #16181C; }
.next.overdue { color: var(--st-critical); }

#pipeline .row select { font: inherit; font-size: 13px; padding: 4px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.pl-legend { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 4px 0 10px; }
.pl-legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.sw.booked, .pl-seg.booked { background: var(--st-good); }
.sw.overdue, .pl-seg.overdue { background: var(--st-critical); }
.sw.none, .pl-seg.none { background: var(--st-warning); }
#pipeline-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 8px 32px; }
.pl-group h3 { font-size: 13px; margin: 6px 0 4px; }
.pl-row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 8px; min-height: 26px; border-radius: 6px; }
.pl-row.on { background: var(--page); }
.pl-stage { border: 0; background: none; text-align: right; font-size: 13px; color: var(--text); padding: 2px 0; cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-stage:hover { color: var(--accent); }
.pl-track { display: flex; align-items: center; gap: 2px; min-width: 0; }
.pl-seg { height: 16px; min-width: 6px; border: 0; padding: 0; cursor: pointer; border-radius: 0; flex: none; }
.pl-seg:last-of-type { border-radius: 0 4px 4px 0; }
.pl-seg:hover { filter: brightness(1.12); outline: 2px solid var(--surface); box-shadow: 0 0 0 3px var(--text); }
.pl-n { font-size: 12px; font-weight: 600; margin-left: 6px; font-variant-numeric: tabular-nums; }

.tasks li.task { display: flex; align-items: flex-start; gap: 10px; }
.tasks li.task input[type=checkbox] { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--st-good); cursor: pointer; }
.task-group { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 12px 0 2px; }
.task-group.late { color: var(--st-critical); }
.next-steps.warn .nonext { margin: 4px 0 0; }
.tl-icon.task { background: #EAF6EF; color: #2F6B4F; border-color: #CDE7D7; }
.nonext ul { margin: 6px 0 0; padding-left: 18px; }
.nonext li { margin: 2px 0; }

/* ---- HubSpot-style record pages: tabs, data highlights, preview panel ---- */
.rec-kind { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.deal-facts { display: grid; gap: 2px; margin: 6px 0 0; }
.deal-facts div { display: flex; gap: 6px; }
.deal-facts dt { color: var(--muted); min-width: 72px; }
.deal-facts dd { margin: 0; font-weight: 600; }

.rec-mid { display: grid; gap: 16px; align-content: start; min-width: 0; }
.rec-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.rec-tabs button { border: 0; background: none; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; cursor: pointer; }
.rec-tabs button:hover { color: var(--text); }
.rec-tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.rec-pane { display: grid; gap: 16px; align-content: start; }
.rec-pane[hidden] { display: none; }
.rec-pane > .pipeline { margin: 0; }

.card.hl h2 { font-size: 15px; margin-bottom: 10px; }
.hl-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; }
.hl-grid div { border-left: 3px solid var(--line); padding: 2px 0 2px 12px; }
.hl-grid dt { font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.hl-grid dd { margin: 0; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.hl-grid dd .small { font-weight: 400; }

.act-bar { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 12px; margin-bottom: 10px; border-bottom: 1px solid var(--line); }
.composer[hidden] { display: none !important; }
.seg.scope { margin-bottom: 8px; }

.props .fold-h { cursor: pointer; user-select: none; display: flex; align-items: center; gap: 6px; }
.props .chev { font-size: 10px; transition: transform 0.15s; }
.props.collapsed .chev { transform: rotate(-90deg); }
.props.collapsed dl { display: none; }
.props { border-top: 1px solid var(--line); padding-top: 12px; }

#preview-shade { position: fixed; inset: 0; background: rgba(22, 24, 28, 0.25); z-index: 40; }
.preview { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); background: #fff; z-index: 41; overflow: auto; padding: 20px 22px 32px; box-shadow: -8px 0 24px rgba(22, 24, 28, 0.12); display: grid; gap: 12px; align-content: start; }
.preview[hidden], #preview-shade[hidden] { display: none; }
.pv-head { display: flex; gap: 12px; align-items: flex-start; position: relative; padding-right: 28px; }
.pv-head h2 { margin: 0 0 2px; font-size: 20px; }
.pv-x { position: absolute; right: 0; top: -4px; font-size: 22px; line-height: 1; }
.pv-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.pv-actions a { text-decoration: none; }
.small-btn.primary-btn { background: var(--accent); border-color: var(--accent); color: #fff; }
.preview h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 8px 0 0; }
.pv-facts { display: grid; gap: 6px; margin: 0; }
.pv-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 8px; font-size: 14px; }
.pv-facts dt { color: var(--muted); }
.pv-facts dd { margin: 0; overflow-wrap: anywhere; }

/* ---- Create deal panel (web/newdeal.js) ---- */
.shade { position: fixed; inset: 0; background: rgba(22, 24, 28, 0.25); z-index: 40; }
.shade[hidden] { display: none; }
.preview.wide { width: min(560px, 100vw); }
.dash-head { display: flex; align-items: flex-start; gap: 16px; }
.dash-head > div:first-child { flex: 1; }
.dash-actions { display: flex; gap: 8px; align-items: center; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.nd { display: grid; gap: 10px; }
.nd h3 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.nd h3:first-child { border-top: 0; padding-top: 0; margin-top: 4px; }
.nd label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
.nd input, .nd select { font: inherit; font-size: 14px; color: var(--text); padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%; }
.nd input:focus, .nd select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.nd-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.nd-row[hidden] { display: none; }
.nd .req { font-size: 11px; text-transform: none; letter-spacing: 0; color: var(--accent); font-weight: 600; }
.nd-hits { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.nd-hits button { width: 100%; text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 8px 10px; cursor: pointer; font: inherit; }
.nd-hits button:hover { border-color: var(--accent); }
.nd-new { display: grid; gap: 8px; }
.nd-picked { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid var(--accent); border-radius: 8px; background: #FFF6F0; }
.nd-picked .link-btn { margin-left: auto; }
.nd-foot { display: flex; justify-content: flex-end; gap: 10px; align-items: center; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); position: sticky; bottom: -32px; background: #fff; padding-bottom: 8px; }
