/* The parts every page is built from. */
.card{display:block;width:100%;margin:0 0 12px;border:0;border-radius:12px;background:var(--card);box-shadow:var(--ring);text-align:left}
.pad{padding:14px 16px}
.card-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 16px 4px}
.card-head h2,.h2{font-size:13px;line-height:20px;font-weight:650;color:var(--ink)}
.sub{font-size:12px;color:var(--t2)}
.faint{color:var(--t3)}
.lede{margin:0 0 12px;color:var(--t2)}
.section{margin:20px 0 8px;font-size:13px;font-weight:650;color:var(--ink)}
.section small{margin-left:6px;font-size:12px;font-weight:450;color:var(--t2)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.grid2>.card{margin:0}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;height:32px;padding:0 12px;border:0;border-radius:8px;
  background:var(--pill);box-shadow:var(--ring);font-weight:550;color:var(--ink);text-decoration:none;white-space:nowrap;transition:background .15s}
.btn:hover{background:var(--btn-hover)}
/* One step darker than the brand green: white 13px text on #4E8A00 was 4.23:1. */
.btn.primary{background:#467C00;color:#fff;box-shadow:inset 0 -1px 0 rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.18),0 1px 0 rgba(0,0,0,.08)}
.btn.primary:hover{background:#3F7000}
.btn[disabled]{opacity:.55;cursor:default}
.btn svg{width:14px;height:14px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.seg{display:inline-flex;gap:4px;flex-wrap:wrap}
.seg button,.seg a{height:28px;padding:0 10px;border:0;border-radius:8px;background:none;color:var(--t2);font-weight:550;white-space:nowrap;text-decoration:none;display:inline-flex;align-items:center}
.seg button:hover,.seg a:hover{background:var(--hover);color:var(--t1)}
/* The chosen one keeps its white under the pointer: the press that chose it leaves the pointer on it. */
.seg [aria-pressed="true"],.seg [aria-current="page"],.seg [aria-pressed="true"]:hover,.seg [aria-current="page"]:hover{background:var(--pill);color:var(--ink);box-shadow:var(--ring)}
.seg.small button{height:24px;padding:0 8px;font-size:12px}

/* Numbers with their interval across the top of one card; each picks the chart. A tile stacks from
   its top, so the names and numbers of a row stay on one line whatever wraps under one of them. */
.kpis{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));box-shadow:inset 0 -1px 0 var(--hair)}
.kpis button{display:grid;align-content:start;padding:12px 16px;border:0;border-left:1px solid var(--hair);background:none;text-align:left;transition:background .15s}
.kpis button:first-child{border-left:0;border-radius:12px 0 0 0}
.kpis button:last-child{border-radius:0 12px 0 0}
.kpis button:hover{background:var(--soft)}
.kpis button[aria-pressed="true"]{background:var(--soft)}
.kpis span{font-size:12.5px;font-weight:550;color:var(--t1)}
.kpis b,.big{display:block;margin-top:4px;font-size:22px;line-height:28px;font-weight:650;letter-spacing:-.3px;color:var(--ink)}
.big small,.kpis b small{margin-left:6px;font-size:12px;font-weight:450;letter-spacing:0;color:var(--t3)}
.kpis b.faint{font-size:13px;font-weight:450;letter-spacing:0;color:var(--t3)}
/* A rate's range and count, and the pooled checks under Kept every rule, each on a line of its own. */
.kpis button>small{display:block;font-size:12px;color:var(--t2)}
.kpis em,.move{display:block;margin-top:2px;font-style:normal;font-size:12px;color:var(--t2)}
.up{color:var(--up)!important;font-weight:550}
/* Worse is ink and heavier, never a grey that reads as no change; red stays for blocked. */
.down{color:var(--ink)!important;font-weight:650}

.chart{position:relative;padding:14px 16px 10px}
.plot{position:relative;margin-left:36px}
.plot svg{display:block;width:100%;height:150px;overflow:visible;cursor:crosshair}
.grid{stroke:var(--grid);stroke-width:1;stroke-dasharray:1 5;stroke-linecap:round;vector-effect:non-scaling-stroke}
.pt{position:absolute;width:6px;height:6px;margin:-3px 0 0 -3px;border-radius:50%;background:var(--card);box-shadow:inset 0 0 0 1.6px var(--series);pointer-events:none}
.l{fill:none;stroke-linejoin:round;stroke-linecap:round;vector-effect:non-scaling-stroke}
.l.now{stroke:var(--series);stroke-width:2}
.l.prev{stroke:var(--prev);stroke-width:2;stroke-dasharray:.1 4}
.marker{position:absolute;top:0;bottom:0;left:var(--x);width:1px;text-decoration:none}
.marker::before{content:'';position:absolute;top:0;bottom:0;left:0;border-left:1px dashed var(--t3)}
.marker span{position:absolute;top:-6px;left:5px;padding:0 6px;border-radius:5px;background:var(--pill);box-shadow:var(--ring);font-size:11px;line-height:17px;color:var(--t2);white-space:nowrap}
.marker:hover span{color:var(--ink)}
.marker.flip span{left:auto;right:5px}
/* Each label centred on the gridline it names. Spread apart, the 0 stood 11px above the zero line and
   a day with one conversation read as none. */
.scale{position:absolute;left:-36px;top:0;bottom:0;font-size:11px;line-height:1;color:var(--axis);pointer-events:none}
.scale span{position:absolute;top:0;left:0;transform:translateY(-50%)}
.scale span:nth-child(2){top:50%}
.scale span:nth-child(3){top:100%}
.axis{display:flex;justify-content:space-between;margin:8px 0 0 36px;font-size:11px;color:var(--axis)}
.legend{display:flex;gap:16px;padding:0 16px 12px;font-size:12px;color:var(--t2)}
.legend i{display:inline-block;width:14px;height:0;margin-right:6px;vertical-align:middle;border-top:2px solid var(--series)}
.legend i.prev{border-top:2px dotted var(--prev)}
.tip{position:absolute;z-index:5;min-width:200px;padding:12px;border-radius:12px;background:var(--card);border:1px solid var(--line);box-shadow:0 2px 4px rgba(0,0,0,.1);font-size:12px;line-height:16px;pointer-events:none}
.tip b{display:block;margin-bottom:8px;font-size:13px;font-weight:650;color:var(--ink)}
.tip span{display:flex;justify-content:space-between;gap:16px;color:var(--ink);font-weight:550}
.tip span+span{margin-top:4px}
.tip em{font-style:normal;font-weight:450;color:var(--t2)}
.tip .was{color:var(--t2)}
.hair{position:absolute;width:1px;background:var(--crosshair);pointer-events:none}

/* Bars, worst first, each a bar of its own rate, in the run page's shape: the name over a track
   filled to its share, its number beside the track. */
.bars{display:grid;gap:14px;padding:6px 16px 16px}

/* The bar itself, the way Shopify's analytics draw one: thin, no track behind it, round at its end,
   its number right after it. Its length is its share of the room beside the widest number. A share
   of none draws no bar, never a tick. */
.live-bars .bar i{display:block;flex:none;width:max(4px,calc((100% - var(--room,15em)) * var(--f,0)));height:12px;border-radius:2px 4px 4px 2px;background:var(--fill,var(--series-across));transition:width .5s}

.d1{stroke:#6A42E9;background:#6A42E9}.d2{stroke:#D147AC;background:#D147AC}.d3{stroke:var(--o-unread);background:var(--o-unread)}

/* A list of rows inside one card, divided by hairlines. The facts column is as wide as its words up to
   a third, so a long one wraps instead of squeezing the row's own words to a word a line. */
.list{list-style:none;padding:0}
.list>li{border-top:1px solid var(--hair)}
.list>li:first-child{border-top:0}
.item{display:grid;grid-template-columns:minmax(0,1fr) fit-content(32%);align-items:center;gap:4px 16px;width:100%;padding:11px 16px;border:0;background:none;text-align:left;text-decoration:none}
a.item:hover,button.item:hover{background:var(--soft)}
.list>li:first-child .item{border-radius:12px 12px 0 0}
.list>li:last-child .item{border-radius:0 0 12px 12px}
.list>li:only-child .item{border-radius:12px}
.item .what{min-width:0}
.item>:only-child{grid-column:1 / -1}
.item .what b{display:block;font-weight:650;color:var(--ink);overflow-wrap:anywhere}
/* A row that opens its subject in one press may stop at two lines; the press shows the rest. */
a.item .what b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.item .what span{display:block;font-size:12px;color:var(--t2)}
.item .num{text-align:right;color:var(--t2);font-size:12px;overflow-wrap:anywhere}
.item .num b{display:block;font-size:14px;font-weight:650;color:var(--ink)}
/* Production's conversations as the run page lists its own: a head row, the opening and who, the
   rules broken, the ending as a chip, and when. Every row shares the list's columns. */
.convs{display:grid;grid-template-columns:minmax(0,1fr) fit-content(34%) auto auto;column-gap:24px;overflow:hidden}
.convs>li,.convs .item.conv{grid-column:1 / -1;display:grid;grid-template-columns:subgrid;align-items:center}

.convs .item.conv{padding:10px 16px;border-radius:0}
.convs .item.conv .what b{font-weight:450}

.chip{justify-self:end;display:inline-flex;align-items:center;padding:2px 8px;border-radius:8px;font-size:12px;line-height:16px;font-weight:550;white-space:nowrap}

@media (max-width:760px){.convs{grid-template-columns:minmax(0,1fr) auto}}

.state{display:grid;justify-items:start;gap:8px;padding:22px 20px}
.state h2{font-size:15px;font-weight:650;color:var(--ink)}
.state p{max-width:56ch;color:var(--t2)}
/* An empty page to the measure of Shopify's own (Polaris EmptyState): 20px over the drawing, 64px
   under the button, the words no wider than 400px, everything down the middle. The drawing is
   drawn in the Live globe's material (app/art/) on a grid of 50, so its dots land whole. */
.empty{display:grid;justify-items:center;padding:20px 24px 64px;text-align:center}
.empty .art{display:block;width:200px;height:200px;margin:8px 0 14px}
.empty h2{font-size:14px;line-height:20px;font-weight:650;color:var(--ink)}
.empty p{max-width:400px;margin-top:6px;color:var(--t2)}
.empty .btn{margin-top:16px}
.skel{height:14px;border-radius:6px;background:linear-gradient(90deg,var(--skel) 0%,var(--skel-hi) 50%,var(--skel) 100%);background-size:200% 100%;animation:shimmer 1.4s linear infinite}
@keyframes shimmer{to{background-position:-200% 0}}
@media (prefers-reduced-motion:reduce){.skel{animation:none}}

.chips{display:flex;flex-wrap:wrap;gap:4px}
.chips span{padding:1px 8px;border-radius:6px;background:var(--soft);font-size:12px;color:var(--t2)}
.quote{padding:8px 10px;border-radius:8px;background:var(--ground);color:var(--ink)}
.quote .who{display:block;font-size:12px;color:var(--t3)}
.steps{list-style:none;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.steps li{padding-top:8px;border-top:1px solid var(--hair);font-size:12px;color:var(--t2)}
.steps li.done b{color:var(--acc-ink)}
.steps li.done b::before{content:'✓ '}
.steps b{display:block;font-size:13px;font-weight:650;color:var(--ink)}
.steps .btn{margin-top:6px;height:28px}
.progress{height:8px;border-radius:4px;background:var(--track);overflow:hidden}
.progress i{display:block;height:100%;width:var(--v);background:var(--acc);border-radius:4px;transition:width .4s ease-out}
.note{font-size:12px;color:var(--t3)}
.toast{position:fixed;left:50%;bottom:24px;z-index:20;transform:translateX(-50%);padding:8px 14px;border-radius:10px;background:var(--tip);color:var(--on-tip);font-weight:550}

@media (max-width:760px){
  .kpis{grid-template-columns:repeat(2,minmax(0,1fr))}
  .kpis button{padding:10px 12px;border-radius:0!important}
  .kpis button:nth-child(3){border-left:0}
  .kpis button:nth-child(n+3){border-top:1px solid var(--hair)}
  .kpis b{font-size:19px;line-height:24px}
  .plot svg{height:110px}
  .grid2,.steps{grid-template-columns:minmax(0,1fr)}
  .bars{grid-template-columns:minmax(0,1fr) auto}
  
  .item{grid-template-columns:minmax(0,1fr)}
  .item .num{text-align:left}
  .item .num b{display:inline;margin-right:6px}
}

.metric{overflow:hidden}

.list.rules{border-top:1px solid var(--hair)}
.list.rules>li:first-child .item{border-radius:0}

.lede.gone{color:var(--ink)}

.inv .section{margin-top:18px}

/* A reply's markdown, in the run's drawer and on a production conversation: the lists and the
   paragraphs keep their own markers and spacing under any reset around them. */
.reply-md>*+*{margin-top:6px}
.reply-md ul{list-style:disc;padding-left:1.25em}
.reply-md ol{list-style:decimal;padding-left:1.5em}
.reply-md strong{font-weight:650}
.reply-md code,.reply-md pre{font-family:var(--mono);font-size:12px}
.reply-md pre{white-space:pre-wrap;overflow-wrap:anywhere}
.reply-md hr{border:0;border-top:1px solid var(--hair)}
