:root {
  color-scheme: light;
  --bg: #ffffff;
  --fg: #000000;
  --soft: #333333;
  --muted: #666666;
  --faint: #999999;
  --edge: #cccccc;
  --rule: #dddddd;
  --line: #ebebeb;
  --wash: #f6f6f6;
  --surface: #f6f6f6;
  --high: #161616;
  --accent: #161616;
  --glass: rgba(224, 224, 224, 0.6);
  --green: #00ff00;
  --blue: #0a82e1;
  --good: #0a7d0a;
  --warn: #8a5600;
  --bad: #e04545;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: 'SFMono-Regular', Menlo, Monaco, Consolas, monospace;
  --radius: 0px;
  --gap: 24px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
}

body {
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

::selection {
  background: var(--rule);
  color: var(--fg);
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  font-weight: 400;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

h2 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h3,
h4 {
  margin: 48px 0 16px;
  font-size: 16px;
  line-height: 1.25;
  letter-spacing: 0;
  text-transform: none;
  color: var(--fg);
}

th,
caption,
label,
small {
  font-family: var(--mono);
  font-weight: 400;
  letter-spacing: 0.02em;
}

p {
  margin: 0 0 8px;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--muted);
}

code,
kbd,
samp,
pre {
  font-family: var(--mono);
  font-size: 0.85em;
}

pre {
  margin: 0 0 16px;
  padding: 12px 14px;
  overflow: auto;
  background: var(--wash);
  border: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.5;
}

table {
  width: 100%;
  margin: 0 0 16px;
  border-collapse: collapse;
  border-spacing: 0;
  background: none;
  border: 0;
}

th,
td {
  padding: 10px 16px 10px 0;
  text-align: left;
  vertical-align: baseline;
  border: 0;
  border-top: 1px solid var(--line);
}

th:last-child,
td:last-child {
  padding-right: 0;
}

thead tr:first-child > *,
table > tr:first-child > *,
tbody:first-child tr:first-child > * {
  border-top: 0;
}

th {
  font-size: 12px;
  text-transform: none;
  color: var(--muted);
}

td {
  font-size: 16px;
}

hr {
  margin: 24px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

button,
.sw-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: var(--glass);
  color: var(--fg);
  font: 12px/1.25 var(--mono);
  letter-spacing: 0.02em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.sw-btn.high {
  background: var(--high);
  color: var(--bg);
}

.sw-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 48px;
}

.sw-card {
  padding: 16px 0 0;
  background: none;
  border: 0;
  border-top: 1px solid var(--rule);
  border-radius: 0;
}

.sw-rows {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
  background: none;
  border: 0;
  border-radius: 0;
}

.sw-rows > * {
  padding: 10px 0;
}

.sw-rows > * + * {
  border-top: 1px solid var(--line);
}

.sw-stat {
  display: grid;
  gap: 4px;
}

.sw-stat > :first-child {
  font: 12px var(--mono);
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--muted);
}

.sw-stat > :nth-child(2) {
  font-weight: 400;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.sw-big {
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.sw-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

td.sw-num,
th.sw-num {
  text-align: right;
}

.sw-muted {
  color: var(--muted);
}

.sw-chip {
  display: inline-block;
  padding: 0 8px;
  border-radius: 12px;
  background: var(--glass);
  color: var(--fg);
  font: 11px/20px var(--mono);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.sw-chip.good {
  background: rgba(0, 255, 0, 0.16);
  color: var(--fg);
}

.sw-chip.warn {
  background: rgba(240, 160, 32, 0.12);
  color: var(--warn);
}

.sw-chip.bad {
  background: rgba(224, 69, 69, 0.1);
  color: var(--bad);
}

.sw-bar {
  height: 3px;
  overflow: hidden;
  background: var(--line);
  border-radius: 0;
}

.sw-bar > i {
  display: block;
  height: 100%;
  background: var(--fg);
}

.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--gap);
}

.good {
  color: var(--good);
}

.warn {
  color: var(--warn);
}

.bad {
  color: var(--bad);
}

.sw-cover {
  display: none;
}

html[data-cover],
html[data-cover] body {
  height: 100%;
  overflow: hidden;
}

html[data-cover] .sw-page {
  max-width: none;
  height: 100%;
  padding: 24px;
}

html[data-cover] .sw-cover {
  display: revert;
}

html[data-cover] .sw-nocover {
  display: none !important;
}
