/* Pipeline board, same "Kamsa at blue hour" system as the side panel. */
:root {
  --canvas: #15161E; --lane: #191A23; --card: #1F212B; --control: #292C38; --hover: #323646; --line: rgba(255, 255, 255, 0.06);
  --ivory: #EEF0F6; --haze: #A7ACBD; --dim: #6F7487; --ice: #CFDCFF; --on-ice: #15161E;
  --ok: #7FE0B5; --warn: #F5C77E; --bad: #FF9F8F;
  --display: "Space Grotesk", ui-sans-serif, -apple-system, BlinkMacSystemFont, sans-serif;
  --text: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--canvas); color: var(--ivory); font: 400 13px/1.45 var(--text); }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible, .card:focus-visible { outline: 2px solid var(--ice); outline-offset: 2px; }
button:disabled { cursor: default; }
.acts button:disabled, .frow button:disabled, .pro-card .btn:disabled { opacity: .55; }
[hidden] { display: none !important; }

/* The header: brand, then the view tools (search, channel, Filter, Fields, teammate), then the actions. At medium widths the
   actions move to a second row as one group, right-aligned, instead of one button wrapping on its own. */
.top { display: flex; align-items: center; justify-content: flex-end; gap: 10px 14px; padding: 18px 28px 6px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 8px; margin-right: auto; }
.top .tools, .top .actions { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.top .tools { flex: 1 1 auto; }
.brand .mark { width: 18px; height: 18px; }
.brand span { font: 500 15px var(--display); letter-spacing: -0.04em; }
#search { background: var(--card); border: 0; border-radius: 999px; padding: 8px 14px; flex: 1 1 170px; min-width: 140px; max-width: 280px; width: 170px; color: var(--ivory); font: inherit; }
#search::placeholder { color: var(--dim); }
.seg { display: flex; background: var(--card); border-radius: 999px; padding: 3px; }
.seg button { padding: 5px 12px; border-radius: 999px; color: var(--haze); font-size: 12.5px; }
.seg button:hover { color: var(--ivory); }
.seg button.on { background: var(--control); color: var(--ivory); }
.due { border-radius: 999px; padding: 7px 14px; font-size: 12.5px; background: var(--card); color: var(--haze); white-space: nowrap; }
.due:hover { background: var(--control); color: var(--ivory); }
.due.has { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.due[aria-pressed="true"] { background: var(--warn); color: var(--on-ice); }

.head { padding: 18px 28px; display: flex; align-items: baseline; gap: 10px 18px; flex-wrap: wrap; }
.head h1 { font: 500 24px var(--display); letter-spacing: -0.015em; margin: 0; }
.head p { margin: 0; color: var(--haze); font-size: 14px; }
.head p b { color: var(--ivory); font-weight: 500; }

/* One row of lanes however many there are (the Engaged lane makes nine), scrolling sideways when they don't fit. */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(185px, 1fr); gap: 14px; padding: 0 28px 32px; align-items: start; overflow-x: auto; }
.lane { background: var(--lane); border-radius: 14px; padding: 10px; min-height: 70vh; transition: box-shadow .12s; }
.lane.over { box-shadow: 0 0 0 1.5px var(--ice) inset; }
.lane.won { background: color-mix(in srgb, var(--ice) 5%, var(--lane)); }
.lh { display: flex; align-items: center; gap: 8px; padding: 4px 4px 2px; }
.lh .sw { width: 8px; height: 8px; border-radius: 50%; background: var(--s); }
.lh .sw.ring { box-shadow: inset 0 0 0 1.5px var(--haze); }
.lnk { color: var(--ice); font-size: 11.5px; padding: 0; text-decoration: underline; text-underline-offset: 3px; }
.lnk:hover { color: var(--ivory); }
.imp-open { border-radius: 999px; padding: 7px 14px; font-size: 12.5px; background: var(--ice); color: var(--on-ice); font-weight: 500; white-space: nowrap; }
.imp-open:hover { background: color-mix(in srgb, var(--ice) 85%, white); }
.dlg { border: 0; padding: 0; background: transparent; width: min(560px, calc(100vw - 32px)); color: var(--ivory); }
.dlg::backdrop { background: rgba(8, 9, 13, .7); }
.lh b { font-weight: 500; }
.lh .n { margin-left: auto; color: var(--haze); font-size: 12px; background: var(--card); border-radius: 999px; padding: 1px 8px; }
.lane > small { display: block; color: var(--dim); font-size: 11.5px; margin: 2px 4px 10px; }

.card { background: var(--card); border-radius: 12px; padding: 11px 12px; margin-bottom: 8px; cursor: grab; }
.card:hover { background: #242632; }
.card.dragging { opacity: .45; }
.card.open { box-shadow: 0 0 0 1px color-mix(in srgb, var(--ice) 55%, transparent); cursor: default; }
/* The open card shows the whole name and role, however long. */
.card.open .nm .nmt, .card.open > .co { white-space: normal; overflow-wrap: anywhere; }
.card .nm { font-weight: 500; font-size: 13.5px; display: flex; align-items: center; gap: 6px; min-width: 0; }
.card .nm .nmt { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .nm .when { margin-left: auto; font-weight: 400; font-size: 11.5px; color: var(--dim); flex: none; }
.ch { font: 600 9.5px var(--text); color: var(--haze); background: var(--control); border-radius: 4px; padding: 0 4px; flex: none; }
.card .co { color: var(--haze); font-size: 12px; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .en { color: var(--ice, var(--haze)); font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.card .en.none { color: var(--dim); }
:is(.card, .drawer) .facts { margin-top: 8px; font-size: 12px; color: var(--haze); display: grid; gap: 3px; }
:is(.card, .drawer) .facts b { color: var(--ivory); font-weight: 600; }
:is(.card, .drawer) .facts a { color: var(--dim); text-decoration: underline; text-underline-offset: 2px; }
.card .ft { display: flex; align-items: center; gap: 6px; margin-top: 8px; font-size: 11.5px; color: var(--dim); }
.card .ft .pn { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .ft .cnt { margin-left: auto; flex: none; }
.card .ft i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); flex: none; }
.badge { display: inline-block; margin-top: 8px; font-size: 11px; border-radius: 999px; padding: 2px 9px; }
.badge.due { color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.badge.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); }
.badge.cal { color: var(--on-ice); background: var(--ice); }
.badge.moved { color: var(--haze); background: var(--control); }
.quote { margin-top: 9px; padding: 8px 10px; border-radius: 8px; background: var(--canvas); color: #C9CCD8; font-size: 12px; white-space: pre-wrap; max-height: 220px; overflow: auto; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.acts button, .acts a { font-size: 11.5px; padding: 5px 11px; border-radius: 999px; background: var(--control); color: var(--ivory); text-decoration: none; }
.acts .main { background: var(--ice); color: var(--on-ice); }
.acts button:hover { background: var(--hover); }
.acts .main:hover { background: color-mix(in srgb, var(--ice) 85%, white); }
.acts button:disabled:hover { background: var(--control); }
.acts .main:disabled:hover { background: var(--ice); }
.next { margin-top: 8px; font-size: 11.5px; color: var(--dim); }
button.drop { width: 100%; cursor: pointer; font: inherit; font-size: 12px; }
button.drop:hover { color: var(--ivory); border-color: color-mix(in srgb, var(--ice) 45%, transparent); }
.drop { border: 1.5px dashed rgba(255, 255, 255, .12); border-radius: 12px; height: 56px; display: grid; place-items: center; color: var(--dim); font-size: 12px; text-align: center; padding: 0 8px; }
/* Above the lanes, so it shows without scrolling past them. */
.emptyb { margin: -6px 28px 14px; color: var(--haze); font-size: 13px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 20px; background: var(--ivory); color: var(--on-ice); padding: 10px 16px; border-radius: 12px; font-size: 12.5px; z-index: 60; max-width: min(560px, calc(100vw - 32px)); text-align: center; }
.nomatch { margin: -6px 28px 14px; color: var(--haze); font-size: 13px; }
.nomatch .lnk { font-size: 13px; }
@media (max-width: 1300px) { .board { grid-auto-columns: 230px; } }
@media (max-width: 640px) { .top, .head { padding-left: 16px; padding-right: 16px; } .board { padding: 0 16px 24px; } .nomatch, .emptyb { margin-left: 16px; margin-right: 16px; } }
/* Store build: the Pro sheet (also on the board) */
.pro-sheet { box-sizing: border-box; position: fixed; inset: 0; background: rgba(10, 11, 16, .72); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.pro-card { box-sizing: border-box; position: relative; background: var(--card); color: var(--ivory); border-radius: 14px; padding: 18px 18px 14px; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; }
.pro-card h2 { margin: 0 28px 6px 0; font-size: 16px; font-weight: 600; }
.pro-card ul { margin: 10px 0 14px; padding-left: 18px; color: var(--haze); font-size: 12.5px; line-height: 1.55; }
.pro-price { margin: 0; color: var(--haze); font-size: 12.5px; }
.pro-btns { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pro-small { margin: 12px 0 0; color: var(--haze); font-size: 11.5px; }
.pro-close { position: absolute; top: 10px; right: 12px; color: var(--haze); font-size: 18px; background: none; border: 0; cursor: pointer; }
.pro-tag { margin-left: 6px; font-size: 10px; padding: 1px 6px; border-radius: 6px; background: var(--control); color: var(--haze); vertical-align: middle; }
.pro-card .btn { border: 0; border-radius: 9px; padding: 8px 14px; font: 500 13px var(--text); background: var(--control); color: var(--ivory); cursor: pointer; }
.pro-card .btn.main { background: var(--ice); color: var(--on-ice); }
.pro-card .textbtn { background: none; border: 0; color: var(--haze); font-size: 12px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* Team board (the web app): the owner on each card, the teammate filter, team totals */
.card .ownline { margin: 5px 0 2px; display: flex; flex-wrap: wrap; gap: 4px; min-width: 0; }
.card .own { display: inline-block; max-width: 100%; vertical-align: bottom; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 10.5px; padding: 1px 7px; border-radius: 6px; background: var(--control); color: var(--haze); }
#memberSel { font: 500 12.5px var(--text); background: var(--card); color: var(--ivory); border: 0; border-radius: 9px; padding: 7px 10px; }
#summary .by { color: var(--haze); font-weight: 400; }

/* Engaged with your content: the lane before To do. Its cards aren't dragged; the hook and fit wrap to two lines. */
.lane.engaged .card { cursor: default; }
.lane.engaged .card .acts { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lane.engaged .hook, .lane.engaged .fit { font-size: 11.5px; line-height: 1.4; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.lane.engaged .hook { color: var(--ivory); }
.lane.engaged .fit { color: var(--dim); margin-top: 4px; }

/* Custom fields, filters and saved views */
.views { display: flex; gap: 6px; flex-wrap: wrap; }
.views:empty { display: none; }
.views .vt { display: inline-flex; align-items: center; border-radius: 9px; background: var(--card); color: var(--haze); font-size: 12.5px; }
.views .vt > button { background: none; border: 0; color: inherit; font: inherit; padding: 6px 10px; cursor: pointer; border-radius: 9px; }
.views > button.vt { border: 0; font: inherit; padding: 6px 10px; cursor: pointer; }
.views .vt:hover { color: var(--ivory); }
.views .vt.on { background: var(--control); color: var(--ivory); }
.views .vt .x { padding: 6px 8px 6px 2px; color: var(--dim); }
.views .vt .x:hover { color: var(--ivory); }
.views .vt .x.armed { color: var(--bad); font-size: 11.5px; }
/* Filter chips always start their own row under the heading. */
.chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; flex-basis: 100%; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--control); color: var(--ivory); border-radius: 9px; padding: 4px 6px 4px 10px; font-size: 12.5px; }
.chip button { background: none; border: 0; color: var(--haze); cursor: pointer; font-size: 14px; }
.chip button:hover { color: var(--ivory); }
.chips .lnk { margin-left: 4px; font-size: 12px; }
.saveview { margin-left: 6px; }
.saveview input[type=text] { width: 240px; max-width: 100%; }
/* The Filter panel takes its own row (the right margin fills the rest of it) and is at most 720px wide. */
.fpanel { flex: 0 0 auto; width: min(720px, 100%); margin-right: max(0px, calc(100% - 720px)); background: var(--card); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; }
.frow { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.frow b { font-size: 12.5px; color: var(--haze); font-weight: 500; min-width: 110px; }
.frow input, .fedit input, .fields input, .fields select, .fedit select, .frow select { font: 13px var(--text); background: var(--canvas); color: var(--ivory); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.frow input::placeholder, .fedit input::placeholder { color: var(--dim); }
.frow button, .fedit button { font: 500 12.5px var(--text); background: var(--control); color: var(--ivory); border: 0; border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.frow button:hover, .fedit button:hover { background: var(--hover); }
.frow button.main { background: var(--ice); color: var(--on-ice); }
.frow button.main:hover { background: color-mix(in srgb, var(--ice) 85%, white); }
.opt.on { background: var(--ice) !important; color: var(--on-ice) !important; }
:is(.card, .drawer) .fields { display: grid; gap: 4px; margin: 10px 0 8px; padding-top: 8px; border-top: 1px solid var(--line); }
:is(.card, .drawer) .fields label { display: grid; grid-template-columns: 84px minmax(0, 1fr); align-items: center; gap: 2px 8px; font-size: 11.5px; color: var(--haze); }
:is(.card, .drawer) .fields label > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
:is(.card, .drawer) .fields input, :is(.card, .drawer) .fields select { box-sizing: border-box; width: 100%; min-width: 0; height: 26px; font-size: 12px; padding: 3px 7px; border-radius: 7px; }
:is(.card, .drawer) .fields input::placeholder { color: var(--dim); }
:is(.card, .drawer) .fields .unset { color: var(--dim); }
:is(.card, .drawer) .fields select option { color: var(--ivory); }
/* An Enrich source sits under its value. */
:is(.card, .drawer) .fields .src { grid-column: 1 / -1; justify-self: end; max-width: 100%; font-size: 10.5px; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: underline; text-underline-offset: 2px; margin-bottom: 2px; }
:is(.card, .drawer) .fields .src:hover { color: var(--haze); }
.fields-card { width: min(560px, calc(100vw - 32px)) !important; }
.flist { display: grid; gap: 10px; margin: 10px 0 14px; max-height: 60vh; overflow: auto; }
.fedit { display: grid; gap: 6px; background: var(--canvas); border-radius: 10px; padding: 10px; }
.fedit .frow input[type=text] { flex: 1; min-width: 140px; }
.fedit .chk { font-size: 12.5px; color: var(--haze); display: flex; gap: 6px; align-items: center; }
.ferr { margin: 0 0 12px; color: var(--bad); font-size: 12.5px; }
.fnote, .fnone { margin: 0 0 12px; color: var(--haze); font-size: 12px; }
#filterBtn.has { background: var(--control); color: var(--ivory); }

/* The lead's side panel (the web app): a click on a card opens the lead on the right, over the board. The board makes
   room for it on wide screens, so every lane stays reachable; on narrower ones it lies over the board. */
.card.sel { box-shadow: 0 0 0 1.5px var(--ice); }
.lane.engaged .card[tabindex] { cursor: pointer; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100vw); overflow-y: auto; z-index: 40; padding: 18px 22px 48px;
  background: var(--lane); border-left: 1px solid var(--line); box-shadow: -24px 0 48px rgba(6, 7, 10, .45); animation: dslide .16s ease-out; }
.drawer:focus { outline: none; }
@keyframes dslide { from { transform: translateX(24px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .drawer { animation: none; } }
body.has-drawer .board { margin-right: 440px; }
@media (max-width: 1100px) { body.has-drawer .board { margin-right: 0; } }
.dhead { display: flex; align-items: flex-start; gap: 12px; }
.dwho { min-width: 0; }
.dhead h2 { margin: 0; font: 500 21px/1.25 var(--display); letter-spacing: -0.015em; overflow-wrap: anywhere; }
.dhead h2 .ch { vertical-align: 3px; }
.dhead .role { color: var(--haze); font-size: 13px; margin-top: 4px; overflow-wrap: anywhere; }
.dhead .ownline { margin-top: 6px; }
.dhead .own { font-size: 11px; padding: 1px 8px; border-radius: 6px; background: var(--control); color: var(--haze); }
.dx { margin-left: auto; flex: none; width: 32px; height: 32px; border-radius: 9px; color: var(--haze); font-size: 22px; line-height: 1; }
.dx:hover { background: var(--control); color: var(--ivory); }
.drawer .status { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; color: var(--haze); }
.drawer .stage { display: inline-flex; align-items: center; gap: 7px; background: var(--card); color: var(--ivory); border-radius: 999px; padding: 3px 11px 3px 9px; }
.drawer .stage i { width: 8px; height: 8px; border-radius: 50%; background: var(--s); }
.drawer .stage i.ring { background: none; box-shadow: inset 0 0 0 1.5px var(--haze); }
.drawer .badges { display: flex; gap: 6px; flex-wrap: wrap; }
.drawer .acts { margin-top: 16px; gap: 8px; }
.drawer .acts button { font-size: 12.5px; padding: 7px 14px; }
.drawer .next { font-size: 12px; }
.drawer .dsrc { margin: 14px 0 0; color: var(--dim); font-size: 12px; }
.dsec { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.dsec h3 { margin: 0 0 8px; font: 500 12.5px var(--text); color: var(--haze); }
.dsec h4 { margin: 12px 0 6px; font: 500 12px var(--text); color: var(--haze); }
.dsec p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.dsec p.small, .drawer p.small { font-size: 12px; color: var(--dim); }
.srcl { color: var(--dim); font-size: 11.5px; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
a.srcl:hover { color: var(--haze); }
.drawer .quote { margin-top: 0; max-height: 320px; font-size: 12.5px; line-height: 1.5; }
.dmsg + .dmsg { margin-top: 12px; }
.dmsg .meta { font-size: 11.5px; color: var(--dim); margin-bottom: 5px; }
.dlist { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 12.5px; line-height: 1.45; }
.drawer .facts { margin-top: 0; font-size: 12.5px; gap: 5px; }
.drawer .fields { margin: 0; padding-top: 0; border-top: 0; gap: 6px; }
.drawer .fields label { grid-template-columns: 116px minmax(0, 1fr); font-size: 12.5px; }
.drawer .fields input, .drawer .fields select { height: 30px; font-size: 13px; }

/* Where a lead came from (Warm and Signal, Julian, 5 Dec 2026): a small tag on every card and in the side panel. */
.tag { display: inline-block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom;
  font-size: 10.5px; line-height: 1.5; padding: 1px 7px; border-radius: 6px; color: var(--t); background: color-mix(in srgb, var(--t) 14%, transparent); }
.drawer .status .tag { font-size: 11.5px; padding: 2px 9px; }

/* Write message in the side panel (the web app; Julian, 5 Dec 2026): YourShot writes, the member edits and sends. */
.write .wform { display: grid; gap: 8px; }
.write select, .write textarea { box-sizing: border-box; width: 100%; border: 0; border-radius: 9px; background: var(--card); color: var(--ivory); font: 400 13px/1.5 var(--text); padding: 8px 10px; }
.write select { height: 34px; padding: 0 8px; }
.write textarea { resize: vertical; }
.write textarea::placeholder { color: var(--dim); }
.write select:focus-visible, .write textarea:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 0; }
.write .wdraft { margin-top: 14px; min-height: 150px; background: var(--canvas); }
.write .acts { align-items: center; }
.write .wleft { font-size: 11.5px; color: var(--dim); }
.write .werr { margin-top: 10px; color: var(--bad); font-size: 12.5px; }
.write .wcheck { margin-top: 6px; font-size: 11.5px; color: var(--dim); }
.write .wcheck.no { color: var(--warn); }
.write .wothers { margin-top: 14px; font-size: 12.5px; }
.write .wothers summary { cursor: pointer; color: var(--haze); }
.write .wothers .dmsg { margin-top: 10px; }
.write .wothers .acts { margin-top: 6px; }
