:root {
  --ground: #000; --card: #1C1C1E; --raised: #2C2C2E; --line: #38383A;
  --ink: #fff; --quiet: #8E8E93; --danger: #FF453A; --warn: #FF9F0A;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  font-size: 16px; line-height: 1.4; color: var(--ink); background: var(--ground);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--ground); }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 64px; }
h1 { font-size: 28px; font-weight: 700; margin: 24px 0 16px; letter-spacing: -0.02em; }
h2 { font-size: 13px; font-weight: 400; color: var(--quiet); text-transform: uppercase; letter-spacing: 0.02em; margin: 28px 16px 8px; }
p { margin: 0; }
a { color: inherit; }
.quiet { color: var(--quiet); }
.small { font-size: 13px; }
.danger { color: var(--danger); }
.warn { color: var(--warn); }

nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; padding: 8px 0 12px; border-bottom: 0.5px solid var(--line); }
nav .mark { font-weight: 700; margin-right: 8px; }
nav a { text-decoration: none; color: var(--quiet); padding: 6px 0; }
nav a.here { color: var(--ink); }
nav .who { margin-left: auto; color: var(--quiet); font-size: 13px; }

.card { background: var(--card); border-radius: 14px; overflow: hidden; }
.card + .card { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; min-height: 48px; }
.row + .row { border-top: 0.5px solid var(--line); }
.row .grow { flex: 1; min-width: 0; }
.row .end { color: var(--quiet); font-size: 14px; text-align: right; flex-shrink: 0; }
a.row, button.row { width: 100%; text-align: left; text-decoration: none; color: inherit; background: none; border: 0; font: inherit; cursor: pointer; }
a.row:hover, button.row:hover { background: var(--raised); }
.body { padding: 14px 16px; }
.body + .body, .row + .body, .body + .row { border-top: 0.5px solid var(--line); }
.text { white-space: pre-wrap; overflow-wrap: anywhere; }
.empty { color: var(--quiet); text-align: center; padding: 48px 16px; }

.tag { display: inline-block; font-size: 12px; padding: 2px 8px; border-radius: 10px; background: var(--raised); color: var(--quiet); }
.tag.danger { color: var(--danger); }

.pictures { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pictures img, .pictures video { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; background: var(--raised); cursor: zoom-in; display: block; }
.pictures video { cursor: default; }
.avatar { width: 56px; height: 56px; border-radius: 28px; object-fit: cover; background: var(--raised); flex-shrink: 0; }
.look { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.94); display: flex; align-items: center; justify-content: center; cursor: zoom-out; z-index: 10; }
.look img { max-width: 100%; max-height: 100%; }

.line { padding: 10px 16px; }
.line + .line { border-top: 0.5px solid var(--line); }
.line.reported { background: rgba(255, 69, 58, 0.14); }
.line .from { font-size: 13px; color: var(--quiet); }
.line.reply { padding-left: 36px; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.body > .actions { display: inline-flex; margin: 0 10px 0 0; }
button.pill { font: inherit; font-weight: 600; height: 44px; padding: 0 22px; border-radius: 22px; border: 0; background: var(--raised); color: var(--ink); cursor: pointer; }
button.pill.main { background: var(--ink); color: #000; }
button.pill.danger { background: var(--danger); color: #fff; }
button.pill:disabled { opacity: 0.4; cursor: default; }
button.big { height: 52px; border-radius: 26px; width: 100%; max-width: 320px; }

input[type=text] { font: inherit; color: var(--ink); background: var(--card); border: 0; border-radius: 12px; height: 48px; padding: 0 16px; width: 100%; outline: none; }
input[type=text]:focus { box-shadow: 0 0 0 1px var(--quiet); }
form.find { display: flex; gap: 10px; }
form.find input { flex: 1; }
label.check { display: flex; align-items: center; gap: 10px; padding: 11px 16px; }
label.check + label.check { border-top: 0.5px solid var(--line); }
input[type=checkbox] { width: 20px; height: 20px; accent-color: #fff; }

.door { min-height: 80vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; }
.door .word { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.door button { margin-top: 28px; }
.notice { margin-top: 14px; min-height: 20px; font-size: 14px; }
.link { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; overflow-wrap: anywhere; user-select: all; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
td { padding: 9px 12px; border-top: 0.5px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
tr:first-child td { border-top: 0; }
td.when { white-space: nowrap; color: var(--quiet); }
