/* Clean two-column page: write on the left, the public feed on the right. */

:root {
  --bg: #faf8f4;
  --ink: #0f1419;
  --muted: #536471;
  --line: #efe4d6;
  --line-strong: #e3d4c4;
  --blue: #0085ff;
  --blue-hover: #0074e0;
  --blue-soft: #0085ff14;
  --heart: #f91880;
  --heart-soft: #f9188014;
  --danger: #f4212e;
  --hover: #f3ebe3;
  --top: 56px;
  --sans: "Lato", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html {
  height: 100%;
  overflow: hidden;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
  color-scheme: light;
}

body.legal { height: auto; overflow: auto; }
html:has(body.legal) { height: auto; overflow: auto; }

h1, h2, h3, p { margin: 0; }
h1 { font-weight: 900; }
h2, h3 { font-weight: 700; }
button, input, textarea, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.text-btn {
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 999px;
  text-decoration: none;
}

.text-btn:hover { background: var(--blue-soft); }

.phone-home, .phone-bar { display: none; }
.nav-drawer { display: none; }

/* ---------- columns ---------- */

.shell {
  width: 100%;
  height: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: start;
  align-items: stretch;
  overflow: hidden;
}

.rail {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 20px 40px 28px 16px;
  text-align: right;
}

.rail-note {
  margin: auto 0 0 auto;
  max-width: 28ch;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.rail.guest .rail-note { margin-top: auto; }

.posting-as {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
}

.posting-as.is-current,
.posting-as:hover { color: var(--blue); }

.profile-page {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 52px 22px 20px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.profile-close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font: inherit;
  line-height: 1;
  cursor: pointer;
}

.profile-close svg { width: 18px; height: 18px; }

.profile-close:hover { background: transparent; color: var(--ink); }

.profile-photo {
  position: relative;
  display: block;
  width: 84px;
  height: 84px;
  flex: none;
  cursor: pointer;
}

.profile-photo .avatar { width: 84px; height: 84px; font-size: 32px; }

.profile-photo-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 20, 25, .16);
}

.profile-photo-badge svg { width: 15px; height: 15px; }

.profile-photo input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.profile-name {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.profile-meta {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
}

.profile-flag {
  margin-right: 6px;
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
}

.profile-logout {
  display: block;
  margin: 10px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.profile-logout:hover { background: transparent; color: var(--danger); }

.feed-top {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
}

.feed-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
}

.feed-tab {
  flex: 1;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  padding: 14px 8px 12px;
  cursor: pointer;
}

.feed-tab.is-current {
  color: var(--ink);
  border-bottom-color: #c4894a;
}

.composer-prompt {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #f3ebe3;
  padding: 12px 16px;
  cursor: pointer;
  text-align: left;
}

.composer-prompt-text {
  flex: 1;
  color: var(--muted);
  font-size: 17px;
}

.composer-prompt-photo {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: var(--blue);
}

.composer-prompt-photo svg { width: 22px; height: 22px; }

.post-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}

.delete-post {
  border: 0;
  background: transparent;
  color: var(--danger);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 6px 8px;
}

.delete-post:hover { background: transparent; }

.rail.guest { padding-top: 20px; }

.join { width: auto; }

