/* JuriLink SDR. Built on app.css: same paper, ink and copper, tighter for working through leads. */
:root { --ok: #0f7a4a; --ok-soft: #e3f4ec; --warn: #a86a00; --warn-soft: #fbf1dc; --grok: #3d3d45; }

.sdr .side { gap: 14px; }
.sdr-pill { margin-left: 2px; font-size: 11px; font-weight: 600; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; background: var(--copper); color: #fff; }
.nav-l { display: inline-flex; align-items: center; gap: 10px; }
.nav-l svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Sending switch in the sidebar */
.send-state { display: grid; grid-template-columns: 10px 1fr auto; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); margin: 0 2px; }
.send-state .pulse { width: 9px; height: 9px; border-radius: 50%; background: var(--stop); }
.send-state.on .pulse { background: var(--ok); box-shadow: 0 0 0 0 rgba(15,122,74,.5); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(15,122,74,0); } 100% { box-shadow: 0 0 0 0 rgba(15,122,74,0); } }
.send-text { display: flex; flex-direction: column; line-height: 1.25; font-size: 13px; }
.send-text span { font-size: 11.5px; color: var(--muted); }
.mini-switch { width: 34px; height: 20px; border-radius: 999px; border: 0; background: var(--fog); position: relative; cursor: pointer; padding: 0; }
.mini-switch i { position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: left .15s; }
.send-state.on .mini-switch { background: var(--ok); }
.send-state.on .mini-switch i { left: 17px; }

.who-me { display: flex; gap: 10px; align-items: center; color: var(--ink); }
.who-me > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who-me .small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--ink); color: var(--on-ink); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: 11px; }
.foot-links { margin-top: 10px; }
.foot-links a { color: var(--muted); }

