/* Hirce — Speak the truth.
   The brand mark is a black-to-green letterform with a lighter extruded edge, and an oval
   "dot" with a lit crescent on its left. Both ideas carry through: waveforms fill with the
   mark's gradient as they play, and the play/speak buttons are that dot. */

:root {
  --bg: #ffffff;
  --bg-raised: #ffffff;
  --ink: #000000;
  --ink-2: #47554f;
  --ink-3: #66756f;
  --line: #e2e9e6;
  --line-strong: #cbd6d1;
  --soft: #f2f6f4;
  --soft-2: #e8efec;
  --green: #0b4a37;
  --green-ink: #0b4a37;
  --edge: #2a9d78;
  --mint: #d3f7ea;
  --mint-ink: #0a4433;
  --wave-off: #cfdbd6;
  --wave-top: #000000;
  --wave-bot: #0d5c44;
  --wave-edge: #3fb08b;
  --danger: #b4322a;
  --danger-soft: #fbe9e7;
  --like: #c4374f;
  --focus: #1f8a68;
  --overlay: rgba(4, 18, 13, 0.42);
  --shadow-pop: 0 12px 40px rgba(2, 20, 14, 0.16), 0 2px 6px rgba(2, 20, 14, 0.08);
  --btn-bg: #000000;
  --btn-ink: #ffffff;
  --rail-w: 252px;
  --main-w: 620px;
  --aside-w: 336px;
  --pbar-h: 0px;
  --tabbar-h: 0px;
  --font: 'Schibsted Grotesk', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  color-scheme: light;
}

:root[data-theme='dark'] {
  --bg: #000000;
  --bg-raised: #0a1310;
  --ink: #ffffff;
  --ink-2: #b4c4bd;
  --ink-3: #8a9b94;
  --line: #17231f;
  --line-strong: #263832;
  --soft: #0b1512;
  --soft-2: #12201b;
  --green: #b9f5df;
  --green-ink: #9ff0d2;
  --edge: #6fdcb7;
  --mint: #0f2b22;
  --mint-ink: #a4f2d6;
  --wave-off: #2c423b;
  --wave-top: #ffffff;
  --wave-bot: #8ff0cd;
  --wave-edge: #5fd3ad;
  --danger: #ff8a7e;
  --danger-soft: #2a110f;
  --like: #ff7a90;
  --focus: #8ff0cd;
  --overlay: rgba(0, 0, 0, 0.66);
  --shadow-pop: 0 14px 44px rgba(0, 0, 0, 0.7), 0 0 0 1px #1c2a25;
  --btn-bg: #ffffff;
  --btn-ink: #000000;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  font-feature-settings: 'ss01' 0;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.35s ease, color 0.35s ease;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: 0;
  padding: 0;
}

