/* Sends and one send (/:slug/sends, /:slug/sends/:id): this page group's own rules, loaded after app.css.
 *
 * The shared components (the header, the title line ov-head, the list chooser ov-lists and service
 * chip ov-esp, figures ov-figs / ov-f-*, ov-lead, ov-plot, keys, marks, meters, ov-vs, ov-div, tones
 * ov-s-*) live in app.css with one name each: use them, never redefine them here. Every colour is a
 * token from the top of app.css. Every class of this page group starts with snd-; an is- rule is
 * always scoped to its component. */

/* ─── The lead: the period's click rate beside every send as a column ─── */

.snd-clicks b { font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; }

.snd-chart { position: relative; min-width: 0; padding: 0 30px 0 34px; }
.snd-chart-key { position: absolute; right: 0; top: -4px; margin: 0; justify-content: flex-end; font-size: 11.5px; }
.snd-chart-key .ov-sm { width: 14px; height: 4px; }
.ov-k .snd-k-new { display: inline-block; width: 8px; height: 10px; border-radius: 1.5px 1.5px 0 0; background: var(--mark); opacity: 0.4; }
.snd-plot { margin-top: 22px; }
/* The average's label sits in the gutter on the right, clear of the columns. */
.snd-plot > .ov-avg { right: -30px; }

.snd-days { position: absolute; inset: 0 1%; z-index: 2; display: flex; }
.snd-day { position: relative; flex: 1 1 0; min-width: 0; display: flex; justify-content: center; gap: 3px; }
.snd-days.is-tight .snd-day { gap: 2px; }
.snd-days.is-dense .snd-day { gap: 1px; }
/* A send: the whole height is its target; the bar is inside; the rail under the base says who sent it. */
.snd-col { position: relative; flex: 0 1 11px; min-width: 2px; height: 100%; display: flex; align-items: flex-end; }
.snd-days.is-tight .snd-col { flex-basis: 7px; }
.snd-days.is-dense .snd-col { flex-basis: 3px; }
.snd-col > i { display: block; width: 100%; min-height: 1px; border-radius: 2px 2px 0 0; background: var(--mark); }
.snd-days.is-dense .snd-col > i { border-radius: 1px 1px 0 0; }
.snd-col.is-new > i { opacity: 0.4; }
.snd-col:hover > i, .snd-col:focus-visible > i { background: var(--accent); opacity: 1; }
.snd-col:focus-visible { outline: none; }
.snd-col::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 3px; border-radius: 1px; background: var(--line-2); }
.snd-col.is-pilot::after { background: var(--mark); }
.snd-col.is-pilot.is-late::after { background: linear-gradient(90deg, var(--mark) 0 50%, var(--warn) 50%); }
.snd-tag { position: absolute; z-index: 4; left: 50%; transform: translateX(-50%); padding: 0 3px; border-radius: 3px; background: var(--bg); font-size: 10.5px; font-weight: 600; line-height: 12px; color: var(--ink-2); white-space: nowrap; font-variant-numeric: tabular-nums; }

