@font-face {
  font-family: "Geist";
  src: url("/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --bg: #0a0a0a;
  --bg-2: #111;
  --bg-3: #171717;
  --line: #232323;
  --line-2: #2e2e2e;
  --text: #ededed;
  --text-2: #a1a1a1;
  --acc: #fff;
  --acc-ink: #0a0a0a;
  --red: #f87171;
  --green: #4ade80;
  --amber: #fbbf24;
  --r: 10px;
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #fff;
    --bg-2: #fafafa;
    --bg-3: #f2f2f2;
    --line: #eaeaea;
    --line-2: #dedede;
    --text: #171717;
    --text-2: #5f5f5f;
    --acc: #171717;
    --acc-ink: #fff;
    --red: #dc2626;
    --green: #15803d;
    --amber: #b45309;
    color-scheme: light;
  }
}
* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px / 1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
}
code,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}
h1,
h2,
h3 {
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
h1 {
  font-size: clamp(28px, 7vw, 44px);
}
h2 {
  font-size: 20px;
}
h3 {
  font-size: 16px;
}
p {
  margin: 0 0 12px;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 13px;
}
.err {
  color: var(--red);
}
.ok {
  color: var(--green);
}
.warn {
  color: var(--amber);
}
:focus-visible {
  outline: 2px solid var(--acc);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.boot {
  padding: 40vh 16px 0;
  text-align: center;
  color: var(--text-2);
}

/* layout */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 56px;
  padding: 0 max(16px, env(safe-area-inset-left));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(12px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  width: 22px;
  height: 22px;
}
.top .grow {
  flex: 1;
}
.avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-3);
  object-fit: cover;
  display: inline-grid;
  place-items: center;
  font-size: 12px;
  font-weight: 600;
  flex: none;
}
main {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 20px 16px calc(40px + env(safe-area-inset-bottom));
}
.narrow {
  max-width: 460px;
}
.stack > * + * {
  margin-top: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.row .grow {
  flex: 1;
  min-width: 0;
}
.between {
  justify-content: space-between;
}

/* controls */
button,
.btn {
  font: inherit;
  font-weight: 500;
  min-height: 44px;
  padding: 0 16px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  white-space: nowrap;
  touch-action: manipulation;
}
button:hover,
.btn:hover {
  border-color: var(--text-2);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.primary {
  background: var(--acc);
  color: var(--acc-ink);
  border-color: var(--acc);
}
.danger {
  color: var(--red);
}
.ghost {
  background: transparent;
  border-color: transparent;
}
.icon {
  min-width: 44px;
  padding: 0 10px;
}
.full {
  width: 100%;
}
label,
.label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  margin-bottom: 4px;
}
input,
select,
textarea {
  font: inherit;
  font-size: 16px;
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: var(--r);
  border: 1px solid var(--line-2);
  background: var(--bg);
  color: var(--text);
}
textarea {
  min-height: 96px;
  resize: vertical;
}
input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--acc);
}
.check {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  min-height: 44px;
}
.field + .field {
  margin-top: 12px;
}

/* surfaces */
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--bg-2);
  padding: 16px;
}
.list {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}
.item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  min-height: 60px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  width: 100%;
  text-align: left;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  font-weight: 400;
}
.item:first-child {
  border-top: 0;
}
button.item:hover {
  background: var(--bg-3);
}
.item .grow {
  flex: 1;
  min-width: 0;
}
.item .title {
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item .sub {
  font-size: 13px;
  color: var(--text-2);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.badge {
  display: inline-block;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  color: var(--text-2);
  white-space: nowrap;
}
.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--text-2);
}
.notice {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--amber);
  border-radius: var(--r);
  padding: 12px 14px;
  background: var(--bg-2);
  font-size: 14px;
}
.secret {
  font-family: var(--mono);
  word-break: break-all;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  flex: 1;
  min-width: 0;
}

/* tabs */
.tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  border-bottom: 1px solid var(--line);
  margin: 16px -16px 20px;
  padding: 0 16px;
}
.tabs a {
  padding: 12px 12px;
  min-height: 44px;
  text-decoration: none;
  color: var(--text-2);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  font-weight: 500;
}
.tabs a[aria-current="page"] {
  color: var(--text);
  border-color: var(--acc);
}

/* sheet */
.scrim {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgb(0 0 0 / 0.55);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sheet {
  width: 100%;
  max-width: 520px;
  max-height: 92dvh;
  overflow-y: auto;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: 18px 18px 0 0;
  padding: 20px 16px calc(20px + env(safe-area-inset-bottom));
}
@media (min-width: 640px) {
  .scrim {
    align-items: center;
  }
  .sheet {
    border-radius: 18px;
    padding: 24px;
  }
}
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(20px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--acc);
  color: var(--acc-ink);
  padding: 10px 16px;
  border-radius: 99px;
  font-weight: 500;
  max-width: calc(100vw - 32px);
}

/* landing */
.hero {
  padding: 48px 0 24px;
}
.hero p {
  font-size: 17px;
  color: var(--text-2);
  max-width: 560px;
}
.grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr;
  margin-top: 28px;
}
@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.meter {
  height: 6px;
  border-radius: 99px;
  background: var(--bg-3);
  overflow: hidden;
}
.meter > span {
  display: block;
  height: 100%;
  background: var(--acc);
}
@media (prefers-reduced-motion: no-preference) {
  .sheet {
    animation: up 0.18s ease-out;
  }
  @keyframes up {
    from {
      transform: translateY(12px);
      opacity: 0;
    }
  }
}