.feed {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.feed::-webkit-scrollbar { display: none; }

.join-mark, .rail-mark {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  margin-left: auto;
}

.rail-mark { width: 36px; height: 36px; margin-bottom: 16px; }

.join h1 {
  margin: 12px 0 8px;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.join h1 span { display: block; }

.join-tag {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.35;
}

.days-col {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  padding: 18px 14px 28px;
}

.days { min-height: 0; }

.legal-links {
  display: flex;
  gap: 16px;
  margin-top: auto;
  font-size: 13px;
}

.legal-links a {
  color: var(--muted);
  text-decoration: none;
}

.legal-links a:hover { color: var(--ink); text-decoration: underline; }

.days ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.days li { margin: 0; }

.day-link {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  line-height: 1.2;
  text-align: left;
  padding: 5px 0;
  cursor: pointer;
}

.day-mark {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.day-link:hover { color: var(--ink); }

.day-link.is-current {
  color: #8a5a24;
  font-size: 16px;
  font-weight: 700;
}

.day-group { scroll-margin-top: 8px; }

.join-actions { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.join-actions .btn {
  white-space: nowrap;
  padding: 3px 10px;
  font-size: 13px;
}

h2 {
  font-size: 20px;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.lede, .muted { color: var(--muted); }
.lede { margin-bottom: 16px; }

.banner {
  background: #e8f4ff;
  color: #0a3d73;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* ---------- forms ---------- */

.switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 3px;
  margin-bottom: 16px;
}

.switch button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 8px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
}

.switch button[aria-selected="true"] {
  background: var(--blue);
  color: #fff;
}

.stack { display: flex; flex-direction: column; gap: 12px; }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 400;
}

.field input, .field select, textarea {
  font-weight: 400;
  font-size: 15px;
  padding: 11px 12px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffdf9;
  width: 100%;
}

textarea {
  min-height: 140px;
  resize: vertical;
  border-radius: 12px;
  line-height: 1.45;
}

.field input:focus, .field select:focus, textarea:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.username-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fffdf9;
}

.username-field:focus-within {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.username-at {
  padding-left: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.username-field input {
  border: 0;
  background: transparent;
  padding-left: 2px;
}

.username-field input:focus { outline: none; }

.form-error {
  color: var(--danger);
  font-size: 14px;
  min-height: 1.2em;
}

.compose-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.rail .compose-bar { justify-content: flex-end; }
.rail .count { margin-left: 0; }
.rail textarea { text-align: left; }

.photo-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  border-radius: 999px;
  padding: 6px 10px;
}

.photo-btn:hover { background: var(--blue-soft); }

.photo-btn input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.photo-btn svg { display: block; width: 22px; height: 22px; }

.count {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.count.warn { color: var(--danger); }

.composer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.composer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 20, 25, .45);
}

.composer-card {
  position: relative;
  width: min(600px, 100%);
  max-height: min(720px, 100%);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 18px 50px rgba(15, 20, 25, .22);
}

.composer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 4px;
}

.composer-top .text-btn {
  color: var(--blue);
  font-size: 16px;
  padding: 6px 8px;
}

.composer-body {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px 16px 0;
}

.composer-field { position: relative; min-width: 0; }

.composer-hint {
  position: absolute;
  top: 8px;
  left: 0;
  right: 0;
  margin: 0;
  color: #8b98a5;
  font-size: 18px;
  line-height: 1.4;
  pointer-events: none;
}

.composer-hint span { display: block; }

.composer-field.has-text .composer-hint { visibility: hidden; }

.composer textarea {
  min-height: 180px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  resize: none;
  font-size: 18px;
  line-height: 1.4;
}

.composer textarea:focus { outline: none; }

.composer .preview { margin: 4px 16px 0 72px; }

.composer .form-error {
  margin: 4px 16px 0 72px;
}

.composer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding: 8px 10px 12px;
  border-top: 1px solid var(--line);
}

.composer-tools .photo-btn { padding: 8px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  padding: 8px 18px;
  cursor: pointer;
  text-decoration: none;
}

.btn:hover:not(:disabled) { background: var(--blue-hover); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.wide { width: 100%; padding: 11px 18px; }
.btn.quiet {
  background: transparent;
  color: var(--muted);
}
.btn.quiet:hover:not(:disabled) { background: var(--hover); }

.preview { position: relative; margin-top: 12px; }

.preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.preview button {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 20, 25, .72);
  color: #fff;
  cursor: pointer;
}

.preview button svg { width: 16px; height: 16px; }

/* ---------- feed ---------- */

.day-label {
  position: sticky;
  top: var(--stick, 118px);
  z-index: 2;
  margin: 0;
  padding: 6px 20px;
  background: rgba(250, 244, 236, .94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.post {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 20px 8px;
  border-bottom: 1px solid var(--line);
}

.post:hover { background: var(--hover); }

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  display: grid;
  place-items: center;
  text-transform: uppercase;
  user-select: none;
  overflow: hidden;
  flex: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

.post-main { min-width: 0; }

.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
}

.post-meta, .name, .day-link { font-weight: 400; }

.dot, time { color: var(--muted); }

.post-body {
  margin-top: 2px;
  font-weight: 400;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.post-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.heart-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 12px;
  margin: 0;
  font-size: 13px;
}

.heart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 8px 6px 0;
  cursor: pointer;
  font-size: 13px;
  font-weight: 400;
}

.heart-phrase { color: var(--ink); }