img {
  display: block;
  max-width: 100%;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

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

.num {
  font-variant-numeric: tabular-nums;
}

svg.i {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

svg.i.sm {
  width: 18px;
  height: 18px;
}

svg.i.xs {
  width: 15px;
  height: 15px;
}

svg.i.filled {
  fill: currentColor;
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}

.btn:disabled {
  opacity: 0.5;
  cursor: default;
}

.btn-primary {
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: inset 3px 0 0 var(--edge);
}

.btn-primary:hover:not(:disabled) {
  background: color-mix(in srgb, var(--btn-bg) 86%, var(--edge));
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
}

.btn-outline:hover:not(:disabled) {
  background: var(--soft);
}

.btn-ghost:hover:not(:disabled) {
  background: var(--soft);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

:root[data-theme='dark'] .btn-danger {
  color: #000;
}

.btn-danger-outline {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  color: var(--danger);
}

.btn-danger-outline:hover {
  background: var(--danger-soft);
}

.btn-sm {
  min-height: 32px;
  padding: 0 14px;
  font-size: 14px;
}

.btn-lg {
  min-height: 50px;
  padding: 0 26px;
  font-size: 17px;
}

.btn-block {
  width: 100%;
}

.btn.following:hover {
  border-color: color-mix(in srgb, var(--danger) 45%, transparent);
  color: var(--danger);
  background: var(--danger-soft);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--ink-2);
  transition: background-color 0.15s ease, color 0.15s ease;
}

.icon-btn:hover {
  background: var(--soft);
  color: var(--ink);
}

.link {
  color: var(--green-ink);
  font-weight: 600;
}

.link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.spinner {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Shown only while the app starts. It fades in after a beat, so fast loads never see it. */
.boot {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  animation: boot-in 0.3s ease 0.3s both;
}

.boot img {
  width: 56px;
  height: 56px;
  animation: breathing 2.4s ease-in-out infinite;
}

@keyframes boot-in {
  from {
    opacity: 0;
  }
}

/* Plain-HTML copy of the page for search engines and browsers without JavaScript. */
.js .prerender {
  display: none;
}

.prerender {
  max-width: 620px;
  margin: 40px auto;
  padding: 0 20px;
  color: var(--ink-2);
}

/* ------------------------------------------------------------------ app layout */

.app {
  display: grid;
  grid-template-columns: var(--rail-w) minmax(0, var(--main-w)) var(--aside-w);
  justify-content: center;
  min-height: 100vh;
  padding-bottom: calc(var(--pbar-h) + var(--tabbar-h));
}

.app[hidden] {
  display: none;
}

.rail {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  padding: 18px 20px calc(16px + var(--pbar-h));
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rail-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 10px 18px;
}

.rail-logo img {
  height: 30px;
  width: auto;
}

.rail-logo .mark {
  display: none;
}

:root[data-theme='dark'] .for-light,
:root:not([data-theme='dark']) .for-dark {
  display: none !important;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 11px 14px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  width: fit-content;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.nav-item:hover {
  background: var(--soft);
  color: var(--ink);
}

.nav-item[aria-current='page'] {
  color: var(--ink);
  font-weight: 750;
}

.nav-item[aria-current='page'] svg.i {
  stroke-width: 2.4;
}

.nav-dot {
  position: absolute;
  top: 9px;
  left: 30px;
  min-width: 17px;
  height: 17px;
  padding: 0 5px;
  border-radius: 9px;
  background: var(--edge);
  color: #00140d;
  font-size: 11px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--bg);
}

.rail .btn-speak {
  margin-top: 14px;
  width: 100%;
  min-height: 52px;
  font-size: 17px;
}

.rail-foot {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.me-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 999px;
  min-width: 0;
  text-align: left;
  width: 100%;
}

.me-chip:hover {
  background: var(--soft);
}

.me-chip .who {
  min-width: 0;
  flex: 1;
  line-height: 1.25;
}

.me-chip .who b,
.me-chip .who span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.me-chip .who span {
  color: var(--ink-3);
  font-size: 14px;
}

.theme-toggle {
  align-self: flex-start;
}

main.main {
  min-width: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
}

.aside {
  padding: 14px 0 24px 28px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  scrollbar-width: none;
  padding-bottom: calc(24px + var(--pbar-h));
}

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

.aside-block {
  margin-top: 18px;
  border-radius: 18px;
  background: var(--soft);
  padding: 14px 0 6px;
}

.aside-block h2 {
  margin: 0 18px 6px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.aside-more {
  display: block;
  padding: 12px 18px 10px;
  color: var(--green-ink);
  font-weight: 600;
}

.aside-more:hover {
  text-decoration: underline;
}

.aside-foot {
  margin: 18px 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 13px;
  color: var(--ink-3);
}

.aside-foot a:hover {
  text-decoration: underline;
}

.searchbox {
  position: relative;
  display: block;
}

.searchbox svg.i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  pointer-events: none;
}

.searchbox input {
  width: 100%;
  height: 46px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: var(--soft);
  padding: 0 18px 0 46px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.searchbox input:focus {
  border-color: var(--edge);
  background: var(--bg);
}

.searchbox input::placeholder {
  color: var(--ink-3);
}

/* mobile chrome */
.topbar,
.tabbar,
.fab {
  display: none;
}

@media (max-width: 1240px) {
  :root {
    --aside-w: 300px;
    --rail-w: 88px;
  }
  .rail {
    align-items: center;
    padding-left: 10px;
    padding-right: 10px;
  }
  .rail-logo .wordmark {
    display: none;
  }
  .rail-logo .mark {
    display: block;
  }
  .rail-logo img.mark {
    height: 36px;
  }
  .nav-item span.label,
  .rail .btn-speak span,
  .me-chip .who,
  .me-chip .more {
    display: none;
  }
  .nav-item {
    padding: 12px;
  }
  .rail .btn-speak {
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
  }
  .theme-toggle {
    align-self: center;
  }
  .me-chip {
    width: auto;
  }
}

@media (max-width: 1040px) {
  :root {
    --aside-w: 0px;
  }
  .aside {
    display: none;
  }
}

@media (max-width: 700px) {
  :root {
    --tabbar-h: 58px;
  }
  .app {
    display: block;
  }
  .rail {
    display: none;
  }
  main.main {
    border: 0;
  }
  .topbar {
    display: flex;
    position: sticky;
    top: 0;
    z-index: 30;
    align-items: center;
    justify-content: space-between;
    height: 54px;
    padding: 0 8px 0 12px;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
  .topbar img {
    height: 26px;
    width: auto;
  }
  .topbar .right {
    display: flex;
    align-items: center;
    gap: 2px;
  }
  .tabbar {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
    background: var(--bg);
    border-top: 1px solid var(--line);
  }
  .tabbar a,
  .tabbar button {
    display: grid;
    place-items: center;
    color: var(--ink-2);
    position: relative;
  }
  .tabbar [aria-current='page'] {
    color: var(--ink);
  }
  .tabbar [aria-current='page'] svg.i {
    stroke-width: 2.4;
  }
  .tabbar .nav-dot {
    top: 8px;
    left: calc(50% + 4px);
  }
  .tabbar .tab-speak .dot-btn {
    width: 46px;
    height: 46px;
  }
  .page-head.has-topbar {
    top: 54px;
  }
}

/* ------------------------------------------------------------------ page header & tabs */

.page-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.page-head .row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 0 16px;
}

.page-head h1 {
  margin: 0;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.page-head .sub {
  display: block;
  font-size: 13px;
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: 0;
}

.page-head .back {
  margin-left: -8px;
}

.page-head .end {
  margin-left: auto;
  display: flex;
  gap: 6px;
}

.tabs {
  display: flex;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.tab {
  flex: 1;
  min-width: max-content;
  padding: 0 18px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
  font-weight: 600;
  position: relative;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.tab:hover {
  background: var(--soft);
  color: var(--ink);
}

.tab[aria-selected='true'] {
  color: var(--ink);
  font-weight: 750;
}

.tab[aria-selected='true']::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(64px, 70%);
  height: 4px;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(90deg, var(--edge) 0 3px, var(--ink) 3px);
}

/* ------------------------------------------------------------------ avatars & badges */

.avatar {
  --size: 44px;
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  flex: none;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--soft-2);
  color: #fff;
  font-weight: 800;
  font-size: calc(var(--size) * 0.42);
  letter-spacing: -0.02em;
  position: relative;
  user-select: none;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar.initial {
  background: linear-gradient(170deg, #000 0%, var(--acc, #0b4a37) 120%);
}

.avatar.initial::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  box-shadow: inset calc(var(--size) * 0.07) 0 0 color-mix(in srgb, var(--acc, #0b4a37) 70%, #fff);
  opacity: 0.55;
}

.badges {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  vertical-align: -3px;
  margin-left: 4px;
}

.badge-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  border-radius: 4px;
}

/* ------------------------------------------------------------------ voice card */

.vc {
  position: relative;
  padding: 14px 16px 6px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.vc:hover {
  background: color-mix(in srgb, var(--soft) 55%, transparent);
}

.vc.focus {
  cursor: default;
  padding-top: 16px;
}

.vc.focus:hover {
  background: none;
}

.vc-echo,
.vc-pin {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -2px 0 6px 26px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-3);
}

.vc-echo a:hover {
  text-decoration: underline;
}

.vc-grid {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
}

.vc-side {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.vc.has-thread .vc-side::after {
  content: '';
  flex: 1;
  width: 2px;
  margin-top: 6px;
  margin-bottom: -10px;
  background: var(--line-strong);
  border-radius: 2px;
}

.vc.is-ancestor {
  border-bottom: 0;
  padding-bottom: 2px;
}

.vc-head {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  line-height: 1.3;
}

.vc-name {
  font-weight: 750;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.vc-name:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vc-handle,
.vc-time {
  color: var(--ink-3);
  white-space: nowrap;
}

.vc-handle {
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
  flex-shrink: 1;
}

.vc-time {
  margin-left: auto;
  font-size: 14px;
}

.vc-time:hover {
  text-decoration: underline;
}

.vc-head .icon-btn {
  width: 32px;
  height: 32px;
  margin: -6px -8px -6px 0;
  align-self: center;
}

.vc-replyto {
  font-size: 14px;
  color: var(--ink-3);
  margin-top: 1px;
}

.vc-replyto a {
  color: var(--green-ink);
}

.vc-player {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 10px 0 8px;
}

.vc-dur {
  font-size: 13.5px;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
  min-width: 34px;
  text-align: right;
}

/* The "dot" from the logo: an oval with a lit crescent on its left edge. */
.dot-btn {
  --d: 42px;
  width: var(--d);
  height: var(--d);
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: inset calc(var(--d) * 0.08) 0 0 var(--edge);
  transition: transform 0.15s ease, background-color 0.15s ease;
}

.dot-btn:hover {
  transform: scale(1.05);
}

.dot-btn:active {
  transform: scale(0.95);
}

.dot-btn svg {
  width: calc(var(--d) * 0.42);
  height: calc(var(--d) * 0.42);
  fill: currentColor;
  stroke: none;
}

.dot-btn svg.i {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  width: 48%;
  height: 48%;
}

.dot-btn .play-glyph {
  margin-left: calc(var(--d) * 0.06);
}

.dot-btn.on .play-glyph,
.dot-btn:not(.on) .pause-glyph {
  display: none;
}

.dot-btn.loading .play-glyph,
.dot-btn.loading .pause-glyph {
  display: none;
}

.dot-btn .spinner {
  display: none;
  width: 40%;
  height: 40%;
}

.dot-btn.loading .spinner {
  display: block;
}

.wave {
  --p: 0;
  --wave-h: 34px;
  position: relative;
  flex: 1;
  height: var(--wave-h);
  min-width: 0;
  cursor: pointer;
  touch-action: none;
}

.wave .bars {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.wave .bars i {
  flex: 1;
  min-width: 1.5px;
  height: max(3px, calc(var(--h) * 100%));
  border-radius: 2px;
  background: var(--wave-off);
}

.wave .bars.on {
  clip-path: inset(0 calc(100% - var(--p) * 100%) 0 0);
}

.wave .bars.on i {
  background: linear-gradient(180deg, var(--wave-top), var(--wave-bot)) center / 100% var(--wave-h);
  box-shadow: inset 1px 0 0 var(--wave-edge);
}

@media (max-width: 480px) {
  .wave .bars {
    gap: 1.5px;
  }
  .wave .bars i {
    min-width: 1px;
  }
}

.wave:hover .bars:not(.on) i {
  background: color-mix(in srgb, var(--wave-off) 80%, var(--ink-3));
}

.vc-text {
  margin: 4px 0 0;
  font-size: 16px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  white-space: pre-line;
}

.vc-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.vc.focus .vc-text {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.005em;
}

.vc-text a {
  color: var(--green-ink);
  font-weight: 600;
}

.vc-text a:hover {
  text-decoration: underline;
}

.vc-text.empty {
  color: var(--ink-3);
  font-style: italic;
  font-size: 15px;
}

.read-all {
  color: var(--green-ink);
  font-weight: 600;
  font-size: 14.5px;
  margin-top: 2px;
}

.read-all:hover {
  text-decoration: underline;
}

.vc-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 11px 0 9px;
  border-radius: 999px;
  background: var(--mint);
  color: var(--mint-ink);
  font-size: 13.5px;
  font-weight: 650;
  transition: background-color 0.15s ease;
}

.topic-chip:hover {
  background: color-mix(in srgb, var(--mint) 80%, var(--edge));
}

.topic-chip svg.i {
  width: 14px;
  height: 14px;
  stroke-width: 2.2;
}

.vc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14.5px;
}

.vc-meta b {
  color: var(--ink);
  font-weight: 750;
}

.source-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
}

.source-tag.edited {
  color: #9a6400;
}

:root[data-theme='dark'] .source-tag.edited {
  color: #f0c36a;
}

.vc-acts {
  display: flex;
  justify-content: space-between;
  max-width: 470px;
  margin: 6px -8px 0;
}

.vc.focus .vc-acts {
  max-width: none;
  border-top: 1px solid var(--line);
  padding: 4px 0;
  margin: 0 -8px;
  justify-content: space-around;
}

.act {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--ink-3);
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.act:hover {
  background: var(--soft);
  color: var(--ink);
}

.act.reply:hover {
  color: var(--green-ink);
}

.act.echo.on,
.act.echo:hover {
  color: var(--edge);
}

.act.like.on,
.act.like:hover {
  color: var(--like);
}

.act.like.on svg.i {
  fill: currentColor;
}

.act.save.on {
  color: var(--green-ink);
}

.act.save.on svg.i {
  fill: currentColor;
}

.act.listens {
  cursor: default;
}

.act.listens:hover {
  background: none;
  color: var(--ink-3);
}

.act.pop svg {
  animation: pop 0.32s ease;
}

@keyframes pop {
  40% {
    transform: scale(1.3);
  }
}

.vc.deleted {
  padding: 16px;
  color: var(--ink-3);
  cursor: default;
}

.vc.deleted .ghost {
  background: var(--soft);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14.5px;
}

.vc.is-playing {
  background: color-mix(in srgb, var(--mint) 35%, transparent);
}

/* compose prompt at the top of Home */
.speak-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.speak-row .prompt {
  flex: 1;
  text-align: left;
  font-size: 19px;
  color: var(--ink-3);
  padding: 8px 0;
}

.speak-row .prompt:hover {
  color: var(--ink-2);
}

.hello {
  padding: 22px 20px 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--mint) 45%, transparent));
}

.hello h2 {
  margin: 0;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.hello p {
  margin: 8px 0 16px;
  color: var(--ink-2);
  max-width: 46ch;
}

.hello .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* lists */
.list-end,
.list-loading {
  padding: 28px 16px 40px;
  text-align: center;
  color: var(--ink-3);
  font-size: 14px;
}

.list-loading .spinner {
  margin: 0 auto;
  color: var(--edge);
}

.empty {
  padding: 48px 28px;
  text-align: center;
  max-width: 440px;
  margin: 0 auto;
}

.empty h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 850;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.empty p {
  margin: 0 0 18px;
  color: var(--ink-2);
}

.skeleton {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
}

.skeleton .s {
  background: var(--soft);
  border-radius: 8px;
  animation: shimmer 1.4s ease-in-out infinite;
}

@keyframes shimmer {
  50% {
    opacity: 0.55;
  }
}

/* user rows */
.user-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 16px;
  transition: background-color 0.15s ease;
}

.user-row:hover {
  background: var(--soft);
}

.aside .user-row:hover {
  background: var(--soft-2);
}

.user-row .who {
  min-width: 0;
  line-height: 1.3;
}

.user-row .who b {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-row .who .h {
  color: var(--ink-3);
  font-size: 14.5px;
}

.user-row .who p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.list .user-row {
  border-bottom: 1px solid var(--line);
}

/* trending */
.trend {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 18px;
  transition: background-color 0.15s ease;
}

.trend:hover {
  background: var(--soft-2);
}

.main .trend:hover {
  background: var(--soft);
}

.trend .rank {
  font-size: 15px;
  font-weight: 800;
  color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}

.trend .label {
  font-weight: 750;
  font-size: 16px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trend .stat {
  font-size: 13.5px;
  color: var(--ink-3);
}

.stack {
  display: flex;
}

.stack .avatar {
  --size: 24px;
  box-shadow: 0 0 0 2px var(--soft);
  font-size: 10px;
}

.stack .avatar + .avatar {
  margin-left: -7px;
}

.main .stack .avatar {
  box-shadow: 0 0 0 2px var(--bg);
}

.section-title {
  margin: 0;
  padding: 20px 16px 8px;
  font-size: 20px;
  font-weight: 850;
  letter-spacing: -0.015em;
}

.section-title + .sub {
  margin: -4px 16px 8px;
  color: var(--ink-3);
  font-size: 14px;
}

/* ------------------------------------------------------------------ player bar */

.pbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: var(--tabbar-h);
  z-index: 45;
  height: 74px;
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), visibility 0s linear 0.3s;
}

.pbar.show {
  transform: none;
  visibility: visible;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.pbar-progress {
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 4px;
  cursor: pointer;
}

.pbar-progress::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  height: 3px;
  width: calc(var(--p, 0) * 100%);
  background: linear-gradient(90deg, var(--wave-bot), var(--edge));
}

.pbar-inner {
  height: 100%;
  max-width: calc(var(--rail-w) + var(--main-w) + var(--aside-w));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 0 20px;
}

.pbar-who {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.pbar-who .t {
  min-width: 0;
  line-height: 1.3;
}

.pbar-who .t b,
.pbar-who .t span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pbar-who .t span {
  color: var(--ink-3);
  font-size: 13.5px;
}

.pbar-ctrl {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pbar-ctrl .dot-btn {
  --d: 46px;
}

.pbar-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  color: var(--ink-3);
  font-size: 13.5px;
}

.pbar-time {
  font-variant-numeric: tabular-nums;
  margin-right: 8px;
}

.rate-btn {
  min-width: 46px;
  height: 30px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  font-weight: 700;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}

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

.auto-btn[aria-pressed='true'] {
  color: var(--edge);
}

@media (max-width: 700px) {
  .pbar {
    height: 64px;
  }
  .pbar-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 0 6px 0 12px;
  }
  .pbar-end .pbar-time,
  .pbar-end .rate-btn,
  .pbar-end .auto-btn,
  .pbar-ctrl .prev,
  .pbar-ctrl .next {
    display: none;
  }
  .pbar-ctrl .dot-btn {
    --d: 42px;
  }
  .pbar-who .avatar {
    --size: 36px;
  }
}

/* ------------------------------------------------------------------ modal, sheet, menu, toast */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: var(--overlay);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.18s ease;
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.modal {
  width: min(560px, 100%);
  max-height: min(92vh, 860px);
  overflow: auto;
  background: var(--bg-raised);
  border-radius: 22px;
  box-shadow: var(--shadow-pop);
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.modal.sm {
  width: min(400px, 100%);
}

@keyframes rise {
  from {
    transform: translateY(14px) scale(0.98);
    opacity: 0;
  }
}

.modal-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 0;
  min-height: 54px;
}

.modal-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.modal-body {
  padding: 8px 24px 24px;
}

.modal-body > p {
  color: var(--ink-2);
  margin: 0 0 18px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
  flex-wrap: wrap;
}

@media (max-width: 700px) {
  .overlay.sheet {
    place-items: end stretch;
    padding: 0;
  }
  .overlay.sheet .modal {
    width: 100%;
    max-height: 94vh;
    border-radius: 22px 22px 0 0;
    padding-bottom: env(safe-area-inset-bottom);
    animation: up 0.26s cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  @keyframes up {
    from {
      transform: translateY(40%);
    }
  }
}

.menu {
  position: fixed;
  z-index: 90;
  min-width: 220px;
  background: var(--bg-raised);
  border-radius: 14px;
  box-shadow: var(--shadow-pop);
  padding: 6px;
  animation: fade 0.12s ease;
}

.menu button,
.menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 9px;
  font-weight: 600;
  text-align: left;
}

.menu button:hover,
.menu a:hover,
.menu button:focus-visible {
  background: var(--soft);
}

.menu .danger {
  color: var(--danger);
}

.toasts {
  position: fixed;
  left: 50%;
  bottom: calc(var(--pbar-h) + var(--tabbar-h) + 18px);
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  width: max-content;
  max-width: calc(100vw - 32px);
}

.toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  box-shadow: inset 3px 0 0 var(--edge), var(--shadow-pop);
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  animation: rise 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.toast.err {
  box-shadow: inset 3px 0 0 var(--danger), var(--shadow-pop);
}

.toast button {
  font-weight: 800;
  color: var(--edge);
}

.toast.out {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

/* ------------------------------------------------------------------ recorder */

.rec {
  text-align: center;
  padding: 0 24px 24px;
}

.rec-context {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  background: var(--soft);
  border-radius: 14px;
  padding: 10px 12px;
  margin: 4px 0 8px;
  font-size: 14.5px;
}

.rec-context .avatar {
  --size: 32px;
}

.rec-context p {
  margin: 0;
  color: var(--ink-2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.rec-stage {
  padding: 22px 0 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rec-mic {
  --d: 112px;
  --lvl: 0;
  position: relative;
}

.rec-mic::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--edge);
  opacity: 0.22;
  transform: scale(calc(1 + var(--lvl) * 0.55));
  transition: transform 0.08s linear;
}

.rec-mic svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 1.8;
  width: 44px !important;
  height: 44px !important;
}

.rec-mic.recording {
  background: var(--danger);
  color: #fff;
  box-shadow: inset calc(var(--d) * 0.08) 0 0 color-mix(in srgb, var(--danger) 60%, #fff);
}

.rec-mic.recording::before {
  background: var(--danger);
}

.rec-mic .stop-glyph {
  display: none;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  background: currentColor;
}

.rec-mic.recording svg {
  display: none;
}

.rec-mic.recording .stop-glyph {
  display: block;
}

.rec-time {
  margin-top: 18px;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.rec-time small {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.rec-hint {
  color: var(--ink-3);
  margin: 6px 0 0;
  font-size: 14.5px;
}

.rec-live {
  height: 48px;
  margin: 18px 0 0;
  width: 100%;
  display: block;
}

.rec-transcript {
  min-height: 72px;
  margin: 12px 0 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: var(--soft);
  text-align: left;
  font-size: 16px;
  line-height: 1.5;
}

.rec-transcript .interim {
  color: var(--ink-3);
}

.rec-transcript .placeholder {
  color: var(--ink-3);
}

.rec-review {
  text-align: left;
  padding-top: 10px;
}

.rec-review .vc-player {
  margin: 4px 0 18px;
}

.rec-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.rec-foot .grow {
  flex: 1;
}

.rec-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.rec-lang select {
  max-width: 210px;
  text-overflow: ellipsis;
  border: 0;
  background: transparent;
  color: var(--ink-2);
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

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

.field {
  display: block;
  margin-bottom: 16px;
}

.field > span:first-child,
.field-label {
  display: flex;
  justify-content: space-between;
  font-weight: 650;
  font-size: 14px;
  margin-bottom: 6px;
}

.field .count {
  color: var(--ink-3);
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}

.input,
.field input:not([type='color']):not([type='file']):not([type='checkbox']),
.field textarea,
.field select {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: 11px 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.input:focus,
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--edge);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--edge) 22%, transparent);
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--danger);
}

.field .hint,
.field .error {
  display: block;
  margin-top: 6px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.field .error {
  color: var(--danger);
}

.field .ok {
  color: var(--edge);
}

.form-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-weight: 600;
  font-size: 14.5px;
}

.prefix-input {
  position: relative;
}

.prefix-input > b {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-3);
  font-weight: 600;
  pointer-events: none;
}

.prefix-input input {
  padding-left: 32px !important;
}

/* ------------------------------------------------------------------ auth + welcome (full screen pages) */

.bare {
  min-height: 100vh;
  min-height: 100dvh;
}

.bare[hidden] {
  display: none;
}

.bare-top {
  position: fixed;
  top: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 10;
  pointer-events: none;
}

.bare-top > * {
  pointer-events: auto;
}

.bare-top .mark {
  width: min(120px, 24vw);
  height: auto;
  pointer-events: none;
  user-select: none;
}

.round-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  display: grid;
  place-items: center;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.round-btn:hover {
  transform: scale(1.06);
  background: color-mix(in srgb, var(--ink) 10%, transparent);
}

.round-btn:active {
  transform: scale(0.95);
}

.welcome {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
}

.welcome-stage {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0;
  padding: 120px 24px 40px;
  will-change: transform;
}

.welcome-logo {
  width: min(420px, 70vw);
  max-height: 46vh;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  pointer-events: none;
  animation: breathing 4.8s ease-in-out infinite;
}

@keyframes breathing {
  0%,
  100% {
    transform: scale(0.94);
  }
  50% {
    transform: scale(1.06);
  }
}

.welcome h1 {
  margin: 34px 0 0;
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1;
  text-align: center;
}

.welcome .lede {
  margin: 14px auto 0;
  max-width: 44ch;
  text-align: center;
  color: var(--ink-2);
  font-size: 17px;
}

.welcome .actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 26px;
}

.welcome-foot {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 18px 20px 26px;
  font-size: 13.5px;
  color: var(--ink-3);
}

.welcome-foot a:hover {
  text-decoration: underline;
}

.auth {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.auth-art {
  position: relative;
  background: #000;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  overflow: hidden;
}

.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #000 30%, #06261c 75%, #0f5a43 100%);
}

.auth-art > * {
  position: relative;
}

.auth-art img {
  width: 150px;
  height: auto;
}

.auth-art blockquote {
  margin: 0;
  font-size: clamp(30px, 3.6vw, 52px);
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 12ch;
}

.auth-art .art-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 120px;
  margin-bottom: 24px;
}

.auth-art .art-wave i {
  flex: 1;
  border-radius: 3px;
  height: calc(var(--h) * 100%);
  background: linear-gradient(180deg, #fff, #8ff0cd) center / 100% 120px;
  box-shadow: inset 1.5px 0 0 #5fd3ad;
}

.auth-art p {
  margin: 14px 0 0;
  color: #b8cbc3;
  max-width: 34ch;
}

.auth-form {
  display: grid;
  place-items: center;
  padding: 40px 24px;
}

.auth-form form {
  width: min(400px, 100%);
}

.auth-form h1 {
  margin: 0 0 6px;
  font-size: 32px;
  font-weight: 850;
  letter-spacing: -0.03em;
}

.auth-form .switch {
  margin: 0 0 26px;
  color: var(--ink-2);
}

.auth-form .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
}

.auth-form .home-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-3);
  font-weight: 600;
}

