@font-face { font-family: "Geist"; src: url("/static/fonts/GeistVF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/GeistMonoVF.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: 243 239 230; --bg-deep: 236 231 220; --surface: 246 243 235;
  --fg: 23 21 18; --fg-dim: 92 85 74; --fg-faint: 111 103 92;
  --accent: 230 184 0; --accent-fg: 26 20 0; --accent-ink: 138 99 8;
  --line: rgba(23, 21, 18, .14); --line-strong: rgba(23, 21, 18, .34);
  --ok: 32 130 92; --warn: 158 66 0; --bad: 190 18 74; --info: 35 75 145;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: 19 18 15; --bg-deep: 13 12 10; --surface: 27 25 21;
    --fg: 236 232 220; --fg-dim: 199 193 179; --fg-faint: 148 141 126;
    --accent: 255 214 51; --accent-fg: 24 20 4; --accent-ink: 255 214 51;
    --line: rgba(236, 232, 220, .18); --line-strong: rgba(236, 232, 220, .38);
    --ok: 76 195 138; --warn: 255 138 61; --bad: 255 51 102; --info: 143 179 245;
  }
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: rgb(var(--bg)); color: rgb(var(--fg));
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, monospace;
  font-size: 14px; line-height: 1.55; -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: underline; text-decoration-color: rgb(var(--fg-faint)); text-underline-offset: 3px; }
a:hover { text-decoration-color: rgb(var(--fg)); }
h1, h2 { font-family: "Geist", system-ui, sans-serif; font-weight: 600; letter-spacing: -.01em; margin: 0; }
h1 { font-size: 24px; line-height: 1.2; }
h2 { font-size: 16px; }
.dim { color: rgb(var(--fg-dim)); }
.faint { color: rgb(var(--fg-faint)); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }

.top { display: flex; align-items: center; gap: 24px; padding: 14px 28px; border-bottom: 2px solid rgb(var(--fg)); background: rgb(var(--surface)); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; font-size: 13px; }
.brand svg { width: 26px; height: auto; }
.brand .sep { color: rgb(var(--fg-faint)); font-weight: 400; }
.nav { display: flex; gap: 4px; margin-left: 12px; flex: 1; flex-wrap: wrap; }
.nav a { padding: 4px 10px; text-decoration: none; text-transform: uppercase; font-size: 12px; letter-spacing: .05em; color: rgb(var(--fg-dim)); border: 1px solid transparent; }
.nav a:hover { color: rgb(var(--fg)); }
.nav a.on { color: rgb(var(--fg)); border-color: rgb(var(--fg)); background: rgb(var(--bg)); }
.who { display: flex; align-items: center; gap: 12px; font-size: 12px; color: rgb(var(--fg-dim)); }
.who form { margin: 0; }

main { flex: 1; width: 100%; max-width: 1120px; margin: 0 auto; padding: 36px 28px 56px; }
main.narrow { max-width: 440px; padding-top: 9vh; }
footer { border-top: 1px solid var(--line); padding: 16px 28px; font-size: 12px; color: rgb(var(--fg-faint)); display: flex; gap: 18px; flex-wrap: wrap; }
footer .grow { flex: 1; }

