/* The plan interfaces (2026-10-05): the Rate Exports desk, the
   Contract Yield workspace and the Revenue Partner console. Everything
   shared (kpis, panels, tables, chips, buttons, bands) is styles.css;
   this is what those three add. No coloured edge rule on a rounded box
   (BANNED-ELEMENTS.md #1): emphasis is carried by fills and type. */

/* ---------- the plan page head ---------- */
.plan-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-5); flex-wrap: wrap; }
.plan-eyebrow {
  display: inline-block; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent);
}
.plan-state { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-state-sub { font-size: 12.5px; color: var(--muted); }

/* ---------- the exports desk ---------- */
.rx-desk { margin-bottom: var(--s-4); }
.rx-sources { grid-template-columns: repeat(3, 1fr); }
.rx-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s-5); }
.rx-codes textarea {
  width: 100%; resize: vertical; min-height: 120px;
  padding: 12px 14px; border-radius: var(--r-sm); border: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.6; color: var(--ink); background: var(--surface);
}
.rx-codes textarea:focus { outline: none; border-color: var(--ink); }
.rx-codes textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rx-count { margin-left: auto; font-family: var(--font-mono); letter-spacing: .04em; color: var(--ink); text-transform: none; }
.rx-found { display: flex; flex-wrap: wrap; gap: 5px; min-height: 8px; }
.rx-found .chip { font-family: var(--font-mono); }
.rx-recipes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; font-size: 12px; color: var(--muted); }
.rx-recipes > span { margin-right: 2px; }
.rx-side { display: grid; gap: var(--s-4); align-content: start; }
.rx-actions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 var(--s-6) var(--s-6); }
.rx-kpis { grid-template-columns: repeat(3, 1fr); margin: var(--s-5) 0 var(--s-4); border-radius: var(--r-lg); overflow: hidden; }
.rx-kpis > .kpi:last-child, .yd-lead .kpis > .kpi:last-child { grid-column: auto; }
.rx-preview { padding: var(--s-5); }
.rx-saved-wrap { margin-top: var(--s-6); }
.rx-saved-wrap .panel { padding: var(--s-3) var(--s-5); }

/* ---------- the yield workspace ---------- */
.yd { padding-bottom: var(--s-7); }
.yd-tabs { margin-top: var(--s-2); }
.yd-tabs .tab-btn { text-decoration: none; }
.yd-panel { min-height: 50vh; }
.yd-panel > * + * { margin-top: var(--s-4); }

.yd-mode {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding: 12px 18px; margin-bottom: var(--s-4); border-radius: var(--r-md);
  font-size: 13px; color: var(--text);
}
.yd-mode b { color: var(--ink); }
.yd-mode > span:not(.yd-stamp):not(.yd-dot) { flex: 1 1 360px; }
.yd-demo { background: var(--wash); border: 1px dashed var(--line-strong); }
.yd-own { background: var(--ok-bg); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.yd-stamp {
  flex: none; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--ink); color: var(--page); padding: 4px 9px; border-radius: var(--r-xs);
}
.yd-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