.heart-count {
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.heart svg { width: 16px; height: 16px; display: block; }
.heart:hover { color: var(--heart); background: transparent; }
.heart:hover .heart-phrase { color: var(--ink); }
.heart[aria-pressed="true"] { color: var(--heart); }

.more {
  display: block;
  margin: 8px auto 28px;
  border: 0;
  background: transparent;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 10px 16px;
  border-radius: 999px;
}

.more:hover { background: var(--blue-soft); }

.feed-status, .notice {
  padding: 28px 20px;
  color: var(--muted);
}

.empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 10px;
  padding: 48px 28px;
}

.empty-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.25;
}

.empty p:not(.empty-title) {
  color: var(--muted);
  max-width: 32ch;
}

.empty .btn { margin-top: 8px; }

.notice {
  margin: 16px 20px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--hover);
  color: var(--ink);
}

.feed-end { height: 32px; }

.auth-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 100%;
  min-height: 100%;
}

.auth-aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 0;
  padding: 40px 48px 56px;
  border-right: 1px solid var(--line);
  overflow: hidden;
}

.auth-aside:has(.auth-photo) {
  justify-content: stretch;
  padding: 0;
}

.auth-aside:has(.auth-photo) .auth-copy { display: none; }

.auth-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.auth-copy p {
  max-width: 16ch;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.auth-copy p + p {
  max-width: 28ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
}

.auth-panel {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: min(420px, 100%);
  margin: 0 auto;
  padding: 48px 28px;
}

.auth-panel .back {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.auth-panel .back:hover { color: var(--ink); }

.auth-logo {
  width: 64px;
  height: 64px;
  margin: 0 0 24px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.auth-panel h1 {
  margin: 18px 0 20px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.auth-alt {
  margin-top: 16px;
  color: var(--muted);
}

.auth-alt a {
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
}

.auth-alt a:hover { text-decoration: underline; }

@media (max-width: 760px) {
  html, body { height: auto; overflow: auto; }
  body { padding-top: calc(64px + env(safe-area-inset-top)); }
  .shell { width: 100%; height: auto; overflow: visible; grid-template-columns: 1fr; }
  .phone-bar {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 8px;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: calc(12px + env(safe-area-inset-top)) 16px 12px;
    background: var(--bg);
  }
  .phone-bar > a {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    line-height: 0;
  }
  .phone-bar-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
  }
  .phone-bar-name {
    margin: 0;
    text-align: center;
    font-size: 16px;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.15;
  }
  .phone-home {
    display: block;
    position: relative;
    padding: 28px 24px 8px;
    text-align: center;
  }
  .nav-open {
    display: grid;
    place-items: center;
    justify-self: end;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
  }
  .nav-open:hover { background: var(--hover); }
  .nav-open svg { width: 22px; height: 22px; }
  .nav-drawer {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: block;
  }
  .nav-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 20, 25, .45);
  }
  .nav-panel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    overflow: auto;
    padding: 18px 16px 32px;
    background: var(--bg);
    box-shadow: -12px 0 32px rgba(15, 20, 25, .16);
  }
  .nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
  }
  .nav-close svg { width: 20px; height: 20px; }
  .nav-close:hover { background: var(--hover); color: var(--ink); }
  .nav-logo {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
  }
  .nav-title {
    margin: 16px 0 6px;
    max-width: 12ch;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.1;
  }
  .nav-tag {
    margin: 0 0 18px;
    max-width: 18ch;
    color: var(--muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.35;
  }
  .nav-list { display: flex; flex-direction: column; }
  .nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    margin: 2px 0;
    padding: 12px 14px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
  }
  .nav-item svg {
    width: 22px;
    height: 22px;
    flex: none;
    color: #7d8b96;
  }
  .nav-item.is-current {
    background: #e7f3ff;
    color: var(--blue);
  }
  .nav-item.is-current svg { color: var(--blue); }
  .nav-rule {
    width: calc(100% - 8px);
    margin: 10px 4px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .phone-home h1 {
    font-size: 34px;
    font-weight: 900;
    letter-spacing: -0.045em;
    line-height: 1.08;
  }
  .smile-loop {
    display: inline-block;
    min-width: 1.2em;
    font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
    vertical-align: -0.06em;
    transition: opacity .18s ease, transform .18s ease;
  }
  .smile-loop.is-swap {
    opacity: 0;
    transform: translateY(4px);
  }
  .phone-tag {
    margin: 14px 0 20px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
  }
  .phone-home .btn {
    min-width: 190px;
    padding: 12px 28px;
    font-size: 16px;
  }
  .phone-note {
    margin: 18px auto 0;
    max-width: 34ch;
    color: var(--muted);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
  }
  .feed {
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    padding: 8px 16px 40px;
  }
  .feed-top {
    position: static;
    margin-left: -16px;
    margin-right: -16px;
  }
  .composer-prompt { border-bottom: 0; }
  .fab {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 25;
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    box-shadow: 0 8px 22px rgba(0, 133, 255, .35);
    cursor: pointer;
  }
  .fab svg { width: 26px; height: 26px; }
  .empty { display: none; }
  .phone-feed-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 22px 0 14px;
    padding-top: 6px;
  }
  .phone-feed-head h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: -0.03em;
  }
  .day-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: none;
    padding: 8px 12px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink);
  }
  .day-pill svg { width: 16px; height: 16px; display: block; }
  .day-pill select {
    border: 0;
    background: transparent;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    padding: 0 16px 0 0;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
    background-position: calc(100% - 8px) 55%, calc(100% - 3px) 55%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
  }
  .post {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px 12px;
    margin: 0 0 12px;
    padding: 14px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 1px 2px rgba(15, 20, 25, .04);
    align-items: start;
  }
  .post:hover { background: #fff; }
  .post-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
  }
  .post .name { font-weight: 700; }
  .post time { font-size: 13px; }
  .post-body { margin-top: 10px; }
  .post-main { display: contents; }
  .post-body, .post-photo, .post-actions { grid-column: 1 / -1; }
  .post-body { margin-top: 2px; }
  .post-photo { margin-top: 4px; border-radius: 14px; }
  .heart {
    min-height: 44px;
    margin: -8px 0;
    padding: 0 8px 0 0;
    color: var(--heart);
  }
  .heart:hover { background: transparent; }
  .heart-phrase { color: var(--ink); }
  .heart-count { color: var(--muted); }
  .phone-empty {
    margin: 8px 0 0;
    color: var(--muted);
    text-align: center;
  }
  .rail { display: none; }
  .days-col { display: none; }
  .auth-split { display: block; height: auto; }
  .auth-aside { display: none; }
  .auth-panel { justify-content: flex-start; padding: 28px 20px 56px; }
  .auth-logo { display: none; }
}

