/* JuriLink × ECAP operators portal. Builds on app.css: same tokens, the proposal's dark-and-copper partnership look. */
:root { --ecap: #4cd5ff; --ecap-navy: #050f2d; --ok: #0f7a4a; --ok-soft: #e3f4ec; --warn: #a86a00; --warn-soft: #fbf1dc; }

/* Partnership lock-up */
.jv { display: flex; align-items: center; gap: 8px; text-decoration: none; color: var(--on-ink); font-weight: 600; font-size: 17px; letter-spacing: -0.03em; padding: 0 6px; }
.jv-mark { display: inline-flex; align-items: center; gap: 8px; }
.jv-x { color: #8a8a93; font-weight: 400; }
.jv-partner { letter-spacing: 0.01em; }
.jv-logo { display: inline-flex; align-items: center; color: #fff; }
.jv-logo svg { height: 15px; width: auto; display: block; }
.jv.on-dark .jv-logo svg { height: 19px; }
.jv-sub { font: 500 10.5px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #8a8a93; padding: 0 6px; margin-top: -8px; }

/* Dark sidebar, like the proposal header */
body.ops .side { background: var(--ink); color: var(--on-ink); position: sticky; overflow: hidden; }
body.ops .shell { background: linear-gradient(90deg, var(--ink) 236px, #fff 236px); }
body.ops .side::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle at 60% 60%, rgba(76,213,255,.22), rgba(76,213,255,0) 70%); left: -150px; top: -150px; pointer-events: none; }
body.ops .side > * { position: relative; z-index: 1; }
body.ops .side::after { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(226,87,43,.55), rgba(226,87,43,0) 70%); right: -170px; bottom: -150px; pointer-events: none; }
body.ops .nav { margin-top: 10px; }
body.ops .nav a { color: #b4b4bc; }
body.ops .nav a:hover { color: #fff; background: rgba(255,255,255,.06); }
body.ops .nav a.on { background: rgba(255,255,255,.1); color: #fff; }
body.ops .nav .count { 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; }
body.ops .side-foot { color: #b4b4bc; position: relative; z-index: 1; }
body.ops .side-foot .linkish { color: #b4b4bc; }
body.ops .side { width: 236px; padding: 22px 14px; gap: 18px; border-right: 0; }
body.ops .main { padding: 32px clamp(16px, 3vw, 44px) 64px; }
body.ops .who-me { color: #fff; }
body.ops .avatar { background: var(--copper); }
.who-me { display: flex; gap: 10px; align-items: center; color: #fff; }
.who-me > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.who-me .small { color: #8a8a93; }
.avatar { width: 32px; height: 32px; flex: none; border-radius: 10px; background: var(--copper); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }

.eyebrow { font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--copper-ink); margin: 0 0 8px; }
.mono { font-family: var(--mono); }
.back { display: inline-block; margin-bottom: 14px; color: var(--muted); text-decoration: none; }
.sample-note { background: var(--copper-soft); color: var(--copper-ink); border-radius: 14px; padding: 10px 14px; font-size: 13.5px; margin-bottom: 18px; }
.sample-note strong { color: var(--copper-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.ok::before { background: var(--ok); }
.badge.big { font-size: 13.5px; padding: 6px 14px; }
.label { font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.card.dark .label { color: #a1a1aa; }
.fig .of { font-size: 15px; color: var(--muted); font-family: var(--sans); letter-spacing: 0; }
.card.dark .fig .of { color: #a1a1aa; }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 20px; }
.kpis.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis .card { padding: 18px 20px; }
.kpis .card.dark { position: relative; overflow: hidden; }
.kpis .card.dark::after { content: ""; position: absolute; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(226,87,43,.45), rgba(226,87,43,0) 70%); right: -60px; top: -60px; pointer-events: none; }
.kpis .card.dark > * { position: relative; z-index: 1; }

/* Tabs */
.sub-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 0 0 16px; padding: 4px; background: var(--s2); border-radius: 999px; width: fit-content; max-width: 100%; }
.sub-tabs a { padding: 7px 14px; border-radius: 999px; text-decoration: none; color: var(--muted); font-size: 13.5px; font-weight: 500; }
.sub-tabs a.on, .sub-tabs a:hover { background: #fff; color: var(--ink); }

/* Introductions list */
.intro-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.intro-card { display: block; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; transition: border-color .15s, box-shadow .15s; }
.intro-card:hover { border-color: var(--ink); box-shadow: 0 8px 24px rgba(10,10,11,.06); color: var(--ink); }
.intro-card.awaiting { box-shadow: inset 4px 0 0 var(--copper); }
.intro-card.elsewhere, .intro-card.passed { background: #fcfcfc; }
.ic-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ic-name { font-weight: 600; font-size: 16.5px; letter-spacing: -0.02em; }
.ic-meta { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.ic-body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; margin-top: 14px; }
.ic-body .k { display: block; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ic-body .v { font-size: 14px; }
.pct { font-family: var(--mono); font-size: 12px; background: var(--ink); color: #fff; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }
.ic-why { margin-top: 12px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* Detail */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.facts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 18px; margin: 14px 0 0; }
.facts-grid dt, .rec dt { font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.facts-grid dd, .rec dd { margin: 2px 0 0; font-size: 14px; }
.rec { display: grid; gap: 10px; margin: 0; }
.prov-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.prov { border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.prov.top { border-color: var(--ink); }
.prov-head { display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; }
.prov-n { width: 28px; height: 28px; border-radius: 9px; background: var(--s2); display: inline-flex; align-items: center; justify-content: center; font: 600 13px var(--mono); }
.prov.top .prov-n { background: var(--copper); color: #fff; }
.prov-name { display: flex; flex-direction: column; min-width: 0; }
.prov-score { text-align: right; display: flex; flex-direction: column; }
.prov-score .mono { font-size: 20px; letter-spacing: -0.03em; }
.prov-score .small { color: var(--muted); font-size: 12px; }
.prov-score small { font-size: 12px; color: var(--muted); }
.meter { height: 6px; border-radius: 999px; background: var(--s2); margin: 12px 0 10px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); border-radius: 999px; }
.prov.top .meter i { background: var(--copper); }
.prov-why { display: flex; flex-wrap: wrap; gap: 6px; }
.why { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; }
.why.ok { background: var(--ok-soft); color: var(--ok); }
.why.warn { background: var(--warn-soft); color: var(--warn); }
.excl { margin-top: 12px; font-size: 13.5px; }
.excl summary { cursor: pointer; color: var(--muted); }
.excl ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.doc-list { margin: 8px 0 0; padding-left: 18px; }
.doc-list li { margin: 4px 0; }
.checks-list { list-style: none; padding: 0; margin: 8px 0 16px; display: grid; gap: 8px; }
.checks-list li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 14px; }
.checks-list li::before { content: ""; width: 18px; height: 18px; border-radius: 6px; margin-top: 2px; background: var(--copper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.checks-list li.no::before { background: #3f3f46 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M7 7l10 10M17 7L7 17'/%3E%3C/svg%3E") center/11px no-repeat; }
.checks-list li.no { color: #a1a1aa; }
.value-box { border-top: 1px solid rgba(255,255,255,.12); padding-top: 14px; }
.value-box .fig { font-size: 30px; letter-spacing: -0.03em; margin: 4px 0 10px; }
.vline { display: flex; justify-content: space-between; font-size: 13.5px; color: #d4d4d8; padding: 3px 0; }
.card.dark .small.muted { color: #a1a1aa; }
.email-preview { white-space: pre-wrap; font: 14px/1.6 var(--sans); background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin: 10px 0; }
.card.soft .email-preview { background: #fff; }

/* Tables */
.ops-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.ops-table th { text-align: left; font: 500 10.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 12px 14px; background: var(--s2); white-space: nowrap; }
.ops-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.ops-table .num { text-align: right; }
.ops-table .why-cell { max-width: 380px; color: var(--muted); }
.ops-table .act { text-align: right; white-space: nowrap; }

/* Settings */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
.grid-3 { display: grid; grid-template-columns: 2fr 1fr 1.4fr; gap: 12px; }
.mini-h { font: 500 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 18px 0 8px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-check { position: relative; cursor: pointer; }
.chip-check input { position: absolute; opacity: 0; }
.chip-check span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; color: var(--muted); background: #fff; }
.chip-check input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip-check input:focus-visible + span { outline: 2px solid var(--copper); outline-offset: 2px; }
.panel-list { display: grid; gap: 8px; margin-top: 12px; }
.pv { border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pv.off { opacity: .65; }
.pv summary { list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; flex-wrap: wrap; }
.pv summary::-webkit-details-marker { display: none; }
.pv-name { display: flex; flex-direction: column; }
.pv-tags { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pv-body { padding: 0 16px 16px; border-top: 1px solid var(--line); padding-top: 14px; }
.pol-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 12px; }
.pol { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.pol select { width: auto; min-width: 128px; padding: 5px 8px; font-size: 13px; border-radius: 10px; }
.pol select.pol-decline { color: var(--stop); }
.pol select.pol-refer { color: var(--warn); }
.add-pv { margin-top: 12px; }
.add-pv input { flex: 1; min-width: 200px; }
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.team-list { list-style: none; padding: 0; margin: 8px 0 0; }
.team-list li { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.ops-foot { margin-top: 40px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; }
.empty { text-align: center; padding: 40px 20px; }

/* Sign-in */
.oa { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 100vh; }
.oa-panel { background: var(--ink); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.jv.on-dark { font-size: 20px; }
.oa-pitch { position: relative; z-index: 1; max-width: 440px; }
.oa-kicker { font: 500 11px/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--copper); margin: 0 0 12px; }
.oa-pitch h2 { font-size: 34px; line-height: 1.12; letter-spacing: -0.035em; margin: 0 0 18px; }
.oa-pitch ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: #d4d4d8; }
.oa-pitch li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--copper); margin-right: 10px; vertical-align: 1px; }
.oa-orb { position: absolute; width: 520px; height: 520px; border-radius: 50%; right: -260px; top: -200px; background: radial-gradient(circle at 35% 35%, rgba(226,87,43,.6), rgba(226,87,43,.08) 65%, transparent 72%); }
.oa-orb.ecap { right: auto; top: auto; left: -240px; bottom: -260px; width: 460px; height: 460px; background: radial-gradient(circle at 60% 40%, rgba(76,213,255,.38), rgba(76,213,255,.06) 62%, transparent 72%); }
.oa-panel { background: linear-gradient(160deg, #0a0a0b 0%, #0a0a0b 55%, var(--ecap-navy) 100%); }
.oa-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
.oa-box { width: 100%; max-width: 380px; }
.oa-box h1 { margin-bottom: 8px; }
.oa-box .lede { color: var(--muted); margin: 0 0 24px; }
.oa-foot { font-size: 12px; color: var(--muted); margin-top: 32px; }
.center { text-align: center; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .detail-grid, .intro-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; }
  body.ops .shell { background: #fff; }
  body.ops .side { width: 100%; height: auto; position: static; padding: 14px 12px; gap: 10px; }
  body.ops .side::after, body.ops .side::before { display: none; }
  .jv-sub { margin-top: -4px; }
  body.ops .nav { flex-direction: row; overflow-x: auto; gap: 4px; margin-top: 4px; scrollbar-width: none; }
  body.ops .nav a { white-space: nowrap; padding: 8px 12px; }
  body.ops .nav .count { margin-left: 6px; }
  body.ops .side-foot { display: none; }
  body.ops .main { padding: 20px 16px 48px; }
  .intro-list, .kpis.three { grid-template-columns: minmax(0, 1fr); }
  .grid-2, .grid-3, .facts-grid { grid-template-columns: minmax(0, 1fr); }
  .oa { grid-template-columns: minmax(0, 1fr); }
  .oa-panel { padding: 24px 20px 28px; min-height: 0; }
  .oa-pitch { margin-top: 28px; }
  .oa-pitch h2 { font-size: 26px; }
  h1 { font-size: 25px; }
}
@media (max-width: 520px) {
  .kpis { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .kpis .card { padding: 14px; }
  .kpi .fig { font-size: 24px; }
  .ic-body { grid-template-columns: minmax(0, 1fr); }
  .pol-grid { grid-template-columns: minmax(0, 1fr); }
}

/* AI SDR page: the SDR's mission control, read-only, inside the partner portal */
body.ops.sdr .ops-sdr-head { margin-top: 32px; }
.spend-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.spend-grid .card { padding: 16px 18px; }
.spend-grid .fig { font-size: 26px; letter-spacing: -0.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.spend-bars { display: grid; gap: 8px; margin-top: 12px; }
.spend-bar { display: grid; grid-template-columns: 150px 1fr 70px; gap: 10px; align-items: center; font-size: 13.5px; }
.spend-bar .track { height: 8px; border-radius: 999px; background: var(--s2); overflow: hidden; }
.spend-bar .track i { display: block; height: 100%; border-radius: 999px; background: var(--copper); }
.spend-bar .amt { text-align: right; font-variant-numeric: tabular-nums; }
.daily { display: flex; align-items: flex-end; gap: 4px; height: 90px; margin-top: 14px; }
.daily span { flex: 1; background: var(--ink); border-radius: 4px 4px 0 0; min-height: 2px; position: relative; }
.daily span.today { background: var(--copper); }
.daily-axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.funnel-row { display: grid; grid-template-columns: 130px 1fr 70px; gap: 10px; align-items: center; font-size: 14px; padding: 5px 0; }
.funnel-row .track { height: 10px; border-radius: 999px; background: var(--s2); overflow: hidden; }
.funnel-row .track i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.funnel-row:last-child .track i { background: var(--copper); }
.funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
body.ops.sdr .chan { cursor: default; }
body.ops.sdr .moves b { color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
body.ops.sdr .rings a, body.ops.sdr .mission-forecast a { cursor: default; }
body.ops.sdr .rings a:hover { background: inherit; }
body.ops.sdr .mission-forecast a:hover { border-color: var(--line); }
body.ops.sdr .main { background: var(--canvas); }
body.ops.sdr .chan:hover { border-color: #e3e5e9; }
body.ops.sdr .q-step { cursor: default; }
@media (max-width: 860px) {
  body.ops.sdr .shell { display: flex; flex-direction: column; background: #fff; }
  body.ops.sdr .side { position: static; transform: none; visibility: visible; width: 100%; height: auto; padding: 14px 12px; box-shadow: none; transition: none; overflow: hidden; }
  body.ops.sdr .side .nav { flex-direction: row; flex-wrap: nowrap; overflow-x: auto; }
  body.ops.sdr .side .nav a { padding: 8px 12px; font-size: 14px; }
  body.ops.sdr .main { padding: 20px 16px 48px; }
}
@media (max-width: 860px) { .spend-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .spend-bar { grid-template-columns: 110px 1fr 60px; } }
