:root {
  --o-brand: #714B67;
  --o-brand-dark: #5a3c53;
  --o-brand-hover: #5d3e55;
  --o-view: #f6f4f5;
  --o-layer: #efecef;
  --o-sheet: #ffffff;
  --o-text: #1c1418;
  --o-muted: #5c5358;
  --o-placeholder: #6f6f6f;
  --o-border: #d9d2d6;
  --o-row: #f3eef1;
  --o-nav: #1c1418;
  --o-ok: #198038;
  --o-err: #da1e28;
  --font: "IBM Plex Sans", Helvetica Neue, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.5 var(--font);
  color: var(--o-text);
  background: var(--o-view);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  text-wrap: pretty;
}
a { color: var(--o-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.chrome {
  background: var(--o-nav);
  color: #f4f4f4;
  min-height: 56px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px 28px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}
.chrome a { color: #d7cfd3; text-decoration: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.mark {
  width: 28px;
  height: 28px;
  background: var(--o-brand);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 15px;
}
.menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  font-size: 14px;
}
.menu a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
}
.menu svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.menu a:hover { color: #fff; background: #2a2226; }
.menu a[aria-current="page"] {
  color: #fff;
  box-shadow: inset 0 -2px 0 var(--o-brand);
}
.menu a.nav-cta {
  background: var(--o-brand);
  color: #fff;
  margin-left: 8px;
  padding: 0 16px;
}
.menu a.nav-cta:hover { background: var(--o-brand-hover); color: #fff; }
.menu a.nav-icon { padding: 0 10px; }
.menu a.nav-icon svg { width: 18px; height: 18px; }

.page { width: min(1040px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 80px; flex: 1; }
.page h1 {
  font-size: clamp(30px, 4.5vw, 44px);
  font-weight: 300;
  margin: 0 0 16px;
  line-height: 1.18;
}
.page h2 { font-size: 18px; font-weight: 600; margin: 36px 0 10px; line-height: 1.4; display: flex; align-items: center; gap: 8px; }
.page p.lead { font-size: 17px; max-width: 38rem; color: var(--o-muted); }
.page p.quiet { color: var(--o-muted); font-size: 14px; }

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 28px 0 0; }
.ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid var(--o-border);
  background: var(--o-sheet);
  color: var(--o-text);
  font: 600 14px var(--font);
}
.ghost:hover { border-color: var(--o-brand); color: var(--o-brand); text-decoration: none; }

.panel {
  background: var(--o-sheet);
  border: 1px solid var(--o-border);
}
.panel header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--o-nav);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.panel header svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.app-menu { list-style: none; margin: 0; padding: 8px 0 12px; }
.app-menu li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 14px;
}
.app-menu li svg { width: 16px; height: 16px; fill: none; stroke: var(--o-brand); stroke-width: 1.4; flex: none; }
.app-menu .amt { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--o-muted); }

.cta, button.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--o-brand);
  color: #fff;
  padding: 0 18px;
  min-height: 48px;
  border: 0;
  border-radius: 0;
  font: 600 14px var(--font);
  text-decoration: none;
  cursor: pointer;
}
.cta:hover, button.cta:hover { background: var(--o-brand-hover); color: #fff; text-decoration: none; }
.cta:focus-visible, button.cta:focus-visible, .chrome a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--o-brand);
  outline-offset: 2px;
}

.versions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 12px 16px 16px;
  list-style: none;
  border-top: 1px solid var(--o-border);
}
.versions li {
  background: var(--o-layer);
  color: var(--o-text);
  font: 500 13px var(--mono);
  padding: 6px 10px;
  min-width: 2.75rem;
  text-align: center;
}

dl.facts { margin: 48px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--o-border); }
dl.facts div { background: var(--o-sheet); padding: 20px 22px; }
dl.facts dt {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 6px;
}
dl.facts dt svg { width: 18px; height: 18px; fill: none; stroke: var(--o-brand); stroke-width: 1.4; }
dl.facts dd { margin: 0; color: var(--o-muted); }

.docs {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: start;
}
.toc {
  position: sticky;
  top: 72px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.toc a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: var(--o-muted);
}
.toc a:hover, .toc a:focus { color: var(--o-brand); text-decoration: none; background: var(--o-sheet); }
.toc svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.4; }

.app-name { display: inline-flex; align-items: center; gap: 8px; }
.app-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--o-brand);
  stroke-width: 1.4;
  stroke-linejoin: round;
  stroke-linecap: round;
  flex: none;
}
.pill {
  display: inline-block;
  background: var(--o-layer);
  color: var(--o-muted);
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 2px 8px;
}

table.apps {
  width: 100%;
  border-collapse: collapse;
  background: var(--o-sheet);
  font-size: 14px;
  border: 1px solid var(--o-border);
}
table.apps th, table.apps td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--o-border);
}
table.apps th {
  color: var(--o-muted);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.32px;
  background: var(--o-layer);
}
table.apps td.num { text-align: right; font-variant-numeric: tabular-nums; font-family: var(--mono); }
table.apps tbody tr:hover { background: var(--o-row); }

.field { margin-bottom: 16px; font-size: 14px; }
.field label { display: block; color: var(--o-muted); margin-bottom: 4px; font-size: 12px; letter-spacing: 0.32px; }
.field input:not([type="checkbox"]):not([type="radio"]), .field select {
  width: 100%;
  height: 40px;
  font: 14px var(--font);
  color: var(--o-text);
  background: var(--o-sheet);
  border: 1px solid var(--o-border);
  border-bottom: 2px solid var(--o-border);
  border-radius: 0;
  padding: 0 12px;
}
.field input:not([type="checkbox"]):not([type="radio"]):focus, .field select:focus { border-bottom-color: var(--o-brand); outline: none; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
  letter-spacing: 0;
  cursor: pointer;
  color: var(--o-text);
  margin-bottom: 0;
}
.field label.choice {
  display: inline-flex;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--o-text);
  margin-bottom: 0;
}
.choice input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--o-brand);
  flex: none;
}
.app-picks {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 8px;
  margin-top: 8px;
}
.app-picks .choice {
  background: var(--o-sheet);
  border: 1px solid var(--o-border);
  padding: 0 12px;
}

.foot {
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 20px 0 36px;
  color: var(--o-muted);
  font-size: 12px;
  letter-spacing: 0.2px;
  border-top: 1px solid var(--o-border);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}
.foot nav { display: flex; gap: 16px; }
.foot a { color: var(--o-muted); }

@media (max-width: 860px) {
  .split, .docs, dl.facts { grid-template-columns: 1fr; }
  .toc { position: static; flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 640px) {
  .chrome { padding: 8px 16px; }
  .page { width: min(1040px, calc(100% - 32px)); padding: 32px 0 64px; }
  .menu a.nav-icon span.sr { position: static; width: auto; height: auto; clip: auto; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; }
}