.auth-form .home-link:hover {
  color: var(--ink);
}

.auth-form .fine {
  margin-top: 16px;
  font-size: 13px;
  color: var(--ink-3);
}

@media (max-width: 820px) {
  .auth {
    grid-template-columns: 1fr;
  }
  .auth-art {
    min-height: 220px;
    padding: 24px;
  }
  .auth-art .art-wave {
    height: 64px;
    margin: 18px 0 0;
  }
  .auth-art .art-wave i {
    background-size: 100% 64px;
  }
  .auth-art blockquote {
    font-size: 34px;
  }
}

/* ------------------------------------------------------------------ profile */

.profile-banner {
  height: 200px;
  background: linear-gradient(170deg, #000 25%, var(--acc, #0b4a37) 140%);
  position: relative;
  overflow: hidden;
}

.profile-banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-top {
  padding: 0 16px;
  position: relative;
}

.profile-top .avatar-wrap {
  margin-top: -64px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.profile-top .avatar {
  --size: 128px;
  box-shadow: 0 0 0 4px var(--bg);
}

.profile-top .buttons {
  display: flex;
  gap: 8px;
  padding-bottom: 8px;
}

.profile-top .buttons .icon-btn {
  border: 1px solid var(--line-strong);
}

.profile-name {
  margin: 12px 0 0;
  font-size: 26px;
  font-weight: 850;
  letter-spacing: -0.025em;
  line-height: 1.15;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-name .badges .badge-img {
  width: 24px;
  height: 24px;
}

.profile-name .pronouns {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0;
}

.profile-handle {
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 8px;
}

.follows-you {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--ink-2);
  background: var(--soft);
  padding: 2px 8px;
  border-radius: 6px;
}

.profile-bio {
  margin: 12px 0 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
  font-size: 15.5px;
  max-width: 60ch;
}

.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14.5px;
}

.profile-meta span,
.profile-meta a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.profile-meta a {
  color: var(--green-ink);
}

.profile-meta a:hover {
  text-decoration: underline;
}

.profile-stats {
  display: flex;
  align-items: baseline;
  gap: 22px;
  margin: 16px 0 4px;
  flex-wrap: wrap;
}

.profile-stats a,
.profile-stats > span {
  color: var(--ink-3);
  font-size: 15px;
}

.profile-stats b {
  color: var(--ink);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.profile-stats .voices b {
  font-size: 24px;
  letter-spacing: -0.02em;
}

.profile-stats a:hover span {
  text-decoration: underline;
}

.intro-player {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 360px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  background: var(--soft);
}

.intro-player .dot-btn {
  --d: 36px;
}

.intro-player .wave {
  --wave-h: 26px;
}

.intro-player .label {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--ink-2);
  white-space: nowrap;
}

.intro-add {
  width: fit-content;
  max-width: 100%;
  padding: 6px 16px 6px 6px;
  cursor: pointer;
  border: 1px dashed var(--line-strong);
  background: transparent;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.intro-add:hover {
  background: var(--soft);
  border-color: var(--edge);
}

.intro-mic {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--mint);
  color: var(--mint-ink);
  flex: none;
}

.badge-shelf {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 5px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  font-weight: 650;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.badge-pill:hover {
  border-color: var(--line-strong);
  background: var(--soft);
}

.badge-pill img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  border-radius: 6px;
}

.badge-pill.more {
  padding: 0 14px;
  color: var(--ink-3);
}

.profile-tabs {
  margin-top: 12px;
  border-bottom: 1px solid var(--line);
}

/* ------------------------------------------------------------------ badges pages */

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
  padding: 16px;
}