.yd-loading { display: flex; gap: 6px; justify-content: center; padding: 80px 0; }
.yd-loading span { width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); animation: yd-pulse 1.4s ease-in-out infinite; }
.yd-loading span:nth-child(2) { animation-delay: .2s; }
.yd-loading span:nth-child(3) { animation-delay: .4s; }
@keyframes yd-pulse { 0%, 100% { opacity: .3; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .yd-loading span { animation: none; opacity: .6; } }

.yd-kpis { border-radius: var(--r-lg); overflow: hidden; }
.yd-kpis .k-value { font-size: clamp(1.6rem, 2.3vw, 2.3rem); }
.yd-rule { font-size: 13px; color: var(--muted); max-width: 90ch; }
.yd-note { font-size: 12.5px; color: var(--muted); margin-top: var(--s-3); line-height: 1.55; }
.yd-muted { color: var(--muted); font-size: 12px; }
.mono { font-family: var(--font-mono); }

.yd-two { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.yd-three { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.yd-card { padding: var(--s-5); border-radius: var(--r-lg); }
.yd-card h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.015em; margin: 2px 0 var(--s-3); color: var(--ink); }
.yd-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); flex-wrap: wrap; }
.yd-card-head .num-mark { margin-bottom: 4px; }
.yd-more { font-size: 12.5px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.yd-tablewrap { padding: var(--s-2) var(--s-4) var(--s-4); border-radius: var(--r-lg); }
table.data.yd-compact td, table.data.yd-compact th { padding-top: 8px; padding-bottom: 8px; }
table.data.yd-compact { font-size: 13px; }

/* the headline: the doc's own example block, printed as a ticket */
.yd-headline {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 0;
  background: var(--band); color: var(--band-text); border-radius: var(--r-lg); overflow: hidden;
}
.yd-hl-text { padding: var(--s-6); display: flex; flex-direction: column; gap: 10px; }
.yd-hl-text .num-mark { color: var(--band-dim); }
.yd-hl-text h2 { font-family: var(--font-display); font-size: clamp(19px, 2.2vw, 25px); letter-spacing: -0.02em; line-height: 1.25; color: var(--band-text); }
.yd-hl-text p { color: var(--band-dim); font-size: 14px; }
.yd-hl-text p b { color: var(--band-text); }
.yd-hl-text .mk-arrow { color: var(--band-text); margin-top: auto; }
.yd-ticket {
  margin: 0; padding: var(--s-5) var(--s-6); background: rgba(255, 255, 255, .06);
  display: grid; align-content: center;
}
.yd-ticket div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--band-line); font-size: 13px; }
.yd-ticket div:last-child { border-bottom: none; }
.yd-ticket dt { color: var(--band-dim); }
.yd-ticket dd { margin: 0; color: var(--band-text); font-variant-numeric: tabular-nums; text-align: right; }

.yd-totals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: var(--s-4); }
.yd-totals div { background: var(--wash); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.yd-totals span { font-size: 11.5px; color: var(--muted); }
.yd-totals b { font-family: var(--font-display); font-size: 21px; letter-spacing: -0.03em; color: var(--ink); }

.yd-bar { display: inline-block; position: relative; height: 6px; border-radius: var(--r-pill); background: var(--wash-deep); overflow: hidden; vertical-align: middle; }
.yd-bar i { position: absolute; inset: 0 auto 0 0; background: var(--ink); border-radius: var(--r-pill); }
.yd-bar.flag i { background: var(--flag); }
.yd-cats { display: grid; gap: 9px; }
.yd-cat { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 70px 36px; gap: 10px; align-items: center; font-size: 13px; }
.yd-cat .yd-bar { width: 100%; }
.yd-cat b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.yd-cat i { font-style: normal; text-align: right; color: var(--muted); font-size: 12px; }

.yd-teamrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--s-3); }
.yd-team {
  display: flex; flex-direction: column; gap: 3px; text-align: left; text-decoration: none; color: inherit;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease;
}
.yd-team:hover { border-color: var(--line-strong); }
.yd-team.on { background: var(--surface); border-color: var(--ink); }
.yd-team-name { font-size: 12px; font-weight: 600; color: var(--muted); }
.yd-team b { font-family: var(--font-display); font-size: 26px; letter-spacing: -0.03em; color: var(--ink); }
.yd-team span { font-size: 12px; color: var(--text); }
.yd-team-rec { color: var(--ok) !important; }

.yd-legend { font-size: 11.5px; color: var(--muted); display: flex; gap: 10px; align-items: center; }
.yd-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 3px; vertical-align: -1px; }
.yd-legend i.e, .yd-mbars .e { background: var(--wash-deep); }
.yd-legend i.p, .yd-mbars .p { background: var(--ink); }
.yd-legend i.d, .yd-mbars .d { background: var(--flag); }
.yd-months { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 170px; margin-top: var(--s-3); }
.yd-month { display: flex; flex-direction: column; align-items: stretch; height: 100%; }
.yd-mbars { flex: 1; display: flex; align-items: flex-end; gap: 2px; border-bottom: 1px solid var(--line-strong); }
.yd-mbars span { flex: 1; border-radius: 2px 2px 0 0; min-height: 1px; }
.yd-mlabel { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); text-align: center; margin-top: 6px; }