/* Page bits */
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; }
.btn .btn-n { margin-left: 2px; font-family: var(--mono); font-size: 12px; background: var(--copper); color: #fff; border-radius: 999px; padding: 1px 7px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.kpi .fig .of { font-size: 18px; color: var(--muted); }
kbd { font-family: var(--mono); font-size: 11px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; background: var(--bg); }
.ink { color: var(--ink); }

/* Connection strip */
.conn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; margin-bottom: 14px; }
.conn { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; font-size: 13px; position: relative; }
.conn > div { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.conn > div span { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.conn .dot { width: 9px; height: 9px; border-radius: 3px; margin-top: 5px; background: var(--fog); }
.conn.ok .dot { background: var(--ok); }
.conn.off .dot { background: var(--stop); }
.conn.wait .dot { background: var(--copper); }
.conn .meter { grid-column: 1 / -1; }
.meter { display: block; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; position: relative; }
.meter b { display: block; height: 100%; background: var(--ink); border-radius: 5px; }
.meter.wide { height: 7px; margin-top: 8px; overflow: visible; }
.meter.wide u { position: absolute; top: -3px; width: 2px; height: 13px; background: var(--copper); }

/* Dense tables */
.table-wrap.flat { border: 0; border-radius: 0; }
table.dense th { padding: 9px 12px; }
table.dense td { padding: 9px 12px; vertical-align: middle; }
table.dense tbody tr[data-href] { cursor: pointer; }
table.dense tbody tr.sel { background: var(--copper-soft); box-shadow: inset 3px 0 0 var(--copper); }
tr.done td { opacity: .55; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 6px; background: var(--s2); color: var(--ink); white-space: nowrap; }
.tag.introducer { background: #eef0ff; color: #3b3fa8; }
.tag.business { background: var(--copper-soft); color: var(--copper-ink); }
.hint { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.mini-flag { display: inline-block; font-size: 11px; font-weight: 500; color: var(--warn); background: var(--warn-soft); border-radius: 5px; padding: 1px 6px; margin-top: 3px; }
.mini-flag.stop { color: var(--stop); background: var(--stop-soft); }
.score { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 13px; }
.score i { display: inline-block; width: 46px; height: 5px; border-radius: 5px; background: var(--line); overflow: hidden; }
.score b { display: block; height: 100%; }
.score b.hi { background: var(--ink); } .score b.mid { background: var(--copper); } .score b.lo { background: var(--fog); }
.cc { display: inline-flex; gap: 4px; flex-wrap: wrap; }
.ccode { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 1px 5px; border-radius: 5px; background: var(--s2); color: var(--muted); }
.ccode.away { background: var(--ink); color: var(--on-ink); }
.conf { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; background: var(--fog); }
.conf.hi { background: var(--ok); }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar select, .toolbar input { width: auto; min-width: 170px; padding: 8px 12px; border-radius: 12px; font-size: 14px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 12px; flex-wrap: wrap; }

/* Who did it */
.who { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 500; padding: 2px 8px; border-radius: 999px; white-space: nowrap; }
.who::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.who-claude { background: var(--copper-soft); color: var(--copper-ink); }
.who-grok { background: var(--ink); color: var(--on-ink); }
.who-human { background: var(--ok-soft); color: var(--ok); }
.who-register { background: var(--s2); color: var(--muted); }

/* Needs you */
.needs { list-style: none; margin: 4px 0 0; padding: 0; }
.needs li a { display: grid; grid-template-columns: 30px 1fr auto; gap: 12px; align-items: center; padding: 11px 6px; border-top: 1px solid var(--line); text-decoration: none; border-radius: 10px; }
.needs li:first-child a { border-top: 0; }
.needs li a:hover { background: var(--s2); }
.need-main { display: flex; flex-direction: column; min-width: 0; }
.need-main .small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.need-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; }
.need-ico { width: 30px; height: 30px; border-radius: 10px; background: var(--s2); position: relative; }
.need-ico::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; }
.need-ico.approve { background: var(--copper-soft); } .need-ico.approve::after { background: var(--copper); }
.need-ico.reply { background: var(--ok-soft); } .need-ico.reply::after { background: var(--ok); border-radius: 50%; }
.need-ico.flag { background: var(--warn-soft); } .need-ico.flag::after { background: var(--warn); transform: rotate(45deg); inset: 10px; }

/* Funnel */
.funnel { display: flex; flex-direction: column; gap: 9px; }
.f-row { display: grid; grid-template-columns: 96px 1fr 44px 40px; gap: 8px; align-items: center; font-size: 13px; }
.f-bar { height: 10px; border-radius: 4px; background: var(--s2); overflow: hidden; }
.f-bar i { display: block; height: 100%; background: var(--line-strong); border-radius: 4px; }
.f-row:first-child .f-bar i { background: var(--ink); }
.f-bar i.end { background: var(--copper); }
.f-n { text-align: right; }
.f-pct { text-align: right; color: var(--muted); font-size: 11.5px; }

/* Grok Bot */
.bot-ico { display: inline-block; width: 18px; height: 15px; border: 2px solid var(--ink); border-radius: 5px; margin-right: 8px; vertical-align: -1px; position: relative; }
.bot-ico::before { content: ""; position: absolute; left: 3px; top: 3px; width: 3px; height: 3px; background: var(--ink); border-radius: 50%; box-shadow: 6px 0 0 var(--ink); }
.bot-ico::after { content: ""; position: absolute; left: 6px; top: -6px; width: 2px; height: 4px; background: var(--ink); }
.bot-ico.lg { transform: scale(1.4); margin-right: 14px; }
.grok-card { border-color: var(--ink); }
.briefing { white-space: pre-wrap; font-size: 14px; margin-top: 8px; }
.can, .cant { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: 14px; }
.can li, .cant li { display: flex; gap: 10px; align-items: baseline; }
.can li::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ok); flex: none; }
.cant li::before { content: ""; width: 8px; height: 2px; background: var(--stop); flex: none; transform: translateY(-3px); }
.token-card { border: 1.5px solid var(--copper); background: var(--copper-soft); margin-bottom: 14px; }
.token-card input { font-family: var(--mono); font-size: 13px; background: #fff; }
.verb { font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 5px; }
.verb.get { background: var(--s2); } .verb.post { background: var(--ink); color: #fff; }
.api td { white-space: nowrap; } .api td:last-child { white-space: normal; }
.api .code-inline { overflow-wrap: anywhere; line-height: 1.7; }
.code-block { font-family: var(--mono); font-size: 12.5px; background: var(--ink); color: #e4e4e7; border-radius: 14px; padding: 14px 16px; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; margin: 14px 0 10px; }

/* Lead page */
.lead-head h1 { font-size: 32px; }
.head-score { text-align: right; }
.head-score .big { font-size: 40px; line-height: 1; letter-spacing: -.03em; }
.score-parts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 10px; margin-top: 8px; font-size: 12px; color: var(--muted); max-width: 360px; }
.score-parts b { color: var(--ink); font-family: var(--mono); font-weight: 500; }
.why .why-text { font-size: 17px; line-height: 1.5; letter-spacing: -.01em; margin: 8px 0 8px; }
.callout { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; background: var(--bg); border-radius: 14px; padding: 12px 14px; margin-top: 12px; font-size: 14px; border-left: 3px solid var(--copper); }
.callout.warn { border-left-color: var(--warn); background: var(--warn-soft); }
.email { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; margin-top: 12px; }
.email-meta { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: #fcfcfc; font-size: 14px; }
.email-meta > div { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.email-meta .k { width: 76px; flex: none; color: var(--muted); font-size: 12.5px; }
.email-body { white-space: pre-wrap; padding: 16px 18px; font-size: 15px; line-height: 1.6; }
.email-foot { padding: 10px 18px 14px; font-size: 12.5px; color: var(--muted); border-top: 1px dashed var(--line); }
.email.compact .email-body { max-height: 260px; overflow: auto; font-size: 14.5px; }
.edit-form { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.conf-pill { font-size: 11.5px; padding: 1px 7px; border-radius: 999px; background: var(--ok-soft); color: var(--ok); }
.conf-pill.lo { background: var(--warn-soft); color: var(--warn); }
.opener { margin-top: 10px; color: var(--muted); }
.opener .label { margin-right: 6px; }
.src { font-family: var(--mono); font-size: 12px; background: var(--s2); padding: 1px 7px; border-radius: 6px; text-decoration: none; color: var(--ink); }
.src:hover { background: var(--line); }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 14px; margin-top: 14px; }
.ck { display: flex; gap: 9px; font-size: 13px; align-items: flex-start; }
.ck i { width: 16px; height: 16px; flex: none; border-radius: 5px; margin-top: 2px; position: relative; }
.ck.pass i { background: var(--ok-soft); }
.ck.pass i::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid var(--ok); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ck.fail i { background: var(--stop-soft); }
.ck.fail i::before, .ck.fail i::after { content: ""; position: absolute; left: 7px; top: 3px; width: 2px; height: 10px; background: var(--stop); transform: rotate(45deg); }
.ck.fail i::after { transform: rotate(-45deg); }
.ck em, .gt em { display: block; font-style: normal; color: var(--muted); font-size: 12px; }
.ck.fail em, .gt.fail em { color: var(--stop); }
.ok-line { display: flex; gap: 8px; align-items: center; color: var(--ok); margin-top: 12px; }
.ok-line i { width: 8px; height: 8px; border-radius: 2px; background: var(--ok); }
.draft-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 16px; }
.draft-actions .reject { display: flex; gap: 8px; flex: 1 1 280px; }
.draft-actions .reject input { padding: 9px 12px; font-size: 14px; border-radius: 12px; }
.gates { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
@media (max-width: 700px) { .gates { grid-template-columns: 1fr; } }
.gt { display: grid; grid-template-columns: 24px 1fr; gap: 8px; font-size: 13px; padding: 8px 10px; border-radius: 10px; background: var(--s2); }
.gt .n { width: 22px; height: 22px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.gt.pass .n { background: var(--ok); color: #fff; }
.gt.fail { background: var(--stop-soft); }
.gt.fail .n { background: var(--stop); color: #fff; }
.facts { list-style: none; margin: 0; padding: 0; }
.facts li { padding: 11px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.facts li:first-child { border-top: 0; }
.fact-meta { display: flex; gap: 8px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
details.add { margin-top: 12px; }
details.add summary { cursor: pointer; font-size: 13.5px; color: var(--muted); }
details.add form { margin-top: 10px; }
form.inline { display: inline; }
.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people li { display: grid; grid-template-columns: 34px 1fr; gap: 10px; align-items: start; font-size: 14px; }
.people li .ccode { margin-top: 2px; text-align: center; }
.people li.gone { opacity: .5; }
.links { display: flex; flex-direction: column; }
.links a { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: 13.5px; }
.links a:first-child { border-top: 0; }
.links a:hover span:first-child { text-decoration: underline; }

/* Approvals */
.appr { padding: 20px; outline: none; }
.appr:focus, .appr.sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.appr.blocked { border-color: var(--stop); }
.appr-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.big-link { font-size: 18px; letter-spacing: -.02em; }
.appr-why { margin-top: 6px; }
.inline-checks { grid-template-columns: 1fr; }
.empty-state { text-align: center; padding: 48px 22px; }
.empty-state p { max-width: 420px; margin: 8px auto 18px; }
.es-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--ok-soft); margin: 0 auto 14px; position: relative; }
.es-ico::after { content: ""; position: absolute; left: 17px; top: 10px; width: 8px; height: 16px; border: solid var(--ok); border-width: 0 3px 3px 0; transform: rotate(45deg); }

/* Campaigns */
.camp-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.camp-stats { display: flex; gap: 20px; }
.camp-stats div { display: flex; flex-direction: column; align-items: flex-end; }
.camp-stats .mono { font-size: 26px; letter-spacing: -.03em; }
.earn { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; background: var(--s2); border-radius: 16px; padding: 14px 16px; margin: 16px 0; }
.earn-text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 320px; }
.sector-group { margin-bottom: 14px; }
.sg-title { font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.sector { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; font-size: 13.5px; align-items: start; }
.sector input { margin: 2px 0 0; accent-color: var(--ink); width: 16px; height: 16px; }
.sector.on { border-color: var(--ink); background: #fafafa; }
.sector.blocked { border-color: var(--stop); }
.s-main { display: flex; flex-direction: column; gap: 2px; }
.check-chip { cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; pointer-events: none; }

/* Settings */
.kill { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; border-width: 1.5px; }
.kill.on { border-color: var(--ok); background: var(--ok-soft); }
.kill.off { border-color: var(--stop); background: #fffafa; }

@media (max-width: 860px) {
  .send-state { margin: 0; }
  .head-score { text-align: left; } .score-parts { justify-content: flex-start; }
  .toolbar select, .toolbar input { min-width: 0; flex: 1 1 140px; }
}
[hidden] { display: none !important; }
.who-prospect { background: #eef0ff; color: #3b3fa8; }
.nav-sec { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--line-strong); padding: 12px 12px 4px; }
.nav-sec:first-child { padding-top: 0; }
.sdr .nav a { padding: 7px 12px; }
.sdr .side { overflow-y: auto; }
/* Baskets */
.basket-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 14px; }
.basket-card { text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: border-color .15s; }
.basket-card:hover { border-color: var(--ink); }
.basket-card.off { background: #fcfcfc; }
.rule-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.rule-pills span { font-size: 12px; padding: 3px 9px; border-radius: 8px; background: var(--s2); }
.rule-pills span.bad { background: var(--stop-soft); color: var(--stop); }
.trig { margin-top: 10px; color: var(--muted); }
.bstats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 14px; }
.bstats div { display: flex; flex-direction: column; }
.bstats b { font-size: 22px; font-weight: 500; letter-spacing: -.02em; }
.bstats b.hi { color: var(--copper-ink); }
.bstats span { font-size: 11.5px; color: var(--muted); }
.stack-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--line); margin-top: 12px; }
.stack-bar b.d { background: var(--ink); } .stack-bar b.r { background: var(--copper); } .stack-bar b.w { background: var(--fog); }
.sector-grid.compact { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sector-grid.compact .sector { padding: 8px 10px; }
button.chip { border: 0; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 500; }
.formed-by { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

/* The SDR's own sign-in pages (layout shared with the platform in app.css) */
.center { text-align: center; }

/* ===================================================================================================
   SDR theme, v2. A prospecting desk: graphite rail, cool canvas, white working surfaces, copper only where
   something needs you. Scoped to body.sdr so the staff console is untouched.
   =================================================================================================== */
body.sdr {
  --graphite: #17191d; --graphite-2: #22252b; --graphite-line: #2e3138; --rail-text: #a7abb4;
  --canvas: #f2f3f5; --signal: #18a06c; --signal-soft: #e2f5ec; --amber: #c98a12; --amber-soft: #fbf0d9; --alarm: #d2392b; --alarm-soft: #fbe6e3;
  background: var(--canvas);
}
body.sdr .label { text-transform: none; letter-spacing: 0; font-size: 13px; }
body.sdr h1 { font-size: 28px; letter-spacing: -0.035em; }
body.sdr h2 { font-size: 16px; letter-spacing: -0.01em; }
body.sdr .card { border-radius: 16px; border-color: #e3e5e9; }
body.sdr .card.soft { background: #fff; border-color: #e3e5e9; }
body.sdr .table-wrap { background: #fff; border-color: #e3e5e9; border-radius: 16px; }
body.sdr .table-wrap.flat { border: 0; border-radius: 0; background: transparent; }
body.sdr .kpi .fig, body.sdr td.num, body.sdr th.num, body.sdr .mono.num { font-family: var(--sans); font-variant-numeric: tabular-nums; }

/* Rail */
body.sdr .side { background: var(--graphite); color: #fff; width: 248px; padding: 20px 14px; gap: 16px; border-right: 1px solid #0d0e10; }
body.sdr .side .brand { color: #fff; }
body.sdr .side .brand svg rect:first-child { fill: #ffffff; }
body.sdr .side .brand svg rect:nth-child(2) { fill: #4a4e57; }
body.sdr .nav-sec { color: #6f7480; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; padding: 14px 12px 6px; }
body.sdr .nav a { color: var(--rail-text); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
body.sdr .nav a:hover { background: var(--graphite-2); color: #fff; }
body.sdr .nav a.on { background: #fff; color: var(--ink); }
body.sdr .nav a.on svg { color: var(--copper); }
body.sdr .nav .count { background: var(--copper); color: #fff; font-weight: 600; }
body.sdr .nav a.on .count { background: var(--copper); }
body.sdr .send-state { background: var(--graphite-2); border-color: var(--graphite-line); color: #fff; }
body.sdr .send-text span { color: var(--rail-text); }
body.sdr .mini-switch { background: #4a4e57; }
body.sdr .side-foot { color: var(--rail-text); }
body.sdr .who-me { color: #fff; }
body.sdr .who-me .small { color: var(--rail-text); }
body.sdr .avatar { background: var(--copper); color: #fff; }
body.sdr .side-foot .linkish { color: var(--rail-text); }

/* Main + top bar */
body.sdr .main { padding: 0 clamp(16px, 3vw, 40px) 64px; }
.topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 14px; padding: 14px 0; margin-bottom: 18px; background: linear-gradient(var(--canvas) 70%, rgba(242,243,245,0)); }
.topbar form { flex: 1; max-width: 520px; position: relative; }
.topbar input[type=search] { width: 100%; height: 42px; padding: 0 44px 0 40px; border-radius: 12px; border: 1px solid #e3e5e9; background: #fff; font-size: 14.5px; }
.topbar input[type=search]:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
.topbar .search-ico { position: absolute; left: 13px; top: 12px; width: 18px; height: 18px; stroke: var(--muted); fill: none; stroke-width: 2; pointer-events: none; }
.topbar kbd { position: absolute; right: 12px; top: 11px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.live-chip { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e5e9; color: var(--ink); font-weight: 500; text-decoration: none; }
.live-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--alarm); }
.live-chip.on i { background: var(--signal); box-shadow: 0 0 0 3px var(--signal-soft); }

/* Overview: the channel flow. Five sources (and Claude) feed one queue. */
.flow { position: relative; margin: 6px 0 22px; }
.flow-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; position: relative; z-index: 1; }
.chan { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; background: #fff; border: 1px solid #e3e5e9; border-radius: 14px; text-decoration: none; color: var(--ink); min-height: 150px; transition: border-color .15s, transform .15s; }
.chan:hover { border-color: var(--ink); color: var(--ink); }
.chan-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13.5px; font-weight: 600; }
.light { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #c4c7ce; }
.chan.ok .light { background: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.chan.stale .light, .chan.waiting .light { background: var(--amber); box-shadow: 0 0 0 4px var(--amber-soft); }
.chan.error .light { background: var(--alarm); box-shadow: 0 0 0 4px var(--alarm-soft); }
.chan.off .light { background: #c4c7ce; }
.chan-big { font-size: 34px; font-weight: 600; letter-spacing: -0.04em; line-height: 1; margin-top: 12px; font-variant-numeric: tabular-nums; }
.chan-unit { font-size: 12.5px; color: var(--muted); }
.chan-sub { font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: 10px; line-height: 1.4; }
.chan-state { font-size: 12px; font-weight: 500; }
.chan.ok .chan-state { color: var(--signal); }
.chan.stale .chan-state, .chan.waiting .chan-state { color: var(--amber); }
.chan.error .chan-state { color: var(--alarm); }
.chan.off .chan-state { color: var(--muted); }
.chan.research { background: var(--graphite); border-color: var(--graphite); color: #fff; }
.chan.research .chan-unit, .chan.research .chan-sub { color: var(--rail-text); }
.chan.research:hover { border-color: var(--copper); color: #fff; }
/* after the sources: finding someone to write to, then Claude */
.stage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.stage-grid .chan { min-height: 0; }
.stage-grid .chan-big { margin-top: 8px; }
/* the feed line under the tiles, running into the queue */
.flow-line { height: 22px; margin: 0 6%; border: 2px solid #d6d9df; border-top: 0; border-radius: 0 0 16px 16px; position: relative; }
.flow-line::after { content: ''; position: absolute; left: 50%; bottom: -12px; width: 2px; height: 12px; background: #d6d9df; }
.queue { margin-top: 12px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid #e3e5e9; border-radius: 16px; overflow: hidden; }
.q-step { padding: 16px 18px; border-left: 1px solid #eef0f3; position: relative; text-decoration: none; color: var(--ink); }
.q-step:first-child { border-left: 0; }
.q-step .q-n { font-size: 26px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.q-step .q-l { font-size: 13px; color: var(--muted); margin-top: 2px; }
.q-step .q-bar { height: 4px; border-radius: 4px; background: #eef0f3; margin-top: 12px; overflow: hidden; }
.q-step .q-bar b { display: block; height: 100%; background: var(--ink); border-radius: 4px; }
.q-step.you { background: var(--copper-soft); }
.q-step.you .q-n { color: var(--copper-ink); }
.q-step.you .q-bar b { background: var(--copper); }
.q-step:hover { background: #f7f8fa; }
.q-step.you:hover { background: #fbe1d6; }
.flow-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.flow-head h2 { font-size: 15px; }
.flow-head span { font-size: 13px; color: var(--muted); }
.conn-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.conn-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: #fff; border: 1px solid #e3e5e9; font-size: 12.5px; color: var(--muted); }
.conn-chip b { color: var(--ink); font-weight: 600; }
.conn-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); }
.conn-chip.ok i { background: var(--signal); }
.conn-chip.off i { background: var(--alarm); }

@media (max-width: 1200px) { .flow-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .flow-line { display: none; } }
@media (max-width: 640px) { .stage-grid { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  body.sdr .side { width: auto; }
  .flow-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .q-step { border-left: 0; border-top: 1px solid #eef0f3; }
  .topbar-right .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) { .chan { transition: none; } .send-state.on .pulse { animation: none; } }
@media (min-width: 861px) { body.sdr .shell { background: linear-gradient(90deg, var(--graphite) 248px, var(--canvas) 248px); } }
body.sdr .btn.secondary { background: #fff; border: 1px solid #e3e5e9; color: var(--ink); }
body.sdr .btn.secondary:hover { border-color: var(--ink); background: #fff; }

/* Needs a look: each lead with the actions that move it on */
body.sdr .chip-sep { width: 1px; align-self: stretch; background: var(--line); margin: 2px 4px; }
body.sdr .review-bar { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 0 0 14px; }
body.sdr .review-bar p { margin: 0; max-width: 62ch; }
body.sdr .review-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--card, #fff); overflow: hidden; }
body.sdr .review-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 18px; border-top: 1px solid var(--line); }
body.sdr .review-item:first-child { border-top: 0; }
body.sdr .review-list .empty { padding: 28px 18px; color: var(--muted); }
body.sdr .ri-name { font-weight: 600; font-size: 15px; color: var(--ink); text-decoration: none; }
body.sdr .ri-name:hover { text-decoration: underline; }
body.sdr .ri-why { display: flex; gap: 8px; align-items: baseline; margin-top: 6px; flex-wrap: wrap; }
body.sdr .ri-contact { margin-top: 6px; display: flex; gap: 6px; align-items: center; min-width: 0; }
body.sdr .ri-contact .mono { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sdr .ri-actions { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 430px; }
body.sdr .ri-actions form { margin: 0; }
@media (max-width: 760px) { body.sdr .review-item { grid-template-columns: 1fr; } body.sdr .ri-actions { justify-content: flex-start; max-width: none; } }

/* Send it yourself */
body.sdr .send-self { margin-top: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg); }
body.sdr .send-self h3 { margin: 0; font-size: 14px; }
body.sdr .copy-rows { display: grid; gap: 8px; margin-top: 12px; }
body.sdr .copy-row { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--card, #fff); border: 1px solid var(--line); }
body.sdr .copy-row.tall { align-items: start; }
body.sdr .copy-row .k { font-size: 12px; color: var(--muted); }
body.sdr .copy-row .v { min-width: 0; overflow-wrap: anywhere; }
body.sdr .copy-row pre.v { margin: 0; white-space: pre-wrap; font: inherit; font-size: 13.5px; line-height: 1.55; max-height: 340px; overflow: auto; }
body.sdr .sent-form { display: flex; gap: 10px; align-items: end; margin-top: 14px; flex-wrap: wrap; }
body.sdr .sent-form .field { flex: 1 1 240px; margin: 0; }
body.sdr .sugg { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
body.sdr .sugg li { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
body.sdr .sugg form { margin: 0; }
body.sdr .send-via { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
body.sdr .send-via > div { grid-column: 1 / -1; }
body.sdr .radio-card { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
body.sdr .radio-card.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink) inset; }
body.sdr .radio-card > span { display: grid; gap: 4px; }
body.sdr .radio-card input { margin-top: 3px; }
@media (max-width: 860px) { body.sdr .send-via { grid-template-columns: 1fr; } }
body.sdr table.api tr.api-group td { padding-top: 14px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 0; }

/* Ready to contact: the main thing on the overview */
body.sdr .ready.card { padding: 20px 20px 8px; margin-bottom: 18px; }
body.sdr .ready-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
body.sdr .ready-head h2 { font-size: 19px; letter-spacing: -0.02em; margin: 0; }
body.sdr .ready-head p { margin: 4px 0 0; max-width: 70ch; }
body.sdr .grade-strip { display: flex; gap: 8px; flex-wrap: wrap; margin: 16px 0 6px; }
body.sdr .grade-tab { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink); text-decoration: none; font-size: 13px; }
body.sdr .grade-tab b { font-variant-numeric: tabular-nums; font-weight: 600; }
body.sdr .grade-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
body.sdr .grade { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex: none; border-radius: 7px; font-size: 12px; font-weight: 700; font-family: var(--mono); }
body.sdr .grade.gA { background: var(--signal); color: #fff; }
body.sdr .grade.gB { background: #2f3540; color: #fff; }
body.sdr .grade.gC { background: var(--amber-soft); color: #8a5a00; }
body.sdr .grade-tab.on .grade.gB { background: #fff; color: var(--ink); }
body.sdr .ready-table td { vertical-align: top; padding-top: 14px; padding-bottom: 14px; }
body.sdr .ready-table .rowlink { font-weight: 600; }
body.sdr .contact-cell { display: flex; gap: 10px; align-items: flex-start; min-width: 0; }
body.sdr .cc-main { display: grid; gap: 2px; min-width: 0; }
body.sdr .cc-email { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; color: var(--muted); }
body.sdr .know { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
body.sdr .pips { display: inline-flex; gap: 3px; }
body.sdr .pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
body.sdr .know-thin .pips i:nth-child(1), body.sdr .know-good .pips i:nth-child(-n+2), body.sdr .know-rich .pips i { background: var(--ink); }
body.sdr .app-pill { display: inline-flex; align-items: center; gap: 7px; font-weight: 500; white-space: nowrap; }
body.sdr .app-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #c4c7ce; }
body.sdr .app-dot.fit { background: var(--signal); }
body.sdr .app-dot.refer { background: var(--amber); }
body.sdr .app-dot.none { background: var(--alarm); }
body.sdr .app-pill.none { color: var(--alarm); }
body.sdr .next-col { text-align: right; white-space: nowrap; }
body.sdr .next-col form { margin: 0; display: inline; }
body.sdr .aside-note { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 6px -20px 0; padding: 14px 20px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
body.sdr .aside-note strong { color: var(--ink); }
body.sdr .flow.sources { margin-top: 22px; }
@media (max-width: 900px) {
  body.sdr .ready-table thead { display: none; }
  body.sdr .ready-table tr { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px 0; border-top: 1px solid var(--line); }
  body.sdr .ready-table td { padding: 0; border: 0; }
  body.sdr .ready-table td:first-child, body.sdr .ready-table td.next-col { grid-column: 1 / -1; text-align: left; }
  body.sdr .aside-note { flex-direction: column; align-items: flex-start; }
}
body.sdr .aside-note .row { flex-wrap: nowrap; gap: 8px; } body.sdr .aside-note form { margin: 0; }
body.sdr .people-block { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
body.sdr .people-block h3 { margin: 0; font-size: 14px; }
body.sdr .people-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
body.sdr .people-list li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; }
body.sdr .people-list li > span:nth-child(2) { display: grid; gap: 2px; }
body.sdr .sen { font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 6px; background: var(--s2); color: var(--ink); }
body.sdr .sen-finance { background: var(--signal-soft); color: #0c6b47; }
body.sdr .sen-owner { background: #e8ebf3; color: #2f3540; }
body.sdr .aim { display: block; margin-top: 4px; color: var(--ink); }
body.sdr .chance { display: flex; align-items: center; gap: 8px; }
body.sdr .chance b { font-variant-numeric: tabular-nums; font-size: 15px; min-width: 34px; }
body.sdr .chance-bar { position: relative; width: 70px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
body.sdr .chance-bar i { position: absolute; top: 0; bottom: 0; background: rgba(226,87,43,.22); border-radius: 3px; }
body.sdr .chance-bar u { position: absolute; top: -1px; width: 3px; height: 8px; margin-left: -1px; background: var(--copper); border-radius: 2px; }

/* Pipeline: the brain on the overview. A light card like the rest of the dashboard, in the logo's colours. */
body.sdr .mission.card { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, 1fr); padding: 0; margin: 4px 0 18px; overflow: hidden;
  animation: mission-in .7s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes mission-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
body.sdr .mission-brain { position: relative; min-height: 440px; background: radial-gradient(70% 70% at 50% 50%, #fff 0%, #fafafa 70%, #f6f6f7 100%); border-right: 1px solid var(--line); }
body.sdr .mission-brain canvas { position: absolute; inset: 0; display: block; }
body.sdr .core-read { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; display: grid; justify-items: center; gap: 0; text-decoration: none; color: var(--ink); }
body.sdr .core-read b { font-size: 46px; font-weight: 600; letter-spacing: -0.05em; line-height: 1; color: var(--copper); font-variant-numeric: tabular-nums; }
body.sdr .core-read span { font-size: 14px; font-weight: 600; margin-top: 4px; }
body.sdr .core-read small { font-size: 12px; color: var(--muted); margin-top: 2px; }
body.sdr .core-read:hover span { text-decoration: underline; }
body.sdr .map-head { position: absolute; left: 22px; top: 18px; display: grid; gap: 0; pointer-events: none; }
body.sdr .map-head .map-k { font-size: 12px; color: var(--muted); }
body.sdr .map-head b { font-size: 26px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.15; }
body.sdr .map-head .map-sub { font-size: 12px; color: var(--muted); }
body.sdr .map-key { position: absolute; right: 18px; top: 20px; display: grid; gap: 5px; font-size: 11.5px; color: var(--muted); pointer-events: none; }
body.sdr .map-key span { display: flex; align-items: center; gap: 7px; }
body.sdr .map-key i { width: 7px; height: 7px; border-radius: 50%; }
body.sdr .map-key .k-top { background: var(--copper); box-shadow: 0 0 0 3px var(--copper-soft); } body.sdr .map-key .k-reach { background: #71717a; } body.sdr .map-key .k-found { background: #a1a1aa; border-radius: 1px; width: 6px; height: 6px; }
body.sdr .brain-toast { position: absolute; left: 18px; bottom: 16px; display: flex; flex-direction: column; gap: 2px; padding: 9px 14px 10px; border-radius: 12px;
  background: rgba(255, 255, 255, .92); border: 1px solid var(--line); box-shadow: 0 8px 24px -16px rgba(10, 10, 11, .35);
  opacity: 0; transform: translateY(6px); transition: opacity .4s cubic-bezier(.2, .7, .2, 1), transform .5s cubic-bezier(.34, 1.4, .5, 1); max-width: 75%; }
body.sdr .brain-toast.show { opacity: 1; transform: none; }
body.sdr .brain-toast span { font-size: 11.5px; color: var(--copper); font-weight: 500; }
body.sdr .brain-toast b { font-size: 14px; font-weight: 600; color: var(--ink); }
body.sdr .mission-side { padding: 20px 22px; display: flex; flex-direction: column; gap: 14px; }
body.sdr .mission-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
body.sdr .mission-head h2 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
body.sdr .mission-head p { margin: 2px 0 0; }
body.sdr .mission-model { display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 12px; color: var(--ink); text-decoration: none; border: 1px solid var(--line); padding: 4px 10px; border-radius: 999px; transition: border-color .2s; }
body.sdr .mission-model:hover { border-color: var(--ink); }
body.sdr .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 0 rgba(226, 87, 43, .45); animation: live 2.4s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 7px rgba(226, 87, 43, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 87, 43, 0); } }
body.sdr .rings { list-style: none; margin: 0; padding: 0; display: grid; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
body.sdr .rings li + li { border-top: 1px solid var(--line); }
body.sdr .rings a { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 14px; color: var(--ink); text-decoration: none; transition: background .15s; }
body.sdr .rings a:hover { background: #fafafa; }
body.sdr .rings i { justify-self: center; display: block; }
body.sdr .rings strong { display: block; font-size: 13.5px; font-weight: 600; }
body.sdr .rings small { display: block; font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sdr .r-num { display: grid; justify-items: end; gap: 4px; }
body.sdr .rings b { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
body.sdr .rings b.bump { animation: bump .7s cubic-bezier(.34, 1.4, .5, 1); }
@keyframes bump { 0% { color: var(--copper); transform: scale(1.12); } 100% { color: var(--ink); transform: none; } }
@keyframes bump-copper { 0% { transform: scale(1.14); } 100% { transform: none; } }
body.sdr .core-read b.bump, body.sdr .rings .ring-direct b.bump { animation-name: bump-copper; }
body.sdr .r-share { width: 64px; height: 3px; border-radius: 2px; background: var(--line); overflow: hidden; }
body.sdr .r-share u { display: block; height: 100%; background: var(--ink); border-radius: 2px; }
body.sdr .ring-direct .r-share u, body.sdr .ring-replied .r-share u { background: var(--copper); }
body.sdr .ring-replied i { width: 18px; height: 18px; } body.sdr .ring-replied i svg { width: 18px; height: 18px; display: block; }
body.sdr .ring-contacted i { width: 9px; height: 9px; border-radius: 50%; background: #f08c64; }
body.sdr .ring-direct i { width: 10px; height: 10px; border-radius: 50%; background: var(--copper); box-shadow: 0 0 0 4px var(--copper-soft); }
body.sdr .ring-reachable i { width: 8px; height: 8px; border-radius: 50%; background: #71717a; }
body.sdr .ring-potential i { width: 6px; height: 6px; border-radius: 1px; background: #a1a1aa; }
body.sdr .ring-direct strong { color: var(--copper-ink, #b4441d); }
body.sdr .rings .ring-direct a { background: var(--copper-soft); } body.sdr .rings .ring-direct a:hover { background: #fbe1d6; }
body.sdr .rings .ring-direct b { font-size: 24px; color: var(--copper); }
body.sdr .mission-forecast { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
body.sdr .mission-forecast a { display: block; padding: 12px 14px; border-radius: 14px; background: #fafafa; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: border-color .15s; }
body.sdr .mission-forecast a:hover { border-color: var(--ink); }
body.sdr .mission-forecast span { display: block; font-size: 12px; color: var(--muted); line-height: 1.35; }
body.sdr .mission-forecast b { display: block; margin-top: 4px; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
body.sdr .mission-forecast a:first-child b { color: var(--copper); }
body.sdr .moves-head { font-size: 12px; color: var(--muted); margin-bottom: 8px; }
body.sdr .moves { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
body.sdr .moves li { display: grid; grid-template-columns: 8px minmax(0, 1fr) auto auto; gap: 10px; align-items: center; font-size: 13px; }
body.sdr .moves li.fresh { animation: slidein .5s cubic-bezier(.34, 1.4, .5, 1); }
@keyframes slidein { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
body.sdr .moves a { color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
body.sdr .moves a:hover { text-decoration: underline; }
body.sdr .moves em { font-style: normal; font-size: 12px; color: var(--muted); }
body.sdr .moves time { font-size: 12px; color: var(--faint, #8a8a93); font-variant-numeric: tabular-nums; }
body.sdr .moves .none { display: block; color: var(--muted); font-size: 12.5px; }
body.sdr .mv { width: 8px; height: 8px; border-radius: 50%; background: #a1a1aa; }
body.sdr .mv-direct, body.sdr .mv-replied { background: var(--copper); } body.sdr .mv-reachable { background: #71717a; } body.sdr .mv-contacted { background: #f08c64; }
@media (max-width: 1000px) { body.sdr .mission.card { grid-template-columns: 1fr; } body.sdr .map-key { display: none; } body.sdr .mission-brain { min-height: 360px; border-right: 0; border-bottom: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { body.sdr .mission.card, body.sdr .live-dot, body.sdr .moves li.fresh, body.sdr .rings b.bump, body.sdr .brain-toast { animation: none; transition: none; } }

/* Learning */
body.sdr .learn-hero { position: relative; display: grid; grid-template-columns: minmax(260px, 360px) 1fr; gap: 28px; align-items: center; padding: 24px 28px; border-radius: 22px; margin-bottom: 26px;
  background: #fff; border: 1px solid var(--line); animation: mission-in .7s cubic-bezier(.2, .7, .2, 1) both; }
body.sdr .loop { width: 100%; height: auto; display: block; }
body.sdr .loop-track { fill: none; stroke: #f1f1f3; stroke-width: 18; }
body.sdr .loop-flow { fill: none; stroke: rgba(226, 87, 43, .55); stroke-width: 1.6; stroke-dasharray: 3 10; animation: flow 14s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -260; } }
body.sdr .loop-runner { transform-origin: 200px 200px; animation: spin 10s linear infinite; }
body.sdr .loop-runner circle { fill: var(--copper); }
@keyframes spin { to { transform: rotate(360deg); } }
body.sdr .loop-core { animation: breathe 4s ease-in-out infinite; transform-origin: 200px 200px; }
@keyframes breathe { 50% { transform: scale(1.06); opacity: .8; } }
body.sdr .loop-node circle { fill: #fff; stroke: var(--line); stroke-width: 1.5; }
body.sdr .loop-node.learn circle { stroke: var(--copper); fill: var(--copper-soft); }
body.sdr .loop-mark { animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
body.sdr .loop-node text { text-anchor: middle; fill: var(--ink); font-family: var(--sans); }
body.sdr .loop-node .n { font-size: 15px; font-weight: 600; }
body.sdr .loop-node .l { font-size: 10px; fill: var(--muted); }
body.sdr .loop .core-t { text-anchor: middle; font-size: 10px; fill: var(--muted); }
body.sdr .loop .core-n { text-anchor: middle; font-size: 20px; font-weight: 600; fill: var(--ink); letter-spacing: -.03em; }
body.sdr .learn-state h2 { margin: 12px 0 8px; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.15; }
body.sdr .learn-state p { margin: 0; color: var(--muted); max-width: 62ch; line-height: 1.6; }
body.sdr .state-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; padding: 4px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); }
body.sdr .state-pill i { width: 7px; height: 7px; border-radius: 50%; background: #a1a1aa; }
body.sdr .state-pill.state-early i { background: #f08c64; } body.sdr .state-pill.state-learning i { background: var(--copper); }
body.sdr .learn-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
body.sdr .learn-stats div { padding: 12px 14px; border-radius: 14px; background: #fafafa; border: 1px solid var(--line); }
body.sdr .learn-stats b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
body.sdr .learn-stats span { font-size: 12px; color: var(--muted); line-height: 1.35; display: block; }
body.sdr .learn-stats small { color: var(--faint, #8a8a93); }
body.sdr .learn-note { margin-top: 14px !important; font-size: 13px; }
body.sdr .learn-h { font-size: 18px; letter-spacing: -0.02em; margin: 6px 0 12px; }
body.sdr .factor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; margin-bottom: 26px; }
body.sdr .factor h3 { margin: 0; font-size: 15px; }
body.sdr .factor ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 12px; }
body.sdr .f-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; }
body.sdr .f-lift { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--muted); }
body.sdr .f-lift.up { color: var(--copper); } body.sdr .f-lift.down { color: var(--alarm); }
body.sdr .f-bar { position: relative; height: 10px; margin: 6px 0 4px; border-radius: 5px; background: #f1f2f4; }
body.sdr .f-bar .band { position: absolute; top: 2px; bottom: 2px; border-radius: 4px; background: rgba(226, 87, 43, .2); }
body.sdr .f-bar .mark { position: absolute; top: 0; bottom: 0; width: 3px; margin-left: -1px; border-radius: 2px; background: var(--ink); }
body.sdr .f-bar .base { position: absolute; top: -3px; bottom: -3px; width: 0; border-left: 1.5px dashed #71717a; }
body.sdr .f-meta { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); }
body.sdr .b-data { color: var(--copper); font-weight: 600; } body.sdr .b-early { color: var(--ink); } body.sdr .b-assumption { color: var(--faint, #8a8a93); }
body.sdr .learn-uses { margin-bottom: 26px; }
body.sdr .learn-uses h3 { margin: 6px 0 6px; font-size: 15px; }
body.sdr .use-n { width: 26px; height: 26px; border-radius: 8px; background: var(--copper); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; }
body.sdr .use-list, body.sdr .guide-list, body.sdr .ex-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
body.sdr .use-list li { display: flex; justify-content: space-between; gap: 10px; }
body.sdr .use-list a { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sdr .guide-list li { padding: 8px 10px; border-radius: 10px; background: var(--copper-soft); }
body.sdr .ex-list li { display: grid; gap: 2px; } body.sdr .ex-list span { color: var(--muted); font-size: 12.5px; }
body.sdr .week-bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 10px; align-items: end; }
body.sdr .wk { display: grid; gap: 4px; text-align: center; }
body.sdr .wk-col { position: relative; height: 140px; border-radius: 8px; background: #f6f7f8; overflow: hidden; }
body.sdr .wk-col span { position: absolute; left: 0; right: 0; bottom: 0; border-radius: 6px 6px 0 0; }
body.sdr .wk-col .sent { background: #e4e4e7; } body.sdr .wk-col .rep { background: var(--copper); }
body.sdr .wk b { font-size: 13px; font-variant-numeric: tabular-nums; } body.sdr .wk small { font-size: 11px; color: var(--muted); }
body.sdr .key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; } body.sdr .key.sent { background: #e4e4e7; } body.sdr .key.rep { background: var(--copper); }
body.sdr .learn-foot { margin: 18px 0 8px; max-width: 80ch; }
@media (max-width: 900px) { body.sdr .learn-hero { grid-template-columns: 1fr; padding: 20px; } body.sdr .learn-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { body.sdr .loop-flow, body.sdr .loop-runner, body.sdr .loop-core { animation: none; } }
body.sdr .cols-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
body.sdr .side > * { flex-shrink: 0; }
body.sdr .week-bars { grid-auto-columns: minmax(0, 72px); justify-content: start; }
