:root {
  --ink: #0A0A0B;
  --panel: #141416;
  --line: #2A2A2D;
  --line-strong: #3A3A3D;
  --signal: #C6FF3D;
  --bone: #F2F2EE;
  --text-2: #D6D6D0;
  --text-3: #B4B4AE;
  --smoke: #8C8C86;
  --danger: #FF8A7A;
  --display: Unbounded, "Arial Black", "Helvetica Neue", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--ink);
  color: var(--bone);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
#app {
  max-width: 460px;
  margin: 0 auto;
  padding: 24px 20px calc(48px + env(safe-area-inset-bottom, 0px));
  padding-top: calc(24px + env(safe-area-inset-top, 0px));
  display: flex;
  flex-direction: column;
  gap: 16px;
}
a { color: var(--signal); }
a:hover { color: var(--bone); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.noscript { padding: 24px; color: var(--text-2); }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; }
.logo {
  width: 44px; height: 44px; border-radius: 11px; background: var(--signal); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 800; font-size: 19px; letter-spacing: -0.07em; padding-right: 0.07em;
  text-decoration: none;
}
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { min-height: 44px; display: inline-flex; align-items: center; padding: 0 10px; font-size: 14px; text-decoration: none; border-radius: 10px; }
.nav a[aria-current="page"] { color: var(--bone); background: var(--panel); }
.badge-dot { display: inline-block; min-width: 20px; height: 20px; margin-left: 6px; border-radius: 10px; background: var(--signal); color: var(--ink); font-size: 12px; font-weight: 600; text-align: center; line-height: 20px; padding: 0 5px; }

h1, h2 { font-family: var(--display); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; margin: 0; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
.hero { font-size: clamp(96px, 30vw, 150px); color: var(--signal); letter-spacing: -0.07em; line-height: 0.9; margin: 8px 0 0; }
.tagline { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12px; line-height: 1.6; color: var(--smoke); }
.label { font-size: 12px; color: var(--text-3); }
.section-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--smoke); margin: 0; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.card.signal { border-color: var(--signal); }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }

form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; }
input[type="text"], input[type="password"], input[type="date"], input[type="search"], textarea {
  width: 100%; min-height: 50px; background: var(--ink); color: var(--bone);
  border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px;
  font-family: var(--mono); font-size: 16px; outline: none; color-scheme: dark;
}
textarea { padding: 12px 14px; min-height: 84px; resize: none; line-height: 1.5; }
input:focus, textarea:focus { border-color: var(--signal); }
.input-prefix { display: flex; align-items: center; gap: 6px; background: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; padding: 0 14px; }
.input-prefix:focus-within { border-color: var(--signal); }
.input-prefix .prefix { color: var(--signal); font-weight: 600; }
.input-prefix input { border: 0; padding: 0; background: transparent; }
input[type="checkbox"] { width: 24px; height: 24px; accent-color: var(--signal); flex-shrink: 0; }
.check { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.check label { flex: 1; font-size: 14px; }

.btn {
  min-height: 52px; border: 0; border-radius: 12px; background: var(--signal); color: var(--ink);
  font-family: var(--mono); font-weight: 600; font-size: 16px; cursor: pointer; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
.btn:hover { color: var(--ink); filter: brightness(1.05); }
.btn:disabled { background: var(--line); color: var(--text-3); cursor: not-allowed; filter: none; }
.btn.ghost { background: transparent; color: var(--signal); border: 1px solid var(--signal); }
.btn.ghost:hover { color: var(--bone); border-color: var(--bone); }
.btn.quiet { background: transparent; color: var(--bone); border: 1px solid var(--line-strong); }
.btn.small-btn { min-height: 44px; font-size: 14px; }
.btn.block { width: 100%; }
.linklike { background: none; border: 0; padding: 0; min-height: 44px; font: inherit; font-size: 14px; color: var(--signal); text-decoration: underline; cursor: pointer; text-align: left; }
.linklike:hover { color: var(--bone); }
.linklike.danger { color: var(--danger); }

.error { color: var(--danger); font-size: 14px; }
.ok { color: var(--signal); font-size: 14px; }

.pill { align-self: flex-start; border: 1px solid var(--signal); color: var(--signal); font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.num { color: var(--signal); font-size: 13px; white-space: nowrap; }
.num-big { font-family: var(--display); font-weight: 800; font-size: clamp(26px, 8.4vw, 34px); letter-spacing: -0.04em; color: var(--signal); line-height: 1.1; }
.keybox { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; font-size: 18px; font-weight: 600; letter-spacing: 0.04em; }

.list { display: flex; flex-direction: column; gap: 8px; }
.item {
  display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 6px 16px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--bone);
}
.item:hover { border-color: var(--line-strong); color: var(--bone); }
.item .name { font-weight: 600; flex: 1; min-width: 0; overflow-wrap: anywhere; }
.item .side { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 12px; color: var(--smoke); }
.item .side .status { font-size: 11px; color: var(--text-3); }
.dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; background: var(--line-strong); }
.dot.on { background: var(--signal); }
.dot.away { border: 2px solid var(--signal); background: transparent; }
.item.dim .name { color: var(--text-3); }

.post { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.post .meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; }
.post .meta .who { font-weight: 600; }
.post .meta .when { color: var(--smoke); }
.post .body { font-size: 14px; line-height: 1.6; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: var(--line); color: var(--smoke); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.notice { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 13px; line-height: 1.6; color: var(--text-3); background: var(--panel); }
hr { border: 0; border-top: 1px solid var(--line); width: 100%; margin: 2px 0; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
details.card > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; font-size: 14px; }
details.card[open] > summary { margin-bottom: 4px; }
.row .grow input { width: 100%; }

progress { display: block; width: 100%; height: 10px; border: 0; border-radius: 999px; background: var(--line); overflow: hidden; appearance: none; -webkit-appearance: none; }
progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--signal); border-radius: 999px; }
progress::-moz-progress-bar { background: var(--signal); border-radius: 999px; }
.composer { display: flex; flex-direction: column; gap: 10px; }
.preview { display: flex; align-items: center; gap: 12px; }
.preview:empty { display: none; }
.preview img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; flex-shrink: 0; }
.post-photo { display: block; width: 100%; max-height: 420px; object-fit: contain; background: var(--ink); border-radius: 12px; }
.photo-gone { height: 72px; border-radius: 12px; background: var(--line); color: var(--text-3); display: flex; align-items: center; justify-content: center; font-size: 13px; }
details.report > summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; font-size: 14px; color: var(--text-3); text-decoration: underline; }
details.report[open] { width: 100%; }
details.report form { margin-top: 8px; }
label.btn { cursor: pointer; }
.sr:focus + * , input.sr:focus-visible ~ * { outline: none; }