/* opportunities */
.yd-packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s-3); }
.yd-pack {
  display: flex; flex-direction: column; gap: 3px; text-align: left; padding: 14px 16px;
  border-radius: var(--r-md); background: var(--tile); border: 1px solid var(--line);
  transition: border-color .25s ease, background .25s ease;
}
.yd-pack:hover { border-color: var(--line-strong); }
.yd-pack.on { background: var(--surface); border-color: var(--ink); }
.yd-pack-name { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.yd-pack b { font-family: var(--font-display); font-size: 24px; letter-spacing: -0.03em; color: var(--ink); }
.yd-pack span { font-size: 12px; color: var(--text); }
.yd-pack-renew { color: var(--muted) !important; font-family: var(--font-mono); font-size: 10.5px !important; letter-spacing: .04em; margin-top: 4px; }
.yd-toolbar { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); flex-wrap: wrap; }
.yd-toolbar .filter-chips { margin-bottom: 0; }
.yd-opp-row { cursor: pointer; }
.yd-opp-row.open { background: var(--wash); }
.yd-opp-row.yd-at td { color: var(--muted); }
.yd-score { display: inline-block; min-width: 38px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums;
  padding: 2px 8px; border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--wash-deep) var(--s), transparent var(--s)), var(--wash); color: var(--ink); }
.yd-scen-row td { background: var(--wash); padding: var(--s-4) var(--s-5) !important; }
.yd-scen { display: grid; gap: var(--s-3); max-width: min(980px, calc(100vw - var(--side-w, 232px) - 120px)); position: sticky; left: 0; }
.yd-scen-head { display: flex; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; align-items: baseline; }
.yd-scen table.data { background: var(--surface); border-radius: var(--r-sm); }
.yd-custom input { width: 120px; text-align: right; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--r-xs); font: inherit; background: var(--surface); color: var(--ink); }
.yd-evidence { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 8px 18px; margin: 0; }
.yd-evidence div { display: flex; flex-direction: column; gap: 2px; }
.yd-evidence dt { font-size: 11px; color: var(--muted); }
.yd-evidence dd { margin: 0; font-size: 13.5px; color: var(--ink); }
/* the market range: p25 to p90 span, ticks at p25 / median / p75, a dot for the rate */
.yd-nowrap { white-space: nowrap; }
.yd-rangecell { min-width: 150px; }
table.data.yd-opps td { vertical-align: middle; }
table.data.yd-opps th, table.data.yd-opps td { padding-left: 10px; padding-right: 10px; }
.yd-range { display: inline-flex; flex-direction: column; gap: 5px; width: 140px; vertical-align: middle; }
.yd-range-track { position: relative; height: 12px; }
.yd-range-track::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--wash-deep); border-radius: var(--r-pill); }
.yd-range-span { position: absolute; top: 4px; height: 4px; background: var(--line-strong); border-radius: var(--r-pill); }
.yd-range-tick { position: absolute; top: 1px; width: 1px; height: 10px; background: var(--muted); transform: translateX(-.5px); }
.yd-range-tick.med { width: 2px; background: var(--ink); transform: translateX(-1px); }
.yd-range-dot { position: absolute; top: 2px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--surface); border: 2px solid var(--ink); box-sizing: border-box; }
.yd-range-dot.below { border-color: var(--flag); background: var(--flag); }
.yd-range-label { font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.yd-section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--s-3); margin-bottom: var(--s-3); flex-wrap: wrap; }
.yd-h3 { font-family: var(--font-display); font-size: 17px; letter-spacing: -0.015em; color: var(--ink); margin: 2px 0 0; }
.yd-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.yd-rule-tight { margin: 0; }
.yd-rule-tight b { color: var(--ink); }
.yd-empty { padding: var(--s-5) var(--s-2); color: var(--muted); font-size: 13.5px; }
.yd-above > summary, .yd-method > summary { cursor: pointer; list-style: none; padding: var(--s-3) var(--s-2); font-size: 13.5px; color: var(--ink); }
.yd-above > summary::-webkit-details-marker, .yd-method > summary::-webkit-details-marker { display: none; }
.yd-above > summary::before, .yd-method > summary::before { content: "+"; display: inline-block; width: 16px; font-family: var(--font-mono); color: var(--muted); }
.yd-above[open] > summary::before, .yd-method[open] > summary::before { content: "\2212"; }
.yd-method > summary { padding-left: 0; font-size: 12.5px; color: var(--muted); }
.yd-method p { font-size: 12.5px; color: var(--muted); line-height: 1.6; max-width: 90ch; margin: 0 0 0 16px; }
.yd-evidence .yd-ev-wide { grid-column: 1 / -1; }
.yd-opp-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