.badge-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 18px 12px 14px;
  border-radius: 16px;
  background: var(--soft);
  transition: background-color 0.15s ease;
}

.badge-card:hover {
  background: var(--soft-2);
}

.badge-card img {
  width: 72px;
  height: 72px;
  object-fit: contain;
}

.badge-card b {
  font-size: 15px;
  line-height: 1.2;
}

.badge-card span {
  font-size: 13px;
  color: var(--ink-3);
}

.badge-hero {
  padding: 32px 16px 20px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.badge-hero .art {
  width: 148px;
  height: 148px;
  margin: 0 auto;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, var(--mint), transparent 70%);
}

.badge-hero img {
  width: 112px;
  height: 112px;
  object-fit: contain;
}

.badge-hero h2 {
  margin: 16px 0 4px;
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.badge-hero p {
  margin: 0 auto;
  max-width: 44ch;
  color: var(--ink-2);
}

.badge-hero .by {
  margin-top: 12px;
  color: var(--ink-3);
  font-size: 14.5px;
}

.badge-hero .by a {
  color: var(--green-ink);
  font-weight: 650;
}

.badge-hero .actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* settings */
.settings {
  padding: 8px 20px 60px;
}

.settings h2 {
  margin: 26px 0 4px;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.settings h2 + p,
.settings .lead {
  margin: 0 0 16px;
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 60ch;
}

.settings hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 28px 0 0;
}

.media-edit {
  position: relative;
  margin: 12px 0 64px;
}

.media-edit .banner {
  height: 160px;
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(170deg, #000 25%, var(--acc, #0b4a37) 140%);
  position: relative;
}

.media-edit .banner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-edit .avatar {
  --size: 104px;
  position: absolute;
  left: 18px;
  bottom: -52px;
  box-shadow: 0 0 0 4px var(--bg);
}

.media-edit .over {
  position: absolute;
  display: flex;
  gap: 6px;
}

.media-edit .banner .over {
  right: 12px;
  bottom: 12px;
}

.media-edit .avatar-over {
  position: absolute;
  left: 132px;
  bottom: -46px;
  display: flex;
  gap: 6px;
}

.chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.62);
  color: #fff;
  font-weight: 650;
  font-size: 13.5px;
  backdrop-filter: blur(8px);
}