.card { background: rgb(var(--surface)); border: 2px solid rgb(var(--fg)); padding: 28px; box-shadow: 4px 4px rgb(var(--fg)); }
.card h1 { margin-bottom: 6px; }
.card p.lead { margin: 0 0 22px; color: rgb(var(--fg-dim)); }
label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--fg-dim)); margin: 16px 0 6px; }
input[type=email], input[type=password], input[type=text] {
  width: 100%; padding: 10px 12px; font: inherit; color: rgb(var(--fg)); background: rgb(var(--bg));
  border: 1px solid var(--line-strong); border-radius: 0; outline: none;
}
input:focus { border-color: rgb(var(--fg)); box-shadow: inset 0 0 0 1px rgb(var(--fg)); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; padding: 9px 17px; font: inherit; font-size: 13px;
  font-weight: 600; text-transform: uppercase; letter-spacing: .05em; cursor: pointer; text-decoration: none;
  color: rgb(var(--accent-fg)); background: rgb(var(--accent)); border: 2px solid rgb(var(--fg)); border-radius: 0;
}
.btn:hover { filter: brightness(1.05); }
.btn.wide { width: 100%; margin-top: 22px; }
.btn.plain { background: rgb(var(--surface)); color: rgb(var(--fg)); }
.btn.small { padding: 2px 9px; font-size: 11px; border-width: 1px; }
.row { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; font-size: 12px; }
.alert { border: 1px solid rgb(var(--bad) / .6); color: rgb(var(--bad)); padding: 9px 12px; margin: 0 0 4px; font-size: 13px; }
.notice { border: 1px solid rgb(var(--ok) / .6); color: rgb(var(--ok)); padding: 9px 12px; margin: 0 0 4px; font-size: 13px; }
.under { margin-top: 26px; font-size: 12px; color: rgb(var(--fg-faint)); text-align: center; }

.head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 2px solid rgb(var(--fg)); background: rgb(var(--surface)); margin-bottom: 32px; }
.tile { padding: 16px 18px; border-right: 1px solid var(--line-strong); }
.tile:last-child { border-right: 0; }
.tile .k { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--fg-dim)); }
.tile .v { font-family: "Geist", system-ui, sans-serif; font-size: 22px; font-weight: 600; margin-top: 4px; font-variant-numeric: tabular-nums; }
section { margin-bottom: 34px; }
section > h2 { margin-bottom: 10px; }
table { width: 100%; border-collapse: collapse; background: rgb(var(--surface)); border: 1px solid var(--line-strong); }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 13px; }
th { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .06em; color: rgb(var(--fg-dim)); border-bottom: 1px solid var(--line-strong); }
tr:last-child td { border-bottom: 0; }
.tag { display: inline-block; padding: 0 7px; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; border: 1px solid currentColor; }
.tag.paid, .tag.arrived, .tag.active { color: rgb(var(--ok)); }
.tag.open, .tag.in_transit, .tag.trial { color: rgb(var(--info)); }
.tag.past_due, .tag.paused { color: rgb(var(--warn)); }
.tag.void, .tag.failed, .tag.cancelled { color: rgb(var(--fg-faint)); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.pager { display: flex; gap: 12px; align-items: center; justify-content: flex-end; margin-top: 12px; font-size: 12px; }
.note { border-left: 3px solid rgb(var(--accent)); padding: 8px 14px; background: rgb(var(--surface)); margin: 0 0 18px; font-size: 13px; color: rgb(var(--fg-dim)); }
pre { background: rgb(var(--bg-deep)); border: 1px solid var(--line-strong); padding: 12px 14px; overflow-x: auto; font: inherit; font-size: 13px; margin: 0 0 10px; }
.who a { text-transform: uppercase; letter-spacing: .05em; }
code { font-family: inherit; background: rgb(var(--bg-deep)); padding: 1px 5px; }
.err-code { font-family: "Geist", system-ui, sans-serif; font-size: 64px; font-weight: 600; line-height: 1; margin-bottom: 12px; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile:nth-child(2) { border-right: 0; }
  .tile:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
  .top { flex-wrap: wrap; padding: 12px 16px; }
  main { padding: 24px 16px 40px; }
  table { display: block; overflow-x: auto; }
}
main.split { max-width: 860px; padding-top: 9vh; display: grid; grid-template-columns: minmax(0, 440px) minmax(0, 1fr); gap: 36px; align-items: start; }
.notices { border-left: 2px solid rgb(var(--fg)); padding: 4px 0 4px 20px; }
.notices h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-family: inherit; font-weight: 500; color: rgb(var(--fg-dim)); margin-bottom: 12px; }
.notices ul { list-style: none; margin: 0; padding: 0; }
.notices li { margin: 0 0 14px; font-size: 13px; }
.notices li p { margin: 2px 0 0; color: rgb(var(--fg-dim)); white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 760px) { main.split { grid-template-columns: 1fr; padding-top: 24px; } }