@media print {
  #site-nav, #site-footer, .cookie-bar, .yd-tabs, .yd-actions, .yd-noprint, .plan-state, .yd-mode .btn, .yd-method > summary::before { display: none !important; }
  body { background: #fff; color: #000; }
  .yd-packs .yd-pack:not(.on) { display: none; }
  .yd-packs:not(:has(.on)) .yd-pack { display: flex; }
  .yd-scen-row { display: none !important; }
  .tbl-scroll { overflow: visible !important; }
  .panel, .kpis { box-shadow: none !important; break-inside: auto; }
  tr { break-inside: avoid; }
}

.yd-filterset { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px var(--s-3); align-items: start; }
.yd-filterrow { grid-column: 1; display: flex; gap: 10px; align-items: baseline; }
.yd-filterrow .filter-chips { margin-bottom: 0; }
.yd-filterlabel { flex: none; width: 48px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.yd-filterset-act { grid-column: 2; grid-row: 1; }
.yd-mini li > span i { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.yd-ops { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
@media (max-width: 760px) { .yd-filterset { grid-template-columns: 1fr; } .yd-filterset-act { grid-column: 1; grid-row: auto; justify-self: start; } .yd-filterrow { flex-direction: column; gap: 6px; } }

.lk-stamp-sm { font-family: var(--font-mono); font-size: 11px; font-weight: 600; background: var(--ink); color: var(--page); padding: 2px 7px; border-radius: var(--r-xs); }

/* denials */
.yd-split { display: flex; height: 14px; border-radius: var(--r-pill); overflow: hidden; background: var(--wash-deep); margin-top: 6px; }
.yd-split span { display: block; height: 100%; }
.yd-split .d, .yd-split-legend i.d { background: var(--flag); }
.yd-split .u, .yd-split-legend i.u { background: var(--ink); }
.yd-split .n, .yd-split-legend i.n { background: var(--muted); }
.yd-split .p, .yd-split-legend i.p { background: var(--line-strong); }
.yd-split-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 12px; font-size: 12.5px; color: var(--text); }
.yd-split-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.yd-split-legend b { color: var(--ink); margin-left: 4px; }
.yd-conflict b { display: block; font-family: var(--font-display); font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.yd-conflict p { font-size: 13px; color: var(--text); margin-top: 6px; }
.yd-ratecell { display: inline-flex; align-items: center; gap: 10px; }
.yd-ratecell .yd-bar { width: 110px; }

/* expected vs actual */
.yd-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px; background: var(--line); border-radius: var(--r-md); overflow: hidden; }
.yd-flow li { background: var(--surface); padding: 12px 12px 12px 14px; font-size: 12.5px; color: var(--ink); font-weight: 500; display: flex; gap: 8px; align-items: flex-start; position: relative; }
.yd-flow li span { flex: none; font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); padding-top: 1px; }
.yd-flow li:last-child { background: var(--ink); color: var(--page); }
.yd-flow li:last-child span { color: var(--band-dim); }
.yd-lines td { font-size: 12.5px; }
.yd-neg { color: var(--flag); font-weight: 600; }
.yd-out { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--wash); color: var(--text); white-space: nowrap; }
.yd-out.flag { background: var(--flag-bg); color: var(--flag); }
.yd-reason { display: block; margin-top: 3px; }
.yd-pager { display: flex; justify-content: center; align-items: center; gap: 14px; padding-top: var(--s-4); font-size: 12.5px; color: var(--muted); }

/* the work queue */
.yd-teamrow-tabs .yd-team { cursor: pointer; font: inherit; }
.yd-items { display: grid; gap: 8px; }
.yd-item {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, 330px); gap: var(--s-4); align-items: center;
  padding: 14px 18px; border-radius: var(--r-md); background: var(--pane-strong); border: 1px solid var(--line);
}
.yd-item-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 11.5px; }
.yd-type { font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.yd-p-high .yd-type::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--flag); margin-right: 6px; vertical-align: 1px; }
.yd-item h4 { font-family: var(--font-display); font-size: 14.5px; color: var(--ink); margin: 4px 0 3px; letter-spacing: -0.01em; }
.yd-item p { font-size: 12.5px; color: var(--text); }
.yd-item-amt { text-align: right; }
.yd-item-amt b { display: block; font-family: var(--font-display); font-size: 19px; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.yd-item-amt span { font-size: 11px; color: var(--muted); }
.yd-item-work { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.yd-item-work select, .yd-item-work input {
  padding: 7px 9px; border-radius: var(--r-xs); border: 1px solid var(--line-strong); background: var(--surface);
  font: inherit; font-size: 12.5px; color: var(--ink); min-width: 0;
}
.yd-item-work select:disabled, .yd-item-work input:disabled { opacity: .55; }

/* team views */
.yd-teams { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
.yd-teams .yd-wide { grid-column: 1 / -1; }
.yd-big2 { font-family: var(--font-display); font-size: 18px; color: var(--ink); margin-bottom: var(--s-3); }
.yd-mini { list-style: none; margin: 0 0 var(--s-3); padding: 0; display: grid; gap: 0; }
.yd-mini li { display: flex; justify-content: space-between; gap: 14px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.yd-mini li:last-child { border-bottom: none; }
.yd-mini b { font-variant-numeric: tabular-nums; color: var(--ink); }
.yd-ledger { margin: 0; display: grid; }
.yd-ledger div { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.yd-ledger div:last-child { border-bottom: none; }
.yd-ledger dt { color: var(--text); }
.yd-ledger dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.yd-ledger dd.pos { color: var(--ok); }
.yd-flag { display: inline-grid; place-items: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; background: var(--flag-bg); color: var(--flag); font-size: 10px; font-weight: 800; }
.yd-lead .kpis { grid-template-columns: repeat(3, 1fr); }

/* data intake */
.yd-baa-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.yd-feeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.yd-feed { padding: var(--s-5); border-radius: var(--r-lg); display: flex; flex-direction: column; gap: 10px; }
.yd-feed-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.yd-feed-head b { font-family: var(--font-display); font-size: 15px; color: var(--ink); }
.yd-feed dl { margin: 0; display: grid; gap: 3px; }
.yd-feed dt { font-size: 10.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.yd-feed dd { margin: 0; font-size: 12.5px; color: var(--text); line-height: 1.5; }
.yd-feed-files { display: grid; gap: 6px; margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.yd-file { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink); }
.yd-file i { display: block; font-style: normal; font-size: 11px; color: var(--muted); }
.yd-feed-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.yd-upload { cursor: pointer; }
.yd-upload.disabled { cursor: not-allowed; opacity: .55; }
.yd-sample { font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.yd-share { background: var(--wash); }
.yd-settings { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-4); align-items: end; }
.yd-settings .btn { justify-self: start; }

/* ---------- the RCM console ---------- */
.rv-score { margin-bottom: var(--s-4); }
.rv-score .kpi { cursor: help; }
.rv-score .k-sub { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rv-aging { display: grid; gap: 10px; margin-top: 8px; }
.rv-age { display: grid; grid-template-columns: 90px minmax(0, 1fr) 70px 70px; gap: 10px; align-items: center; font-size: 13px; }
.rv-age .yd-bar { width: 100%; }
.rv-age b { text-align: right; font-variant-numeric: tabular-nums; color: var(--ink); }
.rv-age i { font-style: normal; text-align: right; color: var(--muted); font-size: 12px; }
.rv-help { margin-top: var(--s-6); }
.rv-form { display: grid; gap: var(--s-3); }
.rv-form textarea { width: 100%; padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: inherit; font-size: 13.5px; background: var(--surface); color: var(--ink); resize: vertical; }
.rv-form .btn { justify-self: start; }

@media (max-width: 1100px) {
  .yd-feeds { grid-template-columns: 1fr 1fr; }
  .yd-flow { grid-template-columns: repeat(3, 1fr); }
  .yd-item { grid-template-columns: minmax(0, 1fr) 110px; }
  .yd-item-work { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); }
  .yd-settings { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .yd-two, .yd-three, .yd-teams, .yd-headline, .rx-grid { grid-template-columns: 1fr; }
  .rx-sources { grid-template-columns: 1fr; }
  .yd-feeds { grid-template-columns: 1fr; }
  .yd-totals { grid-template-columns: 1fr; }
  .yd-months { gap: 3px; }
  .yd-tabs { overflow-x: auto; flex-wrap: nowrap; }
  .yd-tabs .tab-btn { white-space: nowrap; }
  .rx-kpis, .yd-lead .kpis { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .yd-item { grid-template-columns: 1fr; }
  .yd-item-amt { text-align: left; }
  .yd-item-work { grid-template-columns: 1fr 1fr; }
  .yd-flow { grid-template-columns: 1fr 1fr; }
  .yd-cat { grid-template-columns: minmax(0, 1fr) 60px 60px; }
  .yd-cat .yd-bar { display: none; }
}

/* ---------- pricing (2026-10-05): five plans on one fused sheet ---------- */
.pr-head p { max-width: 70ch; }
.plans.pr-plans { grid-template-columns: repeat(5, 1fr); }
.pr-plans .plan { padding: 46px var(--s-5) var(--s-5); position: relative; scroll-margin-top: 24px; transition: background .6s ease; }
.pr-plans .plan h3 { font-size: 16px; }
.pr-plans .plan .fee b { font-size: clamp(1.6rem, 2vw, 2.1rem); }
.pr-plans .plan ul { gap: 8px; }
/* block, not flex: a bolded phrase inside the line must flow with it */
.pr-plans .plan li { display: block; position: relative; padding-left: 24px; font-size: 12.5px; }
.pr-plans .plan li svg { position: absolute; left: 0; top: 2px; margin: 0; }
.pr-plans .plan li b { color: var(--ink); font-weight: 600; }
.pr-feature { background: var(--pane-strong); }
.pr-stamp, .pr-yours {
  position: absolute; top: 16px; left: var(--s-5);
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  padding: 4px 9px; border-radius: var(--r-xs);
}
.pr-stamp { background: var(--ink); color: var(--page); }
.pr-yours { background: var(--accent); color: #FFFFFF; }
.pr-feature.pr-current .pr-stamp { display: none; }
:where(:root[data-theme="dark"]) .pr-yours { color: #04140C; }
.pr-current { background: var(--ok-bg); }
.pr-sample { display: block; text-align: center; margin-top: 10px; font-size: 12px; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.pr-flash { background: var(--wash); }
.pr-foot { text-align: center; margin-top: var(--s-4); font-size: 12.5px; }
.pr-share-box {
  display: flex; justify-content: space-between; align-items: center; gap: var(--s-5); flex-wrap: wrap;
  padding: var(--s-6); border-radius: var(--r-lg); background: var(--wash);
}
.pr-share-box p { max-width: 70ch; color: var(--text); font-size: 14.5px; }
.pr-matrix tr.pr-group th {
  text-align: left; padding: 18px 12px 6px; border-bottom: 1px solid var(--line-strong);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink);
}
.pr-matrix td.num { font-size: 12.5px; }
@media (max-width: 1180px) {
  .plans.pr-plans { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
  .plans.pr-plans { grid-template-columns: 1fr; }
}

/* Team views: the three pattern tables share the row only when each
   has room for its five columns; otherwise they wrap (2026-10-19). The
   inner box scrolls as a last resort instead of spilling past the card. */
.yd-three { grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); }
.yd-three > div { min-width: 0; overflow-x: auto; }

/* Contract Yield's seven sections are listed in the rail; the same seven
   as a tab strip under the title were a second copy (2026-10-19). The
   strip stays in the page for its script, out of sight. */
#yd-tabs { display: none; }

/* on a phone the payer packs scroll sideways instead of stacking five tall */
@media (max-width: 640px) {
  .yd-packs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 210px; overflow-x: auto; padding-bottom: 4px; scroll-snap-type: x proximity; }
  .yd-pack { scroll-snap-align: start; }
}