.chip-btn:hover {
  background: rgba(0, 0, 0, 0.78);
}

.chip-btn.light {
  background: var(--soft);
  color: var(--ink);
}

.chip-btn.light:hover {
  background: var(--soft-2);
}

.swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(170deg, #000 10%, var(--c) 120%);
  box-shadow: inset 3px 0 0 color-mix(in srgb, var(--c) 70%, #fff);
  position: relative;
}

.swatch[aria-checked='true']::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.swatch.custom {
  overflow: hidden;
  display: grid;
  place-items: center;
  background: conic-gradient(#c4374f, #e0a33a, #2a9d78, #2f6fd6, #8b47c9, #c4374f);
  box-shadow: none;
}

.swatch.custom input {
  opacity: 0;
  position: absolute;
  inset: 0;
  cursor: pointer;
}

.intro-box {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge-manage {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--soft);
}

.badge-row img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.badge-row .t {
  min-width: 0;
  line-height: 1.3;
}

.badge-row .t b {
  display: block;
}

.badge-row .t span {
  font-size: 13.5px;
  color: var(--ink-3);
}

.badge-row .ctl {
  display: flex;
  gap: 2px;
  align-items: center;
}

.badge-row.hidden-badge {
  opacity: 0.6;
}

.badge-row.pending {
  background: var(--mint);
  opacity: 1;
}

.switch-toggle {
  position: relative;
  width: 42px;
  height: 26px;
  border-radius: 13px;
  background: var(--line-strong);
  transition: background-color 0.15s ease;
  flex: none;
}

.switch-toggle::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.18s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.switch-toggle[aria-checked='true'] {
  background: var(--edge);
}

.switch-toggle[aria-checked='true']::after {
  transform: translateX(16px);
}

.badge-maker {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
  padding: 16px;
  border-radius: 18px;
  border: 1px dashed var(--line-strong);
}

.badge-drop {
  width: 120px;
  height: 120px;
  border-radius: 20px;
  background: var(--soft);
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.15s ease;
}

.badge-drop:hover,
.badge-drop.drag {
  border-color: var(--edge);
}

.badge-drop img {
  width: 84px;
  height: 84px;
  object-fit: contain;
}

.badge-drop input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.badge-preview {
  margin: 4px 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--soft);
  font-size: 15px;
}

.badge-preview .h {
  color: var(--ink-3);
  font-weight: 400;
}

@media (max-width: 520px) {
  .badge-maker {
    grid-template-columns: 1fr;
  }
}

.danger-zone {
  margin-top: 32px;
  padding: 18px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--danger) 35%, transparent);
}