.legal-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.legal-page .back {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.legal-page .back:hover { color: var(--ink); }

.legal-page h1 {
  margin: 18px 0 16px;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.legal-page p { margin: 0 0 14px; }

.legal-page .legal-more {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  font-size: 14px;
}

.legal-page .legal-more a { color: var(--muted); }
.legal-page .legal-more a:hover { color: var(--ink); }

.not-found { text-align: center; padding-top: 12vh; }
.not-found-mark { width: 64px; height: 64px; border-radius: 50%; }
.not-found .btn { display: inline-flex; margin-top: 8px; text-decoration: none; }

/* ---------- first paint ---------- */

.bone {
  display: block;
  border-radius: 999px;
  background: linear-gradient(90deg, #efe4d6 0%, #f7f1ea 45%, #efe4d6 100%);
  background-size: 220% 100%;
  animation: bone 1.4s ease-in-out infinite;
}

.bone-btn { width: 108px; height: 26px; }
.bone-btn.short { width: 72px; }

.boot-feed .post-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 4px;
}

.bone-avatar { width: 40px; height: 40px; border-radius: 50%; }

.bone-line { height: 12px; width: 92%; }
.bone-line.name { width: 38%; height: 14px; }
.bone-line.mid { width: 68%; }
.bone-line.short { width: 46%; }

.bone-post,
.bone-post:hover { background: transparent; cursor: default; }

.boot-days {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 6px;
}

.bone-day { width: 46%; height: 12px; }
.bone-day.today { width: 62%; height: 16px; }
.bone-day.mid { width: 54%; }
.bone-day.short { width: 34%; }

.join-actions:has(.bone) { gap: 8px; }
.join-actions .bone { flex: none; }

@keyframes bone {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .bone { animation: none; }
}

@media (max-width: 760px) {
  .bone-post,
  .bone-post:hover { background: #fff; }
  .bone-avatar { width: 44px; height: 44px; }
}
