@font-face {
  font-family: "Geist";
  src: url("geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #141414;
  --border: #242424;
  --border-2: #333;
  --text: #ededed;
  --text-2: #a1a1a1;
  --brand: #5d9e91;
  --brand-hi: #7fc6b7;
  --brand-ink: #06110f;
  --danger: #ff6166;
  --ok: #62c073;
  --radius: 8px;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --surface: #fff;
    --surface-2: #f5f5f5;
    --border: #e5e5e5;
    --border-2: #d4d4d4;
    --text: #171717;
    --text-2: #4d4d4d;
    --brand: #2c7a6b;
    --brand-hi: #1f5f53;
    --brand-ink: #fff;
    --danger: #c41c22;
    --ok: #1a7f37;
    color-scheme: light;
  }
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--text);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--brand-hi);
}
:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: max(12px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) 12px
    max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.brand img {
  border-radius: 6px;
}
.top-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 14px;
}
.wrap {
  flex: 1;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 32px 16px 48px;
}
.wrap.wide {
  max-width: 760px;
}
.card,
.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 20px;
}
.panel {
  margin-top: 16px;
}
h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h2 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.lede {
  margin: 0 0 20px;
  color: var(--text-2);
}
.head .lede {
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.hint {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14px;
}
.form {
  display: grid;
  gap: 14px;
}
label {
  display: grid;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
}
input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 16px;
}
input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 30%, transparent);
}
label.check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  font-weight: 400;
  color: var(--text-2);
}
label.check input {
  width: 20px;
  min-height: 20px;
  height: 20px;
  accent-color: var(--brand);
}
input.code {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.3em;
  font-size: 20px;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  width: 100%;
}
.btn:hover {
  border-color: var(--text-2);
  color: var(--text);
}
.btn-primary {
  background: var(--text);
  border-color: var(--text);
  color: var(--bg);
}
.btn-primary:hover {
  background: var(--text-2);
  border-color: var(--text-2);
  color: var(--bg);
}
.btn-danger {
  color: var(--danger);
}
.btn-danger:hover {
  border-color: var(--danger);
  color: var(--danger);
}
.btn-small {
  width: auto;
  min-height: 40px;
  padding: 0 12px;
  font-size: 14px;
}
.link {
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.inline {
  display: inline;
  margin: 0;
}
.row-links {
  margin: 10px 0 0;
  font-size: 14px;
}
.row-links a,
.switch a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.switch {
  margin: 18px 0 0;
  color: var(--text-2);
  font-size: 14px;
  text-align: center;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-2);
  font-size: 13px;
}
.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.alert {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 14px;
}
.alert-error {
  border-color: color-mix(in srgb, var(--danger) 50%, transparent);
  color: var(--danger);
}
.alert-ok {
  border-color: color-mix(in srgb, var(--ok) 50%, transparent);
  color: var(--ok);
}
.apps,
.devices {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.app {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 12px;
  padding: 14px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
}
.app:hover {
  border-color: var(--border-2);
  background: var(--surface-2);
  color: var(--text);
}
.app-name {
  font-weight: 600;
}
.app-desc {
  grid-column: 1;
  color: var(--text-2);
  font-size: 14px;
}
.app-go {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--text-2);
}
.device {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.device:last-child {
  border-bottom: 0;
}
.device-name {
  font-weight: 500;
}
.device-meta {
  display: block;
  color: var(--text-2);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.pill {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--border-2);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 500;
  vertical-align: 1px;
}
.pill-on {
  border-color: color-mix(in srgb, var(--brand) 60%, transparent);
  color: var(--brand-hi);
}
.actions {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}
.actions.split {
  margin-top: 16px;
}
.enroll {
  display: grid;
  gap: 12px;
}
.enroll p {
  margin: 0;
}
.qr {
  width: 180px;
  height: 180px;
  padding: 8px;
  background: #fff;
  border-radius: var(--radius);
}
.secret {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}
.danger-zone {
  margin-top: 8px;
}
.danger-zone summary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  cursor: pointer;
  color: var(--text-2);
  font-size: 14px;
}
.foot {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 20px 16px max(20px, env(safe-area-inset-bottom));
  color: var(--text-2);
  font-size: 13px;
}
.foot {
  align-items: center;
}
.foot a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--text-2);
}
@media (min-width: 640px) {
  .wrap {
    padding-top: 64px;
  }
  .card,
  .panel {
    padding: 32px;
  }
  .btn {
    width: auto;
  }
  .card .form .btn,
  .card > .btn {
    width: 100%;
  }
  .apps {
    grid-template-columns: 1fr 1fr;
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
  }
  .actions.split {
    justify-content: space-between;
  }
}
