:root {
  color-scheme: light dark;
  --line: #d5d7db;
  --muted: #6b7076;
  --bad: #b3261e;
  --good: #1a7f37;
  --accent: #1f3d7a;
}
* { box-sizing: border-box; }
body {
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, sans-serif;
  margin: 0 auto; max-width: 66rem; padding: 0 1rem 4rem;
}
a { color: var(--accent); }
h1 { font-size: 1.5rem; margin: 1.5rem 0 .3rem; }
h2 { font-size: 1rem; margin: 2rem 0 .5rem; }
h3 { font-size: .85rem; color: var(--muted); margin: 1.2rem 0 .4rem;
     text-transform: uppercase; letter-spacing: .04em; }
p.lede { color: var(--muted); margin: 0 0 1.5rem; max-width: 48rem; }
code { background: rgba(127,127,127,.14); border-radius: .25rem; padding: .05rem .3rem; }

#cold-start {
  display: flex; gap: 1rem; align-items: baseline;
  background: rgba(127,127,127,.12); border-bottom: 1px solid var(--line);
  margin: 0 -1rem 1rem; padding: .6rem 1rem; font-size: .85rem; color: var(--muted);
}
#cold-start button {
  margin-left: auto; background: none; border: 0; color: var(--muted);
  cursor: pointer; font: inherit; padding: 0 .3rem;
}

form.controls, .panel {
  border: 1px solid var(--line); border-radius: .6rem; padding: 1rem; margin-bottom: 1rem;
}
form.controls { display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
legend { float: left; margin-right: .8rem; color: var(--muted); font-size: .8rem;
         text-transform: uppercase; letter-spacing: .04em; }
label { cursor: pointer; }
input[type=number] { font: inherit; padding: .3rem .4rem; width: 7rem;
                     border: 1px solid var(--line); border-radius: .3rem; }
button.run {
  background: var(--accent); border: 0; border-radius: .4rem;
  color: #fff; cursor: pointer; font: inherit; padding: .5rem 1.2rem;
}
button.ghost { background: none; border: 1px solid var(--line); color: inherit; }
button.run:disabled { opacity: .6; cursor: progress; }

table { border-collapse: collapse; width: 100%; }
th, td { border-bottom: 1px solid var(--line); padding: .4rem .5rem; text-align: left;
         white-space: nowrap; }
th { color: var(--muted); font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr.top td { font-weight: 600; }
td.cost { color: var(--bad); }
td.cost.free { color: var(--good); font-weight: 400; }
td.cost.unknown { color: var(--muted); font-style: italic; }
.badge { background: rgba(127,127,127,.16); border-radius: .25rem; color: var(--muted);
         font-size: .72rem; padding: .1rem .35rem; }
.wrap { overflow-x: auto; }
.note { color: var(--muted); font-size: .82rem; margin: .5rem 0 1rem; }
.slice { display: grid; grid-template-columns: 14rem 4rem 1fr; gap: .4rem 1rem;
         align-items: center; font-size: .88rem; margin-bottom: .3rem; }
.ci { position: relative; height: .6rem; background: rgba(127,127,127,.14); border-radius: .3rem; }
.ci i { position: absolute; top: 0; bottom: 0; background: var(--bad); border-radius: .3rem;
        opacity: .55; }
.ci b { position: absolute; top: -.15rem; bottom: -.15rem; width: 2px; background: var(--accent); }
.cols { display: flex; flex-wrap: wrap; gap: 2rem; }
svg.reliability { border: 1px solid var(--line); border-radius: .4rem; }
.muted { color: var(--muted); }