.danger-zone h2 {
  margin-top: 0;
  color: var(--danger);
}

/* notifications */
.note {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.note:hover {
  background: color-mix(in srgb, var(--soft) 60%, transparent);
}

.note.unread {
  background: color-mix(in srgb, var(--mint) 40%, transparent);
}

.note .kind {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--ink-3);
}

.note .kind.like {
  color: var(--like);
}

.note .kind.echo,
.note .kind.follow {
  color: var(--edge);
}

.note .kind.badge_gift,
.note .kind.badge_accepted {
  color: #c08a14;
}

.note .kind svg.i {
  width: 26px;
  height: 26px;
}

.note .kind.like svg.i {
  fill: currentColor;
}

.note .avatar {
  --size: 34px;
}

.note p {
  margin: 8px 0 0;
}

.note .snippet {
  margin-top: 6px;
  color: var(--ink-3);
  font-size: 14.5px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.note .gift {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  flex-wrap: wrap;
}

.note .gift img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.note .gift .grow {
  flex: 1;
  min-width: 120px;
}

/* topic header */
.topic-hero {
  padding: 22px 16px 18px;
  border-bottom: 1px solid var(--line);
}

.topic-hero h2 {
  margin: 0;
  font-size: 34px;
  font-weight: 850;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.topic-hero p {
  margin: 8px 0 16px;
  color: var(--ink-2);
}

.topic-hero .rank-pill {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--mint-ink);
  background: var(--mint);
  border-radius: 6px;
  padding: 2px 8px;
}

/* reply bar on voice page */
.reply-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}