.snd-x { display: flex; margin: 14px 1% 0; font-size: 11px; line-height: 16px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.snd-x > span { flex: 1 1 0; min-width: 0; text-align: center; white-space: nowrap; }
.snd-x b { font-weight: 500; }
.snd-x > .is-today b { padding: 0 5px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 650; }

/* ─── The strip: by send time, revenue per send, list health ─── */

.snd-strip { margin-top: 0; }
.snd-legend { margin-top: 0; font-size: 12px; }
.snd-legend .ov-sw8:first-child { margin-left: 0; }
.snd-strip .ov-f-v .ov-chg { margin-left: 4px; vertical-align: 3px; letter-spacing: 0; }
.snd-strip .ov-hms { margin-top: 6px; }

/* By send time: one bar each, from zero, on one scale. */
.snd-t { display: grid; grid-template-columns: 46px minmax(0, 1fr) 52px; align-items: center; column-gap: 10px; height: 25px; outline: none; }
.ov-f-h + .snd-t { margin-top: 6px; }
.snd-t > span { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; }
.snd-t > i { display: block; height: 6px; border-radius: 0 3px 3px 0; background: var(--mark); }
.snd-t > b { text-align: right; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.snd-t > b small { font-size: 0.75em; font-weight: 500; color: var(--ink-3); }

/* ─── Every send ─── */

.snd-sec { margin-top: 26px; }
.snd-sec > .ov-cap { margin-bottom: 4px; }

.snd-rows { --snd-cols: 92px 74px minmax(0, 1fr) minmax(140px, 240px) 62px 62px; margin-top: 6px; }
.snd-rows.is-norev { --snd-cols: 92px 74px minmax(0, 1fr) minmax(140px, 260px) 62px; }
.snd-rows.is-ranked { --snd-cols: 26px minmax(0, 1fr) minmax(160px, 280px) 62px 52px; }
.snd-row { display: grid; grid-template-columns: var(--snd-cols); column-gap: 14px; align-items: center; min-height: 34px; margin: 0 -10px; padding: 0 10px; }
a.snd-row:hover { background: var(--bg-2); }
a.snd-row:hover .snd-subj > span:first-child { color: var(--accent); }
.snd-row.is-d0 { box-shadow: inset 0 1px 0 var(--line); }
.snd-rh { min-height: 28px; align-items: end; padding-bottom: 6px; font-size: 11.5px; color: var(--ink-3); }
.snd-rh .snd-r { font-size: 11.5px; color: var(--ink-3); }
.snd-when { font-size: 12.5px; font-weight: 550; color: var(--ink-2); white-space: nowrap; }
.snd-time { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.snd-time .ov-sm { flex: none; width: 12px; height: 5px; }
.snd-subj { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 500; }
.snd-subj > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* A new article: a dot, its word in the tip. */
.snd-new { flex: none; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.snd-int { flex: none; font-size: 11.5px; font-weight: 400; color: var(--ink-3); white-space: nowrap; }
.snd-flag { flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 0 7px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); font-size: 11.5px; font-weight: 550; line-height: 18px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.snd-flag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--warn); }
.snd-flag.ov-s-bad::before { background: var(--bad); }
.snd-bar { position: relative; align-self: stretch; }
.snd-bar > i { position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--mark); }
.snd-bar > b { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); opacity: 0.55; }
.snd-row.is-new .snd-bar > i { opacity: 0.4; }
.snd-rate { text-align: right; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.snd-rate small { margin-left: 1px; font-size: 0.72em; font-weight: 500; color: var(--ink-3); }
.snd-r { text-align: right; font-size: 12.5px; color: var(--ink-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.snd-r.is-sofar, .snd-r.is-none { color: var(--ink-3); }
.snd-r.ov-up { color: var(--up); }
.snd-scale { position: relative; align-self: stretch; }
.snd-scale > span { position: absolute; bottom: 0; transform: translateX(-50%); white-space: nowrap; font-variant-numeric: tabular-nums; }
.snd-scale > span:first-child { transform: none; }
.snd-scale > span:last-child { transform: translateX(-100%); }
.snd-scale > .snd-sa { color: var(--ink-2); font-weight: 550; }
.snd-fold { display: flex; align-items: center; gap: 7px; height: 30px; font-size: 12px; color: var(--ink-3); }
.snd-fold::after { content: ""; flex: 1 1 0; border-top: 1px dashed var(--line-2); }
a.snd-fold:hover { color: var(--ink); }
.snd-fold-end { height: 10px; margin-bottom: 4px; border-bottom: 1px dashed var(--line-2); }
.snd-fold-link { margin-top: 6px; }

/* Ranked: subject lines best first; each sending a dot on one line (filled: the latest). */
.snd-rank { font-size: 11.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.snd-dots { position: relative; align-self: stretch; }
.snd-dots > .snd-gv { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.snd-dots > b { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--ink-3); opacity: 0.55; }
.snd-dots > s { position: absolute; top: 50%; height: 2px; margin-top: -1px; background: var(--mark); opacity: 0.4; }
.snd-dots > i { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: var(--bg); box-shadow: inset 0 0 0 2px var(--mark); }
.snd-dots > i.is-last { background: var(--mark); }
.snd-avgrow { min-height: 28px; background: var(--bg-2); font-size: 12px; font-weight: 600; color: var(--ink-2); }
.snd-avgrow .snd-rate { font-size: 13px; }

/* Calendar: the list's send times down, its days across; each send shaded by where it stands among the others. */
.snd-cal { display: grid; grid-template-columns: 50px repeat(var(--n), minmax(0, 1fr)); column-gap: 3px; row-gap: 4px; margin-top: 14px; }
.snd-cd { display: flex; flex-direction: column; align-items: center; padding-bottom: 4px; font-size: 11px; line-height: 15px; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.snd-cd b { min-width: 22px; padding: 0 4px; border-radius: 999px; text-align: center; font-weight: 600; color: var(--ink-2); }
.snd-cd.is-today b { background: var(--accent); color: var(--on-accent); }
.snd-cs { align-self: center; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.snd-tile { display: flex; align-items: center; justify-content: center; height: 30px; border-radius: 4px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.snd-tile.h0 { background: var(--heat-0); color: var(--heat-ink-0); }
.snd-tile.h1 { background: var(--heat-1); color: var(--heat-ink-1); }
.snd-tile.h2 { background: var(--heat-2); color: var(--heat-ink-2); }
.snd-tile.h3 { background: var(--heat-3); color: var(--heat-ink-3); }
.snd-tile.h4 { background: var(--heat-4); color: var(--heat-ink-4); }
.snd-tile.is-new { box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-3); font-weight: 500; }
.snd-tile.is-none { box-shadow: inset 0 0 0 1px var(--line-2); opacity: 0.55; }
.snd-tile.is-ahead { opacity: 0; }
a.snd-tile:hover, a.snd-tile:focus-visible { position: relative; z-index: 1; outline: none; box-shadow: 0 0 0 2px var(--ink); }
.snd-cal .is-mon { margin-left: 5px; }
.snd-cal.is-mid .snd-tile b { display: none; }
.snd-cal.is-dense { column-gap: 2px; }
.snd-cal.is-dense .snd-tile { height: 22px; border-radius: 2px; }
.snd-cal.is-dense .snd-tile b { display: none; }
.snd-cal.is-dense .is-mon { margin-left: 4px; }
.snd-cal.is-dense .snd-cd { align-items: flex-start; overflow: visible; }
.snd-cal.is-dense .snd-cd b { min-width: 0; padding: 0; }
.snd-cal.is-dense .snd-cd.is-today b { padding: 0 4px; }
.snd-heat { display: inline-flex; gap: 2px; }
.snd-heat > i { width: 18px; height: 8px; border-radius: 2px; }
.snd-heat > i.h0 { background: var(--heat-0); }
.snd-heat > i.h1 { background: var(--heat-1); }
.snd-heat > i.h2 { background: var(--heat-2); }
.snd-heat > i.h3 { background: var(--heat-3); }
.snd-heat > i.h4 { background: var(--heat-4); }
.ov-k .snd-k-out { display: inline-block; width: 14px; height: 8px; border-radius: 2px; box-shadow: inset 0 0 0 1px var(--line-2); }

/* ─── One send ─── */

.snd-crumbs { display: flex; align-items: center; justify-content: space-between; min-height: 30px; }
.snd-crumbs > a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 550; color: var(--ink-2); }
.snd-crumbs > a:hover { color: var(--accent); }
.snd-pager { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.snd-pager > a, .snd-pager > span { display: grid; place-items: center; width: 30px; height: 28px; color: var(--ink-2); }
.snd-pager > * + * { border-left: 1px solid var(--line); }
.snd-pager > span { opacity: 0.35; }
.snd-pager > a:hover { background: var(--bg-2); color: var(--ink); }
.snd-title { margin-top: 12px; }
.snd-title h1 { font-size: 24px; line-height: 1.25; font-weight: 600; letter-spacing: -0.02em; text-wrap: balance; }
.snd-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.snd-meta > span + span:not(.ov-esp)::before { content: "·"; margin-right: 10px; color: var(--ink-3); }
.snd-who { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-2); }
.snd-who .ov-sm { flex: none; width: 14px; height: 5px; }

.snd-one { margin-top: 20px; align-items: end; }
.snd-wait { flex-wrap: nowrap; align-items: flex-start; }
.snd-wait .ico { margin-top: 1px; }
/* Scoped to Sends' own leads: the site's page shows other leads beside them. */
.snd-lead .ov-lead-l .ov-f-s b, .snd-one .ov-lead-l .ov-f-s b { font-weight: 600; color: var(--ink-2); }

/* Every other send of the same two weeks as a tick on one line; the average and this send picked out. */
.snd-rug { position: relative; height: 84px; margin: 0 10px; }
.snd-rug-base { position: absolute; left: 0; right: 0; bottom: 20px; border-top: 1px solid var(--line-2); }
.snd-rug-t { position: absolute; bottom: 0; transform: translateX(-50%); font-size: 10.5px; line-height: 14px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.snd-rug > a { position: absolute; bottom: 21px; width: 2px; height: 22px; margin-left: -1px; border-radius: 1px; background: var(--mark-2); opacity: 0.65; }
.snd-rug > a::before { content: ""; position: absolute; inset: -4px -4px; }
.snd-rug > a.is-new { opacity: 0.3; }
.snd-rug > a:hover, .snd-rug > a:focus-visible { opacity: 1; background: var(--ink); outline: none; }
.snd-rug-avg { position: absolute; bottom: 21px; width: 1px; height: 40px; background: var(--ink-3); }
.snd-rug-here { position: absolute; bottom: 21px; z-index: 2; width: 3px; height: 50px; margin-left: -1.5px; border-radius: 1.5px; background: var(--mark); }
.snd-rug-lbl { position: absolute; bottom: calc(100% + 3px); font-size: 11px; line-height: 14px; font-weight: 600; white-space: nowrap; }
.snd-rug-lbl.to-left { right: 4px; }
.snd-rug-lbl.to-right { left: 4px; }
.snd-rug-avg .snd-rug-lbl { font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.snd-rug-here .snd-rug-lbl { color: var(--accent); }

/* What it earned: on the site and in the email, one bar. Lighter: so far. */
.snd-strip-one .ov-f-v small { margin-left: 4px; font-size: 0.55em; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.snd-split { display: flex; gap: 2px; height: 8px; margin-top: 10px; }
.snd-split > i { min-width: 2px; }
.snd-split > i:first-child { border-radius: 4px 0 0 4px; }
.snd-split > i:last-child { border-radius: 0 4px 4px 0; }
.snd-split.is-sofar { opacity: 0.5; }
.snd-parts-key { margin-top: 8px; gap: 3px 12px; }
.snd-parts-key > span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.snd-parts-key .ov-sw8 { margin-left: 0; }
.snd-notread { color: var(--ink-3); }

/* An interest send's two emails. */
.snd-parts { margin-top: 26px; }
.snd-parts > .ov-cap { margin-bottom: 6px; }
.snd-part { display: grid; grid-template-columns: minmax(0, 1fr) 84px 72px minmax(120px, 220px) 62px 72px; column-gap: 14px; align-items: center; min-height: 34px; border-top: 1px solid var(--line); }
.snd-part.is-nomoney { grid-template-columns: minmax(0, 1fr) 84px 72px minmax(120px, 220px) 62px; }
.snd-part.snd-rh { border-top: 0; min-height: 22px; }
.snd-part > span:first-child { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Links, and the same subject line on other days. */
.snd-two { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; margin-top: 26px; }
.snd-two.is-one { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.snd-tb { min-width: 0; }
.snd-tb > .ov-cap { min-height: 28px; margin-bottom: 0; }
.snd-tb > .ov-cap .ov-q { margin-left: auto; font-size: 11.5px; }
.snd-lk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(60px, 120px) 52px; column-gap: 14px; align-items: center; min-height: 34px; border-top: 1px solid var(--line); }
.snd-lk > span:first-child { display: flex; align-items: center; gap: 8px; min-width: 0; }
.snd-lk > span:first-child a, .snd-lk > span:first-child em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-style: normal; }
.snd-lk > span:first-child a:hover { color: var(--accent); }
.snd-lk small { flex: none; font-size: 11.5px; color: var(--ink-3); }
.snd-lk > i { display: block; height: 6px; min-width: 2px; border-radius: 0 3px 3px 0; background: var(--mark); }
.snd-lk.is-other > i { background: var(--mark-2); opacity: 0.6; }
.snd-lk > b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.snd-lk > b small { font-size: 0.75em; font-weight: 500; color: var(--ink-3); }
.snd-lk.is-here { font-weight: 600; }
.snd-lk.is-here > i { background: var(--mark); opacity: 1; }
a.snd-lk:hover em { color: var(--accent); }
.snd-lk-none { padding: 8px 0; border-top: 1px solid var(--line); }

/* The title line's count of sends: a figure, its word the h1's. */
.snd-count { font-variant-numeric: tabular-nums; }

/* The service's details, folded: two labelled figures, not the raw report (15 Nov 2026). */
.snd-raw dl { columns: auto; max-width: 320px; font: inherit; line-height: 1.9; }
.snd-raw dd { font-weight: 600; }

/* ─── Narrower ─── */

@media (max-width: 960px) {
  .snd-lead, .snd-one { grid-template-columns: 196px minmax(0, 1fr); column-gap: 24px; }
  .snd-chart { padding-right: 26px; }
  .snd-plot > .ov-avg { right: -26px; }
  .snd-chart-key { position: static; margin: 0 0 -10px; }
  .snd-x > .is-minor b { visibility: hidden; }
  /* The strip keeps its three across; the one send's strip goes two by two, list health on its own row. */
  .ov-figs.snd-strip { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
  .ov-figs.snd-strip > .ov-f:nth-child(3) { padding-left: 20px; border-left: 1px solid var(--line); }
  .ov-figs.snd-strip-one { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ov-figs.snd-strip-one > .ov-f:nth-child(3) { grid-column: 1 / -1; padding-left: 0; padding-top: 18px; border-left: 0; border-top: 1px solid var(--line); }
  .snd-rows { --snd-cols: 84px 70px minmax(0, 1fr) 58px 58px; }
  .snd-rows.is-norev { --snd-cols: 84px 70px minmax(0, 1fr) 58px; }
  .snd-rows.is-ranked { --snd-cols: 22px minmax(0, 1fr) 58px 50px; }
  .snd-row > .snd-bar, .snd-row > .snd-dots, .snd-row > .snd-scale { display: none; }
  .snd-cal.is-mid .snd-tile { height: 26px; }
  .snd-two, .snd-two.is-one { grid-template-columns: minmax(0, 1fr); row-gap: 26px; }
  .snd-part { grid-template-columns: minmax(0, 1fr) 76px 64px 58px 64px; }
  .snd-part.is-nomoney { grid-template-columns: minmax(0, 1fr) 76px 64px 58px; }
  .snd-part > .snd-bar, .snd-part.snd-rh > span:nth-child(4) { display: none; }
}

@media (max-width: 640px) {
  .snd-lead, .snd-one { grid-template-columns: minmax(0, 1fr); row-gap: 18px; }
  .ov-figs.snd-strip, .ov-figs.snd-strip-one { grid-template-columns: minmax(0, 1fr); }
  .ov-figs.snd-strip > .ov-f, .ov-figs.snd-strip > .ov-f:nth-child(3), .ov-figs.snd-strip-one > .ov-f, .ov-figs.snd-strip-one > .ov-f:nth-child(3) { padding-left: 0; border-left: 0; }
  .ov-figs.snd-strip > .ov-f + .ov-f, .ov-figs.snd-strip-one > .ov-f + .ov-f { padding-top: 16px; border-top: 1px solid var(--line); }
  .snd-rows, .snd-rows.is-norev { --snd-cols: 64px minmax(0, 1fr) 58px; }
  .snd-row > .snd-r { display: none; }
  .snd-row > .snd-when { grid-column: 1 / -1; padding-top: 8px; }
  .snd-row > .snd-when:empty { display: none; }
  .snd-rows.is-ranked { --snd-cols: 22px minmax(0, 1fr) 58px; }
  .snd-rows.is-ranked .snd-row > .snd-r { display: none; }
  .snd-cal .snd-tile b { display: none; }
}
