:root {
  --bg: #fff;
  --ink: #111;
  --mute: #737373;
  --line: #eaeaea;
  --soft: #fafafa;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #f4f4f4;
  font-size: 16px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
}
a {
  color: #111;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  border-radius: 4px;
}
a:hover {
  color: #fff;
  background: #111;
  text-decoration: none;
  box-shadow: 0 0 0 3px #111;
}
.top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 50;
  min-width: 0;
  max-width: 100%;
}
.tray { margin-left: auto; display: flex; align-items: center; gap: 8px; position: relative; flex: 0 0 auto; }
.tray-btn, .tray-you, .tray-new {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 0;
  background: #f0f0f0;
  color: #111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  cursor: pointer;
  position: relative;
  text-decoration: none;
  font: inherit;
}
.tray-you { overflow: hidden; }
.tray-you .avatar, .tray-row .avatar { width: 40px; height: 40px; border-radius: 50%; margin: 0; }
.tray-btn .count { position: absolute; top: -4px; right: -4px; }
.tray-btn:hover, .tray-new:hover, .tray-you:hover, .tray a:hover {
  color: #111;
  background: #e4e4e4;
  box-shadow: none;
  text-decoration: none;
}
.tray-you:hover { background: #f0f0f0; box-shadow: 0 0 0 2px #111; }
.tray-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(360px, calc(100vw - 24px));
  max-height: min(70vh, 520px);
  overflow: auto;
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .16);
  z-index: 70;
  padding: 12px 12px 4px;
}
.tray-panel[hidden] { display: none; }
.tray-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 10px; }
.tray-head h2 { margin: 0; font-size: 22px; }
.tray-search input {
  width: 100%;
  margin: 0 0 8px;
  border: 0;
  border-radius: 999px;
  background: #f0f0f0;
  padding: 10px 14px;
}
.tray-tabs { display: flex; gap: 4px; margin: 0 0 8px; }
.tray-tabs a { text-decoration: none; font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 999px; color: #111; }
.tray-tabs a.on, .tray-tabs a.on:hover { background: #111; color: #fff; }
.tray-row { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 10px; text-decoration: none; color: #111; }
.tray-copy { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.tray-top { display: flex; gap: 6px; align-items: baseline; min-width: 0; }
.tray-top strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-top .stamp, .tray-top .count { flex: 0 0 auto; }
.tray-row .tiny { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tray-empty { margin: 8px; }
.tray-all { display: block; text-align: center; font-weight: 700; padding: 12px 8px; text-decoration: none; color: #111; }
.eyebrow { margin: 0 0 8px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.word { font-weight: 700; letter-spacing: -0.03em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.word img { height: 40px; width: 40px; display: block; }
.brand { font-family: Arial, Helvetica, sans-serif; font-size: 26px; font-weight: 700; letter-spacing: -0.03em; color: #111; line-height: 1; }
nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; justify-content: flex-start; font-size: 14px; color: var(--mute); }
.nav-out { margin: 0; display: inline-flex; flex: 0 0 auto; }
.nav-out button {
  background: #fff;
  color: #111;
  border: 1px solid #111;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  padding: 6px 12px;
  cursor: pointer;
  white-space: nowrap;
}
.nav-out button:hover { background: #111; color: #fff; }
nav a.on { color: var(--ink); }
.btn {
  display: inline-block;
  background: #111;
  color: #fff;
  border: 1px solid #111;
  padding: 10px 16px;
  border-radius: 6px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.btn:hover { text-decoration: none; background: #fff; color: #111; border: 1px solid #111; }
.btn-ghost:hover { background: #111; color: #fff; }
.btn-sm { padding: 8px 12px; }
.btn-ghost {
  background: #fff;
  color: #111;
  border: 1px solid var(--line);
}
main { flex: 1; width: 100%; min-width: 0; max-width: 100%; }
.wrap { max-width: 720px; margin: 0 auto; padding: 72px 24px 96px; }
.wrap-wide { max-width: none; width: 100%; padding: 24px 28px 72px; }
h1 { font-size: 48px; line-height: 1.1; letter-spacing: -0.02em; font-weight: 700; margin: 0 0 16px; overflow-wrap: anywhere; }
h2 { font-size: 22px; letter-spacing: 0; font-weight: 700; margin: 0 0 10px; }
p.lead { font-size: 18px; color: var(--mute); margin: 0 0 28px; max-width: 34em; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; margin: 56px 0; }
.card, .choice, .move, .room {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: #fff;
}
.choice { display: block; color: inherit; }
.choice:hover { background: var(--soft); text-decoration: none; }
.muted { color: var(--mute); font-size: 14px; }
.tiny { color: var(--mute); font-size: 13px; }
label { display: block; font-size: 13px; margin: 0 0 6px; }
input, textarea {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fff;
}
textarea { min-height: 120px; resize: vertical; }
.copybox {
  white-space: pre-wrap;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 14px;
  font-size: 14px;
  margin: 10px 0 12px;
}
pre.copybox {
  font-family: inherit;
  overflow-wrap: anywhere;
}
.foot {
  border-top: 1px solid var(--line);
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--mute);
  font-size: 13px;
  background: #fff;
  min-width: 0;
  max-width: 100%;
}
.foot-row { display: flex; justify-content: space-between; gap: 16px; width: 100%; flex-wrap: wrap; }
.foot-slogan { margin: 0; color: #111; font-weight: 700; overflow-wrap: anywhere; }
.slogan { font-size: 22px; font-weight: 700; line-height: 1.25; margin: 0 0 12px; max-width: 24em; overflow-wrap: anywhere; }
.home-page { background: #fff; }
.home-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 440px); gap: 40px; align-items: center; padding: 12px 0 8px; }
.home-copy .lead { color: #222; margin-bottom: 22px; }
.home-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }
.home-actions .btn { margin: 0; }
.home-shot { background: #f4f4f4; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; min-width: 0; max-width: 100%; }
.home-banner { height: 132px; background: #111; overflow: hidden; max-width: 100%; }
.home-banner img { width: 100%; max-width: 100%; height: 132px; object-fit: cover; object-position: center; display: block; }
.home-copy, .slogan, .home-copy .lead, .reply-note { max-width: 100%; overflow-wrap: anywhere; }
.home-person { display: flex; gap: 12px; align-items: center; padding: 0 16px; }
.home-person .avatar { width: 64px; height: 64px; border-radius: 8px; border: 3px solid #fff; margin-top: -28px; box-shadow: 0 0 0 1px var(--line); }
.home-person .story-name { margin: 0; }
.home-person .tiny { margin: 2px 0 0; }
.home-feed { padding: 14px 12px 12px; }
.home-feed .story { margin: 0; }
.home-kicker { margin: 48px 0 14px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--mute); }
.home-examples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.home-examples .card { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.home-examples .card > p { margin: 0 0 8px; color: #222; }
.home-examples .story { margin: 0; }
.home-live { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 14px; }
.home-live .story-name { margin: 8px 0 4px; }
.home-live .tiny { margin: 0; }
.home-more { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 0; }
.home-more p { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.home-top { padding: 10px 16px 0; }
.home-top .tiny { margin: 0 0 8px; }
.home-faces { display: flex; flex-wrap: wrap; gap: 12px; }
.home-faces a, .home-face { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 64px; max-width: 100%; color: #111; font-size: 12px; text-align: center; text-decoration: none; }
.home-faces .avatar { width: 48px; height: 48px; border-radius: 8px; margin: 0; object-fit: cover; }
.home-blurb { margin: 10px 16px 0; font-size: 14px; }
.home-join { margin-top: 28px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: #f4f4f4; max-width: 100%; }
.home-join h2 { margin: 0 0 8px; font-size: 28px; }
.home-join p { margin: 0 0 14px; max-width: 40em; }
.profile-side h3 { font-size: 15px; margin: 14px 0 4px; }
.profile-side h3 + p { margin: 0 0 8px; white-space: pre-wrap; overflow-wrap: anywhere; }
.requests { margin: 0 0 16px; }
.requests h2 { font-size: 18px; margin: 0 0 10px; }
.request { display: flex; gap: 10px; align-items: center; margin: 0 0 12px; min-width: 0; }
.request .avatar { width: 40px; height: 40px; flex: 0 0 auto; }
.request > div { min-width: 0; }
.request form { margin: 4px 0 0; }
.room-side h1 { font-size: 28px; line-height: 1.15; margin: 0 0 8px; }
.room-side .lead { font-size: 16px; margin: 0 0 12px; }
.foot a { margin-left: 14px; }
.foot .foot-badge { width: 100%; margin: 8px 0 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.foot .foot-badge a { margin: 0; max-width: 100%; min-width: 0; }
.foot .foot-badge img { display: block; width: auto; max-width: 100%; height: auto; }
.price { font-size: 32px; letter-spacing: -0.04em; font-weight: 600; margin: 8px 0; }
.err { color: #b42318; font-size: 14px; margin: 0 0 16px; }
.ok { color: #067647; font-size: 14px; margin: 0 0 16px; }
.stack { display: grid; gap: 14px; }
.legal { max-width: 720px; }
.legal h1 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 34px;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 13px;
  color: var(--mute);
  margin: 0 0 36px;
}
.legal-nav a { text-decoration: none; border-bottom: 1px solid transparent; }
.legal-nav a:hover { border-bottom-color: var(--ink); text-decoration: none; }
.legal-meta {
  font-size: 13px;
  color: var(--mute);
  line-height: 1.5;
  padding-bottom: 20px;
  margin: 0 0 28px;
  border-bottom: 1px solid var(--line);
}
.legal-body section { margin: 0 0 28px; }
.legal h2 {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 18px;
  letter-spacing: 0;
  margin: 0 0 10px;
}
.legal-body p, .legal-body li {
  font-size: 15px;
  line-height: 1.7;
  color: #222;
}
.legal-body p { margin: 0 0 12px; }
.legal-body ul { margin: 0 0 12px; padding-left: 1.3em; }
.legal-body li { margin: 0 0 8px; }
.legal-body .caps {
  font-size: 13.5px;
  letter-spacing: 0.01em;
  line-height: 1.65;
}
.legal-end {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--mute);
}
.legal code {
  font-size: 13px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
}
.warn-box {
  border: 1px solid #111;
  background: #fafafa;
  padding: 16px 18px;
  border-radius: 8px;
  margin: 20px 0;
}
.warn-box p { margin: 0 0 10px; }
.warn-box p:last-child { margin: 0; }
.block { margin-top: 56px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.chip {
  display: inline-block;
  font-size: 12px;
  line-height: 1.4;
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 8px;
  color: var(--mute);
}
.chip-open { color: var(--ink); border-color: var(--ink); }
.lockline { font-size: 14px; margin: 0 0 8px; }
.agree { margin: 8px 0 28px; padding-left: 1.15em; }
.agree li { margin: 0 0 10px; }
.agree a, .move a { overflow-wrap: anywhere; }
.room h2, .move h2 { font-size: 18px; }
@media (max-width: 800px) {
  h1 { font-size: 32px; }
  .slogan { font-size: 18px; }
  .grid { grid-template-columns: 1fr; margin: 20px 0; }
  .home-hero, .home-examples, .home-more { display: block; }
  .home-shot, .home-examples .card, .home-more p { margin-top: 16px; }
  .home-kicker { margin-top: 28px; }
  .home-join { margin-top: 20px; padding: 16px; }
  .home-join h2 { font-size: 24px; }
  .top { padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  .foot { padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); }
  body.has-dock .foot { padding-bottom: 8px; }
  .top {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    overflow: visible;
  }
  .word { flex: 1 1 auto; min-width: min-content; gap: 6px; order: 1; }
  .tray { order: 2; }
  .top > nav { order: 3; }
  .tray-panel { width: min(360px, calc(100vw - 32px)); }
  .brand { font-size: 18px; white-space: nowrap; }
  .word img { height: 32px; width: 32px; }
  .wrap { padding: 16px 16px 32px; max-width: 100%; }
  nav {
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    gap: 6px 8px;
    flex-wrap: wrap;
    overflow: visible;
    justify-content: flex-start;
  }
  nav a { white-space: nowrap; flex: 0 0 auto; padding: 6px 8px; }
  .nav-you { max-width: 7rem; overflow: hidden; text-overflow: ellipsis; }
  .foot { align-items: flex-start; gap: 8px; }
  .foot a { margin-left: 0; margin-right: 14px; }
  .row { flex-direction: column; align-items: stretch; }
  .row form, .row .btn { width: 100%; }
  .btn { display: block; text-align: center; width: 100%; }
  .top .btn, nav .btn { width: auto; display: inline-block; }
  nav .btn { flex: 1 1 100%; width: 100%; text-align: center; }
  form.search { flex-wrap: wrap; width: 100%; }
  form.search input { flex: 1 1 160px; width: auto; min-width: 0; margin: 0; }
  nav .search { width: auto; flex: 0 0 auto; flex-wrap: nowrap; }
  nav .search input { width: 104px; flex: 0 0 auto; margin: 0; }
  .feed-layout, .profile-grid, .room-layout { display: block; }
  .feed-side { position: static; margin-top: 20px; }
  .banner, .banner-img { height: 168px; }
  .profile-id { margin-top: 0; gap: 10px; }
  .avatar-profile { width: 72px; height: 72px; margin-top: -36px; }
  .profile-page h1 { font-size: 24px; }
  .friends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .friend { min-width: 0; overflow: hidden; }
  .friend span {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    line-height: 1.2;
  }
  .sitelink { padding: 10px 14px; max-width: 100%; }
  video.stage { max-height: 70vh; }
  .card, .story, .move, .msg-pane, .wrap, .composer { min-width: 0; max-width: 100%; }
  .story-head > div { min-width: 0; flex: 1 1 auto; }
  .story-name, .story-body, .bubble p, .lead { overflow-wrap: anywhere; }
  .post-photo { height: auto; max-width: 100%; }
}
.avatar, .avatar-lg {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  object-fit: cover;
  background: #111;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  vertical-align: middle;
  flex: 0 0 auto;
}
.avatar-profile {
  width: 96px;
  height: 96px;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
}
.friends { display: grid; grid-template-columns: repeat(4, 56px); gap: 10px; }
.friend { font-size: 12px; text-align: center; display: block; }
.friend img, .friend .avatar { width: 40px; height: 40px; aspect-ratio: 1; margin: 0 auto; }
.post-photo, video.stage, iframe.stage, audio.clip { width: 100%; border-radius: 6px; display: block; background: #111; }
video.stage { max-height: 480px; }
.search { display: flex; gap: 8px; align-items: center; }
.search input { width: 140px; margin: 0; padding: 8px 10px; }
.reply { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.feed-page h1, .profile-page h1 { font-size: 28px; line-height: 1.15; }
.feed-layout { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 24px; align-items: start; }
.feed-main { min-width: 0; max-width: 100%; }
.feed-side, .profile-side { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
.feed-side { position: sticky; top: 16px; }
.me { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; }
.story { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 12px 14px 8px; }
.story-head { display: flex; gap: 10px; align-items: center; }
.story-name { margin: 0; font-weight: 700; font-size: 15px; }
.stamp { display: block; color: var(--mute); font-size: 12px; margin-top: 1px; }
.story-body { margin: 10px 0; font-size: 16px; white-space: pre-wrap; }
.story-body a, .reply a { overflow-wrap: anywhere; }
.reply-note { margin: 8px 0 0; padding: 8px 10px; background: #f4f4f4; border-radius: 6px; }
.bubble.mine a { color: #fff; }
.bubble.mine a:hover { color: #111; background: #fff; }
.typebar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 8px; }
.typebar button, .typebar .type-color {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #111;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.typebar button:hover { background: #111; color: #fff; }
.type-color { position: relative; overflow: hidden; }
.type-color input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  cursor: pointer;
}
.typebox {
  width: 100%;
  min-height: 72px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fff;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  -webkit-user-select: text;
}
.typebox:focus { outline: 2px solid #111; outline-offset: 1px; }
.typebox:empty:before { content: attr(data-placeholder); color: var(--mute); }
.msg-compose .typebox, #chatbox .typebox { min-height: 44px; margin-bottom: 0; }
textarea.type-source { display: none; }
.story-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; border-top: 1px solid var(--line); margin: 8px -14px 0; padding: 8px 14px 4px; font-size: 13px; }
.composer textarea { min-height: 72px; }
.composer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.profile-page { min-width: 0; max-width: 100%; }
.banner { height: 240px; border-radius: 8px; overflow: hidden; background: #ececec; }
.banner-img { width: 100%; max-width: 100%; height: 240px; object-fit: cover; object-position: center; display: block; }
.profile-id { display: flex; align-items: flex-start; gap: 14px; margin-top: 0; padding: 0 12px 14px; position: relative; background: #fff; min-width: 0; max-width: 100%; }
.avatar-profile { margin-top: -48px; }
.profile-copy { min-width: 0; flex: 1 1 auto; padding-top: 22px; overflow-wrap: anywhere; }
.profile-copy .lead { margin: 2px 0 8px; }
.profile-actions { margin: 10px 0 0; }
.profile-actions .btn { width: auto; display: inline-block; }
.edit-page { margin: 16px 0 0; max-width: 720px; }
.edit-page textarea { min-height: 140px; }
.profile-page h1, .profile-page .friend { overflow-wrap: anywhere; }
.profile-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; margin-top: 18px; align-items: start; min-width: 0; }
.profile-side { background: #fff; }
.profile-wall { min-width: 0; }
.sitelinks { display: flex; flex-wrap: wrap; gap: 8px; }
.sitelink { display: inline-block; border: 1px solid #111; border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 700; text-decoration: none; }
@media (max-width: 800px) {
  .feed-layout, .profile-grid, .room-layout { display: block; }
  .feed-side { position: static; margin-top: 20px; }
  .banner, .banner-img { height: 168px; }
  .profile-id { margin-top: 0; gap: 10px; }
  .avatar-profile { width: 72px; height: 72px; margin-top: -36px; }
  .profile-page .wrap { max-width: 100%; }
  .profile-page .banner,
  .profile-page .banner-img {
    height: 168px;
    max-width: 100%;
    border-radius: 8px 8px 0 0;
  }
  .profile-page .profile-id {
    display: flex;
    margin: 0;
    gap: 12px;
    min-width: 0;
    max-width: 100%;
    padding: 0 12px 14px;
    background: #fff;
    border-radius: 0 0 8px 8px;
  }
  .profile-page .avatar-slot { width: 72px; margin: -36px 0 0; flex: 0 0 auto; }
  .profile-page .avatar-profile {
    width: 72px;
    height: 72px;
    margin: 0;
    flex: 0 0 auto;
  }
  .msg-open .msg-list, .msg-home .msg-thread, .msg-compose-page .msg-thread { display: none; }
  .profile-page .profile-copy { flex: 1 1 auto; min-width: 0; padding-top: 12px; }
  .profile-page h1, .feed-page h1 { font-size: 24px; }
  .profile-page h1 { overflow-wrap: anywhere; margin: 0 0 2px; }
  .profile-page .profile-grid,
  .profile-page .profile-side,
  .profile-page .profile-wall { display: block; min-width: 0; max-width: 100%; }
  .friends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-page .friend { min-width: 0; overflow-wrap: anywhere; }
  .profile-page .friend img,
  .profile-page .friend .avatar { width: 100%; max-width: 56px; height: auto; aspect-ratio: 1; }
  .profile-page .sitelink { max-width: 100%; overflow-wrap: anywhere; }
  .sitelink { padding: 10px 14px; }
  video.stage { max-height: 70vh; }
  .story-foot .btn { width: auto; }
}
@media (min-width: 900px) {
  .profile-page .wrap,
  .feed-page .wrap { max-width: none; padding: 24px 28px 72px; }
  .profile-page .banner {
    height: 400px;
    border-radius: 12px 12px 0 0;
    border: 1px solid var(--line);
    border-bottom: 0;
  }
  .profile-page .banner-img {
    height: 400px;
    border-radius: 12px 12px 0 0;
  }
  .profile-page .profile-id {
    display: grid;
    grid-template-columns: 168px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin: 0;
    padding: 0 28px 22px;
    border: 1px solid var(--line);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: #fff;
  }
  .profile-page .avatar-slot { width: 168px; margin: -84px 0 0; }
  .profile-page .avatar-profile {
    width: 168px;
    height: 168px;
    margin: 0;
    border-width: 4px;
    border-radius: 12px;
    background: #fff;
  }
  .profile-page span.avatar-profile { background: #111; color: #fff; }
  .profile-page .profile-copy { padding: 20px 0 0; }
  .profile-page h1 { font-size: 34px; margin: 0 0 4px; line-height: 1.1; }
  .profile-page .profile-grid {
    grid-template-columns: 340px minmax(0, 1fr);
    gap: 20px;
    margin-top: 20px;
  }
  .profile-side .friends,
  .feed-side .friends { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .profile-side .friend,
  .feed-side .friend {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    font-size: 13px;
    line-height: 1.25;
  }
  .profile-side .friend img,
  .profile-side .friend .avatar { width: 72px; height: 72px; border-radius: 8px; }
  .feed-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; }
  .feed-page h1 { font-size: 28px; margin-bottom: 14px; }
  .home-page .wrap,
  .dir-page .wrap,
  .room-page .wrap { max-width: none; padding: 24px 28px 72px; }
  .room-layout {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 20px;
    align-items: start;
  }
  .room-side {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
    background: #fff;
  }
}
nav a { color: #111; text-decoration: none; padding: 6px 10px; border-radius: 6px; }
nav a.on { font-weight: 700; }
nav a:hover, .foot a:hover, .legal-nav a:hover, .sitelink:hover, .friend:hover, .me:hover, .choice:hover, .story-foot a:hover {
  color: #fff;
  background: #111;
  text-decoration: none;
  box-shadow: none;
  border-color: #111;
}
.word, .word:hover, .btn, .btn:hover {
  box-shadow: none;
  text-decoration: none;
}
.word, .word:hover { background: transparent; color: inherit; }
.foot a, .legal-nav a, .story-foot a, .friend, .me, .choice, .sitelink { text-decoration: none; }
.legal-nav a:hover { border-bottom-color: transparent; }
.count { display: inline-block; min-width: 1.2em; padding: 0 6px; border-radius: 99px; background: #111; color: #fff; font-size: 12px; font-weight: 700; line-height: 1.5; text-align: center; }
nav a:hover .count, .msg-row:hover .count, .msg-row.on .count { background: #fff; color: #111; }
.banner { position: relative; }
.avatar-slot { position: relative; display: block; width: 96px; margin-top: -48px; }
.avatar-slot .avatar-profile { margin-top: 0; }
.pic-change .btn { width: auto; }
.pic-change input { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }
.banner-change { position: absolute; right: 16px; bottom: 16px; z-index: 2; }
.photo-change { position: absolute; left: 8px; bottom: 8px; z-index: 2; }
.msg-page .wrap { padding-top: 12px; padding-bottom: 16px; }
.msg-layout { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: 0; align-items: stretch; height: calc(100vh - 110px); min-height: 480px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.msg-list { background: #fff; border: 0; border-right: 1px solid var(--line); border-radius: 0; padding: 12px 8px; overflow: auto; min-height: 0; }
.msg-rows { display: flex; flex-direction: column; gap: 2px; }
.msg-row { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; text-decoration: none; color: #111; }
.msg-row.on, .msg-row:hover { background: #f2f2f2; color: #111; box-shadow: none; text-decoration: none; }
.msg-row.on .tiny, .msg-row:hover .tiny { color: var(--mute); }
.msg-row .avatar, .msg-head .avatar { border-radius: 50%; }
.msg-back { display: none; margin: 0; }
.msg-thread { min-width: 0; min-height: 0; display: flex; flex-direction: column; background: #f4f4f4; }
.msg-pane { flex: 1; display: flex; flex-direction: column; min-height: 0; background: transparent; border: 0; padding: 0; }
.msg-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border-bottom: 1px solid var(--line); }
.msg-head .story-name { margin: 0; }
.msg-log { display: flex; flex-direction: column; gap: 6px; flex: 1; overflow: auto; margin: 0; padding: 16px; }
.bubble { max-width: min(78%, 520px); border-radius: 18px; padding: 8px 12px; }
.bubble p { margin: 0 0 4px; white-space: pre-wrap; }
.bubble.mine { margin-left: auto; background: #111; color: #fff; border-radius: 18px 18px 4px 18px; }
.bubble.mine .stamp { color: #d4d4d4; }
.bubble.theirs { background: #fff; border: 1px solid var(--line); border-radius: 18px 18px 18px 4px; }
.msg-empty { margin: auto; padding: 24px; color: #111; }
.msg-start { padding: 8px 4px; }
.msg-compose { display: flex; align-items: flex-end; gap: 8px; margin: 0; padding: 8px 12px 12px; background: #f4f4f4; border: 0; }
.msg-compose textarea { border-radius: 22px; min-height: 44px; margin: 0; resize: none; padding: 12px 16px; }
.msg-compose .btn { width: auto; min-width: 72px; height: 44px; border-radius: 999px; padding: 0 16px; margin: 0; }
.msg-compose .emoji-open { width: 44px; height: 44px; border-radius: 50%; padding: 0; flex: 0 0 auto; }
.day-rail-wrap { position: relative; max-width: 100%; }
.day-rail { display: flex; gap: 14px; overflow-x: auto; max-width: 100%; padding: 2px 2px 14px; }
.day-item { width: 92px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: #111; text-align: center; }
.day-item:hover { color: #111; background: transparent; box-shadow: none; text-decoration: none; }
.day-card { display: none; }
.day-rail[data-own] .day-create { display: none; }
.day-next { display: none; }
.day-ring { width: 64px; height: 64px; border-radius: 50%; padding: 3px; border: 3px solid #111; display: flex; box-sizing: border-box; background: #fff; }
.day-ring.seen { border-color: #cfcfcf; }
.day-ring .avatar, .day-ring img.avatar { width: 100%; height: 100%; border-radius: 50%; margin: 0; }
.day-item .tiny { width: 92px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; white-space: normal; line-height: 1.15; color: #111; }
@media (min-width: 900px) {
  .day-rail { gap: 8px; padding: 2px 8px 16px 2px; scrollbar-width: none; }
  .day-rail::-webkit-scrollbar { display: none; }
  .day-rail[data-own] .day-create { display: flex; }
  .day-item { width: 112px; height: 200px; border-radius: 12px; overflow: hidden; position: relative; align-items: stretch; background: #d8d8d8; }
  .day-item > .day-ring, .day-item > .tiny { display: none; }
  .day-card { display: block; position: absolute; inset: 0; }
  .day-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; background: #d0d0d0; }
  .day-item:not(.day-create) .day-card::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 78px; background: linear-gradient(transparent, rgba(0,0,0,.75)); pointer-events: none; }
  .day-card > .day-ring { position: absolute; top: 12px; left: 12px; width: 40px; height: 40px; z-index: 2; }
  .day-name { position: absolute; left: 10px; right: 10px; bottom: 12px; z-index: 2; color: #fff; font-size: 13px; font-weight: 700; line-height: 1.2; text-align: left; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .day-item:hover { background: #d0d0d0; }
  .day-create, .day-create:hover { background: #fff; border: 1px solid #e5e5e5; }
  .day-create .day-photo { position: absolute; top: 0; left: 0; right: 0; height: 68%; overflow: hidden; background: #eee; }
  .day-create .day-photo .avatar { width: 100%; height: 100%; border-radius: 0; object-fit: cover; font-size: 42px; }
  .day-plus { position: absolute; left: 50%; top: 68%; transform: translate(-50%, -50%); width: 40px; height: 40px; border-radius: 50%; background: #111; color: #fff; border: 4px solid #fff; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; z-index: 2; }
  .day-create .day-name { color: #111; text-align: center; left: 8px; right: 8px; bottom: 14px; }
  .day-next:not([hidden]) { display: flex; align-items: center; justify-content: center; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: 50%; background: #fff; color: #111; box-shadow: 0 2px 10px rgba(0,0,0,.22); font: inherit; font-size: 22px; line-height: 1; cursor: pointer; z-index: 3; }
}
.story-view { background: #111; color: #fff; }
.story-view a { color: #fff; }
.story-view .story-back a:hover { color: #111; background: #fff; }
.story-view .avatar { border-radius: 50%; }
.story-empty { max-width: 420px; margin: 24px auto; }
.story-add { max-width: 420px; margin: 0 auto 24px; color: #111; background: #fff; }
.story-add a, .story-view .story-add, .story-view .story-add .tiny, .story-view .story-add h2 { color: #111; }
.story-back { margin: 0 0 12px; }
body:has(.snap-open) { overflow: hidden; }
body:has(.snap-open) .top,
body:has(.snap-open) .foot,
body:has(.snap-open) .dock,
body:has(.snap-open) .install { display: none; }
.snap-open { position: fixed; inset: 0; z-index: 80; background: #000; color: #fff; }
.snap-roll { height: 100dvh; overflow-y: auto; scroll-snap-type: y mandatory; overscroll-behavior: contain; background: #000; }
.snap-slide { position: relative; height: 100dvh; scroll-snap-align: start; scroll-snap-stop: always; background: #000; overflow: hidden; }
.snap-media { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.snap-slide.text-only { display: flex; align-items: center; justify-content: center; text-align: center; padding: 72px 28px; }
.snap-line { margin: 0; font-size: 28px; line-height: 1.3; max-width: 18em; }
.snap-progress { position: absolute; top: 0; left: 0; right: 0; z-index: 5; display: flex; gap: 4px; padding: calc(8px + env(safe-area-inset-top)) 8px 0; }
.snap-bar { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.35); }
.snap-bar.on { background: #fff; }
.snap-top { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 0; right: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 8px 0 12px; }
.snap-who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.snap-who strong { display: block; font-size: 15px; line-height: 1.2; }
.snap-count { display: block; color: #d4d4d4; font-size: 12px; font-weight: 400; line-height: 1.2; }
.snap-who .avatar { width: 36px; height: 36px; border-radius: 50%; }
.snap-tools { display: flex; align-items: center; gap: 2px; flex: 0 0 auto; }
.snap-open a.snap-who,
.snap-open a.snap-who:hover,
.snap-open a.snap-x,
.snap-open a.snap-x:hover,
.snap-open a.snap-hit,
.snap-open a.snap-hit:hover,
.snap-open a.snap-add-link,
.snap-open a.snap-add-link:hover,
.snap-caption a,
.snap-caption a:hover,
.snap-line a,
.snap-line a:hover {
  color: #fff;
  background: transparent;
  box-shadow: none;
  text-decoration: none;
}
.snap-x { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 32px; line-height: 1; }
.snap-add-link { font-weight: 700; font-size: 14px; padding: 8px; }
.snap-hit { position: absolute; top: 72px; bottom: 0; width: 22%; z-index: 4; }
.snap-prev { left: 0; }
.snap-next { right: 0; }
.snap-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; margin: 0; padding: 64px 20px calc(24px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.82)); font-size: 22px; line-height: 1.3; }
.snap-sound { width: auto; margin: 0; background: transparent; color: #fff; border: 1px solid #fff; border-radius: 99px; padding: 6px 12px; font: inherit; font-size: 13px; }
.snap-note { position: absolute; left: 16px; right: 16px; top: calc(108px + env(safe-area-inset-top)); z-index: 6; margin: 0; }
.snap-add-slide { display: flex; align-items: center; justify-content: center; padding: 72px 16px 24px; }
.snap-add-slide .story-add { width: min(100%, 420px); margin: 0; }
.snap-add-slide .snap-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 8px; }
.snap-open .story-add a,
.snap-open .story-add a:hover { color: #111; background: transparent; box-shadow: none; }
.invites { border: 1px solid var(--line); border-radius: 8px; margin: 0 0 14px; padding: 10px 12px; min-width: 0; max-width: 100%; }
.invites .check { margin: 6px 0; min-width: 0; }
.invites input { width: auto; margin: 0; }
.profile-page { position: relative; }
.profile-page .wrap { position: relative; z-index: 1; }
.profile-page.has-bg {
  background-color: var(--skin-bg, #f4f4f4);
  background-image: var(--skin-image, none);
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  min-height: calc(100vh - 72px);
}
.profile-page.has-bg .profile-id,
.profile-page.has-bg .profile-side { background: transparent; border-color: transparent; }
.profile-page.has-ink .profile-copy,
.profile-page.has-ink .profile-side,
.profile-page.has-ink .profile-copy a:not(.btn),
.profile-page.has-ink .profile-side a:not(.btn) { color: var(--skin-ink); }
.fx-layer { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.floater { position: absolute; top: -12%; animation-timing-function: linear; animation-iteration-count: infinite; }
.floater.snow { animation-name: floatDown; }
.floater.fx-bubble, .floater.heart, .floater.butterfly { animation-name: floatUp; }
.floater.spark, .floater.star { animation-name: twinkle; }
.spark { width: 6px; height: 6px; border-radius: 50%; background: #fff; box-shadow: 0 0 8px 2px #f5c518; }
.snow { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.fx-bubble { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9bd; background: rgba(255,255,255,.35); }
.heart { color: #c81e1e; font-size: 22px; line-height: 1; }
.star { color: #f5c518; font-size: 18px; line-height: 1; }
.bf { width: 42px; height: 32px; display: block; }
.page-song { width: min(100%, 320px); margin: 0 0 12px; }
.chats-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
.chats-head h1 { margin: 0; font-size: 28px; }
.chats-head .btn { width: auto; flex: 0 0 auto; }
.msg-tabs { display: flex; gap: 8px; margin: 0 0 12px; }
.msg-tabs a { text-decoration: none; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 14px; }
.msg-tabs a.on, .msg-tabs a:hover { background: #111; color: #fff; }
.chat-search { width: 100%; margin: 0 0 12px; }
.chat-search input { width: 100%; margin: 0; }
.msg-copy { min-width: 0; flex: 1; }
.msg-top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; min-width: 0; }
.msg-top strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.msg-meta { display: flex; align-items: center; gap: 6px; flex: 0 0 auto; }
.msg-time { white-space: nowrap; }
.msg-copy .tiny { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.msg-back.show { display: block; }
label.file-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0;
  border: 1px solid #111;
  background: #fff;
  color: #111;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}
label.file-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.file-name { margin: 8px 0 0; overflow-wrap: anywhere; }
.composer-row { flex-wrap: wrap; }
.msg-list .chat-search { display: block; width: 100%; }
.msg-list .chat-search input { width: 100%; }
.msg-list .chats-head { position: sticky; top: 0; background: #fff; z-index: 2; padding-bottom: 8px; }
.new-posts {
  display: block;
  margin: 0 0 12px;
  background: #111;
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.new-posts[hidden] { display: none; }
.more-row { margin: 16px 0; text-align: center; }
.more { font-weight: 700; }
.dock { display: none; }
.install { display: none; }
.install[hidden] { display: none !important; }
.color-row { min-width: 0; }
.color-row input:not([type="color"]) { min-width: 0; }
.edit-page h3 { margin: 18px 0 6px; font-size: 16px; }
.edit-page select, .edit-page input[type="file"] {
  width: 100%;
  font: inherit;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  margin-bottom: 14px;
  background: #fff;
}
.edit-page input[type="checkbox"], .edit-page input[type="radio"], .edit-page input[type="color"] { width: auto; margin: 0; }
.color-row { display: flex; gap: 8px; align-items: center; }
.color-row input:not([type="color"]) { flex: 1; }
.edit-page input.color-pick { width: 42px; height: 42px; padding: 2px; border: 1px solid #111; background: #fff; border-radius: 6px; flex: 0 0 auto; }
.swatches, .checks { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.swatch { width: 28px; height: 28px; padding: 0; border: 1px solid #111; border-radius: 6px; cursor: pointer; }
.check { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 15px; }
label.account-mail { align-items: flex-start; margin: 0 0 16px; max-width: 100%; line-height: 1.4; }
label.account-mail input { width: auto; margin: 3px 0 0; flex: 0 0 auto; }
label.account-mail span { min-width: 0; flex: 1 1 auto; }
.notice-picks { display: grid; gap: 10px; margin: 0 0 16px 28px; max-width: 100%; }
.notice-picks .account-mail { margin: 0; }
.emoji-open, .emoji-pick { width: auto; border: 1px solid #111; background: #fff; border-radius: 6px; cursor: pointer; font-size: 18px; line-height: 1; padding: 6px 8px; }
.emoji-box { position: absolute; z-index: 40; width: 280px; display: flex; flex-wrap: wrap; gap: 4px; background: #fff; border: 1px solid #111; border-radius: 8px; padding: 8px; }
.emoji-box[hidden] { display: none; }
.emoji-pick { width: 36px; height: 36px; padding: 0; }
@keyframes floatUp {
  0% { transform: translateY(105vh); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(-30vh); opacity: .85; }
}
@keyframes floatDown {
  0% { transform: translateY(-10vh); opacity: 0; }
  12% { opacity: 1; }
  100% { transform: translateY(105vh); opacity: .85; }
}
@keyframes twinkle {
  0%, 100% { opacity: .15; transform: scale(.6); }
  50% { opacity: 1; transform: scale(1); }
}
@media (max-width: 800px) {
  .composer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
  .composer-row .btn, .emoji-open, .file-btn { width: auto; margin-top: 0; min-height: 44px; }
  .composer-row .btn { flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; }
  .msg-layout { display: block; height: auto; min-height: 0; border-radius: 12px; }
  .msg-open .msg-list, .msg-home .msg-thread, .msg-compose-page .msg-thread { display: none; }
  .msg-open .msg-layout { display: flex; flex-direction: column; height: calc(100dvh - 132px); min-height: 320px; }
  .msg-open .msg-thread { display: flex; flex: 1; min-height: 0; width: 100%; }
  body.has-dock .msg-open .msg-layout { height: calc(100dvh - 196px); }
  .msg-back { display: inline-flex; align-items: center; margin-right: 4px; color: #111; text-decoration: none; font-weight: 700; }
  .msg-list { border-right: 0; }
  .msg-compose { flex-wrap: nowrap; }
  .msg-compose textarea { width: auto; min-width: 0; flex: 1 1 auto; height: auto; min-height: 44px; margin: 0; line-height: 1.3; }
  .msg-compose .btn { flex: 0 0 auto; }
  body.has-dock:has(.msg-open) .foot,
  body.has-dock:has(.story-view) .foot { display: none; }
  .story-view .wrap { padding-left: 16px; padding-right: 16px; }
  .photo-change { display: none; }
  .profile-page.has-bg { background-attachment: scroll; }
  .emoji-box { width: min(280px, calc(100vw - 16px)); }
  .chats-head h1 { font-size: 24px; }
  body.has-dock { padding-bottom: calc(62px + env(safe-area-inset-bottom)); }
  body.has-dock:has(.snap-open) { padding-bottom: 0; }
  .dock {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 4px 6px calc(4px + env(safe-area-inset-bottom));
    justify-content: space-around;
    gap: 2px;
  }
  .dock a {
    flex: 1 1 0;
    min-width: 0;
    text-align: center;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 2px;
    border-radius: 8px;
    color: #111;
    white-space: nowrap;
  }
  .dock a.on, .dock a:hover { background: #111; color: #fff; }
  .dock .count { background: #111; color: #fff; }
  .dock a.on .count, .dock a:hover .count { background: #fff; color: #111; }
  .install:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
    background: #111;
    color: #fff;
  }
  .install img { width: 36px; height: 36px; flex: 0 0 auto; border-radius: 8px; display: block; }
  .install-copy { flex: 1 1 auto; min-width: 0; }
  .install p { margin: 0; color: #fff; font-size: 14px; line-height: 1.35; }
  .install p[hidden] { display: none; }
  .install .btn {
    width: auto;
    display: inline-block;
    flex: 0 0 auto;
    margin: 0;
    background: #fff;
    color: #111;
    border-color: #fff;
  }
  .install .btn:hover { background: #111; color: #fff; border-color: #fff; }
  .install-x {
    width: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 8px 0 8px 4px;
    background: transparent;
    color: #fff;
    border: 0;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
  }
  .security .wrap { padding-top: 12px; padding-bottom: 20px; }
  .security h1 { font-size: 32px; margin-bottom: 8px; }
  .security .lead { font-size: 16px; margin-bottom: 12px; }
  .security .card { padding: 12px; }
  .security .qr-card { padding: 10px; margin-bottom: 10px; }
  .security .qr-card img { width: min(168px, 70vw); }
  .security .secret-key { font-size: 15px; line-height: 1.35; }
}
.qr-card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 0 0 16px; text-align: center; max-width: 100%; }
.qr-card img { width: min(240px, 100%); height: auto; display: block; margin: 0 auto 12px; }
.secret-key { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: 0.06em; word-break: break-all; font-size: 16px; margin: 0; }