.reply-bar .grow {
  flex: 1;
  color: var(--ink-3);
  text-align: left;
  font-size: 16px;
}

.sort-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 14px;
}

.seg {
  display: inline-flex;
  background: var(--soft);
  border-radius: 999px;
  padding: 3px;
}

.seg button {
  white-space: nowrap;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 650;
  font-size: 13.5px;
  color: var(--ink-3);
}

.seg button[aria-pressed='true'] {
  background: var(--bg);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* prose pages */
.prose {
  padding: 8px 22px 60px;
  max-width: 68ch;
}

.prose h2 {
  font-size: 22px;
  font-weight: 850;
  letter-spacing: -0.02em;
  margin: 30px 0 8px;
}

.prose h3 {
  font-size: 17px;
  margin: 22px 0 6px;
}

.prose p,
.prose li {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.6;
}

.prose ul {
  padding-left: 20px;
}

.prose .big {
  font-size: 24px;
  line-height: 1.35;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.015em;
  margin-top: 24px;
}

.prose .updated {
  color: var(--ink-3);
  font-size: 14px;
}

/* admin */
.report {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}

.report .why {
  font-size: 14.5px;
  color: var(--ink-2);
  margin-bottom: 8px;
}

.report .target {
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
}

.report .target .vc {
  border-bottom: 0;
}

.report .row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
