@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Fraunces;
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("./fonts/fraunces-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #f5f4ef;
  --surface: #fcfbf8;
  --ink: #20211f;
  --secondary: #5e605b;
  --quiet: #666862;
  --line: #d9dad4;
  --line-strong: #bfc1b9;
  --signal: #414b84;
  --signal-wash: #eceef8;
  --signal-line: #cdd2e6;
  --display: Fraunces, Georgia, serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 15px/1.5 var(--body); -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.layout {
  display: grid;
  grid-template-columns: 198px minmax(0, 720px) minmax(0, 1fr);
  max-width: 1240px;
  min-height: 100vh;
  margin: auto;
  border-inline: 1px solid var(--line);
}
.nav-rail {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  padding: 34px 20px 24px;
  border-right: 1px solid var(--line);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  font: 680 28px/1 var(--display);
  letter-spacing: -.06em;
}
.branch-mark { width: 30px; height: 30px; color: var(--ink); flex: none; }
.branch-mark path { stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.branch-mark circle { fill: currentColor; }
.branch-mark .branch-accent { fill: var(--signal); }

.nav-links { display: flex; flex-direction: column; gap: 7px; margin-top: 67px; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 46px;
  padding: 8px 13px;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: var(--secondary);
  font-size: 14px;
  font-weight: 650;
  text-align: left;
  width: 100%;
  transition: color .14s, border-color .14s, background .14s;
}
.nav-link span { font-size: 20px; line-height: 1; }
.nav-link:hover, .nav-link.active { color: var(--ink); }
.nav-link.active { border-left-color: var(--ink); background: #ecece6; }
.new-button {
  min-height: 46px;
  margin-top: 20px;
  padding: 10px 13px;
  border: 1px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--surface);
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  transition: transform .14s var(--ease), background .14s, box-shadow .14s;
}
.new-button span { margin-left: 7px; }
.nav-new { display: flex; align-items: center; width: 100%; min-height: 46px; margin: 4px 0; box-shadow: 3px 3px 0 var(--line-strong); }
.nav-new span:first-child { margin-left: 0; font-size: 21px; line-height: 1; }
.new-button:hover { background: #363834; box-shadow: 3px 3px 0 var(--line-strong); }
.new-button:active { transform: translate(2px,2px); box-shadow: 0 0 0 var(--line-strong); }
.rail-end { margin-top: auto; }
.rail-identity { display: flex; align-items: center; gap: 10px; padding: 16px 0; border-top: 1px solid var(--line); }
.rail-identity strong, .rail-identity small { display: block; }
.rail-identity strong { font-size: 13px; }
.rail-identity small, .rail-end > p { color: var(--quiet); font-size: 11px; }
.rail-end > p { margin: 7px 0 0; line-height: 1.5; }
.avatar { display: grid; flex: none; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line); border-radius: 50%; background: #e9e9e3; color: var(--ink); font-size: 12px; font-weight: 700; }
.avatar.me { background: #e5e7dd; }
.avatar svg { display: block; width: 76%; height: 76%; overflow: visible; }
.person-avatar { display: grid; flex: none; place-items: center; width: 44px; height: 44px; margin: -4px; padding: 3px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; touch-action: manipulation; }
.person-avatar .avatar { transition: border-color .16s, transform .14s var(--ease); }
.person-avatar:active .avatar { transform: scale(.94); }
.person-avatar:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.main-column { grid-column: 2; min-width: 0; border-right: 1px solid var(--line); background: var(--surface); }
.mobile-header, .mobile-bottom { display: none; }
.desktop-toolbar { display: flex; align-items: center; justify-content: flex-end; height: 64px; padding: 0 45px; border-bottom: 1px solid var(--line); }
.settings-gear { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 9px; border: 1px solid var(--line-strong); border-radius: 50%; background: transparent; color: var(--ink); }
.settings-gear:hover { border-color: var(--ink); background: #ecece6; }
.settings-gear svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

.section-kicker, .eyebrow, .feed-controls {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.section-kicker { color: var(--quiet); }
.quick-compose {
  display: flex;
  align-items: center;
  gap: 13px;
  width: calc(100% - 90px);
  min-height: 69px;
  margin: 29px 45px 21px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: #fffefa;
  color: var(--secondary);
  text-align: left;
  transition: border-color .18s, box-shadow .18s, transform .18s var(--ease);
}
.quick-compose > span:nth-child(2) { font-size: 15px; }
.quick-compose:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--line); transform: translate(-1px,-1px); }
.compose-plus { margin-left: auto; color: var(--ink); font-size: 23px; line-height: 1; }
.received-riff {
  display: flex;
  align-items: center;
  gap: 14px;
  width: calc(100% - 90px);
  min-height: 88px;
  margin: 0 45px 30px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--signal);
  border-radius: 2px;
  background: #f1f1ec;
  color: var(--ink);
  text-align: left;
  transition: background .18s, border-color .18s, transform .18s var(--ease);
}
.received-riff:hover { background: #eaeae4; transform: translateX(2px); }
.received-riff.seen { border-left-color: var(--line-strong); background: #f6f5f0; }
.received-riff.seen:hover { background: #efeee8; }
.receipt-mark { display: grid; flex: none; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.receipt-mark svg { width: 22px; height: 22px; color: var(--ink); }
.receipt-mark path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.receipt-mark circle { fill: currentColor; }
.receipt-content { display: grid; gap: 3px; min-width: 0; }
.receipt-content strong { font-size: 14px; line-height: 1.3; }
.receipt-content > span { overflow: hidden; color: var(--secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.receipt-action { margin-left: auto; color: var(--signal); font-size: 12px; font-weight: 700; white-space: nowrap; }
.receipt-action span { display: inline-block; transition: transform .2s var(--ease); }
.received-riff:hover .receipt-action span { transform: translateX(3px); }
.feed-controls { display: flex; justify-content: space-between; padding: 16px 45px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--quiet); }
.voice-list { display: grid; }
.voice {
  position: relative;
  min-width: 0;
  padding: 27px 45px 23px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background .2s;
}
.voice:hover { background: #fffefa; }
.voice:focus, .conversation-voice:focus { outline: 2px solid var(--signal); outline-offset: -4px; }
.voice.quip { padding-block: 24px 20px; }
.voice.long { padding-block: 30px 26px; }
.voice.is-new { animation: voice-settle .32s var(--ease); }
.voice.is-new::before { position: absolute; top: 0; bottom: 0; left: 0; width: 3px; background: var(--signal); content: ""; transform-origin: top; animation: line-draw .34s var(--ease) both; }
.voice-head { display: flex; align-items: center; gap: 11px; min-width: 0; }
.voice-person { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; min-width: 0; }
.voice-person strong { font-size: 13px; font-weight: 700; }
.voice-person span, .voice-head time { color: var(--quiet); font: 11px/1.3 var(--mono); }
.voice-head time { margin-left: auto; white-space: nowrap; }
.voice-head-options { display: none; }
.voice-main { min-width: 0; margin: 16px 0 0 48px; }
.voice-text { max-width: 63ch; margin: 0; font-size: 17px; line-height: 1.56; letter-spacing: -.012em; overflow-wrap: anywhere; white-space: pre-wrap; }
.voice.short .voice-text { font-size: 19px; font-weight: 560; line-height: 1.47; }
.voice-text + .og-card { margin-top: 12px; }
.feed-context {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  margin: 0 0 8px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--secondary);
  font: 11px/1.3 var(--mono);
  text-align: left;
}
.feed-context:hover { color: var(--signal); }
.path-glyph { position: relative; display: inline-block; flex: none; width: 19px; height: 13px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; border-radius: 0 0 0 6px; color: var(--signal); }
.path-glyph::after { position: absolute; right: -2px; bottom: -2px; width: 3px; height: 3px; border-radius: 50%; background: currentColor; content: ""; }
.voice-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; margin-top: 8px; }
.voice-actions button, .conversation-body button, .conversation-footer button, .explore-current button {
  min-height: 44px;
  padding: 6px 9px;
  border: 0;
  border-radius: 2px;
  background: transparent;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 700;
  touch-action: manipulation;
  transition: color .14s, background .14s, transform .14s var(--ease);
}
.voice-actions button:first-child { margin-left: -9px; }
.voice-actions .riff-button { color: var(--signal); }
.voice-actions button:active, .conversation-body button:active, .conversation-footer button:active, .explore-current button:active { background: var(--signal-wash); color: var(--signal); transform: scale(.96); }
.voice-head .person-avatar { min-height: 44px; margin: -4px; padding: 3px; border-radius: 50%; }
.voice-head .person-avatar:active { background: transparent; transform: none; }
.encore-button.active { color: var(--signal); background: var(--signal-wash); }
.encore-button[aria-busy="true"] { cursor: wait; opacity: .6; }
.encore-count { color: var(--quiet); font: 11px var(--mono); }
@media (hover: hover) and (pointer: fine) {
  .person-avatar:hover .avatar { border-color: var(--signal); transform: scale(1.04); }
  .og-card:hover { border-color: var(--signal); background: #fff; box-shadow: 0 3px 12px #20211f0c; }
  .voice-actions button:hover, .conversation-body button:hover, .conversation-footer button:hover, .explore-current button:hover { background: var(--signal-wash); color: var(--signal); }
}
.feed-footer { padding: 25px 45px 65px; color: var(--quiet); font-size: 12px; }

.settings-view { min-height: 100vh; padding: 26px 45px 90px; }
.settings-back { min-height: 44px; margin: 0 0 24px -9px; padding: 7px 9px; border: 0; border-radius: 2px; background: transparent; color: var(--signal); font-size: 12px; font-weight: 700; }
.settings-back:hover { background: var(--signal-wash); }
.settings-heading { padding-bottom: 27px; border-bottom: 1px solid var(--line-strong); }
.settings-heading h1, .settings-info h1 { margin: 9px 0 7px; font: 560 38px/1.15 var(--display); letter-spacing: -.045em; }
.settings-heading p, .settings-info p { margin: 0; color: var(--secondary); font-size: 14px; line-height: 1.6; }
.settings-group { padding-top: 28px; }
.settings-group h2 { margin: 0 0 12px; font: 550 23px/1.2 var(--display); letter-spacing: -.025em; }
.settings-group-note { margin: 0 0 12px; color: var(--secondary); font-size: 13px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 74px; padding: 13px 4px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--ink); text-align: left; }
.settings-row:last-child { border-bottom: 1px solid var(--line); }
.settings-row:hover { background: #f3f2ed; }
.settings-row strong, .settings-row small { display: block; }
.settings-row strong { font-size: 15px; font-weight: 650; }
.settings-row small { margin-top: 3px; color: var(--secondary); font-size: 12px; line-height: 1.4; }
.settings-row-end { flex: none; color: var(--quiet); font: 11px var(--mono); white-space: nowrap; }
.settings-row-end span, .settings-reset > span:last-child { margin-left: 5px; color: var(--signal); font: 17px var(--body); }
.settings-info { padding-top: 7px; }
.settings-info p { max-width: 52ch; margin-top: 14px; }
.settings-info form, .auth-dialog form { display: grid; gap: 10px; max-width: 420px; margin-top: 24px; }
.settings-info label, .auth-dialog label { font-size: 13px; font-weight: 650; }
.settings-info input, .auth-dialog input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fffefa; color: var(--ink); font: inherit; }
.settings-info input:focus, .auth-dialog input:focus { outline: 2px solid var(--signal); outline-offset: 2px; }
.settings-info form button, .settings-info > button, .auth-dialog form button { width: fit-content; min-height: 44px; margin-top: 8px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--surface); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.settings-info > button { margin-top: 24px; }
.settings-info #profileSignOut { background: transparent; color: var(--ink); }
.auth-dialog { max-width: 480px; }
.auth-dialog p { margin: 0 0 8px; color: var(--secondary); font-size: 14px; line-height: 1.55; }
.auth-dialog #authMessage { min-height: 24px; margin-top: 16px; }

.modal-backdrop, .drawer-backdrop { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 18px; background: #20211f80; }
#safetyBackdrop { z-index: 120; }
.composer {
  width: min(590px, 100%);
  max-height: calc(100dvh - 36px);
  overflow: auto;
  padding: 31px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  box-shadow: 9px 10px 0 #20211f24, 0 24px 70px #20211f28;
  animation: panel-enter .24s var(--ease);
}
.composer-top, .drawer-top { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.composer-top h2 { margin: 6px 0 20px; font: 560 33px/1.16 var(--display); font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: -.045em; }
.eyebrow { color: var(--quiet); }
.close, .drawer-top button { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: var(--ink); font-size: 25px; line-height: 1; transition: border-color .14s, background .14s, transform .14s var(--ease); }
.close:hover, .drawer-top button:hover { border-color: var(--ink); background: #ecece6; transform: rotate(8deg); }
.composer-source { position: relative; display: flex; align-items: baseline; gap: 9px; min-width: 0; padding: 10px 0 10px 28px; border-bottom: 1px solid var(--line); }
.composer-source::before { position: absolute; left: 0; top: 13px; width: 16px; height: 12px; border-left: 1px solid var(--signal); border-bottom: 1px solid var(--signal); border-radius: 0 0 0 5px; content: ""; }
.composer-source span { flex: none; color: var(--signal); font: 11px var(--mono); }
.composer-source p { overflow: hidden; min-width: 0; margin: 0; color: var(--secondary); font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.composer-source button { flex: none; width: 44px; height: 44px; margin: -10px 0 -10px auto; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--secondary); font-size: 21px; }
.composer-source button:hover { background: var(--signal-wash); color: var(--signal); }
.composer textarea { width: 100%; min-height: 190px; margin-top: 18px; padding: 16px; border: 1px solid var(--line-strong); border-radius: 2px; background: #fffefa; color: var(--ink); font-size: 17px; line-height: 1.55; resize: vertical; transition: border-color .18s, box-shadow .18s; }
.composer textarea:focus { border-color: var(--signal); box-shadow: 3px 3px 0 var(--signal-line); }
.composer textarea::placeholder { color: #858781; }
#composerLinkPreview { margin-top: 12px; }
.og-loading { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 9px 12px; border: 1px solid var(--line); background: #f4f3ee; }
.og-loading-mark, .og-card-monogram { display: grid; flex: none; place-items: center; width: 37px; height: 37px; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--signal); font-size: 18px; }
.og-loading strong, .og-loading small { display: block; }
.og-loading strong { font-size: 12px; }
.og-loading small { margin-top: 3px; color: var(--quiet); font: 10px var(--mono); }
.og-card { display: grid; grid-template-columns: 112px minmax(0,1fr) 24px; align-items: stretch; min-height: 94px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 3px; background: #fffefa; color: var(--ink); text-decoration: none; touch-action: manipulation; transition: border-color .16s, background .16s, transform .14s var(--ease), box-shadow .16s; }
.og-card:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.og-card:active { border-color: var(--signal); background: #fff; transform: translateY(1px) scale(.995); }
.og-card-media { display: grid; place-items: center; min-height: 94px; overflow: hidden; background: #ecece6; }
.og-image { display: block; width: 100%; height: 100%; min-height: 94px; max-height: 132px; object-fit: cover; }
.og-card-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; min-width: 0; padding: 10px 12px; }
.og-site { overflow: hidden; max-width: 100%; color: var(--quiet); font: 10px/1.4 var(--mono); text-overflow: ellipsis; white-space: nowrap; }
.og-card-copy strong { display: -webkit-box; overflow: hidden; max-width: 100%; margin-top: 4px; font-size: 13px; line-height: 1.35; overflow-wrap: anywhere; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.og-description { display: -webkit-box; overflow: hidden; margin-top: 4px; color: var(--secondary); font-size: 11px; line-height: 1.35; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.og-card-arrow { align-self: start; margin: 11px 10px 0 0; color: var(--signal); font-size: 15px; line-height: 1; }
.og-card.no-image { grid-template-columns: 52px minmax(0,1fr) 24px; }
.og-card.no-image .og-card-monogram { width: 29px; height: 29px; font-size: 15px; }
.og-card.no-image .og-card-arrow { display: none; }
.og-card.is-fallback { grid-template-columns: 46px minmax(0,1fr); min-height: 56px; }
.og-card.is-fallback .og-card-media { min-height: 56px; }
.og-card.is-fallback .og-card-copy { padding-block: 8px; }
.og-card.is-fallback .og-site { color: var(--ink); font: 600 13px/1.3 var(--body); }
.og-card.is-fallback .og-card-arrow { display: none; }
.composer-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; }
.composer-length { display: flex; align-items: center; gap: 12px; min-width: 0; color: var(--quiet); font: 11px var(--mono); }
.music-meter { position: relative; display: block; width: 76px; height: 21px; background: repeating-linear-gradient(to bottom, transparent 0 3px, var(--line-strong) 3px 4px, transparent 4px 6px); }
.music-meter-note { position: absolute; top: -7px; left: clamp(7px, var(--progress, 0%), calc(100% - 7px)); color: var(--signal); font: 22px/1 var(--body); transform: translateX(-50%); transition: left .16s var(--ease); }
.composer-footer button { min-height: 46px; padding: 9px 16px; border: 1px solid var(--ink); border-radius: 2px; background: var(--ink); color: var(--surface); font-size: 13px; font-weight: 700; transition: transform .14s var(--ease), box-shadow .14s, background .14s; }
.composer-footer button:not(:disabled):hover { background: #363834; box-shadow: 3px 3px 0 var(--line-strong); }
.composer-footer button:not(:disabled):active { transform: translate(2px,2px); box-shadow: none; }
.composer-footer button:disabled { opacity: .45; cursor: not-allowed; }

/* Keep writing and actions in distinct scroll regions, especially above mobile keyboards. */
#composerBackdrop { --composer-height: 100dvh; }
#composerBackdrop .composer { display: flex; flex-direction: column; overflow: hidden; animation: composer-enter .3s var(--ease); }
#composerBackdrop .composer-top { flex: none; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
#composerBackdrop .composer-top h2 { margin-bottom: 0; }
#composerForm { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.composer-body { display: flex; flex: 1; flex-direction: column; min-height: 0; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding-bottom: 12px; }
.composer-body textarea { flex: 1 0 180px; min-height: 180px; margin-top: 20px; resize: vertical; }
#composerSources, #composerLinkPreview { flex: none; }
.composer-body:has(.composer-source) textarea { margin-top: 20px; }
.composer-source { display: block; margin-top: 16px; padding: 12px 14px; border: 0; border-left: 2px solid var(--signal); background: var(--signal-wash); }
.composer-source::before { display: none; }
.composer-source span { display: block; margin-bottom: 4px; }
.composer-source p { display: -webkit-box; overflow: hidden; white-space: normal; line-height: 1.4; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.composer-bottom { flex: none; padding-top: 12px; border-top: 1px solid var(--line); background: var(--surface); }
.composer-messages { min-height: 20px; font-size: 12px; line-height: 1.45; }
.composer-messages p { margin: 0; }
#composerStatus { color: var(--quiet); }
#composerError { color: #a12f40; font-weight: 650; }
.composer-messages:has(#composerError:not([hidden])) #composerStatus { display: none; }
.composer-footer { margin-top: 8px; }
#composerBackdrop .composer-footer button { touch-action: manipulation; }
#composerBackdrop .composer-footer button[aria-busy="true"] { background: var(--signal); border-color: var(--signal); opacity: 1; cursor: progress; }
#composerBackdrop .composer-footer button[aria-busy="true"] span { display: inline-block; animation: sharing-note .65s var(--ease) infinite alternate; }
.composer-length.is-near { color: var(--signal); }
.composer-length.is-over { color: #a12f40; }
.composer-length.is-over .music-meter-note { color: #a12f40; }
#composerLinkPreview:not(:empty) { animation: preview-enter .22s var(--ease); }
@keyframes composer-enter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes preview-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes sharing-note { from { transform: translateY(2px) rotate(-8deg); } to { transform: translateY(-2px) rotate(8deg); } }

.drawer-backdrop { place-items: stretch end; padding: 0; }
.drawer-backdrop:not([hidden]):not(.is-closing) { animation: drawer-backdrop-enter .22s ease-out; }
.idea-drawer { width: min(700px,100%); height: 100%; overflow: auto; padding: 34px 40px; border-left: 1px solid var(--line-strong); background: var(--surface); box-shadow: -14px 0 50px #20211f25; animation: drawer-enter .22s var(--ease); }
.drawer-backdrop.is-closing { pointer-events: none; animation: drawer-backdrop-exit .16s ease-in forwards; }
.drawer-backdrop.is-closing .idea-drawer { animation: drawer-exit .16s ease-in forwards; }
.drawer-top { align-items: center; margin-bottom: 12px; }
#drawerBack { display: block; min-height: 44px; padding: 8px 0; border: 0; background: none; color: var(--signal); font: 11px var(--mono); text-align: left; }
#drawerBack:hover { text-decoration: underline; }
.conversation-heading { padding: 12px 0 24px; border-bottom: 1px solid var(--line-strong); }
.conversation-heading h2 { margin: 0 0 6px; font: 560 37px/1.15 var(--display); font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: -.045em; }
.conversation-heading p { margin: 0; color: var(--quiet); font: 11px var(--mono); }
.conversation-voice { position: relative; padding: 25px 0 22px; border-bottom: 1px solid var(--line); }
.conversation-voice.is-new { animation: voice-settle .32s var(--ease); }
.conversation-voice.selected::before { position: absolute; top: 22px; bottom: 22px; left: -18px; width: 2px; background: var(--signal); content: ""; transform-origin: top; }
.conversation-voice.is-new::before { animation: line-draw .34s var(--ease) both; }
.conversation-body { margin: 16px 0 0 48px; }
.conversation-context { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; color: var(--secondary); font: 11px var(--mono); }
.conversation-context::before { display: inline-block; width: 16px; height: 11px; border-left: 1px solid var(--signal); border-bottom: 1px solid var(--signal); border-radius: 0 0 0 5px; content: ""; }
.conversation-body p { margin: 0; font-size: 17px; line-height: 1.56; overflow-wrap: anywhere; white-space: pre-wrap; }
.conversation-body p + .og-card { margin-top: 12px; }
.drawer-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 8px 0 0 -9px; }
.drawer-actions button { flex: none; color: var(--signal); }
.conversation-footer { padding: 22px 0; }
.conversation-footer button { margin-left: -9px; color: var(--signal); font-size: 13px; }
.explore-current { padding: 10px 0 29px; border-bottom: 1px solid var(--line-strong); }
.explore-current h2 { max-width: 55ch; margin: 17px 0 14px; font: 480 27px/1.36 var(--display); font-variation-settings: "SOFT" 0, "WONK" 0; letter-spacing: -.025em; overflow-wrap: anywhere; white-space: pre-wrap; }
.explore-current .voice-head + .og-card, .explore-current h2.sr-only + .og-card { margin-top: 16px; }
.explore-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.explore-section { min-width: 0; padding: 26px 22px 0 0; }
.explore-section + .explore-section { padding: 26px 0 0 22px; border-left: 1px solid var(--line); }
.explore-section h3 { display: flex; align-items: center; gap: 10px; margin: 0 0 13px; color: var(--quiet); font: 11px var(--mono); letter-spacing: .05em; text-transform: uppercase; }
.explore-section h3::before { width: 16px; height: 1px; background: var(--signal); content: ""; }
.drawer-voice { display: block; width: 100%; min-height: 62px; padding: 13px 0; border: 0; border-top: 1px solid var(--line); background: transparent; text-align: left; transition: padding-left .18s var(--ease), background .18s; }
.drawer-voice:hover { padding-left: 6px; background: #f5f4ee; }
.drawer-voice strong { display: block; margin-bottom: 5px; color: var(--signal); font-size: 12px; }
.drawer-voice span { color: var(--ink); font-size: 13px; line-height: 1.5; }
.drawer-empty { margin: 0; padding: 13px 0; border-top: 1px solid var(--line); color: var(--quiet); font-size: 13px; line-height: 1.5; }
.drawer-arrive { animation: content-enter .22s var(--ease); }
.toast { position: fixed; z-index: 150; bottom: 24px; left: 50%; max-width: calc(100vw - 32px); padding: 11px 16px; border: 1px solid #20211f; border-radius: 2px; background: var(--ink); color: var(--surface); font-size: 13px; opacity: 0; pointer-events: none; transform: translate(-50%,10px); transition: opacity .18s, transform .18s var(--ease); }
.toast.show { opacity: 1; transform: translate(-50%,0); }
.feed-empty { padding: 48px 45px 68px; border-bottom: 1px solid var(--line); }
.feed-loading { margin: 0; padding: 42px 45px; color: var(--quiet); font-size: 13px; }
.feed-empty h2 { max-width: 16ch; margin: 0 0 12px; font: 500 32px/1.18 var(--display); letter-spacing: -.035em; }
.feed-empty p { max-width: 38ch; margin: 0 0 25px; color: var(--secondary); line-height: 1.55; }
.feed-empty .new-button { padding: 11px 17px; }
.feed-footer button { padding: 10px 16px; border: 1px solid var(--line-strong); background: transparent; color: var(--signal); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.feed-footer button:hover { border-color: var(--signal); }
.pull-refresh { display: none; }
.settings-row { text-decoration: none; cursor: pointer; }
.auth-legal { margin-top: 25px !important; font-size: 12px !important; }
.auth-legal a { color: var(--signal); }
#safetyContent p { margin: 0 0 18px; color: var(--secondary); line-height: 1.5; }
#safetyContent form { display: grid; gap: 10px; }
#safetyContent label { font-size: 13px; font-weight: 650; }
#safetyContent select, #safetyContent textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line-strong); background: #fffefa; color: var(--ink); font: inherit; }
#safetyContent button, .block-row button { width: fit-content; min-height: 42px; margin-top: 12px; padding: 9px 14px; border: 1px solid var(--ink); background: var(--ink); color: var(--surface); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
#safetyContent .safety-danger { border-color: #a33434; background: #a33434; }
#blockPerson { margin-top: 22px !important; border-color: var(--line-strong) !important; background: transparent !important; color: var(--ink) !important; }
.block-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

@keyframes panel-enter { from { transform: translateY(9px); } to { transform: none; } }
@keyframes drawer-enter { from { transform: translateX(15px); } to { transform: none; } }
@keyframes drawer-backdrop-enter { from { opacity: 0; } to { opacity: 1; } }
@keyframes drawer-exit { to { transform: translateX(18px); opacity: 0; } }
@keyframes drawer-backdrop-exit { to { opacity: 0; } }
@keyframes content-enter { from { opacity: .75; transform: translateY(5px); } to { opacity: 1; transform: none; } }
@keyframes voice-settle { from { opacity: .55; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes line-draw { from { transform: scaleY(0); } to { transform: scaleY(1); } }

@media (max-width: 1060px) {
  .layout { grid-template-columns: 182px minmax(0,1fr); max-width: 940px; }
  .main-column { grid-column: 2; }
}
@media (max-width: 700px) {
  html, body { height: 100%; overflow: hidden; }
  .layout { display: flex; flex-direction: column; height: 100vh; height: 100dvh; min-height: 0; border: 0; }
  .nav-rail { display: none; }
  .main-column { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior-y: contain; -webkit-overflow-scrolling: touch; border: 0; }
  #chorusView { position: relative; transform: translateY(var(--pull-distance, 0px)); }
  #chorusView.pull-settling { transition: transform .25s var(--ease); }
  .pull-refresh { position: absolute; top: -54px; left: 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; height: 48px; color: var(--secondary); font-size: 12px; font-weight: 700; pointer-events: none; visibility: hidden; }
  .pull-refresh.is-pulling { visibility: visible; }
  .pull-refresh-icon { display: inline-block; color: var(--signal); font-size: 19px; line-height: 1; transition: transform .15s; }
  .pull-refresh.is-ready .pull-refresh-icon { transform: rotate(180deg); }
  .pull-refresh.is-refreshing .pull-refresh-icon { animation: pull-refresh-spin .75s linear infinite; }
  @keyframes pull-refresh-spin { to { transform: rotate(360deg); } }
  .desktop-toolbar { display: none; }
  .mobile-header { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 65px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
  .mobile-header .wordmark { font-size: 26px; }
  .mobile-header .branch-mark { width: 25px; height: 25px; }
  .mobile-header button { width: 44px; height: 44px; border: 1px solid var(--line-strong); border-radius: 50%; background: none; color: var(--ink); font-size: 22px; }
  .mobile-header button:hover { background: #ecece6; }
  .mobile-header .settings-gear { padding: 9px; }
  .mobile-header .settings-gear svg { width: 22px; height: 22px; }
  .mobile-bottom { position: relative; z-index: 60; flex: none; display: flex; padding-bottom: env(safe-area-inset-bottom); border-top: 1px solid var(--line-strong); background: var(--surface); }
  .mobile-bottom a, .mobile-bottom button { display: grid; justify-items: center; gap: 2px; width: 50%; min-height: 58px; padding: 7px; border: 0; background: none; color: var(--secondary); font-size: 11px; font-weight: 700; }
  .mobile-bottom a[aria-current], .mobile-bottom button:hover { color: var(--signal); }
  .mobile-bottom span { font-size: 21px; line-height: 1; }
  .quick-compose, .received-riff { width: calc(100% - 44px); margin-inline: 22px; }
  .quick-compose { margin-top: 22px; }
  .received-riff { margin-bottom: 24px; }
  .feed-controls { padding-inline: 22px; }
  .voice { padding-inline: 22px; }
  .feed-footer { padding: 24px 22px 90px; }
  .feed-empty { padding: 38px 22px 56px; }
  .feed-loading { padding-inline: 22px; }
  .voice-main, .conversation-body { margin-left: 0; }
  .settings-view { min-height: calc(100dvh - 65px); padding: 21px 22px 110px; }
  .settings-heading h1, .settings-info h1 { font-size: 34px; }
  .idea-drawer { width: 100%; padding: 25px 22px; border: 0; }
  .toast { bottom: 77px; }
}
@media (max-width: 560px) {
  .modal-backdrop { padding: 0; }
  .composer { width: 100%; height: 100dvh; max-height: none; padding: 25px 22px; border: 0; border-radius: 0; box-shadow: none; }
  #composerBackdrop { height: var(--composer-height); }
  #composerBackdrop .composer { height: 100%; max-height: 100%; padding: max(20px, env(safe-area-inset-top)) 22px 0; border: 0; animation: composer-mobile-enter .3s var(--ease); }
  #composerBackdrop .composer-bottom { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
  #composerBackdrop .composer-body textarea { min-height: 180px; resize: none; font-size: 16px; }
  @keyframes composer-mobile-enter { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
  .receipt-action { display: none; }
  .receipt-content { flex: 1; }
  .explore-grid { display: block; }
  .explore-section { padding: 24px 0 0; }
  .explore-section + .explore-section { padding: 24px 0 0; border-left: 0; }
}
@media (max-width: 390px) {
  .conversation-voice.selected::before { left: -12px; }
  #composerBackdrop .composer-footer { display: grid; grid-template-columns: 1fr; gap: 10px; }
  #composerBackdrop .composer-footer button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Your Voices and their continuing conversations */
.you-identity { display: flex; align-items: center; gap: 15px; margin: 24px 45px 0; padding: 0 0 22px; border-bottom: 1px solid var(--line); }
.you-identity > .avatar { width: 58px; height: 58px; border-color: var(--line-strong); }
.you-identity-copy { min-width: 0; }
.you-identity-copy strong, .you-identity-copy span { display: block; }
.you-identity-copy strong { font-size: 16px; }
.you-identity-copy span { margin-top: 4px; color: var(--quiet); font: 11px var(--mono); }
.you-identity-stats { display: flex; align-items: stretch; margin-left: auto; }
.you-identity-stats > span { display: grid; align-content: center; gap: 3px; min-width: 62px; padding-left: 15px; border-left: 1px solid var(--line); }
.you-identity-stats > span + span { margin-left: 13px; }
.you-identity-stats strong { font: 600 16px/1 var(--display); }
.you-identity-stats small { color: var(--quiet); font: 9px/1.2 var(--mono); }
.you-section { padding: 27px 0 0; }
.you-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 0 45px 14px; }
.you-section-heading h2 { margin: 0; font: 540 23px/1.2 var(--display); letter-spacing: -.025em; }
.you-section-heading > span { color: var(--quiet); font: 11px var(--mono); }
.you-updates { padding: 0 45px; }
.you-update { display: flex; align-items: center; gap: 13px; width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line-strong); border-left: 3px solid var(--signal); border-radius: 2px; background: #f1f1ec; color: var(--ink); text-align: left; transition: background .18s, transform .18s var(--ease); }
.you-update + .you-update { margin-top: 8px; }
.you-update:hover { background: #eaeae4; transform: translateX(2px); }
.you-update-mark { display: grid; flex: none; place-items: center; width: 36px; height: 36px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); }
.you-update-mark svg { width: 21px; height: 21px; color: var(--ink); }
.you-update-mark path { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.you-update-mark circle { fill: currentColor; }
.you-update-copy { display: grid; gap: 3px; min-width: 0; }
.you-update-copy strong { font-size: 13px; line-height: 1.35; }
.you-update-copy > span { overflow: hidden; color: var(--secondary); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.you-update-action { margin-left: auto; color: var(--signal); font-size: 11px; font-weight: 700; white-space: nowrap; }
.you-empty { margin: 0 45px; padding: 18px 0; border-top: 1px solid var(--line); color: var(--secondary); font-size: 13px; }
.you-empty-state { margin: 0 45px; padding: 18px 0 30px; border-top: 1px solid var(--line); }
.you-empty-state p { margin: 0 0 12px; color: var(--secondary); font-size: 14px; }
.you-identity + .you-section + .you-section { padding-top: 34px; }
.you-section .voice-list { border-top: 1px solid var(--line); }
.you-section .voice { padding-inline: 45px; }
.person-back { margin: 24px 45px 0; padding: 8px 0; border: 0; background: transparent; color: var(--secondary); font: 12px var(--mono); cursor: pointer; }
.person-back:hover { color: var(--signal); }
.person-identity { display: flex; align-items: center; gap: 18px; margin: 16px 45px 0; padding: 0 0 27px; border-bottom: 1px solid var(--line); }
.person-identity > .avatar { width: 66px; height: 66px; }
.person-identity h1 { margin: 5px 0 0; font: 560 30px/1.1 var(--display); }
.person-identity p { margin: 8px 0 0; color: var(--quiet); font: 11px var(--mono); }
#personView .voice { padding-inline: 45px; }
.person-more { display: block; margin: 22px auto 40px; padding: 9px 15px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); cursor: pointer; }

@media (max-width: 700px) {
  .voice-head-options { display: grid; place-items: center; flex: none; width: 44px; height: 44px; margin: -5px -9px -5px 0; padding: 0; border: 0; background: transparent; color: var(--secondary); font-size: 21px; line-height: 1; }
  .voice-head-options:hover { color: var(--signal); }
  .voice-actions { gap: 2px 4px; }
  .voice-actions button { padding-inline: 7px; }
  .voice-actions button:first-child { margin-left: -7px; }
  .voice-actions button[data-action="safety"] { display: none; }
  .mobile-bottom a, .mobile-bottom button { width: 33.333%; }
  .mobile-bottom [aria-current], .mobile-bottom button:hover { color: var(--signal); }
  .mobile-bottom #newVoiceBottom { min-height: 46px; border: 1px solid var(--ink); border-radius: 4px; background: var(--ink); color: var(--surface); font-size: 12px; box-shadow: 2px 2px 0 var(--line-strong); transition: transform .14s var(--ease), background .14s, box-shadow .14s; }
  .mobile-bottom #newVoiceBottom:hover { background: #363834; color: var(--surface); box-shadow: 2px 2px 0 var(--line-strong); }
  .mobile-bottom #newVoiceBottom:active { transform: translate(2px,2px); box-shadow: none; }
  .mobile-bottom #newVoiceBottom span { color: #c9ccef; font-size: 22px; }
  .you-identity { margin-inline: 22px; }
  .you-section-heading { padding-inline: 22px; }
  .you-updates { padding-inline: 22px; }
  .you-empty, .you-empty-state { margin-inline: 22px; }
  .you-section .voice { padding-inline: 22px; }
  .person-back { margin-left: 22px; }
  .person-identity { margin-inline: 22px; }
  #personView .voice { padding-inline: 22px; }
  .og-card { grid-template-columns: 82px minmax(0,1fr) 24px; }
  .og-card.no-image { grid-template-columns: 48px minmax(0,1fr) 24px; }
  .og-card.is-fallback { grid-template-columns: 46px minmax(0,1fr); }
  .og-card-media, .og-image { min-height: 88px; }
  .og-card.is-fallback .og-card-media { min-height: 56px; }
}
@media (max-width: 390px) {
  .you-identity { gap: 11px; }
  .you-identity > .avatar { width: 50px; height: 50px; }
  .you-identity-stats > span { min-width: 48px; padding-left: 9px; }
  .you-identity-stats > span + span { margin-left: 8px; }
}
@media (max-width: 360px) {
  .voice-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 8px; justify-items: start; }
  .voice-actions button, .voice-actions button:first-child { margin-left: -7px; }
}
.notice-page { max-width: 720px; min-height: 100vh; margin: 0 auto; padding: 36px 28px 80px; background: var(--surface); }
.notice-back { display: inline-block; margin-bottom: 70px; color: var(--signal); font-size: 13px; font-weight: 700; text-decoration: none; }
.notice-page h1 { margin: 12px 0 20px; font: 520 44px/1.12 var(--display); letter-spacing: -.04em; }
.notice-page h2 { margin: 34px 0 8px; font: 550 23px/1.25 var(--display); }
.notice-page p { max-width: 62ch; color: var(--secondary); line-height: 1.65; }
