:root {
  --accent-error: #d4453a;
  --accent-gold: #cda832;
  --accent-gold-copy: #8a6d18;
  --accent-gold-text: #2b2308;
  --accent-success: #388e3c;
  --bg-color: #faf9fc;
  --bg-glow-gold: #cda83238;
  --bg-glow-violet: #7c3aed29;
  --border-color: #e4e0ec;
  --button-bg: #7c3aed;
  --button-hover: #6d28d9;
  --button-text: #fff;
  --comment-dock-bg: #eeebf5;
  --dm-other-bubble-bg: #ddd7ea;
  --dm-self-bubble-bg: #765da2;
  --error-bg: #d4453a;
  --input-bg: #fff;
  --legal-section-bg: #eae8f0;
  --legal-section-border: #1e14321a;
  --legal-section-text: #1a1625;
  --post-card-bg: #f4f2f8;
  --shadow-card: 0 1px 3px #1e14320f, 0 1px 2px #1e14320a;
  --shadow-dialog: 0 1px 2px #1a16250a, 0 12px 32px -8px #1a16251f;
  --shadow-elevated: 0 4px 12px #1e14321a, 0 1px 3px #1e14320f;
  --text-color: #1a1625;
  --text-secondary: #6b6580;
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent-error: #ff7b6e;
    --accent-gold: #d5b653;
    --accent-gold-copy: #d5b653;
    --accent-gold-text: #2b2308;
    --accent-success: #51cf66;
    --bg-color: #16141e;
    --bg-glow-gold: #cda83233;
    --bg-glow-violet: #9b6ff02e;
    --border-color: #2a2636;
    --button-bg: #9b6ff0;
    --button-hover: #b08ef5;
    --button-text: #fff;
    --comment-dock-bg: #262234;
    --dm-other-bubble-bg: #2e2a3c;
    --dm-self-bubble-bg: #5f4f8a;
    --error-bg: #8a261e;
    --input-bg: #1c1924;
    --legal-section-bg: #0e0c14;
    --legal-section-border: #c8bedc14;
    --legal-section-text: #dbd6e8;
    --post-card-bg: #1e1b28;
    --shadow-card: 0 1px 3px #00000040, 0 1px 2px #0000002e;
    --shadow-dialog: 0 1px 2px #0006, 0 16px 40px -12px #0000008c;
    --shadow-elevated: 0 4px 12px #00000059, 0 1px 3px #0003;
    --text-color: #f0edf5;
    --text-secondary: #9690a8;
  }
}

@keyframes grid-row-reveal {
  from {
    opacity: 0;
    grid-template-rows: 0fr;
  }

  to {
    opacity: 1;
    grid-template-rows: 1fr;
  }
}

@keyframes grid-row-conceal {
  from {
    opacity: 1;
    grid-template-rows: 1fr;
  }

  to {
    opacity: 0;
    grid-template-rows: 0fr;
  }
}

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

  to {
    opacity: 1;
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modal-enter {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .55;
  }
}

@keyframes popover-enter {
  from {
    opacity: 0;
    transform: scale(.92);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fade-out {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes modal-exit {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(12px);
  }
}

@keyframes popover-exit {
  from {
    opacity: 1;
    transform: scale(1);
  }

  to {
    opacity: 0;
    transform: scale(.96);
  }
}

@keyframes dot-in {
  from {
    opacity: 0;
    scale: .4;
  }

  to {
    opacity: 1;
    scale: 1;
  }
}

@keyframes empty-state-wiggle {
  0% {
    transform: translateY(0);
  }

  30% {
    transform: translateY(-3px);
  }

  60% {
    transform: translateY(0);
  }

  80% {
    transform: translateY(-1px);
  }

  100% {
    transform: translateY(0);
  }
}

@keyframes bottom-bar-attn {
  0% {
    transform: translateY(0)scale(1);
  }

  25% {
    transform: translateY(-5px)scale(1.3);
  }

  50% {
    transform: translateY(0)scale(1.06);
  }

  72% {
    transform: translateY(-3px)scale(1.18);
  }

  100% {
    transform: translateY(0)scale(1);
  }
}

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

@font-face {
  font-family: Marzigram Default;
  src: url("/_hashed/fonts/default.5f48f69b.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: Marzigram Headline;
  src: url("/_hashed/fonts/headline.b89e2295.woff2") format("woff2");
  font-weight: 400 600;
  font-stretch: 75% 125%;
  font-style: normal;
  font-display: swap;
}

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

.card-view-container {
  background-color: var(--bg-color);
  width: 100%;
  color: var(--text-color);
  box-sizing: border-box;
  justify-content: center;
  align-items: center;
  padding: 1rem;
  transition: background-color .3s, color .3s;
  display: flex;
}

.card-view-container--with-top-bar {
  padding-top: calc(1rem + 53px);
}

.card-view-container--with-bottom-bar {
  padding-bottom: 4.5rem;
}

@media (width >= 768px) {
  .card-view-container--with-bottom-bar {
    padding-bottom: 1rem;
  }
}

.suspended-container {
  padding-top: 3rem;
}

.hidden {
  display: none !important;
}

.card-view-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.5rem;
}

@media (width >= 768px) {
  .card-view-card {
    padding: 3rem 2rem;
  }
}

@media (width >= 1024px) {
  .card-view-card {
    max-width: 30rem;
  }
}

.card-view-header {
  text-align: left;
  padding-inline: var(--border-radius);
  margin-bottom: 2.5rem;
}

.card-view-header h1 {
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  font-weight: 500;
}

@media (width >= 768px) {
  .card-view-header h1 {
    font-size: 2rem;
  }
}

@media (width >= 1024px) {
  .card-view-header h1 {
    font-size: 2.25rem;
  }
}

.card-view-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

.card-view-header p + p {
  margin-top: .5rem;
}

@media (width >= 768px) {
  .card-view-header p {
    font-size: 1rem;
  }
}

.card-view-header p a {
  color: var(--text-color);
  border-bottom: 1px solid var(--text-secondary);
  text-decoration: none;
  transition: border-color .18s;
}

.card-view-header p a:hover {
  border-bottom-color: var(--text-color);
}

.card-view-form {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.form-group {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.form-label {
  color: var(--text-color);
  letter-spacing: .01em;
  text-align: left;
  padding-inline: var(--border-radius);
  font-size: .85rem;
  font-weight: 500;
}

.form-label[for]:after {
  content: " *";
  color: var(--accent-gold);
  vertical-align: middle;
  font-size: 1.2em;
  line-height: 1;
}

@media (width >= 768px) {
  .form-label {
    font-size: .9rem;
  }
}

fieldset {
  border: none;
  flex-direction: column;
  gap: .5rem;
  min-width: 0;
  margin: 0;
  padding: 0;
  display: flex;
}

fieldset legend.form-label {
  margin-bottom: .5rem;
  display: block;
}

.birth-date-inputs {
  gap: .5rem;
  display: flex;
}

.birth-date-inputs select {
  flex: 2;
  min-width: 0;
}

.birth-date-inputs input#birth_day {
  flex: .8;
  min-width: 0;
}

.birth-date-inputs input#birth_year {
  flex: 1.2;
  min-width: 0;
}

.form-input {
  width: 100%;
  color: var(--text-color);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
  outline: none;
  padding: .875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .18s, background-color .3s;
}

.form-input:focus, .form-input:focus-visible {
  border-color: var(--text-color);
}

.form-input[aria-invalid="true"] {
  border-color: var(--accent-error);
}

.form-input::placeholder {
  color: var(--text-secondary);
  opacity: .6;
}

.form-input:disabled {
  color: var(--text-secondary);
  opacity: .6;
  cursor: default;
}

.form-input::-webkit-search-cancel-button {
  appearance: none;
}

.form-input::-webkit-search-decoration {
  appearance: none;
}

@media (width >= 768px) {
  .form-input {
    padding: 1rem 1.125rem;
  }
}

.form-button {
  letter-spacing: .02em;
  width: 100%;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: center;
  appearance: none;
  border: none;
  margin-top: .5rem;
  padding: 1rem;
  font-family: inherit;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  transition: background-color .18s;
}

.form-button:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .form-button:hover {
    background-color: var(--button-hover);
  }

  .form-button:active {
    transform: translateY(1px);
  }
}

.form-button:disabled, .form-button[aria-disabled="true"] {
  opacity: .5;
  background: var(--button-bg);
  cursor: not-allowed;
}

.form-button.disabled {
  opacity: .4;
  background: var(--text-secondary);
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .form-button.disabled:hover {
    background: var(--text-secondary);
  }

  .form-button.disabled:active {
    transform: none;
  }
}

@media (width >= 768px) {
  .form-button {
    padding: 1.125rem;
    font-size: 1rem;
  }
}

.form-button-upload-label, .form-button-submit-spinner {
  display: none;
}

.form-button-upload-label {
  justify-content: center;
  align-items: center;
  gap: .35rem;
}

.form-button-submit-spinner {
  border: 2.5px solid color-mix(in srgb, var(--button-text) 35%, transparent);
  border-top-color: var(--button-text);
  will-change: transform;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .form-button-submit-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.form-button-submit-spinner {
  margin: 0 auto;
}

.form-button.uploading .form-button-label {
  display: none;
}

.form-button.uploading .form-button-upload-label {
  animation: .18s fade-in;
  display: inline-flex;
}

.form-button.submitting .form-button-label {
  display: none;
}

.form-button.submitting .form-button-submit-spinner {
  animation: .18s fade-in;
  display: inline-block;
}

.form-button-spinner {
  border: 2.5px solid color-mix(in srgb, var(--button-text) 35%, transparent);
  border-top-color: var(--button-text);
  will-change: transform;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .form-button-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.form-button-spinner {
  margin: 0 auto;
}

.form-button-spinner-inline {
  border: 2.5px solid color-mix(in srgb, var(--button-text) 35%, transparent);
  border-top-color: var(--button-text);
  will-change: transform;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: .8s linear infinite spin;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .form-button-spinner-inline {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.card-view-footer {
  text-align: left;
  color: var(--text-secondary);
  padding-inline: var(--border-radius);
  margin-top: 2rem;
  font-size: .9rem;
}

.card-view-footer a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s;
}

@media (hover: hover) and (pointer: fine) {
  .card-view-footer a:hover {
    opacity: .7;
  }
}

.form-hint {
  padding: 0 var(--border-radius);
  color: var(--text-secondary);
  text-align: left;
  margin: 0 0 .5rem;
  font-size: .8rem;
  list-style: none;
}

.form-hint a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s;
}

@media (hover: hover) and (pointer: fine) {
  .form-hint a:hover {
    opacity: .7;
  }
}

.form-hint li {
  margin-bottom: 0;
  padding-left: 1.25rem;
  line-height: 1.4;
  transition: background-color .8s, color .8s, border-color .8s;
  position: relative;
}

.form-hint li:before {
  content: "";
  border: 1.5px solid;
  border-radius: 50%;
  width: .5rem;
  height: .5rem;
  transition: background-color .8s, color .8s, border-color .8s;
  position: absolute;
  top: .25em;
  left: .3rem;
}

.form-hint li.success-message {
  color: var(--accent-success);
}

.form-hint li.success-message:before {
  background-color: var(--accent-success);
  border-color: var(--accent-success);
}

.form-hint li.error-message {
  color: var(--accent-error);
}

.form-hint li.error-message:before {
  border-color: var(--accent-error);
}

.form-hint.success-message {
  color: var(--accent-success);
}

.form-hint.error-message {
  color: var(--accent-error);
}

.form-hint.centered {
  text-align: center;
  font-size: 1.1em;
}

@media (width >= 768px) {
  .form-hint {
    font-size: .85rem;
  }
}

.form-hint-container {
  min-height: 1.5em;
  margin-bottom: -.85rem;
  position: relative;
}

.form-hint-container p {
  top: 0;
  left: var(--border-radius);
  right: var(--border-radius);
  margin: 0;
  position: absolute;
}

.showing {
  opacity: 1;
  transition: opacity .3s ease-out, transform .3s ease-out;
  transform: translateY(0);
}

.hiding {
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s ease-in, transform .3s ease-in;
  transform: translateY(-4px);
}

.form-error {
  background: color-mix(in srgb, var(--accent-error) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-error) 40%, transparent);
  border-radius: var(--border-radius);
  text-align: left;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px 20px;
  display: flex;
}

.form-error-icon {
  width: 28px;
  height: 28px;
  color: var(--accent-error);
  flex-shrink: 0;
}

.form-error-body {
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  display: flex;
}

.form-error-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-error);
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
}

.form-error-message {
  color: var(--accent-error);
  margin: 0;
  font-size: .95rem;
  font-weight: 500;
}

.founding-offer-note {
  background: color-mix(in srgb, var(--accent-gold) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent-gold) 45%, transparent);
  border-radius: var(--border-radius);
  text-align: left;
  align-items: flex-start;
  gap: .75rem;
  margin: .25rem 0 .75rem;
  padding: .875rem 1rem;
  display: flex;
}

.founding-offer-note p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .85rem;
  line-height: 1.5;
}

.founding-offer-note strong {
  color: var(--text-color);
  font-weight: 600;
}

.founding-offer-note a {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
  transition: opacity .18s;
}

@media (hover: hover) and (pointer: fine) {
  .founding-offer-note a:hover {
    opacity: .7;
  }
}

.founding-offer-note-seal {
  width: 2rem;
  height: 2rem;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.founding-claimed {
  text-align: center;
  flex-direction: column;
  align-items: center;
  padding-top: 1rem;
  animation: .3s fade-in;
  display: flex;
}

.founding-claimed a.form-button {
  box-sizing: border-box;
  color: var(--button-text);
  margin-top: 1.75rem;
  display: block;
}

.founding-claimed a.form-button:visited {
  color: var(--button-text);
}

.founding-claimed-seal {
  width: 4.5rem;
  height: 4.5rem;
  color: var(--accent-gold);
}

.founding-claimed-title {
  letter-spacing: -.01em;
  margin: 1.1rem 0 .5rem;
  font-size: 1.35rem;
  font-weight: 600;
}

.founding-claimed-body {
  max-width: 36ch;
  color: var(--text-secondary);
  margin: 0;
  font-size: .95rem;
  line-height: 1.55;
}

.create-channel-description {
  resize: none;
  min-height: 140px;
}

.card-view-page {
  justify-content: center;
  align-items: center;
  min-height: 100dvh;
  display: flex;
}

.error-link {
  text-align: center;
}

.error-link a.form-button {
  color: var(--button-text);
  padding: .875rem 2rem;
  text-decoration: none;
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .error-link a.form-button:hover {
    color: var(--button-text);
  }
}

.error-link a.form-button:visited {
  color: var(--button-text);
}

.invite-card .invite-price-line {
  color: var(--text-secondary);
}

.invite-card .form-button, .invite-card a.form-button {
  color: var(--button-text);
  margin-top: 1.5rem;
  padding: .875rem 2rem;
  text-decoration: none;
  display: inline-block;
}

.invite-card .form-button:visited, .invite-card a.form-button:visited {
  color: var(--button-text);
}

.invite-card .form-error {
  margin-top: 1rem;
}

.signin-closing {
  margin-bottom: 1rem;
}

.signin-closing-actions {
  gap: .625rem;
  margin-top: .75rem;
  display: flex;
}

.signin-closing-actions .form-button {
  margin-top: 0;
}

@media (width <= 640px) {
  .cookie-modal-overlay {
    align-items: stretch;
    padding: 0;
  }
}

.cookie-modal {
  width: 90%;
  max-width: 600px;
}

@media (width <= 640px) {
  .cookie-modal {
    border-radius: 0;
    width: 100%;
    height: 100%;
    max-height: 100vh;
  }
}

.cookie-modal-content {
  text-align: left;
  padding: 30px;
}

.cookie-modal-title {
  color: var(--text-color);
  margin: 0 0 10px;
  font-size: 32px;
  font-weight: 600;
}

.cookie-modal-description {
  color: var(--text-secondary);
  margin: 0 0 30px;
  font-size: 16px;
  line-height: 1.2;
}

.cookie-modal-footer {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.3;
}

.cookie-modal-footer:last-of-type {
  margin-bottom: 30px;
}

.cookie-category {
  border-bottom: 1px solid var(--border-color);
  padding: 20px 0;
}

.cookie-category:first-child {
  padding-top: 0;
}

.cookie-category:last-child {
  border-bottom: none;
}

.category-header {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.category-name {
  color: var(--text-color);
  font-size: 16px;
  font-weight: 500;
}

.category-status {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
}

.toggle-switch {
  cursor: pointer;
  width: 52px;
  height: 28px;
  display: inline-block;
  position: relative;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch input:checked + .toggle-slider {
  background-color: var(--accent-gold);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(24px);
}

.toggle-switch input:focus + .toggle-slider {
  box-shadow: 0 0 0 2px rgba(var(--accent-gold), .2);
}

.toggle-slider {
  background-color: var(--border-color);
  border-radius: 28px;
  transition: background-color .18s;
  position: absolute;
  inset: 0;
}

.toggle-slider:before {
  content: "";
  background-color: var(--bg-color);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  transition: transform .18s;
  position: absolute;
  bottom: 4px;
  left: 4px;
}

.cookie-settings-link {
  color: var(--text-color);
  cursor: pointer;
  font-size: 14px;
  text-decoration: underline;
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .cookie-settings-link:hover {
    color: var(--accent-gold);
  }
}

.cookie-modal-actions {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

@media (width <= 640px) {
  .cookie-modal-actions {
    flex-direction: column-reverse;
  }
}

.btn {
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 500;
  transition: background-color .18s, border-color .18s;
}

@media (width <= 640px) {
  .btn {
    width: 100%;
    min-width: auto;
  }
}

.btn-primary {
  background-color: var(--button-bg);
  color: var(--button-text);
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover {
    background-color: var(--button-hover);
  }

  .btn-primary:active {
    opacity: .9;
  }
}

.btn-secondary {
  color: var(--button-bg);
  border: 1px solid var(--button-bg);
  background-color: #0000;
}

@media (hover: hover) and (pointer: fine) {
  .btn-secondary:hover {
    background-color: var(--border-color);
  }

  .btn-secondary:active {
    opacity: .8;
  }
}

@media (width <= 768px) {
  .locale-modal-overlay {
    align-items: stretch;
    padding: 0;
  }
}

.locale-modal {
  width: 100%;
  max-width: 720px;
}

@media (width <= 768px) {
  .locale-modal {
    height: 100%;
    max-height: 100vh;
  }
}

.locale-modal-content {
  text-align: left;
  padding: 30px;
}

.locale-modal-header {
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 30px;
  display: flex;
}

.locale-modal-title {
  color: var(--text-color);
  flex: 1;
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}

.locale-modal-close {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  margin-left: 16px;
  padding: 0;
  transition: color .18s;
  display: flex;
}

.locale-modal-close svg {
  width: 24px;
  height: 24px;
}

@media (hover: hover) and (pointer: fine) {
  .locale-modal-close:hover {
    color: var(--text-color);
  }
}

.locale-regions {
  flex-direction: column;
  gap: 32px;
  display: flex;
}

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

.locale-region-title {
  color: var(--text-color);
  margin: 0;
  font-size: 20px;
  font-weight: 600;
}

.locale-region-list {
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  display: grid;
}

@media (width <= 768px) {
  .locale-region-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 480px) {
  .locale-region-list {
    grid-template-columns: 1fr;
  }
}

.locale-item {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  text-align: left;
  background: none;
  padding: 12px 16px;
  font-family: inherit;
  transition: all .18s;
}

@media (hover: hover) and (pointer: fine) {
  .locale-item:hover {
    background: var(--border-color);
    border-color: var(--text-secondary);
  }
}

.locale-item:focus {
  box-shadow: 0 0 0 2px rgba(var(--accent-gold), .2);
  border-color: var(--accent-gold);
  outline: none;
}

.locale-item-active {
  background: rgba(var(--accent-gold), .1);
  border-color: var(--accent-gold);
}

@media (hover: hover) and (pointer: fine) {
  .locale-item-active:hover {
    background: rgba(var(--accent-gold), .15);
    border-color: var(--accent-gold);
  }
}

.locale-name {
  color: var(--text-color);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.4;
}

@media (width <= 640px) {
  .locale-modal {
    max-width: 100%;
    margin: 0;
  }

  .locale-modal-content {
    padding: 24px;
  }

  .locale-modal-title {
    font-size: 24px;
  }

  .locale-regions {
    gap: 24px;
  }

  .locale-region-title {
    font-size: 18px;
  }

  .locale-item {
    padding: 10px 14px;
  }

  .locale-name {
    font-size: 14px;
  }
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
}

.doc-header h1, .doc-section h2 {
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-weight: 400;
}

.top-bar.doc-top-bar {
  padding-inline: max(3rem, 50% - 720px);
}

@media (width <= 768px) {
  .top-bar.doc-top-bar {
    padding-inline: 1.5rem;
  }
}

.doc-page-layout {
  align-items: flex-start;
  gap: 3rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 3rem 6rem;
  display: flex;
}

@media (width <= 1024px) {
  .doc-page-layout {
    flex-direction: column;
    padding: 2rem 1.8rem;
  }
}

.doc-page-layout--with-top-bar {
  padding-top: calc(3rem + 57px);
}

@media (width <= 1024px) {
  .doc-page-layout--with-top-bar {
    padding-top: calc(2rem + 57px);
  }
}

.doc-sidebar {
  flex-shrink: 0;
  width: 280px;
  display: block;
}

@media (width <= 1024px) {
  .doc-sidebar {
    display: none;
  }
}

.doc-sidebar-sticky {
  position: sticky;
  top: 2rem;
}

.doc-page-layout--with-top-bar .doc-sidebar-sticky {
  top: calc(2rem + 57px);
}

.doc-toc {
  text-align: left;
}

.doc-toc h2 {
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  font-size: .75rem;
  font-weight: 300;
}

@media (width <= 375px) {
  .doc-toc h2 {
    font-size: .7rem;
  }
}

.doc-toc ol {
  margin: 0;
  padding: 0 0 0 1.25rem;
  list-style: decimal;
}

.doc-toc ol li {
  color: var(--text-secondary);
  text-align: left;
  margin-bottom: 1rem;
  padding-left: .5rem;
}

.doc-toc ol li:last-child {
  margin-bottom: 0;
}

.doc-toc ol li.active, .doc-toc ol li.active a {
  color: var(--text-color);
  font-weight: 500;
}

.doc-toc ol li a {
  color: var(--text-secondary);
  font-size: .875rem;
  line-height: 1.3;
  text-decoration: none;
  transition: color .18s;
  display: inline;
}

@media (width <= 375px) {
  .doc-toc ol li a {
    font-size: .8rem;
  }
}

.doc-toc ol li a:hover {
  color: var(--text-color);
}

.doc-main {
  flex: 1;
  min-width: 0;
}

.doc-container {
  text-align: left;
  max-width: 900px;
  line-height: 1.2;
}

.doc-header {
  margin-bottom: 3rem;
}

.doc-header h1 {
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  margin: 0 0 1rem;
  padding-bottom: .75rem;
  font-size: 2.5rem;
}

@media (width <= 768px) {
  .doc-header h1 {
    font-size: 2rem;
  }
}

@media (width <= 375px) {
  .doc-header h1 {
    font-size: 1.65rem;
  }
}

.doc-meta {
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: .875rem;
  display: flex;
}

@media (width <= 480px) {
  .doc-meta {
    flex-wrap: wrap;
  }
}

@media (width <= 375px) {
  .doc-meta {
    font-size: .8rem;
  }
}

.doc-version {
  color: var(--text-color);
  font-weight: 500;
}

.doc-date {
  color: var(--text-secondary);
}

.doc-toc-mobile {
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 3rem;
  padding: 2rem;
  display: none;
}

@media (width <= 1024px) {
  .doc-toc-mobile {
    display: block;
  }
}

@media (width <= 375px) {
  .doc-toc-mobile {
    padding: 2rem 0;
  }
}

.doc-toc-mobile h2 {
  color: var(--text-color);
  margin: 0 0 1rem;
  font-size: 1.25rem;
  font-weight: 300;
}

@media (width <= 375px) {
  .doc-toc-mobile h2 {
    font-size: 1.1rem;
  }
}

.doc-toc-mobile ol {
  margin: 0;
  padding-left: 1.5rem;
}

.doc-toc-mobile ol li {
  color: var(--text-secondary);
  margin-bottom: .75rem;
}

.doc-toc-mobile ol li:last-child {
  margin-bottom: 0;
}

.doc-toc-mobile ol li a {
  color: var(--text-color);
  font-size: 1rem;
  text-decoration: none;
  transition: color .18s;
}

@media (width <= 375px) {
  .doc-toc-mobile ol li a {
    font-size: .9rem;
  }
}

.doc-toc-mobile ol li a:hover {
  color: var(--text-secondary);
}

.doc-content section {
  scroll-margin-top: 2rem;
}

.doc-page-layout--with-top-bar .doc-content section {
  scroll-margin-top: calc(2rem + 57px);
}

.doc-section {
  margin-bottom: 3rem;
  font-weight: normal;
}

.doc-section h2 {
  color: var(--text-color);
  border-bottom: 1px solid var(--border-color);
  margin: 2.5rem 0 1.5rem;
  padding-bottom: .75rem;
  font-size: 1.75rem;
  position: relative;
}

@media (width <= 768px) {
  .doc-section h2 {
    font-size: 1.5rem;
  }
}

@media (width <= 375px) {
  .doc-section h2 {
    font-size: 1.3rem;
  }
}

.doc-section h2 .section-anchor {
  opacity: 0;
  color: var(--text-secondary);
  text-decoration: none;
  transition: opacity .18s, color .18s;
  position: absolute;
  top: 0;
  left: -1.5rem;
}

@media (width <= 768px) {
  .doc-section h2 .section-anchor {
    left: -1.25rem;
  }
}

.doc-section h2 .section-anchor:hover {
  color: var(--text-color);
}

.doc-section h2:hover .section-anchor {
  opacity: 1;
}

.doc-section h3 {
  color: var(--text-color);
  margin: 2rem 0 1rem;
  font-size: 1.35rem;
  font-weight: normal;
}

@media (width <= 768px) {
  .doc-section h3 {
    font-size: 1.2rem;
  }
}

@media (width <= 375px) {
  .doc-section h3 {
    font-size: 1.05rem;
  }
}

.doc-section h4 {
  color: var(--text-color);
  margin: 1.5rem 0 1rem;
  font-size: 1.1rem;
  font-weight: normal;
}

@media (width <= 768px) {
  .doc-section h4 {
    font-size: 1rem;
  }
}

@media (width <= 375px) {
  .doc-section h4 {
    font-size: .95rem;
  }
}

.doc-section p {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: 1rem;
}

@media (width <= 375px) {
  .doc-section p {
    font-size: .9rem;
  }
}

.doc-section p:last-child {
  margin-bottom: 0;
}

.doc-section ul, .doc-section ol {
  color: var(--text-secondary);
  margin: 1rem 0;
  padding-left: 1.5rem;
  font-size: 1rem;
}

@media (width <= 375px) {
  .doc-section ul, .doc-section ol {
    font-size: .9rem;
  }
}

.doc-section ul li, .doc-section ol li {
  margin-bottom: .5rem;
}

.doc-section ul li:last-child, .doc-section ol li:last-child {
  margin-bottom: 0;
}

.doc-section ul li strong, .doc-section ol li strong, .doc-section strong {
  color: var(--text-color);
  font-weight: 500;
}

.doc-section a {
  color: var(--text-color);
  border-bottom: 1px solid var(--text-secondary);
  text-decoration: none;
  transition: border-color .18s;
}

.doc-section a:hover {
  border-bottom-color: var(--text-color);
}

.doc-note {
  opacity: .75;
  margin-top: .35rem;
  font-size: .8em;
  font-style: italic;
  display: block;
}

.doc-footer {
  border-top: 1px solid var(--border-color);
  text-align: center;
  margin-top: 4rem;
  padding-top: 2rem;
}

.doc-footer p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .875rem;
}

@media (width <= 375px) {
  .doc-footer p {
    font-size: .8rem;
  }
}

.doc-overview-hero-left h1, .doc-item h3 {
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-weight: 400;
}

.doc-overview-main {
  max-width: 1200px;
  margin: 0 auto;
}

.doc-page-layout:has(.doc-overview-main) {
  background: var(--bg-color);
  max-width: 100%;
}

.doc-overview-hero {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 3rem;
  margin-bottom: 6rem;
  display: grid;
}

@media (width <= 968px) {
  .doc-overview-hero {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
  }
}

.doc-overview-hero .doc-overview-hero-left h1 {
  color: var(--text-color);
  letter-spacing: -.02em;
  margin: 0;
  font-size: 3rem;
  line-height: 1.15;
}

@media (width <= 968px) {
  .doc-overview-hero .doc-overview-hero-left h1 {
    font-size: 2.5rem;
  }
}

@media (width <= 768px) {
  .doc-overview-hero .doc-overview-hero-left h1 {
    font-size: 2rem;
  }
}

@media (width <= 375px) {
  .doc-overview-hero .doc-overview-hero-left h1 {
    font-size: 1.5rem;
  }
}

.doc-overview-hero .doc-overview-hero-left .doc-overview-subtitle {
  color: var(--text-color);
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 400;
}

@media (width <= 375px) {
  .doc-overview-hero .doc-overview-hero-left .doc-overview-subtitle {
    font-size: .9rem;
  }
}

.doc-overview-hero .doc-overview-hero-right {
  align-items: start;
  display: flex;
}

@media (width >= 969px) {
  .doc-overview-hero .doc-overview-hero-right {
    padding-top: 4rem;
  }
}

.doc-overview-hero .doc-overview-hero-right p {
  color: var(--text-color);
  margin: 0;
  font-size: 1.375rem;
  font-weight: 300;
  line-height: 1.5;
}

@media (width <= 968px) {
  .doc-overview-hero .doc-overview-hero-right p {
    font-size: 1.2rem;
  }
}

@media (width <= 768px) {
  .doc-overview-hero .doc-overview-hero-right p {
    font-size: 1.15rem;
  }
}

@media (width <= 375px) {
  .doc-overview-hero .doc-overview-hero-right p {
    font-size: 1rem;
  }
}

.doc-documents {
  background: var(--legal-section-bg);
  width: 100%;
  padding: 5rem 6rem 6rem;
}

@media (width <= 1024px) {
  .doc-documents {
    padding: 3rem 1.8rem;
  }
}

@media (width <= 768px) {
  .doc-documents {
    padding: 3rem 2rem;
  }
}

@media (width <= 375px) {
  .doc-documents {
    padding: 3rem 1.5rem;
  }
}

.doc-documents .doc-documents-inner {
  grid-template-columns: 200px 1fr;
  gap: 6rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
}

@media (width <= 968px) {
  .doc-documents .doc-documents-inner {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.doc-documents h2 {
  color: var(--legal-section-text);
  margin: 0;
  padding-top: .25rem;
  font-size: 1.5rem;
  font-weight: 400;
}

@media (width <= 768px) {
  .doc-documents h2 {
    font-size: 1.35rem;
  }
}

@media (width <= 375px) {
  .doc-documents h2 {
    font-size: 1.2rem;
  }
}

@media (width <= 968px) {
  .doc-documents h2.doc-documents-title {
    display: none;
  }
}

.doc-documents .doc-documents-list {
  text-align: left;
  flex-direction: column;
  display: flex;
}

.doc-item {
  border-bottom: 1px solid var(--legal-section-border);
  text-align: left;
  padding: 2.5rem 0;
}

.doc-item:first-child {
  padding-top: 0;
}

.doc-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.doc-item h3 {
  color: var(--legal-section-text);
  letter-spacing: -.01em;
  text-align: left;
  margin: 0 0 1.25rem;
  font-size: 2rem;
  line-height: 1.2;
}

@media (width <= 768px) {
  .doc-item h3 {
    font-size: 1.65rem;
  }
}

@media (width <= 375px) {
  .doc-item h3 {
    font-size: 1.4rem;
  }
}

.doc-item p {
  color: var(--legal-section-text);
  text-align: left;
  max-width: 650px;
  margin: 0 0 1.5rem;
  font-size: 1rem;
  line-height: 1.65;
}

@media (width <= 375px) {
  .doc-item p {
    font-size: .9rem;
  }
}

.doc-item a {
  color: var(--legal-section-text);
  align-items: center;
  gap: .5rem;
  font-size: 1rem;
  font-weight: 400;
  text-decoration: none;
  transition: opacity .18s;
  display: inline-flex;
}

@media (width <= 375px) {
  .doc-item a {
    font-size: .9rem;
  }
}

@media (hover: hover) and (pointer: fine) {
  .doc-item a:hover {
    opacity: .65;
  }
}

.doc-item a:after {
  content: "→";
  font-size: 1.2rem;
  font-weight: 300;
}

@media (width <= 375px) {
  .doc-item a:after {
    font-size: 1.1rem;
  }
}

.site-footer {
  background-color: var(--bg-color);
  width: 100%;
  margin-top: auto;
  padding: 2rem 3rem;
}

@media (width <= 768px) {
  .site-footer {
    padding: 1.5rem;
  }
}

.footer-container {
  border-top: 1px solid var(--border-color);
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1440px;
  margin: 0 auto;
  padding-top: 2rem;
  display: flex;
}

@media (width <= 768px) {
  .footer-container {
    gap: 1rem;
  }
}

.footer-top {
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
  display: flex;
}

@media (width <= 768px) {
  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

.footer-copyright {
  color: var(--text-secondary);
  white-space: nowrap;
  font-size: .85rem;
}

@media (width <= 768px) {
  .footer-copyright {
    font-size: .8rem;
  }
}

.footer-nav {
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  display: flex;
}

@media (width <= 768px) {
  .footer-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
  }
}

.footer-link {
  color: var(--text-color);
  white-space: nowrap;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  font-size: .85rem;
  text-decoration: none;
  transition: color .18s;
}

.footer-link:hover {
  color: var(--text-secondary);
}

@media (width <= 768px) {
  .footer-link {
    font-size: .8rem;
  }
}

.footer-cookie-btn {
  text-align: left;
}

.footer-locale {
  color: var(--text-color);
  cursor: pointer;
  background: none;
  border: none;
  align-items: center;
  gap: .5rem;
  padding: 0;
  font-family: inherit;
  font-size: .85rem;
  transition: color .18s;
  display: flex;
}

.footer-locale:hover {
  color: var(--text-secondary);
}

@media (width <= 768px) {
  .footer-locale {
    font-size: .8rem;
  }
}

.footer-locale-text {
  white-space: nowrap;
}

.footer-locale-text-full {
  display: inline;
}

@media (width <= 375px) {
  .footer-locale-text-full {
    display: none;
  }
}

html:has(.founding) {
  scroll-behavior: smooth;
}

.founding {
  text-align: left;
  --founding-gold-ink: #8a6d1c;
  --founding-steps-bg: color-mix(in srgb, var(--button-bg) 5%, var(--bg-color));
  width: 100%;
  position: relative;
  overflow-x: clip;
}

@media (prefers-color-scheme: dark) {
  .founding {
    --founding-gold-ink: var(--accent-gold);
  }
}

.founding ::selection {
  background-color: color-mix(in srgb, var(--button-bg) 32%, transparent);
}

.founding :where(h1, h2, h3) {
  text-wrap: balance;
  margin: 0;
}

.founding :where(p) {
  text-wrap: pretty;
  margin: 0;
}

.founding .top-bar {
  box-shadow: none;
  background-color: #0000;
  padding: 1rem clamp(.875rem, 3.5vw, 2rem);
  position: absolute;
}

.founding-container {
  width: 100%;
  max-width: 1080px;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.founding-title, .founding-heading, .founding-why-heading, .founding-why-item h3, .founding-close-inner h2 {
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-weight: 600;
}

.founding-hero {
  text-align: center;
  justify-content: center;
  align-items: center;
  min-height: 100svh;
  padding: calc(53px + 2rem) clamp(1.25rem, 5vw, 2.5rem) 4rem;
  display: flex;
  position: relative;
}

.founding-hero:before, .founding-hero:after {
  content: "";
  pointer-events: none;
  animation: 1.4s cubic-bezier(.16, 1, .3, 1) both fade-in;
  position: absolute;
}

.founding-hero:before {
  background: radial-gradient(closest-side, var(--bg-glow-violet), transparent 72%);
  width: min(920px, 120vw);
  height: min(720px, 95vw);
  top: -18%;
  left: 50%;
  transform: translateX(-64%);
}

.founding-hero:after {
  background: radial-gradient(closest-side, var(--bg-glow-gold), transparent 72%);
  width: min(660px, 85vw);
  height: min(560px, 80vw);
  animation-delay: .15s;
  top: 24%;
  right: -14%;
}

.founding-hero-inner {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  max-width: 56rem;
  display: flex;
  position: relative;
}

.founding-hero-inner > * {
  animation: .64s cubic-bezier(.16, 1, .3, 1) both founding-hero-in;
}

.founding-hero-inner > :nth-child(2) {
  animation-delay: 80ms;
}

.founding-hero-inner > :nth-child(3) {
  animation-delay: .16s;
}

.founding-hero-inner > :nth-child(4) {
  animation-delay: .24s;
}

.founding-hero-inner > :nth-child(5) {
  animation-delay: .32s;
}

.founding-hero-inner > :nth-child(6) {
  animation-delay: .4s;
}

@keyframes founding-hero-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.founding-closed-notice {
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 44rem;
  margin-bottom: 1.75rem;
  padding: .8rem 1.15rem;
  font-size: .95rem;
  font-weight: 500;
  line-height: 1.5;
}

.founding-kicker {
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  font-size: 1rem;
  font-weight: 600;
}

.founding-title {
  letter-spacing: -.02em;
  max-width: 15ch;
  font-size: clamp(2.55rem, 1.5rem + 5.2vw, 4.6rem);
  line-height: 1.06;
}

.founding-title-amount {
  color: var(--founding-gold-ink);
}

.founding-sub {
  color: var(--text-secondary);
  max-width: 44rem;
  margin-top: 1.75rem;
  font-size: clamp(1.0625rem, 1rem + .5vw, 1.25rem);
  line-height: 1.6;
}

.founding-cta-row {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 1.1rem 2rem;
  margin-top: 2.75rem;
  display: flex;
}

.founding-cta {
  letter-spacing: .01em;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  padding: 1.05rem 2.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s;
  display: inline-block;
}

.founding-cta:visited {
  color: var(--button-text);
}

.founding-cta:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .founding-cta:hover {
    background-color: var(--button-hover);
  }

  .founding-cta:active {
    transform: translateY(1px);
  }
}

.founding-cta-secondary {
  color: var(--text-color);
  text-underline-offset: 4px;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--border-color);
  text-decoration-color: var(--border-color);
  font-size: 1rem;
  font-weight: 500;
  transition: text-decoration-color .18s;
}

.founding-cta-secondary:visited {
  color: var(--text-color);
}

.founding-cta-secondary:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
  border-radius: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .founding-cta-secondary:hover {
    -webkit-text-decoration-color: var(--founding-gold-ink);
    text-decoration-color: var(--founding-gold-ink);
  }
}

.founding-hero-note {
  color: var(--text-secondary);
  margin-top: 1.5rem;
  font-size: .9rem;
}

.founding-heading {
  letter-spacing: -.015em;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: clamp(1.9rem, 1.3rem + 2.2vw, 2.6rem);
  line-height: 1.08;
}

.founding-deal {
  padding-block: clamp(4rem, 9vw, 6.5rem);
  scroll-margin-top: 1.5rem;
}

.founding-deal .founding-heading {
  margin-bottom: 1rem;
}

.founding-deal-rule {
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: clamp(2rem, 5vw, 3rem);
  font-size: 1.0625rem;
  line-height: 1.6;
}

.founding-deal-row {
  border-top: 1px solid var(--border-color);
  grid-template-columns: minmax(240px, 340px) 1fr;
  align-items: start;
  gap: 1rem clamp(1.5rem, 4vw, 4rem);
  padding-block: clamp(1.75rem, 4vw, 2.5rem);
  display: grid;
}

.founding-deal-row h3 {
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
}

.founding-deal-row p {
  color: var(--text-secondary);
  max-width: 58ch;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.founding-deal-row:last-child {
  border-bottom: 1px solid var(--border-color);
}

@media (width <= 768px) {
  .founding-deal-row {
    grid-template-columns: 1fr;
    gap: .6rem;
  }
}

.founding-deal-row--fee h3 {
  color: var(--founding-gold-ink);
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.7rem);
  font-weight: 700;
}

.founding-deal-row--badge {
  grid-template-columns: minmax(240px, 340px) 1fr auto;
  align-items: center;
}

@media (width <= 768px) {
  .founding-deal-row--badge {
    grid-template-columns: 1fr;
    justify-items: start;
  }
}

.founding-badge {
  color: var(--accent-gold);
  margin-inline: clamp(0rem, 2vw, 1.5rem);
}

@media (width <= 768px) {
  .founding-badge {
    margin-top: .75rem;
    width: 72px;
    height: 72px;
    margin-inline: 0;
  }
}

.founding-why {
  background-color: #6d28d9;
  background-image: radial-gradient(4.5rem at 68% 76%, #0000 96%, #ffffff1a 97% 100%, #0000 101%), radial-gradient(75% 95% at 88% 6%, #9b6ff061, #0000 65%), radial-gradient(85% 95% at 6% 96%, #2e106580, #0000 65%);
  padding-block: clamp(4.5rem, 10vw, 7rem);
  position: relative;
  overflow: hidden;
}

.founding-why:before {
  content: "";
  pointer-events: none;
  border: 2px dotted #ffffff29;
  border-radius: 50%;
  width: 44rem;
  height: 44rem;
  position: absolute;
  top: -16rem;
  right: -14rem;
}

.founding-why:after {
  content: "";
  outline-offset: 2.75rem;
  pointer-events: none;
  border: 2px dotted #ffffff24;
  border-radius: 50%;
  outline: 1.5px solid #ffffff17;
  width: 32rem;
  height: 32rem;
  position: absolute;
  bottom: -18rem;
  left: -12rem;
}

.founding-why .founding-container {
  z-index: 1;
  flex-direction: column;
  gap: clamp(3rem, 7vw, 5rem);
  display: flex;
  position: relative;
}

.founding-why-heading {
  letter-spacing: -.015em;
  color: #fff;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.06;
}

.founding-why-item {
  max-width: 38rem;
}

.founding-why-item h3 {
  letter-spacing: -.01em;
  color: #fff;
  font-size: clamp(1.6rem, 1.2rem + 2vw, 2.3rem);
  line-height: 1.15;
}

.founding-why-item p {
  letter-spacing: .01em;
  color: #ffffffeb;
  margin-top: 1rem;
  font-size: 1.125rem;
  line-height: 1.65;
}

@media (width >= 768px) {
  .founding-why-item--right {
    text-align: end;
    margin-inline-start: auto;
  }
}

.founding-why-manifesto {
  color: #fff;
  text-underline-offset: 4px;
  align-self: flex-start;
  font-size: 1.0625rem;
  font-weight: 600;
  -webkit-text-decoration: underline #ffffff73;
  text-decoration: underline #ffffff73;
  transition: text-decoration-color .18s;
}

.founding-why-manifesto:visited {
  color: #fff;
}

.founding-why-manifesto:focus-visible {
  outline-offset: 2px;
  border-radius: 2px;
  outline: 2px solid #fff;
}

@media (hover: hover) and (pointer: fine) {
  .founding-why-manifesto:hover {
    text-decoration-color: #fff;
  }
}

.founding-pay {
  padding-block: clamp(4.5rem, 10vw, 7rem) clamp(3.5rem, 8vw, 5.5rem);
}

@media (width >= 968px) {
  .founding-pay-inner {
    grid-template-columns: minmax(260px, 360px) 1fr;
    align-items: start;
    column-gap: clamp(3rem, 7vw, 6rem);
    display: grid;
  }

  .founding-pay-inner .founding-heading {
    margin-bottom: 1.25rem;
  }
}

.founding-pay-sub {
  color: var(--text-secondary);
  max-width: 58ch;
  margin-bottom: clamp(2rem, 5vw, 2.75rem);
  font-size: clamp(1.0625rem, 1rem + .4vw, 1.1875rem);
  line-height: 1.6;
}

@media (width >= 968px) {
  .founding-pay-points {
    padding-top: .55rem;
  }
}

.founding-pill {
  white-space: nowrap;
  color: var(--text-color);
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: .4rem .9rem;
  font-size: .875rem;
  font-weight: 600;
}

.founding-pill--you {
  color: var(--founding-gold-ink);
  border-color: color-mix(in srgb, var(--accent-gold) 55%, var(--border-color));
}

.founding-pill--processor {
  opacity: .55;
  text-decoration: line-through;
}

.founding-pay-diagram {
  flex-direction: column;
  align-items: center;
  gap: .9rem;
  max-width: 24rem;
  margin-block: 2.25rem 2.5rem;
  display: flex;
}

.founding-pay-diagram-row {
  align-items: center;
  gap: .7rem;
  width: 100%;
  display: flex;
}

.founding-diagram-line {
  min-width: 3.5rem;
  color: var(--accent-gold);
  flex: 1;
  justify-content: center;
  align-items: center;
  display: flex;
  position: relative;
}

.founding-diagram-line:before {
  content: "";
  inset-inline: 0 .45rem;
  border-top: 2px dotted color-mix(in srgb, var(--button-bg) 55%, transparent);
  position: absolute;
  top: 50%;
}

.founding-diagram-line:after {
  content: "";
  inset-inline-end: 1px;
  border-right: 2px solid color-mix(in srgb, var(--button-bg) 70%, transparent);
  border-bottom: 2px solid color-mix(in srgb, var(--button-bg) 70%, transparent);
  transform-origin: center;
  width: .5rem;
  height: .5rem;
  position: absolute;
  top: 50%;
  transform: translateY(-50%)rotate(-45deg);
}

.founding-diagram-line svg {
  background-color: var(--bg-color);
  box-sizing: content-box;
  padding-inline: .3rem;
  position: relative;
}

.founding-pay-point {
  max-width: 62ch;
  padding-inline: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.founding-pay-point strong {
  font-weight: 700;
}

.founding-pay-point + .founding-pay-point {
  margin-top: 1.1rem;
}

.founding-pay-note, .founding-steps-note {
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-width: 62ch;
  margin-top: clamp(2rem, 5vw, 2.75rem);
  padding: 1.25rem 1.5rem;
  font-size: 1rem;
  line-height: 1.6;
  display: block;
}

.founding-terms {
  padding-block: clamp(2.5rem, 6vw, 4rem) clamp(4rem, 9vw, 6rem);
}

.founding-terms-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: clamp(2rem, 5vw, 3.25rem);
  display: grid;
}

.founding-terms-item h3 {
  font-size: 1.25rem;
  font-weight: 600;
}

.founding-terms-item p {
  color: var(--text-secondary);
  margin-top: .6rem;
  font-size: 1rem;
  line-height: 1.6;
}

.founding-terms-tiers {
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: 1.1rem;
  display: flex;
}

.founding-steps-section {
  background-color: var(--founding-steps-bg);
  padding-block: clamp(3.5rem, 8vw, 5.5rem) clamp(4.5rem, 10vw, 7rem);
}

.founding-steps {
  counter-reset: founding-step;
  flex-direction: column;
  gap: clamp(2.5rem, 6vw, 3.75rem);
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  position: relative;
}

.founding-steps:before {
  content: "";
  border-left: 2px dotted color-mix(in srgb, var(--button-bg) 45%, transparent);
  position: absolute;
  top: .75rem;
  bottom: .9rem;
  left: calc(1.6rem - 1px);
}

.founding-steps li {
  counter-increment: founding-step;
  grid-template-columns: 3.2rem 1fr;
  align-items: start;
  gap: clamp(1.25rem, 3.5vw, 2.5rem);
  display: grid;
}

.founding-steps li:before {
  content: counter(founding-step);
  color: var(--button-bg);
  text-align: center;
  background-color: var(--founding-steps-bg);
  padding-block: .4rem;
  font-size: clamp(2.5rem, 2rem + 2vw, 3.4rem);
  font-weight: 700;
  line-height: .95;
}

@media (width <= 480px) {
  .founding-steps li {
    grid-template-columns: 2.5rem 1fr;
  }

  .founding-steps:before {
    left: calc(1.25rem - 1px);
  }
}

.founding-steps h3 {
  font-size: 1.35rem;
  font-weight: 600;
}

.founding-steps p {
  color: var(--text-secondary);
  max-width: 54ch;
  margin-top: .55rem;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.founding-url {
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: 999px;
  align-items: baseline;
  margin-top: 1rem;
  padding: .55rem 1.2rem;
  font-size: 1rem;
  font-weight: 600;
  display: inline-flex;
}

.founding-url-you {
  color: var(--founding-gold-ink);
}

.founding-close {
  text-align: center;
  padding-block: clamp(5rem, 12vw, 8rem) clamp(3.5rem, 8vw, 5.5rem);
  position: relative;
}

.founding-close:before {
  content: "";
  background: radial-gradient(closest-side, var(--bg-glow-violet), transparent 72%);
  pointer-events: none;
  width: min(760px, 100vw);
  height: min(520px, 70vw);
  position: absolute;
  bottom: -20%;
  left: 50%;
  transform: translateX(-50%);
}

.founding-close:after {
  content: "";
  background: radial-gradient(closest-side, var(--bg-glow-gold), transparent 72%);
  pointer-events: none;
  width: min(480px, 70vw);
  height: min(380px, 55vw);
  position: absolute;
  bottom: 4%;
  right: -10%;
}

.founding-close-inner {
  z-index: 1;
  flex-direction: column;
  align-items: center;
  display: flex;
  position: relative;
}

.founding-close-inner .founding-badge {
  margin-inline: 0;
  width: 60px;
  height: 60px;
  margin-bottom: 1.75rem;
}

.founding-close-inner h2 {
  letter-spacing: -.015em;
  max-width: 22ch;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.06;
}

.founding-close-body {
  color: var(--text-secondary);
  max-width: 56ch;
  margin-top: 1.4rem;
  font-size: 1.0625rem;
  line-height: 1.65;
}

.founding-close .founding-cta {
  margin-top: 2.5rem;
}

.founding-fine-print {
  color: var(--text-secondary);
  max-width: 64ch;
  margin-top: 2.75rem;
  font-size: .875rem;
  line-height: 1.6;
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .founding-heading, .founding-deal-rule, .founding-deal-row, .founding-why-item, .founding-why-manifesto, .founding-pay-sub, .founding-pay-diagram, .founding-pay-point, .founding-pay-note, .founding-terms-item, .founding-steps li, .founding-close-inner {
      animation: linear both founding-rise;
      animation-timeline: view();
      animation-range: entry 5% entry 45%;
    }
  }
}

@keyframes founding-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.manifesto-page {
  width: 100%;
  min-height: 100vh;
  color: var(--text-color);
  background-color: var(--bg-color);
  background-image: radial-gradient(60% 50% at 15% 10%, var(--bg-glow-gold), transparent 70%), radial-gradient(50% 45% at 90% 95%, var(--bg-glow-violet), transparent 70%);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  display: flex;
}

.manifesto-page .manifesto-content {
  text-align: left;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 600px;
  box-shadow: var(--shadow-dialog);
  border-radius: 16px;
  padding: 2.75rem 2.25rem 2.25rem;
  animation: .42s cubic-bezier(.16, 1, .3, 1) both slide-up;
}

.manifesto-page .manifesto-content h1 {
  color: var(--text-color);
  margin-bottom: 1rem;
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-size: 2.75rem;
  font-weight: 500;
}

.manifesto-page .manifesto-content .product-name {
  color: var(--accent-gold);
}

.manifesto-page .manifesto-content .tagline {
  color: var(--text-secondary);
  margin-bottom: 1.2rem;
  font-size: 1.375rem;
}

.manifesto-page .manifesto-content p {
  margin-bottom: 1rem;
  font-size: 1rem;
  font-weight: normal;
  line-height: 1.5;
}

.manifesto-page .manifesto-content .closing {
  color: var(--text-secondary);
  margin-bottom: 0;
  font-size: 1.375rem;
}

.manifesto-page .manifesto-content .manifesto-cta {
  letter-spacing: .01em;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  padding: 1.05rem 2.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s;
  display: inline-block;
}

.manifesto-page .manifesto-content .manifesto-cta:visited {
  color: var(--button-text);
}

.manifesto-page .manifesto-content .manifesto-cta:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .manifesto-page .manifesto-content .manifesto-cta:hover {
    background-color: var(--button-hover);
  }

  .manifesto-page .manifesto-content .manifesto-cta:active {
    transform: translateY(1px);
  }
}

.manifesto-page .manifesto-content .manifesto-cta {
  width: fit-content;
  margin: 2rem auto 0;
  display: block;
}

@media (width <= 400px) {
  .manifesto-page .manifesto-content {
    border-radius: 14px;
    padding: 2.25rem 1.25rem 1.75rem;
  }

  .manifesto-page .manifesto-content h1 {
    font-size: 2.25rem;
  }
}

.create-post-overlay {
  z-index: 100;
  background: var(--bg-color);
  animation: .24s cubic-bezier(.2, 0, 0, 1) fade-in;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.create-post-overlay--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards fade-out;
}

@media (width >= 768px) {
  body:has(.bottom-bar) .create-post-overlay .top-bar {
    padding-inline: max(.875rem, 50% - 18rem);
    left: 0;
  }
}

@media (width >= 1200px) {
  body:has(.bottom-bar) .create-post-overlay .top-bar {
    padding-inline: max(.875rem, 50% - 31rem);
  }
}

.create-post-container {
  padding-top: 3rem;
  overflow-x: clip;
}

.create-post-container .create-post-preview {
  width: calc(100vw - 1.5rem);
  max-width: 600px;
  margin-left: calc(50% - 50vw + .75rem);
}

@media (width >= 648px) {
  .create-post-container .create-post-preview {
    width: 100%;
    margin-left: 0;
  }
}

.create-post-container .main-preview {
  border: 1px solid var(--border-color);
  margin-top: 0;
}

@media (width >= 768px) {
  .create-post-container .card-view-card {
    max-width: 40rem;
  }
}

@media (width >= 1200px) {
  .create-post-container .card-view-card {
    max-width: 66rem;
  }

  .create-post-container .card-view-form {
    grid-template-columns: minmax(0, 4fr) minmax(0, 3fr);
    align-items: start;
    column-gap: 2.5rem;
    display: grid;
  }

  .create-post-container .card-view-form > .form-group:has(.create-post-preview) {
    grid-area: 1 / 1 / span 14;
  }

  .create-post-container .card-view-form > :not(.form-group:has(.create-post-preview)) {
    grid-column: 2;
  }
}

.file-input-hidden {
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}

select.form-input {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.75' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 1rem center;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
}

.caption-input {
  resize: none;
  min-height: 140px;
  line-height: 1.5;
}

.form-label.optional:after {
  content: none;
}

.video-player {
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  -webkit-touch-callout: none;
  width: 100%;
  max-height: 500px;
  display: block;
}

.progress-bar {
  background-color: var(--border-color);
  border-radius: 4px;
  width: 100%;
  height: .5rem;
  margin-top: .5rem;
  overflow: hidden;
}

.progress-fill {
  background-color: var(--button-bg);
  border-radius: 4px;
  width: 40%;
  height: 100%;
  animation: 1.4s cubic-bezier(.2, 0, 0, 1) infinite progress-indeterminate;
}

@keyframes progress-indeterminate {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(250%);
  }
}

.tag-overlay {
  z-index: 3;
  cursor: crosshair;
  position: absolute;
  inset: 0;
}

.tag-suggestion-box {
  cursor: pointer;
  background: none;
  border: 2px dotted #ffffffe6;
  border-radius: .6rem;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  position: absolute;
  transform: translate(-50%, -50%);
}

.tag-marker {
  color: #fff;
  white-space: nowrap;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  background-color: #000000bf;
  border: 0;
  border-radius: 1rem;
  padding: .2rem .5rem;
  font-family: inherit;
  font-size: .7rem;
  position: absolute;
  transform: translate(-50%, 1.5rem);
}

.tag-marker:before {
  content: "";
  background-color: var(--button-bg);
  border: 2px solid #fff;
  border-radius: .2rem;
  width: .75rem;
  height: .75rem;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.tag-marker--dragging {
  cursor: grabbing;
  opacity: .85;
}

.tag-marker--pending {
  background-color: var(--button-bg);
  pointer-events: none;
  border: 2px solid #fff;
  border-radius: .2rem;
  width: .75rem;
  height: .75rem;
  padding: 0;
  transform: translate(-50%, -50%);
}

.tag-marker--pending:before {
  content: none;
}

.tag-controls {
  flex-direction: column;
  gap: .5rem;
  margin-top: .5rem;
  display: flex;
}

.tag-controls-row {
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  display: flex;
}

.tag-people-button {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: inherit;
  cursor: pointer;
  border-radius: 1rem;
  padding: .35rem .75rem;
  font-size: .8rem;
}

.tag-people-button.active {
  background-color: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

.live-photo-pill {
  font: inherit;
  border: 1px solid var(--button-bg);
  background-color: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-radius: 1rem;
  align-items: center;
  gap: .3rem;
  padding: .35rem .75rem;
  font-size: .8rem;
  display: inline-flex;
}

.live-photo-pill.pending svg {
  display: none;
}

.live-photo-pill.pending:before {
  content: "";
  border: 2.5px solid color-mix(in srgb, var(--button-text) 30%, transparent);
  border-top-color: var(--button-text);
  will-change: transform;
  border-radius: 50%;
  width: .875rem;
  height: .875rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .live-photo-pill.pending:before {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.live-photo-pill--readonly {
  cursor: default;
}

.live-photo-pill--add {
  border-color: var(--border-color);
  background-color: var(--input-bg);
  color: inherit;
}

.captions-preset-row {
  margin-top: .75rem;
}

.captions-preset-row .toggle-row {
  gap: .5rem;
  width: auto;
  display: inline-flex;
}

.captions-preset-row .toggle-row-label {
  font-size: .8rem;
}

.captions-preset-row .toggle-track {
  border-radius: 20px;
  width: 36px;
  height: 20px;
}

.captions-preset-row .toggle-track:before {
  width: 14px;
  height: 14px;
  top: 3px;
  left: 3px;
}

.captions-preset-row .toggle-input:checked + .toggle-track:before {
  transform: translateX(16px);
}

.captions-burnt-in-hint {
  color: var(--text-secondary);
  margin: .35rem 0 0;
  font-size: .8rem;
}

.tag-hint {
  margin: 0;
}

.tag-search {
  flex-direction: column;
  gap: .35rem;
  display: flex;
  position: relative;
}

.tag-search-dropdown {
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 15rem;
  padding: .25rem;
  overflow-y: auto;
}

.tag-search-cancel {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  align-self: flex-start;
  padding: .25rem .6rem;
  font-size: .75rem;
  text-decoration: underline;
}

.tag-chips {
  flex-wrap: wrap;
  gap: .4rem;
  display: flex;
}

.tag-chip {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  border-radius: 1rem;
  align-items: center;
  gap: .3rem;
  padding: .2rem .3rem .2rem .6rem;
  font-size: .75rem;
  display: inline-flex;
}

.tag-chip-remove {
  background-color: var(--border-color);
  width: 1.1rem;
  height: 1.1rem;
  color: inherit;
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .8rem;
  line-height: 1;
  display: inline-flex;
}

.upload-item-list {
  --row-shift: calc(4.5rem + .5rem);
  flex-direction: column;
  margin-top: .75rem;
  display: flex;
}

.upload-item-row {
  max-height: 5rem;
  margin-bottom: .5rem;
  transition: transform .18s, opacity .18s, max-height .3s, margin-bottom .3s;
  position: relative;
  overflow: hidden;
}

.upload-item-row:last-child {
  margin-bottom: 0;
}

.upload-item-row.dragging {
  z-index: 10;
  pointer-events: none;
  opacity: .85;
  transition: none;
}

.upload-item-row.shift-up {
  transform: translateY(calc(-1 * var(--row-shift)));
}

.upload-item-row.shift-down {
  transform: translateY(var(--row-shift));
}

.upload-item-row.collapsing {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin-bottom: 0;
}

.upload-item-delete-bg {
  border-radius: var(--border-radius);
  background-color: var(--error-bg);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: visibility 0s .3s;
  display: flex;
  position: absolute;
  inset: 0;
}

.upload-item-row:has(.swiping, .swipe-complete) > .upload-item-delete-bg {
  visibility: visible;
  transition: visibility;
}

.upload-item-content {
  background-color: color-mix(in srgb, var(--text-color) 5%, var(--bg-color));
  border-radius: var(--border-radius);
  cursor: pointer;
  will-change: transform;
  border: 2px solid #0000;
  align-items: center;
  gap: .75rem;
  padding: .5rem;
  transition: transform .3s, border-color .18s;
  display: flex;
  position: relative;
}

.upload-item-content.swiping {
  transition: border-color .18s;
}

.upload-item-content.swipe-complete {
  transform: translateX(-100%);
}

.upload-item-content.active {
  border-color: var(--button-bg);
}

@media (hover: hover) and (pointer: fine) {
  .upload-item-content:hover:not(.active) {
    border-color: var(--border-color);
  }
}

.upload-item-thumbnail {
  border-radius: var(--border-radius);
  background-color: var(--bg-color);
  flex-shrink: 0;
  width: 3.5rem;
  height: 3.5rem;
  position: relative;
  overflow: hidden;
}

.upload-item-media {
  object-fit: cover;
  -webkit-touch-callout: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
  display: block;
}

.upload-item-explicit {
  appearance: none;
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  font: inherit;
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border-radius: 999px;
  flex-shrink: 0;
  align-items: center;
  gap: .3rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  font-weight: 500;
  line-height: 1.2;
  transition: background-color .18s, border-color .18s, color .18s;
  display: inline-flex;
}

.upload-item-explicit:active {
  transform: scale(.95);
}

@media (hover: hover) and (pointer: fine) {
  .upload-item-explicit:hover:not(.active) {
    background: var(--input-bg);
  }
}

.upload-item-explicit.active {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: var(--accent-gold-text);
}

.upload-item-status {
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
}

.upload-item-spinner {
  border: 2.5px solid color-mix(in srgb, var(--button-bg) 30%, transparent);
  border-top-color: var(--button-bg);
  will-change: transform;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .upload-item-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.upload-item-spinner {
  border-color: var(--border-color);
  border-top-color: var(--button-bg);
}

.upload-item-progress {
  background: radial-gradient(closest-side, var(--post-card-bg) 65%, transparent 66% 100%), conic-gradient(var(--button-bg) var(--transcode-progress, 0%), var(--border-color) 0);
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
}

.upload-item-check {
  background-color: var(--accent-success);
  color: #fff;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.25rem;
  height: 1.25rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) dot-in;
  display: flex;
}

.upload-item-error-icon {
  color: var(--accent-error);
  font-size: 1rem;
  font-weight: bold;
}

.upload-item-drag-handle {
  width: 3.5rem;
  color: var(--text-secondary);
  cursor: grab;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  margin-left: auto;
  padding-right: .25rem;
  font-size: 2rem;
  display: flex;
}

.upload-item-drag-handle:active {
  cursor: grabbing;
}

.upload-item-add {
  border: 2px dashed var(--border-color);
  border-radius: var(--border-radius);
  height: 3rem;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background: none;
  justify-content: center;
  align-items: center;
  font-size: 1.5rem;
  transition: border-color .18s, color .18s;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .upload-item-add:hover {
    border-color: var(--button-bg);
    color: var(--button-bg);
  }
}

.carousel-wrapper {
  width: 100%;
}

.carousel-container {
  width: 100%;
  position: relative;
}

.carousel-track {
  border-radius: var(--border-radius);
  width: 100%;
  height: 0;
  position: relative;
  overflow: hidden;
}

.carousel-track--restricted {
  height: auto;
  min-height: 22rem;
}

.carousel-flash {
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
  position: absolute;
  inset: 0;
}

.carousel-flash.active {
  animation: .8s ease-out carousel-flash-vote;
}

@keyframes carousel-flash-vote {
  0% {
    opacity: 0;
  }

  20% {
    opacity: .45;
  }

  100% {
    opacity: 0;
  }
}

.carousel-flash-badge {
  pointer-events: none;
  z-index: 4;
  justify-content: center;
  align-items: center;
  display: flex;
  position: absolute;
  inset: 0;
}

.carousel-flash-badge span {
  color: var(--button-text);
  text-shadow: 0 4px 18px #00000073;
  opacity: 0;
  font-variant-numeric: tabular-nums;
  font-size: 6rem;
  font-weight: 700;
  line-height: 1;
}

.carousel-flash-badge.active span {
  animation: .8s ease-out carousel-flash-badge;
}

@keyframes carousel-flash-badge {
  0% {
    opacity: 0;
    transform: scale(.5);
  }

  20% {
    opacity: 1;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.5);
  }
}

.carousel-track-inner {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  touch-action: pan-x pan-y;
  gap: .5rem;
  display: flex;
  position: absolute;
  inset: 0;
  overflow: auto hidden;
}

.carousel-track-inner::-webkit-scrollbar {
  display: none;
}

.carousel-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  touch-action: manipulation;
  flex: 0 0 100%;
  position: relative;
  overflow: hidden;
}

.carousel-media, .carousel-slide .video-player-frame, .carousel-slide .video-player {
  object-fit: cover;
  border-radius: var(--border-radius);
  -webkit-touch-callout: none;
  touch-action: manipulation;
  border: none;
  width: 100%;
  height: 100%;
  max-height: none;
  position: absolute;
  inset: 0;
}

.carousel-media.zoom-returning {
  transition: transform .18s ease-out;
}

img.carousel-media {
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.carousel-media--decrypting {
  background-color: var(--border-color);
  animation: 1.2s ease-in-out infinite pulse;
}

.carousel-media--blur-up {
  filter: blur(14px);
  transform: scale(1.06);
}

.carousel-wrapper.pinch-zooming {
  z-index: 100;
  position: relative;
}

.carousel-wrapper.pinch-zooming .carousel-container {
  z-index: 2;
  position: relative;
  overflow: visible;
}

.carousel-wrapper.pinch-zooming .carousel-track {
  overflow: visible;
}

.carousel-wrapper.pinch-zooming .carousel-track-inner {
  touch-action: none;
  overflow: visible;
}

.carousel-wrapper.pinch-zooming .carousel-slide:not(.pinch-zoomed) {
  visibility: hidden;
}

.carousel-wrapper.pinch-zooming .carousel-slide.pinch-zoomed {
  z-index: 1;
  background-color: #0000;
  border-color: #0000;
  overflow: visible;
}

.carousel-wrapper.pinch-zooming .carousel-slide.pinch-zoomed .carousel-media {
  border-radius: var(--border-radius);
}

.carousel-wrapper.pinch-zooming .carousel-dots, .carousel-wrapper.pinch-zooming ~ .carousel-toolbar {
  visibility: hidden;
}

.carousel-transcoding {
  color: var(--text-secondary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  padding: 2rem;
  display: flex;
}

.carousel-transcoding p {
  margin: 0;
  font-size: .9rem;
}

.carousel-transcoding .progress-bar {
  width: 60%;
}

.carousel-restricted {
  background-color: var(--input-bg);
  border-radius: var(--border-radius);
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.carousel-restricted-blur {
  object-fit: cover;
  filter: blur(16px);
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  transform: scale(1.2);
}

.carousel-restricted-overlay {
  text-align: center;
  color: #fff;
  background-color: #0000008c;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .5rem;
  padding: 1.5rem;
  display: flex;
  position: absolute;
  inset: 0;
  overflow-y: auto;
}

.carousel-restricted-title {
  color: inherit;
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.carousel-restricted-body {
  color: #ffffffd1;
  max-width: 42ch;
  margin: 0;
  font-size: .85rem;
  line-height: 1.45;
}

.carousel-toolbar {
  justify-content: space-between;
  align-items: center;
  padding: .25rem 0;
  display: flex;
}

.carousel-dots {
  justify-content: center;
  align-items: center;
  gap: 6px;
  min-height: 14px;
  padding: 8px 0 4px;
  display: flex;
}

.carousel-dot {
  background: var(--text-secondary);
  opacity: .5;
  border-radius: 50%;
  width: 6px;
  height: 6px;
  transition: transform .18s, background-color .18s, opacity .18s;
}

.carousel-dot.active {
  background: var(--text-color);
  opacity: 1;
  transform: scale(1.4);
}

.carousel-vote {
  align-items: center;
  gap: .125rem;
  display: flex;
}

.carousel-toolbar-end {
  flex: 1;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.carousel-vote-btn {
  min-width: 0;
  min-height: 0;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.carousel-vote-btn:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.carousel-vote-btn svg {
  width: 2.25rem;
  height: 2.25rem;
  display: block;
}

.carousel-vote-btn .vote-arrow {
  fill: none;
  stroke: currentColor;
  transition: fill .18s, stroke .18s;
}

.carousel-vote-btn:active {
  color: var(--text-color);
}

.carousel-vote-btn:active .vote-arrow {
  fill: currentColor;
}

@media (hover: hover) and (pointer: fine) {
  .carousel-vote-btn:hover {
    color: var(--text-color);
  }

  .carousel-vote-btn:hover .vote-arrow {
    fill: currentColor;
  }
}

.carousel-vote-btn.pressed {
  color: var(--text-color);
}

.carousel-vote-btn.pressed .vote-arrow {
  fill: currentColor;
  animation: .24s cubic-bezier(.34, 1.56, .64, 1) vote-pop;
}

@keyframes vote-pop {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

.carousel-vote-count {
  letter-spacing: -.02em;
  color: var(--text-color);
  justify-content: center;
  align-items: center;
  min-width: 1.25rem;
  padding: 0;
  font-size: .9375rem;
  line-height: 1;
  display: flex;
}

.carousel-tags-toggle {
  z-index: 3;
  color: #fff;
  cursor: pointer;
  background-color: #0009;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.9rem;
  height: 1.9rem;
  padding: 0;
  display: flex;
  position: absolute;
  bottom: .6rem;
  left: .6rem;
}

.carousel-tags {
  z-index: 2;
  pointer-events: none;
  display: none;
  position: absolute;
  inset: 0;
}

.carousel-tags.visible {
  display: block;
}

.carousel-tag-pill {
  white-space: nowrap;
  pointer-events: auto;
  background-color: #000c;
  border-radius: 1rem;
  align-items: center;
  gap: .25rem;
  padding: .25rem .6rem;
  font-size: .75rem;
  display: inline-flex;
  position: absolute;
  transform: translate(-50%, 1.5rem);
}

.carousel-tag-pill:before {
  content: "";
  background-color: var(--button-bg);
  border: 2px solid #fff;
  border-radius: .2rem;
  width: .75rem;
  height: .75rem;
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translate(-50%, -50%);
}

.carousel-tag-link {
  color: #fff;
  text-decoration: none;
}

.carousel-tag-remove {
  color: #fff;
  cursor: pointer;
  background-color: #ffffff40;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.1rem;
  height: 1.1rem;
  padding: 0;
  font-size: .8rem;
  line-height: 1;
  display: inline-flex;
}

.carousel-motion-video {
  object-fit: cover;
  border-radius: var(--border-radius);
  opacity: 0;
  pointer-events: none;
  z-index: 1;
  width: 100%;
  height: 100%;
  transition: opacity .18s cubic-bezier(.2, 0, 0, 1);
  position: absolute;
  inset: 0;
}

.carousel-motion-video--playing {
  opacity: 1;
}

.carousel-motion-pill {
  z-index: 2;
  backdrop-filter: blur(8px);
  color: #fff;
  letter-spacing: .04em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: #00000059;
  border: none;
  border-radius: 999px;
  align-items: center;
  gap: .25rem;
  padding: .25rem .5rem;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1;
  display: inline-flex;
  position: absolute;
  top: .5rem;
  left: .5rem;
}

.carousel-motion-pill:active {
  transform: scale(.95);
}

.carousel-motion-pill.loading svg {
  display: none;
}

.carousel-motion-pill.loading:before {
  content: "";
  will-change: transform;
  border: 2.5px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: .875rem;
  height: .875rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .carousel-motion-pill.loading:before {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.carousel-motion-pill-label {
  text-transform: uppercase;
}

.video-player-frame {
  width: 100%;
  line-height: 0;
  position: relative;
}

.video-player-poster {
  object-fit: cover;
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  z-index: 1;
  pointer-events: none;
  width: 100%;
  height: 100%;
  transition: opacity .18s cubic-bezier(.2, 0, 0, 1);
  position: absolute;
  inset: 0;
}

.video-player-frame.video-ready .video-player-poster {
  opacity: 0;
}

.video-player-controls {
  color: #fff;
  opacity: 0;
  pointer-events: none;
  border-radius: 0 0 var(--border-radius) var(--border-radius);
  z-index: 2;
  background: linear-gradient(to top, #0000008c, #0000);
  align-items: center;
  gap: .5rem;
  padding: .5rem .75rem;
  line-height: 1;
  transition: opacity .18s cubic-bezier(.2, 0, 0, 1);
  display: flex;
  position: absolute;
  inset: auto 0 0;
}

.video-player-frame.controls-visible .video-player-controls {
  opacity: 1;
  pointer-events: auto;
}

.video-captions {
  pointer-events: none;
  z-index: 2;
  justify-content: center;
  line-height: 1.35;
  display: flex;
  position: absolute;
  inset: auto 8% 3.5rem;
}

.video-caption-chunk {
  border-radius: calc(var(--border-radius) * .75);
  color: #fff;
  text-align: center;
  text-wrap: balance;
  word-spacing: .15em;
  background: #0000008c;
  max-width: 100%;
  padding: .35rem .7rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.video-caption-word {
  opacity: .85;
}

.video-caption-word.spoken {
  opacity: 1;
}

.video-caption-word.current {
  color: var(--accent-gold);
  transition: transform .18s cubic-bezier(.2, 0, 0, 1);
  display: inline-block;
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .video-caption-word.current {
    transition: none;
    display: inline;
    transform: none;
  }
}

.vp-play-btn, .vp-mute-btn, .vp-cc-btn {
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
  justify-content: center;
  align-items: center;
  padding: .25rem;
  display: flex;
}

.vp-cc-btn {
  opacity: .55;
  position: relative;
}

.vp-cc-btn:after {
  content: "";
  background: linear-gradient(to top right, #0000 calc(50% - 1px), currentColor calc(50% - 1px) calc(50% + 1px), #0000 calc(50% + 1px));
  position: absolute;
  inset: .35rem;
}

.vp-cc-btn.enabled {
  opacity: 1;
}

.vp-cc-btn.enabled:after {
  content: none;
}

.vp-scrubber {
  accent-color: var(--accent-gold);
  cursor: pointer;
  flex: 1;
  min-width: 0;
}

.vp-time {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: .8rem;
}

.main-preview {
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  width: 100%;
  height: 0;
  margin-top: .75rem;
  position: relative;
  overflow: hidden;
}

.main-preview-media {
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

video.main-preview-media {
  pointer-events: auto;
}

.preview-upload-overlay {
  color: #fff;
  pointer-events: none;
  z-index: 2;
  background-color: #00000080;
  border: 1px solid #ffffff40;
  border-radius: 1rem;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  font-size: .75rem;
  display: flex;
  position: absolute;
  top: .75rem;
  left: 50%;
  transform: translateX(-50%);
}

.preview-upload-overlay.error {
  background-color: #d32f2fa6;
}

.preview-upload-overlay.preview-upload-overlay--stacked {
  flex-direction: column;
}

.preview-upload-overlay-row {
  align-items: center;
  gap: .35rem;
  display: flex;
}

.preview-progress {
  background-color: #ffffff40;
  border-radius: .125rem;
  width: 8rem;
  max-width: 40vw;
  height: .25rem;
  overflow: hidden;
}

.preview-progress-fill {
  border-radius: inherit;
  transform-origin: 0;
  background-color: #fff;
  width: 100%;
  height: 100%;
  transition: transform .4s;
}

.preview-cancel-processing {
  pointer-events: auto;
  color: #fff;
  cursor: pointer;
  background: none;
  border: 1px solid #ffffff80;
  border-radius: 1rem;
  padding: .15rem .6rem;
  font-size: .75rem;
}

.preview-cancel-processing:hover {
  background-color: #ffffff26;
}

.main-preview.zoom-returning {
  transition: transform .18s ease-out;
}

.create-post-preview.pinch-zooming {
  z-index: 100;
  position: relative;
  overflow: visible;
}

.preview-spinner {
  will-change: transform;
  border: 2.5px solid #ffffff4d;
  border-top-color: #fff;
  border-radius: 50%;
  width: .85rem;
  height: .85rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .preview-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.preview-spinner {
  border-width: 2px;
}

.video-editor-tap {
  z-index: 2;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
  position: absolute;
  inset: 0;
}

.video-editor-tap-icon {
  background-color: #00000080;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 3.5rem;
  height: 3.5rem;
  display: flex;
}

.video-editor-tap-icon svg {
  width: 1.75rem;
  height: 1.75rem;
}

.video-editor-entry {
  margin-top: .75rem;
}

.ve-crop-frame {
  position: absolute;
  inset: 0;
  container-type: size;
}

.ve-crop-viewport {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ve-crop-gesture {
  z-index: 3;
  cursor: move;
  touch-action: none;
  position: absolute;
  inset: 0;
}

.video-editor {
  flex-direction: column;
  gap: .75rem;
  margin-top: .75rem;
  display: flex;
  container-type: inline-size;
}

.ve-toolbar {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem .75rem;
  display: flex;
}

@container (width <= 30rem) {
  .ve-toolbar {
    justify-content: center;
  }
}

.ve-toolbar-end {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.ve-speed {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  border-radius: 1rem;
  padding: .15rem;
  display: flex;
}

.ve-speed-btn {
  color: inherit;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .85rem;
  padding: .3rem .5rem;
  font-size: .75rem;
}

.ve-speed-btn.active {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.ve-tabs {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  border-radius: 1rem;
  padding: .15rem;
  display: flex;
}

.ve-tab {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .85rem;
  padding: .3rem .85rem;
  font-size: .8rem;
}

.ve-tab.active {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.ve-mute-btn {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  width: 2.25rem;
  height: 2.25rem;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.ve-track {
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  touch-action: none;
  height: 3.5rem;
  position: relative;
  overflow: hidden;
}

.ve-track--hidden {
  display: none;
}

.ve-strip {
  width: 100%;
  height: 100%;
  display: flex;
}

.ve-aspect-row {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.ve-chips {
  gap: .4rem;
  display: flex;
  overflow-x: auto;
}

.ve-chip {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: inherit;
  white-space: nowrap;
  cursor: pointer;
  border-radius: 1rem;
  padding: .3rem .7rem;
  font-size: .75rem;
}

.ve-chip.active {
  background-color: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

.ve-rotate-btn {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  width: 2.25rem;
  height: 2.25rem;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.ve-filter-row {
  gap: .5rem;
  padding-bottom: .25rem;
  display: flex;
  overflow-x: auto;
}

.ve-swatch {
  border-radius: var(--border-radius);
  color: inherit;
  cursor: pointer;
  background: none;
  border: 2px solid #0000;
  flex-direction: column;
  flex-shrink: 0;
  align-items: center;
  gap: .25rem;
  padding: .25rem;
  display: flex;
}

.ve-swatch.active {
  border-color: var(--button-bg);
}

.ve-swatch-thumb {
  border-radius: calc(var(--border-radius) / 2);
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  width: 3.5rem;
  height: 3.5rem;
}

.ve-swatch-thumb--empty {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
}

.ve-swatch-label {
  color: var(--text-secondary);
  font-size: .7rem;
}

.ve-frame {
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  flex: 1 1 0;
  min-width: 0;
  height: 100%;
}

.ve-frame--shimmer {
  background-color: var(--border-color);
  border-radius: 0;
  animation: 1.2s ease-in-out infinite pulse;
}

.ve-dim {
  pointer-events: none;
  background-color: #0000008c;
  position: absolute;
  top: 0;
  bottom: 0;
}

.ve-dim--left {
  left: 0;
}

.ve-window {
  border: 2px solid var(--button-bg);
  pointer-events: none;
  border-radius: .25rem;
  position: absolute;
  top: 0;
  bottom: 0;
}

.ve-playhead {
  pointer-events: none;
  background-color: #fff;
  width: 2px;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 2px #0009;
}

.ve-handle {
  cursor: ew-resize;
  background: none;
  border: none;
  width: 1.75rem;
  padding: 0;
  position: absolute;
  top: 0;
  bottom: 0;
}

.ve-handle:before {
  content: "";
  background-color: var(--button-bg);
  border-radius: .2rem;
  width: .4rem;
  position: absolute;
  top: 0;
  bottom: 0;
}

.ve-handle.ve-handle--start:before {
  left: 0;
}

.ve-handle.ve-handle--end:before {
  right: 0;
}

.ve-handle--end {
  transform: translateX(-100%);
}

.ve-cover-layer {
  cursor: ew-resize;
  position: absolute;
  inset: 0;
}

.ve-cover-cursor {
  cursor: ew-resize;
  background: none;
  border: 2px solid #fff;
  border-radius: .35rem;
  width: 2.25rem;
  padding: 0;
  position: absolute;
  top: 0;
  bottom: 0;
  transform: translateX(-50%);
  box-shadow: 0 0 3px #0009;
}

.ve-label {
  color: var(--text-secondary);
  text-align: center;
  font-variant-numeric: tabular-nums;
  margin: 0;
  font-size: .8rem;
}

.ve-footer {
  justify-content: flex-end;
  gap: .5rem;
  display: flex;
}

.ve-cancel, .ve-done {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  color: inherit;
  cursor: pointer;
  border-radius: 1rem;
  padding: .35rem .9rem;
  font-size: .8rem;
}

.ve-done {
  background-color: var(--button-bg);
  color: var(--button-text);
  border-color: var(--button-bg);
}

.ve-done.disabled {
  opacity: .5;
  cursor: default;
}

.ve-clip-rail {
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.ve-clip-chip {
  border-radius: var(--border-radius);
  border: 2px solid #0000;
  position: relative;
}

.ve-clip-chip--active {
  border-color: var(--button-bg);
}

.ve-clip-chip--drop {
  border-color: var(--text-secondary);
  border-style: dashed;
}

.ve-clip-chip--failed .ve-clip-thumb {
  opacity: .4;
}

.ve-clip-chip--failed .ve-clip-length {
  color: var(--error-color, #e5484d);
}

.ve-clip-chip-select {
  color: inherit;
  cursor: pointer;
  touch-action: none;
  background: none;
  border: none;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .2rem;
  display: flex;
  position: relative;
}

.ve-clip-thumb {
  border-radius: calc(var(--border-radius) / 2);
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  width: 3rem;
  height: 3rem;
}

.ve-clip-thumb--empty {
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
}

.ve-clip-index {
  color: #fff;
  text-align: center;
  background-color: #0009;
  border-radius: .5rem;
  min-width: 1rem;
  padding: 0 .2rem;
  font-size: .65rem;
  line-height: 1rem;
  position: absolute;
  top: .3rem;
  left: .3rem;
}

.ve-clip-length {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  font-size: .65rem;
}

.ve-clip-spinner {
  border: 2.5px solid color-mix(in srgb, var(--button-bg) 30%, transparent);
  border-top-color: var(--button-bg);
  will-change: transform;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .ve-clip-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.ve-clip-spinner {
  position: absolute;
  top: .9rem;
  left: 50%;
  transform: translateX(-50%);
}

.ve-clip-remove {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  width: 1.25rem;
  height: 1.25rem;
  color: inherit;
  cursor: pointer;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: .8rem;
  line-height: 1;
  display: flex;
  position: absolute;
  top: -.4rem;
  right: -.4rem;
}

.ve-clip-add {
  border: 1px dashed var(--border-color);
  border-radius: var(--border-radius);
  background-color: var(--input-bg);
  width: 3rem;
  height: 3rem;
  color: inherit;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-size: 1.25rem;
  display: flex;
}

.ve-strip-seg {
  height: 100%;
  position: relative;
  overflow: hidden;
}

.ve-strip-seg + .ve-strip-seg {
  border-left: 1px solid #fff9;
}

.ve-text-layer {
  z-index: 3;
  pointer-events: none;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ve-text-overlay {
  font: inherit;
  white-space: pre;
  text-shadow: 0 1px 2px #00000073;
  pointer-events: none;
  background: none;
  border: 2px dashed #0000;
  margin: 0;
  padding: 0;
  line-height: 1;
  position: absolute;
}

.ve-text-overlay--interactive {
  pointer-events: auto;
  cursor: move;
  touch-action: none;
}

.ve-text-overlay--selected {
  border-color: #ffffffb3;
}

.ve-text-panel, .ve-text-controls {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.ve-text-options {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem .75rem;
  display: flex;
}

.ve-text-sizes {
  border: 1px solid var(--border-color);
  background-color: var(--input-bg);
  border-radius: 1rem;
  padding: .15rem;
  display: flex;
}

.ve-size-btn {
  color: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: .85rem;
  padding: .3rem .6rem;
  font-size: .75rem;
}

.ve-size-btn.active {
  background-color: var(--button-bg);
  color: var(--button-text);
}

.ve-text-colors {
  gap: .4rem;
  display: flex;
}

.ve-color-dot {
  border: 2px solid var(--border-color);
  cursor: pointer;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  padding: 0;
}

.ve-color-dot.active {
  border-color: var(--button-bg);
  box-shadow: 0 0 0 2px var(--button-bg);
}

.ve-error {
  color: var(--error-color, #e5484d);
}

.settings-back-arrow {
  z-index: 10;
  color: var(--text-color);
  border: 1.5px solid var(--border-color);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
  text-decoration: none;
  display: flex;
  position: fixed;
  top: .75rem;
  left: .875rem;
}

.top-bar {
  z-index: 10;
  background-color: var(--post-card-bg);
  box-shadow: var(--shadow-card);
  justify-content: space-between;
  align-items: center;
  padding: .75rem max(.875rem, 50% - 300px + .875rem);
  transition: transform .3s;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.top-bar--hidden {
  transform: translateY(-100%);
}

@media (width >= 768px) {
  body:has(.bottom-bar) .top-bar {
    left: var(--nav-rail-width);
    padding-inline: max(.875rem, (100% - var(--nav-rail-width) - 600px) / 2 + .875rem);
  }

  body:has(.bottom-bar) .top-bar--stacked {
    padding: 0;
  }
}

@media (width >= 1024px) {
  body:has(.page-container--wide) .top-bar {
    padding-inline: max(.875rem, 50% - 19rem);
  }

  body:has(.page-container--wide):has(.bottom-bar) .top-bar {
    padding-inline: max(.875rem, (100% - var(--nav-rail-width) - 40rem) / 2 + 1rem);
  }
}

.top-bar--stacked {
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}

.top-bar-main {
  justify-content: space-between;
  align-items: center;
  padding: .75rem max(.875rem, 50% - 300px + .875rem);
  display: flex;
}

.top-bar--three-col {
  grid-template-columns: 1fr auto 1fr;
  display: grid;
}

.top-bar-back {
  color: var(--text-color);
  justify-content: flex-start;
  align-items: center;
  text-decoration: none;
  display: flex;
}

.top-bar-title {
  letter-spacing: .01em;
  text-align: center;
  white-space: nowrap;
  align-items: center;
  gap: .35rem;
  min-width: 0;
  font-size: 1.0625rem;
  font-weight: 600;
  display: flex;
  overflow: hidden;
}

.top-bar-breadcrumb-link {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  font-weight: 500;
  text-decoration: none;
  overflow: hidden;
}

.top-bar-breadcrumb-separator {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.top-bar-breadcrumb-current {
  text-overflow: ellipsis;
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
}

.top-bar-end {
  color: var(--text-color);
  justify-content: flex-end;
  justify-self: end;
  align-items: center;
  text-decoration: none;
  display: flex;
  position: relative;
}

.top-bar-end:before {
  content: "";
  border: 2.5px solid color-mix(in srgb, var(--text-color) 25%, transparent);
  border-top-color: var(--text-color);
  will-change: transform;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  margin: auto;
  animation: .8s linear infinite spin;
  position: absolute;
  inset: 0;
}

@media (prefers-reduced-motion: reduce) {
  .top-bar-end:before {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.top-bar-end:before {
  pointer-events: none;
  border-width: 2px;
}

.top-bar-end:empty {
  min-width: 32px;
  min-height: 24px;
}

html:not(.hydrated) .top-bar-end > * {
  visibility: hidden;
}

html.hydrated .top-bar-end:before {
  display: none;
}

.top-bar-logo {
  color: var(--text-color);
  align-items: center;
  gap: .4rem;
  text-decoration: none;
  display: flex;
}

.top-bar-logo-text {
  letter-spacing: .01em;
  font-size: 1.0625rem;
  font-weight: 600;
}

.top-bar-action {
  color: var(--text-color);
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  font-family: inherit;
  text-decoration: none;
  display: flex;
}

.top-bar-action--secondary {
  color: var(--text-secondary);
}

.top-bar-auth-links {
  align-items: center;
  gap: .75rem;
  display: flex;
}

.top-bar-auth-links a {
  color: var(--text-color);
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .top-bar-auth-links a:hover {
    opacity: .7;
  }
}

.top-bar-auth-links a:last-child {
  border: 1px solid var(--text-color);
  border-radius: var(--border-radius);
  padding: .35rem .75rem;
}

.bottom-bar {
  z-index: 10;
  padding: .5rem max(0rem, 50% - 300px);
  padding-bottom: max(.5rem, env(safe-area-inset-bottom));
  background-color: var(--post-card-bg);
  justify-content: space-around;
  align-items: center;
  display: flex;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  box-shadow: 0 -1px 3px #1e14320f, 0 -1px 2px #1e14320a;
}

@media (prefers-color-scheme: dark) {
  .bottom-bar {
    box-shadow: 0 -1px 3px #00000040, 0 -1px 2px #0000002e;
  }
}

.bottom-bar-item {
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  padding: .5rem 1.5rem;
  text-decoration: none;
  transition: color .18s, transform 80ms;
  display: flex;
  position: relative;
}

.bottom-bar-item:active {
  transform: scale(.94);
}

.bottom-bar-item svg {
  transition: transform .18s cubic-bezier(.34, 1.56, .64, 1);
}

.bottom-bar-item:after {
  content: "";
  background-color: var(--text-color);
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
  width: 4px;
  height: 4px;
  margin-left: -2px;
  transition: opacity .18s, transform .18s cubic-bezier(.34, 1.56, .64, 1);
  position: absolute;
  bottom: .125rem;
  left: 50%;
  transform: scale(.5);
}

.bottom-bar-item--active {
  color: var(--text-color);
}

.bottom-bar-item--active svg {
  transform: scale(1.1);
}

.bottom-bar-item--active:after {
  opacity: 1;
  transform: scale(1);
}

@media (hover: hover) and (pointer: fine) {
  .bottom-bar-item:hover {
    color: var(--text-color);
  }
}

.bottom-bar-icon {
  transform-origin: bottom;
  display: inline-flex;
}

.bottom-bar-icon--attn {
  animation: .6s ease-out bottom-bar-attn;
}

.bottom-bar-profile {
  position: relative;
}

@media (width >= 768px) {
  .bottom-bar {
    width: var(--nav-rail-width);
    padding: 1.25rem 0 1.25rem env(safe-area-inset-left, 0px);
    border-right: 1px solid var(--border-color);
    box-shadow: none;
    flex-direction: column;
    justify-content: center;
    gap: .5rem;
    top: 0;
    right: auto;
  }

  .bottom-bar-item {
    width: 100%;
    padding: .875rem 0;
  }

  .bottom-bar-item:after {
    border-radius: 0 3px 3px 0;
    width: 3px;
    height: 1.25rem;
    margin-left: 0;
    top: calc(50% - .625rem);
    bottom: auto;
    left: 0;
  }

  .bottom-bar-dot {
    top: calc(50% - 1.125rem);
    right: calc(50% - 1.25rem);
  }
}

.bottom-bar-dot {
  background-color: var(--button-bg);
  pointer-events: none;
  border-radius: 50%;
  width: 8px;
  height: 8px;
  position: absolute;
  top: 7px;
  right: 24px;
}

.tab-strip {
  border-top: 1px solid var(--border-color);
  --tab-strip-pad: max(.875rem,
      calc((100% - var(--tab-strip-max-width, 600px)) / 2 + .875rem));
  padding-inline: var(--tab-strip-pad);
  align-items: stretch;
  display: flex;
  position: relative;
}

.tab {
  appearance: none;
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  text-align: center;
  background: none;
  border: 0;
  border-bottom: 2px solid #0000;
  flex: 1;
  padding: .625rem .875rem;
  font-size: .875rem;
  font-weight: 500;
  transition: color .18s, transform 80ms;
}

.tab:active {
  transform: scale(.96);
}

.tab:hover, .tab:focus-visible, .tab--active {
  color: var(--text-color);
}

.tab-label {
  position: relative;
}

.tab-unread-dot {
  background-color: var(--button-bg);
  pointer-events: none;
  border-radius: 50%;
  width: 7px;
  height: 7px;
  margin-left: .375rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) dot-in;
  position: absolute;
  top: 50%;
  left: 100%;
  transform: translateY(-50%);
}

.tab-strip-indicator {
  bottom: 0;
  left: var(--tab-strip-pad);
  width: calc((100% - 2 * var(--tab-strip-pad)) / 2);
  background-color: var(--text-color);
  pointer-events: none;
  height: 2px;
  transition: transform .24s cubic-bezier(.16, 1, .3, 1);
  position: absolute;
}

.tab-strip--shifted .tab-strip-indicator {
  transform: translateX(100%);
}

.feed-sentinel {
  width: 100%;
  height: 1px;
}

.feed-container {
  width: 100%;
  max-width: 600px;
  padding: 5.5rem .75rem calc(3.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  min-height: 100dvh;
  margin: 0 auto;
  display: flex;
}

@media (width >= 768px) {
  .feed-container {
    padding-bottom: 2.5rem;
  }
}

.feed-container leptos-island, .feed-container leptos-children {
  display: contents;
}

.feed-view {
  flex-direction: column;
  flex: 1;
  min-height: 0;
  display: flex;
}

.feed-loading {
  flex-direction: column;
  gap: .75rem;
  padding: .75rem 0;
  display: flex;
}

.feed-empty {
  min-height: 200px;
  color: var(--text-secondary);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: .75rem;
  font-size: .95rem;
  display: flex;
}

.feed-empty svg {
  width: 2.5rem;
  height: 2.5rem;
}

.skeleton-post-card {
  flex-direction: column;
  gap: .5rem;
  padding: 0 0 .875rem;
  display: flex;
}

.skeleton-avatar {
  background: var(--input-bg);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
  margin: .5rem .875rem;
}

.skeleton-image {
  aspect-ratio: 1;
  background: var(--input-bg);
  border-radius: var(--border-radius);
  width: 100%;
}

.skeleton-actions {
  background: var(--input-bg);
  border-radius: 999px;
  width: 60%;
  height: 1.75rem;
  margin: 0 .875rem;
}

.feed-empty-message {
  text-align: center;
  max-width: 16rem;
  margin: 0;
  font-size: .875rem;
}

.feed-posts {
  flex-direction: column;
  flex: 1;
  gap: 1.375rem;
  padding: .75rem 0;
  display: flex;
}

.feed-posts > .feed-post-card {
  animation: .24s cubic-bezier(.16, 1, .3, 1) backwards slide-up;
}

.feed-posts > .feed-post-card:first-of-type {
  animation-delay: 0s;
}

.feed-posts > .feed-post-card:nth-of-type(2) {
  animation-delay: 40ms;
}

.feed-posts > .feed-post-card:nth-of-type(3) {
  animation-delay: 80ms;
}

.feed-posts > .feed-post-card:nth-of-type(4) {
  animation-delay: .12s;
}

.feed-posts > .feed-post-card:nth-of-type(5) {
  animation-delay: .16s;
}

.feed-posts > .feed-post-card:nth-of-type(6) {
  animation-delay: .2s;
}

.feed-posts > .feed-post-card:nth-of-type(7) {
  animation-delay: .24s;
}

.feed-posts > .feed-post-card:nth-of-type(8) {
  animation-delay: .28s;
}

.feed-post-meta {
  color: var(--text-secondary);
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .25rem .875rem 0;
  display: flex;
}

.feed-post-date {
  color: var(--text-secondary);
  letter-spacing: .02em;
  font-size: .8125rem;
}

.feed-post-reason {
  color: var(--text-secondary);
  text-align: right;
  margin: 0;
  font-size: .75rem;
  font-style: italic;
}

.feed-post-recent-comments {
  background: var(--comment-dock-bg);
  border-radius: var(--border-radius);
  text-align: start;
  margin: .5rem 0 0;
  padding: .625rem .875rem .75rem;
}

.feed-post-recent-comments-list {
  flex-direction: column;
  gap: .55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.feed-post-recent-comment {
  -webkit-line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  font-size: .875rem;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
}

.feed-post-recent-comment-author {
  color: var(--text-secondary);
  margin-right: .4rem;
  font-weight: 600;
  text-decoration: none;
}

.feed-post-recent-comment-body {
  color: var(--text-color);
}

.feed-post-view-all {
  color: var(--text-secondary);
  margin-top: .35rem;
  margin-bottom: -.25rem;
  padding: .25rem 0;
  font-size: .875rem;
  text-decoration: none;
  display: inline-block;
}

.feed-post-card--hidden {
  display: none;
}

.feed-post {
  border-radius: 0;
  margin: 0;
  padding: 0 0 .875rem;
}

.feed-post .carousel-toolbar {
  padding-left: .875rem;
  padding-right: .875rem;
}

.post-menu-mount {
  display: contents;
}

.post-menu {
  z-index: 10000;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 100% 0;
  flex-direction: column;
  min-width: 15rem;
  padding: .25rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000002e;
}

.post-menu--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.post-menu-row {
  appearance: none;
  color: var(--text-color);
  text-align: left;
  font: inherit;
  border-radius: calc(var(--border-radius) - 6px);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .75rem 1rem;
  font-size: .875rem;
  text-decoration: none;
  display: block;
}

.post-menu-row:hover, .post-menu-row:focus-visible {
  background: var(--input-bg);
}

.post-menu-row--danger {
  color: var(--accent-error);
}

.post-report-reasons {
  border: 0;
  flex-direction: column;
  gap: .375rem;
  margin: 0;
  padding: 0;
  display: flex;
}

.post-report-reason {
  cursor: pointer;
  align-items: center;
  gap: .5rem;
  padding: .375rem 0;
  font-size: .9375rem;
  display: flex;
}

.post-report-reason input[type="radio"] {
  accent-color: var(--accent-gold);
  margin: 0;
}

.post-captions-edit-list {
  flex-direction: column;
  gap: .875rem;
  max-height: 50vh;
  margin: -3px;
  padding: 3px;
  display: flex;
  overflow-y: auto;
}

.post-captions-edit-video {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.post-captions-edit-video-label {
  color: var(--text-secondary);
  margin: 0;
  font-size: .8125rem;
  font-weight: 600;
}

.feed-post-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  padding: .5rem 0 .5rem .75rem;
  display: flex;
}

.feed-post-header-author {
  flex: 1;
  align-items: center;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.feed-post-author {
  color: var(--text-color);
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  display: flex;
}

.feed-post-channel-group {
  align-items: center;
  gap: .125rem;
  min-width: 0;
  display: inline-flex;
}

.feed-post-channel-chevron {
  color: var(--text-secondary);
  align-items: center;
  line-height: 0;
  display: inline-flex;
}

.post-menu-trigger {
  appearance: none;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  padding: .25rem;
  line-height: 0;
}

.post-menu-trigger:hover, .post-menu-trigger:focus-visible {
  color: var(--text-color);
  background: var(--input-bg);
}

.feed-post-subscribe {
  color: var(--button-text);
  background-color: var(--button-bg);
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  border: 1px solid #0000;
  border-radius: 999px;
  flex-shrink: 0;
  padding: .3125rem .75rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  transition: background-color .18s, color .18s, border-color .18s, transform 80ms;
}

.feed-post-subscribe:active {
  transform: scale(.96);
}

@media (hover: hover) and (pointer: fine) {
  .feed-post-subscribe:hover {
    background-color: var(--button-hover);
  }
}

.feed-post-subscribe--done {
  color: var(--text-secondary);
  border-color: var(--border-color);
  cursor: default;
  background-color: #0000;
}

.feed-post-subscribe--done:active {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  .feed-post-subscribe--done:hover {
    background-color: #0000;
  }
}

.feed-post-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 1.75rem;
  height: 1.75rem;
}

.feed-post-avatar-placeholder {
  background-color: var(--input-bg);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.feed-post-username {
  letter-spacing: .01em;
  font-size: .8125rem;
  font-weight: 600;
}

.feed-post-channel {
  color: var(--text-secondary);
  letter-spacing: .02em;
  font-size: .6875rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .feed-post-channel a.feed-post-channel:hover {
    color: var(--text-color);
  }
}

.feed-post-footer {
  text-align: left;
  margin-top: .625rem;
  padding: 0 .875rem;
}

.feed-post-caption {
  color: var(--text-color);
  white-space: pre-wrap;
  word-break: break-word;
  letter-spacing: -.01em;
  margin: 0;
  font-size: .875rem;
  line-height: 1.45;
}

.feed-post-edited {
  color: var(--text-secondary);
  font-size: .75rem;
}

.reactions-bar {
  flex-wrap: nowrap;
  flex: 1;
  align-items: center;
  gap: .5rem;
  min-width: 0;
  display: flex;
}

.react-trigger {
  appearance: none;
  width: 2.25rem;
  height: 2.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: color 80ms;
  display: inline-flex;
}

.react-trigger svg {
  width: 1.375rem;
  height: 1.375rem;
}

.react-trigger:hover, .react-trigger:focus-visible, .react-trigger:active, .react-trigger[aria-expanded="true"] {
  color: var(--text-color);
}

.react-trigger:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.reaction-chips {
  flex-wrap: wrap;
  gap: .25rem;
  margin-right: auto;
  display: inline-flex;
}

.reaction-chip {
  appearance: none;
  border: 2px solid var(--border-color);
  color: var(--text-color);
  box-sizing: border-box;
  height: 2.25rem;
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 999px;
  align-items: center;
  gap: .375rem;
  padding: 0 .75rem;
  font-size: .9375rem;
  line-height: 1.2;
  transition: background-color .18s, border-color .18s;
  display: inline-flex;
}

.reaction-chip:active {
  transform: scale(.95);
}

.reaction-chip:hover, .reaction-chip:focus-visible {
  background: var(--input-bg);
}

.reaction-chip:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.reaction-chip--mine {
  background: var(--input-bg);
  border-color: var(--text-color);
  animation: .24s cubic-bezier(.34, 1.56, .64, 1) vote-pop;
}

.feed-post-viewers {
  appearance: none;
  cursor: pointer;
  font: inherit;
  height: 2.25rem;
  color: var(--text-secondary);
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: .375rem;
  padding: 0 .5rem;
  font-size: .9375rem;
  line-height: 1;
  display: inline-flex;
}

.feed-post-viewers:hover {
  color: var(--text-color);
}

.feed-post-viewers-icon {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.feed-post-viewers-icon > svg {
  width: 1.375rem;
  height: 1.375rem;
  display: block;
}

.feed-post-viewers-count {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.reaction-chip-emoji {
  font-size: 1.125rem;
  line-height: 1.2;
}

.reaction-chip-emoji-stack {
  align-items: center;
  display: inline-flex;
}

.reaction-chip-emoji-stacked {
  font-size: 1.125rem;
  line-height: 1.2;
}

.reaction-chip-emoji-stacked + .reaction-chip-emoji-stacked {
  margin-left: -.375rem;
}

.reaction-chips-menu {
  z-index: 10000;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  flex-direction: column;
  gap: .25rem;
  max-width: min(20rem, 100vw - 1rem);
  padding: .375rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: fixed;
  box-shadow: 0 8px 24px #0000002e;
}

.reaction-chips-menu--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.reaction-chip-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

.reaction-chip--mine .reaction-chip-count {
  color: inherit;
}

.reaction-picker {
  z-index: 10000;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  flex-direction: column;
  gap: .5rem;
  width: min(20rem, 100vw - 1rem);
  max-height: 22.5rem;
  padding: .5rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000002e;
}

.reaction-picker--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.reaction-search {
  appearance: none;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  font: inherit;
  color: var(--text-color);
  flex-shrink: 0;
  padding: .4rem .6rem;
}

.reaction-recent, .reaction-section {
  flex-direction: column;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.reaction-section-title {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 0 .125rem;
  font-size: .6875rem;
}

.reaction-grid {
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: .125rem;
  min-width: 0;
  display: grid;
}

.reaction-grid-cell {
  appearance: none;
  border-radius: var(--border-radius);
  cursor: pointer;
  color: inherit;
  background: none;
  border: 0;
  min-width: 0;
  padding: .25rem 0;
  font-size: 1.25rem;
  line-height: 1;
  transition: transform 80ms;
  overflow: hidden;
}

.reaction-grid-cell:active {
  transform: scale(1.4);
}

.reaction-grid-cell:hover, .reaction-grid-cell:focus-visible {
  background: var(--input-bg);
}

.reaction-groups {
  flex-direction: column;
  flex: auto;
  gap: .5rem;
  min-width: 0;
  display: flex;
  overflow-y: auto;
}

.home-hero {
  text-align: left;
  color: var(--text-color);
  background-color: var(--input-bg);
  background-image: radial-gradient(70% 60% at 0% 0%, var(--bg-glow-gold), transparent 70%), radial-gradient(60% 55% at 100% 100%, var(--bg-glow-violet), transparent 70%);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-dialog);
  border-radius: 16px;
  margin: 1.75rem 0 1rem;
  padding: clamp(1.5rem, 5vw, 2.25rem) clamp(1.25rem, 5vw, 2rem);
  animation: .42s cubic-bezier(.16, 1, .3, 1) both slide-up;
  position: relative;
}

.home-hero :where(h1, p) {
  margin: 0;
}

.home-hero-kicker {
  letter-spacing: .02em;
  color: var(--accent-gold-copy);
  font-size: .8125rem;
  font-weight: 600;
}

.home-hero-title {
  letter-spacing: -.01em;
  text-wrap: balance;
  margin: .5rem 0 .875rem;
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-size: clamp(1.75rem, 1.1rem + 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
}

.home-hero-lead {
  color: var(--text-secondary);
  text-wrap: pretty;
  margin: 0 0 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.home-hero-points {
  gap: .875rem;
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
}

.home-hero-points li {
  grid-template-columns: auto 1fr;
  align-items: start;
  column-gap: .75rem;
  line-height: 1.45;
  display: grid;
}

.home-hero-points svg {
  width: 1.125rem;
  height: 1.125rem;
  color: var(--accent-gold);
  margin-top: .2rem;
}

.home-hero-points strong {
  font-weight: 600;
  display: block;
}

.home-hero-points span {
  color: var(--text-secondary);
}

.home-hero-cta-row {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  display: flex;
}

.home-hero-cta {
  letter-spacing: .01em;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  padding: 1.05rem 2.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .18s;
  display: inline-block;
}

.home-hero-cta:visited {
  color: var(--button-text);
}

.home-hero-cta:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .home-hero-cta:hover {
    background-color: var(--button-hover);
  }

  .home-hero-cta:active {
    transform: translateY(1px);
  }
}

.home-hero-cta-secondary {
  color: var(--text-color);
  text-underline-offset: 4px;
  text-decoration: underline;
  -webkit-text-decoration-color: var(--border-color);
  text-decoration-color: var(--border-color);
  font-size: 1rem;
  font-weight: 500;
  transition: text-decoration-color .18s;
}

.home-hero-cta-secondary:visited {
  color: var(--text-color);
}

.home-hero-cta-secondary:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .home-hero-cta-secondary:hover {
    text-decoration-color: currentColor;
  }
}

.comments-section {
  max-width: 720px;
  margin: 1rem 0 2rem;
  padding: 0;
}

.comments-section .comments-heading {
  text-align: left;
  color: var(--text-color);
  margin: 0 .25rem .5rem;
  font-size: 1rem;
  font-weight: 600;
}

.comments-empty {
  color: var(--text-secondary);
  margin: .5rem 0;
  font-size: .875rem;
}

.comments-loading {
  justify-content: center;
  align-items: center;
  padding: 1.5rem 0;
  display: flex;
}

.comments-loading-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
  display: inline-block;
}

@media (prefers-reduced-motion: reduce) {
  .comments-loading-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.comments-error {
  color: var(--accent-error);
  margin: .25rem 0;
  font-size: .825rem;
}

.comments-signin-cta {
  color: var(--text-color);
  padding: .5rem 0;
  font-size: .875rem;
  text-decoration: underline;
  display: inline-block;
}

.comment-composer {
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1rem;
  display: flex;
}

.comment-composer-textarea {
  resize: none;
  width: 100%;
  min-height: 120px;
  font: inherit;
  color: var(--text-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: .5rem .75rem;
}

.comment-composer-actions {
  justify-content: flex-end;
  gap: .5rem;
  display: flex;
}

.comment-action {
  font: inherit;
  cursor: pointer;
  color: var(--text-secondary);
  background: none;
  border: none;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  padding: .4rem .65rem;
  font-size: .825rem;
  display: inline-flex;
}

.comment-action:hover {
  color: var(--text-color);
}

.comment-action--primary {
  background: var(--button-bg);
  color: var(--button-text);
  padding: .5rem;
  font-weight: 500;
}

.comment-action--primary:hover {
  background: var(--button-hover);
  color: var(--button-text);
}

.comment-action--primary:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.comments-list, .comment-replies {
  margin: 0;
  padding: 0;
  list-style: none;
}

.comments-list {
  flex-direction: column;
  gap: .35rem;
  display: flex;
}

.comment-replies {
  flex-direction: column;
  gap: .35rem;
  margin-top: .35rem;
  padding-left: 2rem;
  display: flex;
}

.comment-tree {
  flex-direction: column;
  gap: .35rem;
  display: flex;
}

.comment-tree > .comment-composer, .comment-tree > .comments-signin-cta {
  margin-left: .75rem;
}

.comment-row {
  background: var(--post-card-bg);
  border-radius: var(--border-radius);
  padding: .3rem .6rem;
  animation: .24s cubic-bezier(.2, 0, 0, 1) slide-up;
}

.comment-row--reply {
  background: var(--input-bg);
  padding: .25rem .55rem;
  position: relative;
}

.comment-row--reply:before {
  content: "";
  background-color: var(--text-secondary);
  opacity: .6;
  pointer-events: none;
  width: 1.25rem;
  height: 1.25rem;
  position: absolute;
  top: .55rem;
  left: -1.7rem;
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4 L8 14 A 4 4 0 0 0 16 14'/><path d='M5 8 L8 4 L11 8'/></svg>");
  mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M8 4 L8 14 A 4 4 0 0 0 16 14'/><path d='M5 8 L8 4 L11 8'/></svg>");
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.comment-row-main {
  align-items: stretch;
  gap: .4rem;
  display: flex;
}

.comment-row-content {
  flex-direction: column;
  flex: 1;
  min-width: 0;
  display: flex;
}

.comment-row-header {
  align-items: center;
  gap: .4rem;
  margin-top: .2rem;
  margin-bottom: .3rem;
  display: flex;
}

.comment-username {
  color: var(--text-color);
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  text-decoration: none;
  display: inline-flex;
}

.comment-username .username {
  font-weight: 500;
}

.comment-avatar {
  background: var(--post-card-bg);
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  width: 24px;
  height: 24px;
  display: inline-flex;
}

img.comment-avatar {
  background: none;
}

.comment-avatar-placeholder {
  color: var(--text-secondary);
}

.comment-date, .comment-edited {
  color: var(--text-secondary);
  font-size: .75rem;
}

.comment-edited:before {
  content: "· ";
}

.comment-body {
  color: var(--text-color);
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  font-size: .9rem;
  line-height: 1.45;
}

.comment-body--tombstone {
  color: var(--text-secondary);
  text-align: center;
  font-style: italic;
  animation: .24s fade-in;
}

.comment-row-body-area {
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  min-width: 0;
  display: flex;
}

.comment-row-body-area:has(.comment-body--tombstone) {
  align-items: center;
}

.comment-vote {
  min-width: 40px;
  color: var(--text-secondary);
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  display: flex;
}

.comment-vote-arrow {
  color: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  background: none;
  border: none;
  padding: 4px;
  line-height: 0;
}

.comment-vote-arrow > svg {
  width: 28px;
  height: 28px;
  display: block;
}

.comment-vote-arrow .vote-arrow {
  fill: none;
  stroke: currentColor;
  transition: fill .18s, stroke .18s;
}

.comment-vote-arrow:hover, .comment-vote-arrow:active {
  color: var(--text-color);
}

.comment-vote-arrow:active .vote-arrow {
  fill: currentColor;
}

.comment-vote-arrow--active {
  color: var(--text-color);
}

.comment-vote-arrow--active .vote-arrow {
  fill: currentColor;
  animation: .24s cubic-bezier(.34, 1.56, .64, 1) vote-pop;
}

.comment-vote-arrow:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.comment-vote-arrow:disabled:hover {
  color: inherit;
}

.comment-vote-count {
  font-variant-numeric: tabular-nums;
  text-align: center;
  min-width: 1em;
  font-size: .95rem;
  line-height: 1;
}

.comment-reply-button {
  color: var(--text-color);
  border: 2px solid var(--border-color);
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 999px;
  justify-content: center;
  align-self: flex-end;
  align-items: center;
  padding: .4rem;
  font-size: .8rem;
  font-weight: 500;
  text-decoration: none;
  transition: transform 80ms;
  display: inline-flex;
}

.comment-reply-button:hover {
  background: var(--input-bg);
}

.comment-reply-button:active {
  transform: scale(.97);
}

.comment-reply-button:disabled {
  cursor: not-allowed;
  opacity: .4;
}

.comment-edit {
  flex-direction: column;
  gap: .5rem;
  margin: .5rem 0;
  display: flex;
}

.comment-edit-textarea {
  resize: none;
  width: 100%;
  min-height: 64px;
  font: inherit;
  color: var(--text-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: .5rem .75rem;
}

.comment-edit-actions {
  justify-content: flex-end;
  gap: .5rem;
  display: flex;
}

.comments-menu-trigger {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  margin-left: auto;
  padding: 2px;
  line-height: 0;
}

.comments-menu-trigger:hover {
  color: var(--text-color);
}

.comments-menu {
  z-index: 10000;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-color);
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 100% 0;
  flex-direction: column;
  width: max-content;
  min-width: 11rem;
  padding: .25rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000002e;
}

.comments-menu--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.comments-menu-item {
  text-align: left;
  font: inherit;
  color: var(--text-color);
  cursor: pointer;
  border-radius: calc(var(--border-radius) - 6px);
  background: none;
  border: none;
  padding: .75rem 1rem;
  font-size: .875rem;
}

.comments-menu-item:hover, .comments-menu-item:focus-visible {
  background: var(--input-bg);
}

.comments-menu-item--danger {
  color: var(--accent-error);
}

.comments-badge-wrap {
  display: inline-flex;
  position: relative;
}

.comments-badge-menu {
  z-index: 10000;
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-color);
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 100% 0;
  flex-direction: column;
  width: max-content;
  min-width: 11rem;
  margin: 0;
  padding: .25rem;
  list-style: none;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  box-shadow: 0 8px 24px #0000002e;
}

.comments-badge-menu--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.comments-badge-menu li {
  list-style: none;
}

.comments-badge-menu-item {
  text-align: left;
  width: 100%;
  font: inherit;
  color: var(--text-color);
  cursor: pointer;
  border-radius: calc(var(--border-radius) - 6px);
  background: none;
  border: none;
  padding: .75rem 1rem;
  font-size: .875rem;
  text-decoration: none;
  display: block;
}

.comments-badge-menu-item:hover, .comments-badge-menu-item:focus-visible {
  background: var(--input-bg);
}

.feed-post-comments-badge {
  appearance: none;
  cursor: pointer;
  font: inherit;
  height: 2.25rem;
  color: var(--text-secondary);
  background: none;
  border: 0;
  border-radius: 8px;
  align-items: center;
  gap: .375rem;
  padding: 0 .5rem;
  font-size: .9375rem;
  line-height: 1;
  text-decoration: none;
  display: inline-flex;
}

.feed-post-comments-badge:hover {
  color: var(--text-color);
}

.feed-post-comments-icon {
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.feed-post-comments-icon > svg {
  width: 1.375rem;
  height: 1.375rem;
  display: block;
}

.feed-post-comments-count {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.form-modal-overlay {
  align-items: flex-start;
}

@media (width >= 600px) {
  .form-modal-overlay {
    align-items: center;
  }
}

.form-modal {
  width: 100%;
  max-width: 30rem;
  margin-top: 1.5rem;
}

.form-modal-content {
  text-align: left;
  flex-direction: column;
  gap: .875rem;
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
}

.form-modal-header {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.form-modal-title {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 600;
}

.form-modal-close {
  appearance: none;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .25rem;
  line-height: 0;
}

.form-modal-close:hover {
  color: var(--text-color);
}

.form-modal-subtitle {
  color: var(--text-secondary);
  margin: 0;
  font-size: .875rem;
  line-height: 1.4;
}

.form-modal-textarea-label {
  color: var(--text-secondary);
  font-size: .8125rem;
}

.form-modal-textarea {
  resize: vertical;
  border-radius: calc(var(--border-radius) - 4px);
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  width: 100%;
  min-height: 4.5rem;
  color: var(--text-color);
  font: inherit;
  padding: .5rem .625rem;
  font-size: .875rem;
}

.form-modal-error {
  color: var(--accent-error);
  margin: 0;
  font-size: .8125rem;
}

.form-modal-actions {
  justify-content: flex-end;
  gap: .5rem;
  margin-top: .25rem;
  display: flex;
}

.form-modal-cancel, .form-modal-submit {
  appearance: none;
  border-radius: calc(var(--border-radius) - 6px);
  font: inherit;
  cursor: pointer;
  border: 0;
  padding: .5rem 1rem;
  font-size: .875rem;
}

.form-modal-cancel {
  color: var(--text-secondary);
  background: none;
}

.form-modal-cancel:hover {
  color: var(--text-color);
}

.form-modal-submit {
  background: var(--accent-gold);
  color: var(--bg-color);
  justify-content: center;
  align-items: center;
  gap: .4rem;
  font-weight: 600;
  display: inline-flex;
}

.form-modal-submit:disabled {
  opacity: .6;
  cursor: progress;
}

.form-modal-submit-spinner {
  border: 2.5px solid color-mix(in srgb, var(--bg-color) 35%, transparent);
  border-top-color: var(--bg-color);
  will-change: transform;
  border-radius: 50%;
  width: .875rem;
  height: .875rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .form-modal-submit-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.form-modal-submit--danger {
  background: var(--accent-error);
  color: #fff;
}

.form-modal-submit--danger:hover:not(:disabled) {
  filter: brightness(.88);
}

.form-modal-actions-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .form-modal-actions-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.form-modal-thanks-body {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9375rem;
  line-height: 1.45;
}

.feedback-rating {
  align-items: center;
  gap: .25rem;
  display: flex;
}

.feedback-star {
  appearance: none;
  color: var(--border-color);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .25rem;
  line-height: 0;
  transition: color .18s;
}

.feedback-star svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.feedback-star:hover, .feedback-star:focus-visible, .feedback-star--active {
  color: var(--accent-gold);
}

.feedback-attachment {
  flex-direction: column;
  align-items: flex-start;
  gap: .5rem;
  display: flex;
}

.feedback-attachment-trigger {
  appearance: none;
  border: 1px dashed var(--border-color);
  border-radius: calc(var(--border-radius) - 4px);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  background: none;
  align-items: center;
  gap: .375rem;
  padding: .5rem .75rem;
  font-size: .8125rem;
  display: inline-flex;
}

.feedback-attachment-trigger:hover, .feedback-attachment-trigger:focus-visible {
  color: var(--text-color);
  border-color: var(--text-color);
}

.feedback-attachment-icon {
  align-items: center;
  line-height: 0;
  display: inline-flex;
}

.feedback-attachment-icon svg {
  width: 1rem;
  height: 1rem;
}

.feedback-attachment-preview-wrap {
  max-width: 100%;
  display: inline-block;
  position: relative;
}

.feedback-attachment-preview {
  border-radius: calc(var(--border-radius) - 6px);
  border: 1px solid var(--border-color);
  object-fit: contain;
  background: var(--input-bg);
  max-width: 100%;
  max-height: 12rem;
  display: block;
}

.feedback-attachment-remove {
  appearance: none;
  border: 1px solid var(--border-color);
  border-radius: calc(var(--border-radius) - 4px);
  color: var(--text-secondary);
  cursor: pointer;
  font: inherit;
  background: none;
  padding: .5rem .75rem;
  font-size: .8125rem;
}

.feedback-attachment-remove:hover, .feedback-attachment-remove:focus-visible {
  color: var(--accent-error);
  border-color: var(--accent-error);
}

.post-captions-transcript {
  overflow-wrap: anywhere;
  font-size: 1rem;
  line-height: 2.2;
}

.post-captions-word {
  appearance: none;
  border-radius: calc(var(--border-radius) - 8px);
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
  background: none;
  border: 0;
  margin: 0 .0625rem;
  padding: .125rem .25rem;
  display: inline-block;
}

.post-captions-word:hover {
  background: var(--input-bg);
}

.post-captions-word:focus-visible {
  outline: 2px solid var(--accent-gold);
  outline-offset: 1px;
}

.post-captions-word-edited {
  text-decoration: underline;
  -webkit-text-decoration-color: var(--accent-gold);
  text-decoration-color: var(--accent-gold);
  text-underline-offset: .25rem;
  text-decoration-thickness: 2px;
}

.post-captions-word-removed {
  color: var(--text-secondary);
}

.post-captions-word-input {
  border-radius: calc(var(--border-radius) - 8px);
  border: 2px solid var(--accent-gold);
  background: var(--input-bg);
  max-width: 100%;
  color: var(--text-color);
  font: inherit;
  outline: none;
  margin: 0 .0625rem;
  padding: 0 calc(.25rem - 2px);
  display: inline-block;
}

.form-modal-loading {
  justify-content: center;
  padding: 1.25rem 0;
  display: flex;
}

.form-modal-spinner {
  border: 2.5px solid color-mix(in srgb, var(--accent-gold) 30%, transparent);
  border-top-color: var(--accent-gold);
  will-change: transform;
  border-radius: 50%;
  width: 1.25rem;
  height: 1.25rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .form-modal-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.share-sheet {
  max-width: 22rem;
}

.share-sheet-rows {
  flex-direction: column;
  display: flex;
}

.share-sheet-row {
  appearance: none;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
  text-align: left;
  background: none;
  align-items: center;
  padding: .875rem .25rem;
  display: flex;
  position: relative;
}

.share-sheet-row:last-child {
  border-bottom: none;
}

@media (hover: hover) and (pointer: fine) {
  .share-sheet-row:hover {
    color: var(--text-secondary);
  }
}

.share-sheet-pill {
  color: var(--text-color);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  padding: .3125rem .875rem;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  position: absolute;
  top: 50%;
  right: .25rem;
  translate: 0 -50%;
}

.share-sheet-qr {
  grid-template-rows: 1fr;
  justify-items: center;
  animation: .24s cubic-bezier(.16, 1, .3, 1) grid-row-reveal;
  display: grid;
}

.share-sheet-qr--closing {
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards grid-row-conceal;
}

.share-sheet-qr-inner {
  min-height: 0;
  padding: .5rem 0 .25rem;
  overflow: hidden;
}

.share-sheet-qr-inner svg {
  border-radius: var(--border-radius);
  background: #fff;
  padding: .5rem;
  display: block;
}

.profile-picture-upload {
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
}

.profile-picture-preview {
  border: 2px solid var(--border-color);
  cursor: pointer;
  background-color: var(--input-bg);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 200px;
  height: 200px;
  transition: border-color .18s;
  display: flex;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .profile-picture-preview:hover {
    border-color: var(--text-color);
  }
}

@media (width >= 768px) {
  .profile-picture-preview {
    width: 240px;
    height: 240px;
  }
}

.profile-picture-crop-container {
  aspect-ratio: 1;
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  cursor: grab;
  border-radius: 50%;
  width: 100%;
  max-width: 320px;
  position: relative;
  overflow: hidden;
}

.profile-picture-crop-container.crop-dragging {
  cursor: grabbing;
}

@media (width >= 768px) {
  .profile-picture-crop-container {
    max-width: 360px;
  }
}

.profile-picture-crop-img {
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.profile-picture-placeholder {
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.profile-picture-loading-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 30%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .profile-picture-loading-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.preview-upload-overlay.profile-picture-pill {
  border-radius: 1rem;
  width: fit-content;
  margin: 0 auto;
  position: static;
  left: auto;
  transform: none;
}

.profile-picture-status {
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  font-size: .85rem;
}

.profile-picture-status.error-message {
  color: var(--accent-error);
}

@media (width >= 768px) {
  .profile-picture-status {
    font-size: .9rem;
  }
}

.profile-picture-actions {
  flex-direction: column;
  gap: .5rem;
  width: 100%;
  display: flex;
}

.profile-picture-actions a.form-button {
  text-align: center;
  color: var(--button-text);
  text-decoration: none;
  display: block;
}

.profile-picture-actions a.form-button:visited {
  color: var(--button-text);
}

.form-button.secondary {
  color: var(--text-color);
  border: 1px solid var(--border-color);
  background-color: #0000;
}

@media (hover: hover) and (pointer: fine) {
  .form-button.secondary:hover {
    background-color: var(--input-bg);
  }
}

.presence-wrap {
  flex-shrink: 0;
  display: inline-flex;
  position: relative;
}

.presence-dot {
  background-color: var(--accent-success);
  border: 2px solid var(--bg-color);
  pointer-events: none;
  border-radius: 50%;
  width: 26%;
  height: 26%;
  position: absolute;
  bottom: 14.645%;
  right: 14.645%;
  transform: translate(50%, 50%);
}

.profile-avatar + .presence-dot {
  width: 20%;
  height: 20%;
}

.feed-post-avatar + .presence-dot {
  width: 36%;
  height: 36%;
}

.intro-screen-stack {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: .5rem .25rem 0;
  display: flex;
}

.intro-screen-stack .card-view-header {
  text-align: center;
}

.intro-screen-hero {
  width: 96px;
  height: 96px;
  color: var(--accent-gold);
  background: color-mix(in srgb, var(--accent-gold) 12%, transparent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  animation: .55s cubic-bezier(.18, 1.2, .5, 1) both import-complete-pop;
  display: inline-flex;
}

.intro-screen-hero svg {
  width: 48px;
  height: 48px;
  display: block;
}

.intro-screen-body {
  color: var(--text-secondary);
  max-width: 32ch;
  margin: 0;
  line-height: 1.45;
}

.intro-screen-actions {
  flex-direction: column;
  align-items: stretch;
  gap: .5rem;
  width: 100%;
  margin-top: .5rem;
  display: flex;
}

.intro-screen-actions a.form-button {
  text-align: center;
  color: var(--button-text);
  text-decoration: none;
  display: block;
}

.intro-screen-actions a.form-button:visited {
  color: var(--button-text);
}

.intro-screen-skip {
  color: var(--text-secondary);
  background: none;
  border: none;
  align-self: center;
  margin-top: .25rem;
  padding: .5rem .75rem;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
}

.intro-screen-skip:visited {
  color: var(--text-secondary);
}

@media (hover: hover) and (pointer: fine) {
  .intro-screen-skip:hover {
    color: var(--text-color);
  }
}

.page-container {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  margin: 0 auto;
  padding: calc(2rem + 53px) 1rem 2rem;
}

.page-container--with-bottom-bar {
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom));
}

@media (width >= 768px) {
  .page-container--with-bottom-bar {
    padding-bottom: 2rem;
  }
}

@media (width >= 1024px) {
  .page-container--wide {
    max-width: 40rem;
  }
}

.container-row {
  color: var(--text-color);
  cursor: pointer;
  border-top: 1px solid var(--border-color);
  font-family: inherit;
  font-size: inherit;
  background: none;
  border-bottom: none;
  border-left: none;
  border-right: none;
  align-items: center;
  width: 100%;
  height: 4rem;
  padding: 1rem 0;
  text-decoration: none;
  transition: transform 80ms;
  display: flex;
}

.container-row:active {
  transform: scale(.99);
}

.container-row-content {
  text-align: left;
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  display: flex;
}

.container-row-label-row {
  align-items: center;
  gap: .4rem;
  display: flex;
}

.container-row-label {
  font-size: .95rem;
  font-weight: 500;
}

.container-row-value {
  color: var(--text-secondary);
  font-size: .85rem;
}

.container-row-pill {
  color: #fff;
  white-space: nowrap;
  background-color: #1e14328c;
  border-radius: 1rem;
  align-items: center;
  gap: .35rem;
  padding: .3rem .6rem;
  font-size: .75rem;
  display: inline-flex;
}

.container-row-pill.hidden {
  display: none;
}

.container-row-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  margin-left: .5rem;
  display: flex;
}

.container-row-chevron svg {
  display: block;
}

.container-row-danger, .container-row-danger .container-row-label {
  color: var(--accent-error);
}

.container-divider {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 0 0 1rem;
}

.container-section-heading {
  color: var(--text-secondary);
  text-align: left;
  margin: 0 0 .5rem;
  font-size: 1rem;
  font-weight: 500;
}

.container-section {
  border-top: 1px solid var(--border-color);
  margin-bottom: 0;
}

.alert-box {
  text-align: left;
  border-radius: .5rem;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  display: flex;
}

.alert-box--danger {
  background-color: #d32f2f14;
  border: 1px solid #d32f2f40;
}

@media (prefers-color-scheme: dark) {
  .alert-box--danger {
    background-color: #ff6b6b14;
    border-color: #ff6b6b40;
  }
}

.alert-box--info {
  background-color: color-mix(in srgb, var(--text-secondary) 8%, transparent);
  border: 1px solid var(--border-color);
}

.alert-box-icon {
  color: var(--accent-error);
  flex-shrink: 0;
  align-items: center;
  margin-top: .1rem;
  display: flex;
}

.alert-box-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.alert-box--info .alert-box-icon {
  color: var(--text-secondary);
}

.alert-box-text {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.alert-box-title {
  color: var(--accent-error);
  margin: 0;
  font-size: .9rem;
  font-weight: 600;
}

.alert-box-body {
  color: var(--text-secondary);
  margin: 0;
  font-size: .85rem;
  line-height: 1.4;
}

.empty-state {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .4rem;
  padding: 2.5rem 1rem 2rem;
  display: flex;
}

.empty-state--bordered {
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0;
}

.empty-state--fill {
  flex: 1;
  justify-content: center;
}

.empty-state-icon {
  color: var(--text-secondary);
  margin-bottom: .5rem;
  animation: .6s cubic-bezier(.34, 1.56, .64, 1) .2s empty-state-wiggle;
  display: flex;
}

.empty-state-icon svg {
  display: block;
}

.empty-state-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.empty-state-sub {
  color: var(--text-secondary);
  margin: 0;
  font-size: .85rem;
}

.empty-state-add {
  background: var(--button-bg);
  width: 4.5rem;
  height: 4.5rem;
  color: var(--button-text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-top: 1.25rem;
  transition: filter .18s, transform 80ms;
  display: inline-flex;
}

.empty-state-add svg {
  width: 32px;
  height: 32px;
}

.empty-state-add:hover {
  background: var(--button-hover);
}

.empty-state-add:active {
  transform: scale(.96);
}

body:has(.modal-overlay) {
  overflow: hidden;
}

.modal-overlay {
  z-index: 9999;
  backdrop-filter: blur(4px);
  pointer-events: auto;
  background-color: #00000080;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: .24s cubic-bezier(.2, 0, 0, 1) fade-in;
  display: flex;
  position: fixed;
  inset: 0;
  overflow-y: auto;
}

.modal {
  background: var(--bg-color);
  border-radius: var(--border-radius);
  max-height: 90vh;
  animation: .3s ease-out modal-enter;
  overflow-y: auto;
  box-shadow: 0 10px 40px #0000004d;
}

.modal-overlay--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards fade-out;
}

.modal-overlay--closing .modal {
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards modal-exit;
}

.wallet-qr {
  animation: .24s cubic-bezier(.2, 0, 0, 1) fade-in;
}

.wallet-funded {
  animation: .55s cubic-bezier(.18, 1.2, .5, 1) both import-complete-pop;
}

.settings-balance-block .settings-section-header {
  letter-spacing: 0;
  color: var(--text-secondary);
  margin-bottom: .125rem;
  font-size: .8rem;
  font-weight: 500;
}

@media (width >= 768px) {
  .settings-balance-block .settings-section-header {
    font-size: .85rem;
  }
}

.wallet-presets {
  grid-template-columns: repeat(2, 7.25rem);
  justify-content: center;
  gap: .875rem;
  margin-bottom: .5rem;
  display: grid;
}

@media (width >= 768px) {
  .wallet-presets {
    grid-template-columns: repeat(2, 8rem);
    gap: 1rem;
  }
}

.wallet-preset {
  aspect-ratio: 1;
  border: 1px solid var(--border-color);
  background-color: var(--post-card-bg);
  width: 100%;
  color: var(--text-color);
  letter-spacing: -.02em;
  white-space: nowrap;
  cursor: pointer;
  appearance: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  font-family: inherit;
  font-size: 1.5rem;
  font-weight: 500;
  transition: border-color .18s, background-color .18s;
  display: flex;
}

.wallet-preset:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .wallet-preset:hover {
    background-color: color-mix(in srgb, var(--text-color) 7%, var(--post-card-bg));
  }
}

.wallet-preset[aria-pressed="true"] {
  border-color: var(--button-bg);
  box-shadow: inset 0 0 0 1px var(--button-bg);
  background-color: color-mix(in srgb, var(--button-bg) 14%, var(--post-card-bg));
}

.wallet-preset--long {
  font-size: 1.125rem;
}

@media (width >= 768px) {
  .wallet-preset--long {
    font-size: 1.25rem;
  }
}

.wallet-rate-notes {
  padding: 1rem var(--border-radius) 0;
  border-top: 1px solid var(--border-color);
  margin-top: 2rem;
}

.wallet-rate-notes p {
  color: var(--text-secondary);
  text-align: left;
  text-wrap: pretty;
  margin: 0;
  font-size: .75rem;
  line-height: 1.5;
}

.wallet-rate-notes p + p {
  margin-top: .25rem;
}

.settings-container {
  padding-top: 3rem;
}

.settings-notifications-loading {
  justify-content: center;
  padding: 2rem 0;
  display: flex;
}

.settings-notifications-loading-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .settings-notifications-loading-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.settings-sections {
  flex-direction: column;
  width: 100%;
  display: flex;
}

.settings-section {
  padding: 1.5rem 0;
}

.settings-section:first-child {
  padding-top: 0;
}

.settings-section + .settings-section {
  border-top: 1px solid var(--border-color);
}

.settings-section form {
  flex-direction: column;
  gap: 1rem;
  display: flex;
}

.settings-section-header {
  letter-spacing: -.01em;
  text-align: left;
  padding-inline: var(--border-radius);
  margin: 0 0 .75rem;
  font-size: 1.05rem;
  font-weight: 600;
}

@media (width >= 768px) {
  .settings-section-header {
    font-size: 1.15rem;
  }
}

.settings-hub {
  gap: 1.75rem;
}

.settings-hub .settings-section {
  padding: 0;
}

.settings-hub .settings-section + .settings-section {
  border-top: none;
}

@media (width >= 768px) {
  .settings-hub {
    gap: 2rem;
  }
}

.settings-group {
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.settings-group > leptos-island {
  display: block;
}

.settings-group > * + * {
  border-top: 1px solid color-mix(in srgb, var(--text-color) 10%, transparent);
}

.settings-group > :first-child {
  border-top: none;
}

.settings-group .container-row {
  padding-inline: var(--border-radius);
}

@media (hover: hover) and (pointer: fine) {
  .settings-group .container-row:hover {
    background-color: color-mix(in srgb, var(--text-color) 5%, transparent);
  }
}

.settings-group .container-row:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: -2px;
}

.settings-group-item {
  padding: .75rem 0 .875rem;
}

.settings-section > p {
  padding-inline: var(--border-radius);
}

.settings-balance {
  text-align: left;
  letter-spacing: -.03em;
  margin: 0 0 .25rem;
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.15;
}

@media (width >= 768px) {
  .settings-balance {
    font-size: 2.5rem;
  }
}

.settings-section > .form-button {
  display: block;
}

.payouts-history {
  border-top: 1px solid var(--border-color);
}

.payouts-status {
  vertical-align: -.08em;
  align-items: center;
  gap: .4rem;
  display: inline-flex;
}

.payouts-status.failed {
  color: var(--accent-error);
}

.payouts-status-dot {
  background-color: var(--text-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  width: .5rem;
  height: .5rem;
}

.payouts-status.in-flight .payouts-status-dot {
  background-color: var(--accent-gold);
}

.payouts-status.paid .payouts-status-dot {
  background-color: var(--accent-success);
}

.payouts-status.failed .payouts-status-dot {
  background-color: var(--accent-error);
}

.payouts-receipt-link {
  color: var(--text-secondary);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-left: .5rem;
  padding: .75rem;
  transition: color .18s;
  display: flex;
}

.payouts-receipt-link:hover {
  color: var(--text-color);
}

.instagram-handle {
  padding-inline: var(--border-radius);
  letter-spacing: -.02em;
  text-align: left;
  overflow-wrap: anywhere;
  margin: 0 0 .5rem;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.instagram-actions {
  flex-direction: column;
  gap: .25rem;
  display: flex;
}

.settings-profile-picture {
  padding: 1.75rem var(--border-radius) 1.5rem;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.settings-profile-picture img {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  width: 120px;
  height: 120px;
}

.settings-profile-picture .form-button {
  width: auto;
  margin-top: 0;
  padding-inline: 2rem;
}

.settings-placeholder-avatar {
  border: 2px solid var(--border-color);
  background-color: var(--input-bg);
  width: 120px;
  height: 120px;
  color: var(--text-secondary);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  display: flex;
}

.settings-loading {
  color: var(--text-secondary);
  padding: 2rem;
}

.settings-author {
  text-align: center;
  color: var(--text-secondary);
  opacity: .6;
  font-size: .75rem;
}

.form-button.danger {
  background-color: var(--accent-error);
  color: #fff;
}

.form-button.danger:hover:not(.disabled) {
  filter: brightness(.88);
}

.form-button.danger.disabled {
  opacity: .5;
  cursor: not-allowed;
}

.settings-locale-picker-card {
  max-width: 720px;
}

.blocked-users-container {
  box-sizing: border-box;
  width: 100%;
  max-width: 400px;
  margin: 0 auto;
  padding: 3.5rem 1rem 2rem;
}

@media (width >= 1024px) {
  .blocked-users-container {
    max-width: 30rem;
  }
}

.blocked-users-header {
  text-align: left;
  margin-bottom: 1.5rem;
}

.blocked-users-header h1 {
  letter-spacing: -.02em;
  margin: 0 0 .5rem;
  font-size: 1.75rem;
  font-weight: 500;
}

@media (width >= 768px) {
  .blocked-users-header h1 {
    font-size: 2rem;
  }
}

.blocked-users-header p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
}

@media (width >= 768px) {
  .blocked-users-header p {
    font-size: 1rem;
  }
}

.profile-header-section {
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "controls controls"
                       "avatar identity";
  align-items: center;
  gap: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: grid;
}

@media (width >= 768px) {
  .profile-header-section {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "avatar identity controls";
  }
}

@media (width >= 1024px) {
  .profile-header-section {
    column-gap: 2rem;
  }
}

.profile-header-section > .presence-wrap {
  grid-area: avatar;
}

.profile-header-section > leptos-island {
  display: contents;
}

.profile-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  width: 86px;
  height: 86px;
}

@media (width >= 1024px) {
  .profile-avatar {
    width: 104px;
    height: 104px;
  }
}

.profile-avatar-placeholder {
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.profile-identity {
  text-align: left;
  grid-area: identity;
  min-width: 0;
}

.profile-display-name {
  letter-spacing: -.01em;
  margin: 0 0 .25rem;
  font-size: 1.4rem;
  font-weight: 500;
}

.profile-founding-badge {
  vertical-align: middle;
  margin-block: -.4em;
  color: var(--accent-gold);
  margin-left: .45rem;
  display: inline-flex;
}

.profile-founding-badge .profile-founding-badge-seal {
  width: 1.6em;
  height: 1.6em;
}

.profile-username {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
}

.profile-created-at, .profile-active-at {
  color: var(--text-secondary);
  margin: .35rem 0 0;
  font-size: .85rem;
}

.profile-description {
  text-align: left;
  color: var(--text-color);
  white-space: pre-wrap;
  overflow-wrap: break-word;
  margin: -1.25rem 0 1.5rem;
  font-size: .95rem;
  line-height: 1.45;
}

.profile-claim-banner {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--post-card-bg);
  text-align: left;
  flex-flow: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  margin: -.75rem 0 1.5rem;
  padding: .75rem 1rem;
  display: flex;
}

.profile-claim-banner-text {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
}

.profile-claim-banner-cta {
  appearance: none;
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  border: none;
  border-radius: 999px;
  flex: none;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  display: inline-block;
}

@media (hover: hover) and (pointer: fine) {
  .profile-claim-banner-cta:hover {
    background: var(--button-hover);
  }
}

.profile-actions {
  flex-direction: row;
  gap: .75rem;
  margin: -.75rem 0 1.5rem;
  display: flex;
}

.profile-header-controls {
  grid-area: controls;
  justify-content: flex-end;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.profile-menu-trigger {
  appearance: none;
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: 0;
  border-radius: 50%;
  flex-shrink: 0;
  padding: .25rem;
  line-height: 0;
}

.profile-menu-trigger:hover, .profile-menu-trigger:focus-visible {
  color: var(--text-color);
  background: var(--input-bg);
}

.profile-menu-mount {
  display: contents;
}

.profile-menu {
  z-index: 10000;
  background: var(--bg-color);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  -webkit-user-select: none;
  user-select: none;
  transform-origin: 100% 0;
  flex-direction: column;
  min-width: 13rem;
  padding: .25rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
  display: flex;
  position: fixed;
  overflow: hidden;
  box-shadow: 0 8px 24px #0000002e;
}

.profile-menu--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.profile-menu-row {
  appearance: none;
  color: var(--text-color);
  text-align: left;
  font: inherit;
  border-radius: calc(var(--border-radius) - 6px);
  cursor: pointer;
  background: none;
  border: 0;
  padding: .625rem .75rem;
  font-size: .875rem;
}

.profile-menu-row:hover, .profile-menu-row:focus-visible {
  background: var(--input-bg);
}

.profile-section {
  margin-bottom: 2rem;
}

.profile-channels-row {
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  display: flex;
}

.profile-channels-heading {
  text-align: left;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.profile-channels-link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .profile-channels-link:hover .profile-channels-chevron {
    color: var(--text-color);
  }
}

.profile-channels-chevron {
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  text-decoration: none;
  transition: color .18s;
  display: flex;
}

.profile-channels-chevron svg {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .profile-channels-chevron:hover {
    color: var(--text-color);
  }
}

.profile-empty-channels {
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
  padding: .5rem 0;
  font-size: .9rem;
}

.profile-channel-owner {
  color: var(--text-secondary);
  text-align: left;
  font-size: .8rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .profile-channel-owner:hover {
    color: var(--text-color);
  }
}

.profile-channels {
  flex-direction: column;
  display: flex;
}

@media (width >= 1024px) {
  .profile-channels {
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: .75rem;
    display: grid;
  }
}

.profile-channel-card {
  border-top: 1px solid var(--border-color);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .9rem 0;
  display: flex;
}

.profile-channel-card:last-child {
  border-bottom: 1px solid var(--border-color);
}

@media (width >= 1024px) {
  .profile-channels .profile-channel-card {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: .9rem 1rem;
  }

  .profile-channels .profile-channel-card:last-child {
    border-bottom: 1px solid var(--border-color);
  }

  .profile-section:has(.profile-channel-card) > .container-section-heading {
    padding-inline-start: var(--border-radius);
  }
}

.profile-channel-info {
  text-align: left;
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  display: flex;
}

.profile-channel-name-row {
  align-items: center;
  gap: .4rem;
  min-width: 0;
  display: flex;
}

.profile-channel-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.profile-channel-icon svg {
  width: 13px;
  height: 13px;
  display: block;
}

.profile-channel-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .95rem;
  font-weight: 500;
  overflow: hidden;
}

.profile-visibility-badge {
  color: var(--text-secondary);
  text-align: left;
  align-items: center;
  gap: .25rem;
  font-size: .75rem;
  display: flex;
}

.profile-visibility-icon {
  align-items: center;
  display: flex;
}

.profile-default-badge {
  color: var(--text-secondary);
  text-align: left;
  font-size: .75rem;
}

.profile-channels-heading-group {
  align-items: center;
  gap: .5rem;
  display: flex;
}

.profile-channels-icon {
  color: var(--text-secondary);
  align-items: center;
  display: inline-flex;
}

.profile-channels-icon svg {
  display: block;
}

.profile-request-count {
  background-color: var(--button-bg);
  color: #fff;
  border-radius: 9999px;
  justify-content: center;
  align-items: center;
  min-width: 1.25rem;
  padding: .15rem .35rem;
  font-size: .7rem;
  font-weight: 600;
  display: inline-flex;
}

.profile-channel-meta {
  color: var(--text-secondary);
  text-align: left;
  font-size: .75rem;
}

.channel-actions {
  flex-shrink: 0;
  align-items: center;
  gap: 2.25rem;
  display: flex;
}

.channel-share-btn {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 5rem;
  height: 2.5rem;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background: none;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: flex;
}

.channel-share-btn svg {
  display: block;
}

@media (hover: hover) and (pointer: fine) {
  .channel-share-btn:hover {
    background: var(--input-bg);
  }
}

.channel-open-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.channel-open-icon svg {
  display: block;
}

.profile-channel-action {
  flex-shrink: 0;
  margin-left: auto;
  margin-right: .5rem;
}

.profile-action-btn {
  min-width: 8rem;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  border: none;
  padding: .5rem 1rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 500;
  transition: background-color .18s, transform 80ms;
  animation: .18s fade-in;
}

.profile-action-btn:active {
  transform: scale(.96);
}

@media (hover: hover) and (pointer: fine) {
  .profile-action-btn:hover {
    background-color: var(--button-hover);
  }
}

.profile-action-btn:disabled, .profile-action-btn[aria-disabled="true"] {
  opacity: .5;
  cursor: not-allowed;
}

.profile-action-active {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: none;
}

@media (hover: hover) and (pointer: fine) {
  .profile-action-active:hover {
    background: var(--input-bg);
  }
}

.profile-action-pending {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: none;
}

.channel-detail-content {
  flex-direction: column;
  min-height: calc(100dvh - 53px - 4rem);
  display: flex;
}

.channels-manage-section {
  margin-bottom: 2rem;
}

.profile-channel-card--link {
  color: inherit;
  cursor: pointer;
  text-decoration: none;
}

.channel-detail-header {
  align-items: center;
  gap: .75rem;
  margin-bottom: .5rem;
  display: flex;
}

.channel-detail-header-text {
  flex-direction: column;
  gap: .1rem;
  display: flex;
}

.channel-detail-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.channel-detail-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.channel-detail-name {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.channel-detail-username {
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.channel-detail-description {
  color: var(--text-color);
  text-align: left;
  margin: .25rem 0 1rem;
  font-size: .95rem;
}

.channel-detail-hint {
  color: var(--text-secondary);
  text-align: left;
  margin: .25rem 0 1rem;
  font-size: .85rem;
}

.channel-detail-spacer {
  flex: 1;
}

.channel-invite-btn-wrapper {
  margin: .75rem 0 1.5rem;
}

.requests-container {
  width: 100%;
  max-width: 560px;
  padding: calc(97px + 1.5rem) 1rem calc(3.5rem + env(safe-area-inset-bottom));
  margin: 0 auto;
}

@media (width >= 768px) {
  .requests-container {
    padding-bottom: 2rem;
  }
}

@media (width >= 1024px) {
  .requests-container {
    max-width: 45rem;
  }

  body:has(.requests-container) .top-bar {
    padding-inline: max(.875rem, (100% - var(--nav-rail-width) - 45rem) / 2 + 1rem);
  }
}

.requests-list {
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1.5rem;
  display: flex;
}

@media (width >= 1024px) {
  .requests-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    display: grid;
  }
}

.requests-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 0;
  font-size: .95rem;
}

.requests-intro {
  color: var(--text-secondary);
  margin: 0 0 1rem;
  font-size: .85rem;
  line-height: 1.45;
}

.requests-tabs {
  z-index: 9;
  background-color: var(--bg-color);
  border-bottom: 1px solid var(--border-color);
  height: 44px;
  display: flex;
  position: fixed;
  top: 53px;
  left: 0;
  right: 0;
}

@media (width >= 768px) {
  .requests-tabs {
    left: var(--nav-rail-width);
    padding: 0 max(0rem, (100% - var(--nav-rail-width) - 560px) / 2);
  }
}

@media (width >= 1024px) {
  .requests-tabs {
    padding: 0 max(0rem, (100% - var(--nav-rail-width) - 45rem) / 2);
  }
}

.requests-tab {
  color: var(--text-secondary);
  border-bottom: 2px solid #0000;
  flex: 1;
  justify-content: center;
  align-items: center;
  margin-bottom: -1px;
  font-size: .9rem;
  font-weight: 500;
  text-decoration: none;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .requests-tab:hover {
    color: var(--text-color);
  }
}

.requests-tab--active {
  color: var(--text-color);
  border-bottom-color: var(--text-color);
}

.request-card {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--bg-color);
  align-items: center;
  gap: .75rem;
  padding: .75rem;
  display: flex;
}

.request-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
}

.request-avatar-placeholder {
  background-color: var(--input-bg);
  border: 2px solid var(--border-color);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.request-avatar-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.request-info {
  flex-direction: column;
  flex: 1;
  gap: .15rem;
  min-width: 0;
  display: flex;
}

.request-username {
  color: var(--text-color);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 500;
  overflow: hidden;
}

.request-channel {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .8rem;
  overflow: hidden;
}

.swipe-row-delete-btn {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .swipe-row-delete-btn {
    width: 2rem;
    height: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    flex-shrink: 0;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity .18s, color .18s, background-color .18s;
    display: flex;
  }

  .request-card:hover .swipe-row-delete-btn, .swipe-row-delete-btn:focus-visible {
    opacity: 1;
  }

  .swipe-row-delete-btn:hover, .swipe-row-delete-btn:focus-visible {
    color: var(--accent-error);
    background-color: var(--input-bg);
  }
}

.request-actions {
  flex-shrink: 0;
  gap: .5rem;
  display: flex;
}

.request-accept-btn {
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  border: none;
  padding: .4rem .85rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  transition: background-color .18s;
}

@media (hover: hover) and (pointer: fine) {
  .request-accept-btn:hover {
    background-color: var(--button-hover);
  }
}

.request-dismiss-btn {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  background: none;
  padding: .4rem .85rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 500;
  transition: background-color .18s;
}

@media (hover: hover) and (pointer: fine) {
  .request-dismiss-btn:hover {
    background: var(--input-bg);
  }
}

.swipe-row {
  border-radius: var(--border-radius);
  max-height: 6rem;
  transition: max-height .3s, opacity .18s, margin-bottom .3s;
  position: relative;
  overflow: hidden;
}

.swipe-row.collapsing {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin: 0;
}

.swipe-row-bg {
  border-radius: var(--border-radius);
  background-color: var(--accent-error);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: visibility 0s .3s;
  display: flex;
  position: absolute;
  inset: 0;
}

.swipe-row:has(.swiping, .swipe-complete) > .swipe-row-bg {
  visibility: visible;
  transition: visibility;
}

.swipe-row-content {
  -webkit-user-select: none;
  user-select: none;
  will-change: transform;
  transition: transform .3s;
  position: relative;
}

.swipe-row-content.swiping {
  transition: none;
}

.swipe-row-content.swipe-complete {
  transform: translateX(-100%);
}

.notifications-container {
  width: 100%;
  max-width: 600px;
  padding: calc(53px + 1rem) 1rem;
  padding-bottom: calc(3.5rem + env(safe-area-inset-bottom) + 1rem);
  margin: 0 auto;
}

@media (width >= 768px) {
  .notifications-container {
    padding-bottom: 2rem;
  }
}

.notifications-list {
  flex-direction: column;
  display: flex;
}

.notification-row {
  border-bottom: 1px solid var(--border-color);
  color: inherit;
  animation: .24s cubic-bezier(.2, 0, 0, 1) backwards slide-up;
  animation-delay: calc(var(--i, 0) * 40ms);
  padding: .85rem .25rem;
  text-decoration: none;
  transition: background-color .6s;
  display: block;
}

.notification-row.unread {
  background: color-mix(in srgb, var(--button-bg) 7%, transparent);
}

.notification-row.unread .notification-body {
  font-weight: 600;
}

.notifications-list--settled .notification-row.unread {
  background: none;
}

.notifications-empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 2rem 0;
}

.thread-header-avatar {
  object-fit: cover;
  vertical-align: middle;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  margin-right: .4rem;
}

.thread-header-avatar-placeholder {
  background-color: var(--input-bg);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.thread-header-avatar-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.thread-header-link {
  color: inherit;
  text-decoration: none;
}

.thread-header-chevron {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.messages-container {
  width: 100%;
  max-width: 560px;
  min-height: 100dvh;
  padding: 5.5rem 1rem calc(3.5rem + env(safe-area-inset-bottom));
  --tab-strip-max-width: 560px;
  margin: 0 auto;
}

@media (width >= 768px) {
  .messages-container {
    padding-bottom: 2.5rem;
  }
}

.messages-container leptos-island {
  display: contents;
}

.messages-container .top-bar-main {
  padding-inline: max(.875rem, 50% - 280px + .875rem);
}

.compose-chips {
  flex-wrap: wrap;
  gap: .4rem;
  margin-bottom: .5rem;
  display: flex;
}

.compose-chip {
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  border-radius: 999px;
  align-items: center;
  gap: .4rem;
  max-width: 100%;
  padding: .25rem .3rem .25rem .35rem;
  font-size: .875rem;
  display: inline-flex;
}

.compose-chip-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  width: 1.75rem;
  height: 1.75rem;
}

.compose-chip-avatar svg {
  width: 1rem;
  height: 1rem;
}

.compose-chip-text {
  text-align: left;
  flex-direction: column;
  min-width: 0;
  line-height: 1.2;
  display: flex;
}

.compose-chip-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  overflow: hidden;
}

.compose-chip-username {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  overflow: hidden;
}

.compose-chip-remove {
  width: 1.25rem;
  height: 1.25rem;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: color .18s, background-color .18s;
  display: inline-flex;
}

.compose-chip-remove svg {
  width: .8rem;
  height: .8rem;
}

@media (hover: hover) and (pointer: fine) {
  .compose-chip-remove:hover {
    color: var(--text-color);
    background-color: var(--border-color);
  }
}

.compose-chip-remove:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 1px;
}

.compose-recipient-field {
  position: relative;
}

.compose-recipient-dropdown {
  z-index: 20;
  background-color: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  max-height: 19rem;
  box-shadow: var(--shadow-card);
  padding: .25rem;
  position: absolute;
  top: calc(100% + .25rem);
  left: 0;
  right: 0;
  overflow-y: auto;
}

.compose-recipient-dropdown .search-row {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
}

.compose-recipient-dropdown .search-empty, .compose-recipient-dropdown .search-loading {
  padding: 1rem 0;
}

.messages-loading {
  justify-content: center;
  padding: 2rem 0;
  display: flex;
}

.messages-loading-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .messages-loading-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.inbox-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 0;
  font-size: .95rem;
}

.inbox-list {
  flex-direction: column;
  margin: 0 -1rem;
  padding: 0;
  list-style: none;
  display: flex;
}

.inbox-row {
  border-bottom: 1px solid var(--border-color);
  max-height: 6rem;
  list-style: none;
  transition: max-height .3s, opacity .18s;
  position: relative;
  overflow: hidden;
}

.inbox-row:last-child {
  border-bottom: none;
}

.inbox-row.collapsing {
  opacity: 0;
  pointer-events: none;
  border-bottom: none;
  max-height: 0;
}

.inbox-row-delete-bg {
  background-color: var(--accent-error);
  color: #fff;
  -webkit-user-select: none;
  user-select: none;
  visibility: hidden;
  justify-content: flex-end;
  align-items: center;
  padding-right: 1.5rem;
  font-size: .875rem;
  font-weight: 600;
  transition: visibility 0s .3s;
  display: flex;
  position: absolute;
  inset: 0;
}

.inbox-row:has(.swiping, .swipe-complete) > .inbox-row-delete-bg {
  visibility: visible;
  transition: visibility;
}

.inbox-row-swipe {
  background-color: var(--bg-color);
  will-change: transform;
  transition: transform .3s;
  position: relative;
}

.inbox-row-swipe.swiping {
  transition: none;
}

.inbox-row-swipe.swipe-complete {
  transform: translateX(-100%);
}

.inbox-row-link {
  color: var(--text-color);
  align-items: center;
  gap: .75rem;
  padding: .75rem 1rem;
  text-decoration: none;
  transition: background-color .18s;
  display: flex;
}

.inbox-row-link:hover {
  background-color: var(--input-bg);
}

.inbox-row-avatar {
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
}

.inbox-row-avatar-placeholder {
  background-color: var(--input-bg);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.inbox-row-avatar-placeholder svg {
  width: 100%;
  height: 100%;
  display: block;
}

.inbox-row-text {
  text-align: left;
  flex-direction: column;
  flex: 1;
  gap: .15rem;
  min-width: 0;
  display: flex;
}

.inbox-row-name-line {
  align-items: center;
  gap: .4rem;
  min-width: 0;
  display: flex;
}

.inbox-row-name {
  min-width: 0;
  color: var(--text-color);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .95rem;
  font-weight: 500;
  overflow: hidden;
}

.peer-standing-badge {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  white-space: nowrap;
  border-radius: 999px;
  flex-shrink: 0;
  padding: .05rem .45rem;
  font-size: .7rem;
  font-weight: 500;
  line-height: 1.4;
}

.inbox-row-preview {
  color: var(--text-secondary);
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: .825rem;
  overflow: hidden;
}

.inbox-row-unread-dot {
  background-color: var(--button-bg);
  border-radius: 50%;
  flex-shrink: 0;
  width: 10px;
  height: 10px;
  margin-left: .5rem;
  animation: .18s cubic-bezier(.16, 1, .3, 1) dot-in;
}

.inbox-row-delete-btn {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .inbox-row-delete-btn {
    width: 2rem;
    height: 2rem;
    color: var(--text-secondary);
    cursor: pointer;
    opacity: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    padding: 0;
    transition: opacity .18s, color .18s, background-color .18s;
    display: flex;
    position: absolute;
    top: 50%;
    right: .75rem;
    transform: translateY(-50%);
  }

  .inbox-row:hover .inbox-row-delete-btn, .inbox-row-delete-btn:focus-visible {
    opacity: 1;
  }

  .inbox-row-delete-btn:hover, .inbox-row-delete-btn:focus-visible {
    color: var(--accent-error);
    background-color: var(--input-bg);
  }
}

:is(html:has(.thread-page), body:has(.thread-page)) {
  overscroll-behavior: none;
  overflow: hidden;
}

.page-wrapper:has(.thread-page) {
  grid-template-rows: 1fr;
}

.page-wrapper:has(.thread-page) > .site-footer {
  display: none;
}

.content-wrapper:has(.thread-page) {
  justify-content: flex-start;
}

html:has(.thread-page) .top-bar {
  position: static;
  transform: none;
}

body:has(.thread-page) .bottom-bar {
  display: none;
}

@media (width >= 768px) {
  body:has(.thread-page) .bottom-bar {
    display: flex;
  }
}

.thread-page {
  left: 0;
  right: 0;
  top: var(--keyboard-top-inset, 0px);
  height: var(--thread-vh);
  flex-direction: column;
  width: 100%;
  max-width: none;
  min-height: 0;
  padding: 0;
  display: flex;
  position: fixed;
  bottom: 0;
}

.thread-page > leptos-island {
  display: contents;
}

@media (width >= 768px) {
  .thread-page {
    left: var(--nav-rail-width);
    width: auto;
  }
}

.thread-sidebar {
  display: none;
}

@media (width >= 1024px) {
  .thread-page {
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-columns: minmax(17rem, 20rem) minmax(0, 1fr);
    display: grid;
  }

  .thread-sidebar {
    overscroll-behavior: contain;
    border-right: 1px solid var(--border-color);
    flex-direction: column;
    grid-area: 1 / 1 / -1;
    min-height: 0;
    padding: .75rem .625rem 1.5rem;
    display: flex;
    overflow-y: auto;
  }

  .thread-page > .top-bar {
    grid-area: 1 / 2;
  }

  .thread-scroll {
    grid-area: 2 / 2;
  }

  .thread-composer-bar, .thread-request-actions {
    grid-area: 3 / 2;
  }
}

.thread-sidebar-title {
  color: var(--text-color);
  text-align: left;
  padding: .5rem .75rem .875rem;
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  display: block;
}

.thread-sidebar-list {
  flex-direction: column;
  gap: .125rem;
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
}

.thread-sidebar-list .inbox-row {
  border-radius: var(--border-radius);
  border-bottom: none;
}

.thread-sidebar-list .inbox-row-link {
  padding: .625rem .75rem;
}

.thread-sidebar-list .inbox-row-link--active {
  background-color: var(--input-bg);
}

.thread-scroll {
  background-image: radial-gradient(60% 50% at 15% 10%, var(--bg-glow-gold), transparent 70%), radial-gradient(50% 45% at 90% 95%, var(--bg-glow-violet), transparent 70%);
  touch-action: none;
  overscroll-behavior: contain;
  flex-direction: column;
  flex: auto;
  min-height: 0;
  padding-block: .5rem;
  padding-inline: max(1rem, 50% - 280px + 1rem);
  display: flex;
  overflow-y: hidden;
}

.thread-scroll--scrollable {
  touch-action: pan-y;
  overflow-y: auto;
}

.thread-messages {
  flex-direction: column;
  gap: .25rem;
  margin: auto 0 0;
  padding: 0 0 .5rem;
  list-style: none;
  display: flex;
}

.thread-time-divider {
  color: var(--text-secondary);
  letter-spacing: .02em;
  -webkit-user-select: none;
  user-select: none;
  align-self: center;
  padding: 1rem 0 .375rem;
  font-size: .75rem;
  list-style: none;
}

.thread-message {
  flex-direction: column;
  align-self: flex-start;
  align-items: flex-start;
  max-width: 85%;
  margin-top: .05rem;
  margin-bottom: .05rem;
  list-style: none;
  display: flex;
}

@media (width >= 768px) {
  .thread-message {
    max-width: min(85%, 27rem);
  }
}

.thread-message--self {
  align-self: flex-end;
  align-items: flex-end;
}

.thread-bubble {
  z-index: 0;
  background-color: var(--dm-other-bubble-bg);
  border-radius: var(--border-radius);
  flex-direction: column;
  align-items: flex-start;
  max-width: 100%;
  padding: .5rem .75rem;
  transition: box-shadow .24s;
  display: flex;
  position: relative;
}

.thread-message--self .thread-bubble {
  background-color: var(--dm-self-bubble-bg);
  color: var(--button-text);
  align-items: flex-end;
}

.thread-message--last-in-group:not(.thread-message--self) .thread-bubble {
  border-bottom-left-radius: 4px;
}

.thread-message--last-in-group:not(.thread-message--self) .thread-bubble:after {
  content: "";
  z-index: -1;
  background-color: var(--dm-other-bubble-bg);
  width: 14px;
  height: 14px;
  clip-path: path("M7.2 0 C7.2 5 5.8 8.5 3.4 10.4 C1.7 11.7 0.5 12.7 1.5 14 L14 14 L14 0 Z");
  position: absolute;
  bottom: 0;
  left: -7px;
}

.thread-message--self.thread-message--last-in-group .thread-bubble {
  border-bottom-right-radius: 4px;
}

.thread-message--self.thread-message--last-in-group .thread-bubble:after {
  content: "";
  z-index: -1;
  background-color: var(--dm-self-bubble-bg);
  width: 14px;
  height: 14px;
  clip-path: path("M6.8 0 C6.8 5 8.2 8.5 10.6 10.4 C12.3 11.7 13.5 12.7 12.5 14 L0 14 L0 0 Z");
  position: absolute;
  bottom: 0;
  right: -7px;
}

.thread-message:not(.thread-message--self):not(.thread-message--first-in-group) .thread-bubble {
  border-top-left-radius: 4px;
}

.thread-message:not(.thread-message--self):not(.thread-message--last-in-group) .thread-bubble {
  border-bottom-left-radius: 4px;
}

.thread-message--self:not(.thread-message--first-in-group) .thread-bubble {
  border-top-right-radius: 4px;
}

.thread-message--self:not(.thread-message--last-in-group) .thread-bubble {
  border-bottom-right-radius: 4px;
}

.thread-message-sender {
  color: var(--text-secondary);
  text-align: left;
  order: 1;
  margin-top: .15rem;
  font-size: .75rem;
}

.thread-message--self .thread-message-sender, .thread-message:not(.thread-message--last-in-group) .thread-message-sender {
  clip: rect(0 0 0 0);
  width: 1px;
  height: 1px;
  position: absolute;
  overflow: hidden;
}

.thread-message-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  text-align: left;
  margin: 0;
  font-size: .95rem;
  line-height: 1.35;
}

.thread-message--self .thread-message-body {
  text-align: right;
}

.thread-message-body--deleted {
  opacity: .65;
  font-style: italic;
}

.thread-message-edited {
  opacity: .7;
  margin-left: .35rem;
  font-size: .7rem;
  font-style: italic;
}

.thread-message-seen {
  color: var(--text-secondary);
  align-self: flex-end;
  margin-top: -.1rem;
  margin-right: .75rem;
  font-size: .7rem;
  list-style: none;
  animation: .18s fade-in;
}

.thread-message--enter {
  animation: .18s cubic-bezier(.2, 0, 0, 1) slide-up;
}

.thread-message-reply {
  border-left: 3px solid var(--accent-gold);
  text-align: left;
  background-color: #00000014;
  border-radius: 6px;
  width: 100%;
  margin: 0 0 .35rem;
  padding: .3rem .5rem;
  font-size: .8rem;
}

.thread-message--self .thread-message-reply {
  border-left-color: var(--button-text);
  background-color: #ffffff2e;
}

.thread-message-reply-label {
  opacity: .85;
  margin-bottom: .1rem;
  font-weight: 500;
  display: block;
}

.thread-message-reply-snippet {
  opacity: .75;
  white-space: nowrap;
  text-overflow: ellipsis;
  display: block;
  overflow: hidden;
}

.thread-message-reactions {
  flex-wrap: wrap;
  gap: .25rem;
  margin-top: .3rem;
  display: flex;
}

.thread-reaction-chip {
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  color: var(--text-color);
  font: inherit;
  cursor: pointer;
  border-radius: 999px;
  align-items: center;
  gap: .2rem;
  padding: .1rem .45rem;
  font-size: .8rem;
  transition: transform 80ms, background-color .18s;
  display: inline-flex;
}

.thread-reaction-chip--pop {
  animation: .18s cubic-bezier(.16, 1, .3, 1) popover-enter;
}

.thread-reaction-chip:active {
  transform: scale(.95);
}

.thread-reaction-chip--mine {
  background: color-mix(in srgb, var(--button-bg) 18%, var(--input-bg));
  border-color: color-mix(in srgb, var(--button-bg) 40%, var(--border-color));
}

.thread-reaction-emoji {
  font-size: 1em;
  line-height: 1;
}

.thread-reaction-count {
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
}

@media (hover: none), (pointer: coarse) {
  .thread-message {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    touch-action: pan-y;
  }
}

.thread-quick-react {
  background-color: #0000000f;
  border-radius: 999px;
  align-items: center;
  gap: .1rem;
  padding: .15rem .35rem;
  display: inline-flex;
}

.thread-message--self .thread-quick-react {
  background-color: #ffffff2e;
}

.thread-quick-react-btn {
  cursor: pointer;
  color: inherit;
  background: none;
  border: none;
  padding: .1rem .25rem;
  font-size: 1rem;
  line-height: 1;
  transition: transform 80ms;
}

.thread-quick-react-btn:active {
  transform: scale(.92);
}

.thread-message-action {
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  padding: .15rem .45rem;
  font-size: .75rem;
}

.thread-message--self .thread-message-action {
  color: color-mix(in srgb, var(--button-text) 80%, transparent);
}

.thread-message-action:hover {
  color: var(--text-color);
}

.thread-message--self .thread-message-action:hover {
  color: var(--button-text);
}

.thread-message-action--danger:hover {
  color: var(--accent-error);
}

.thread-menu-backdrop {
  z-index: 1000;
  backdrop-filter: blur(2px);
  background: #00000073;
  animation: .18s fade-in;
  position: fixed;
  inset: 0;
}

.thread-menu-backdrop--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards fade-out;
}

.thread-message--active {
  z-index: 1001;
  position: relative;
}

.thread-menu-popover {
  z-index: 1002;
  box-sizing: border-box;
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  transform-origin: top;
  border-radius: 16px;
  flex-direction: column;
  gap: .25rem;
  min-width: 11rem;
  max-width: min(16rem, 100vw - 1rem);
  padding: .4rem;
  animation: .18s popover-enter;
  display: flex;
  position: fixed;
  box-shadow: 0 12px 32px #0000004d;
}

.thread-menu-popover--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards popover-exit;
}

.thread-menu-popover .thread-quick-react {
  justify-content: space-between;
  margin-bottom: .15rem;
  display: flex;
}

.thread-menu-popover .thread-quick-react-btn {
  animation: .18s cubic-bezier(.16, 1, .3, 1) backwards popover-enter;
  animation-delay: calc(var(--i, 0) * 20ms);
  padding: .15rem .35rem;
  font-size: 1.25rem;
}

.thread-menu-popover .thread-message-action {
  text-align: left;
  width: 100%;
  color: var(--text-color);
  border-radius: 10px;
  padding: .55rem .6rem;
  font-size: .95rem;
}

.thread-menu-popover .thread-message-action:active {
  background: color-mix(in srgb, var(--text-color) 8%, transparent);
}

.thread-menu-popover .thread-message-action--danger {
  color: var(--accent-error);
}

.thread-message--editing {
  z-index: 1;
  position: relative;
}

.thread-message--editing .thread-bubble {
  box-shadow: 0 0 0 2.5px var(--button-bg), 0 0 18px 3px color-mix(in srgb, var(--button-bg) 55%, transparent);
}

.thread-message-attachments {
  flex-wrap: wrap;
  gap: .25rem;
  width: 100%;
  margin-top: .25rem;
  display: flex;
}

.thread-message-attachments > leptos-island {
  flex: 8rem;
  min-width: 0;
}

.thread-message-attachments + .thread-bubble {
  margin-top: .4rem;
}

.thread-message-image {
  object-fit: contain;
  border-radius: 10px;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 70vh;
  display: block;
}

.thread-message-image--decrypting {
  background-color: var(--border-color);
  animation: 1.2s ease-in-out infinite pulse;
}

.thread-link-card {
  border-radius: var(--border-radius);
  background-color: var(--post-card-bg);
  width: min(20rem, 100%);
  box-shadow: var(--shadow-card);
  color: var(--text-color);
  text-align: left;
  margin-top: .25rem;
  text-decoration: none;
  display: block;
  overflow: hidden;
}

.thread-link-card--reveal {
  animation: .18s cubic-bezier(.2, 0, 0, 1) slide-up;
}

.thread-bubble + .thread-link-card {
  margin-top: .4rem;
}

.thread-link-card-image {
  aspect-ratio: 1.91;
  object-fit: cover;
  background-color: var(--dm-other-bubble-bg);
  width: 100%;
  display: block;
}

.thread-link-card-text {
  flex-direction: column;
  gap: .15rem;
  padding: .55rem .75rem .6rem;
  display: flex;
}

.thread-link-card-title {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  font-size: .9rem;
  font-weight: 600;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.thread-link-card-description {
  color: var(--text-secondary);
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  font-size: .8rem;
  line-height: 1.35;
  display: -webkit-box;
  overflow: hidden;
}

.thread-link-card-domain {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: .15rem;
  font-size: .72rem;
  overflow: hidden;
}

.thread-message-link, .thread-message-hashtag {
  color: inherit;
  text-underline-offset: 2px;
  overflow-wrap: anywhere;
  text-decoration: underline;
}

.thread-typing-slot {
  height: 0;
  transition: height .24s;
  overflow: hidden;
}

.thread-typing {
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
  padding: .35rem .75rem;
  font-size: .8rem;
  font-style: italic;
}

.thread-typing-dots {
  vertical-align: middle;
  align-items: center;
  gap: .2rem;
  margin-left: .15rem;
  display: inline-flex;
}

.thread-typing-dot {
  opacity: .7;
  background-color: currentColor;
  border-radius: 50%;
  width: .3rem;
  height: .3rem;
  animation: 1.2s ease-in-out infinite typing-dot-shimmer;
}

.thread-typing-dot:nth-child(2) {
  animation-delay: .16s;
}

.thread-typing-dot:nth-child(3) {
  animation-delay: .32s;
}

@keyframes typing-dot-shimmer {
  0%, 80%, 100% {
    opacity: .35;
    transform: scale(.8);
  }

  40% {
    opacity: 1;
    transform: scale(1);
  }
}

.thread-request-actions {
  padding: .875rem max(1rem, 50% - 280px + 1rem);
  padding-bottom: calc(.875rem + env(safe-area-inset-bottom));
  text-align: center;
  background-color: var(--post-card-bg);
  border-top: 1px solid var(--border-color);
  flex-direction: column;
  flex-shrink: 0;
  gap: .75rem;
  display: flex;
}

.thread-request-actions p {
  color: var(--text-secondary);
  margin: 0;
  font-size: .85rem;
}

.thread-request-buttons {
  gap: .625rem;
  display: flex;
}

.thread-request-accept, .thread-request-decline {
  min-height: 2.75rem;
  font: inherit;
  border-radius: var(--border-radius);
  cursor: pointer;
  appearance: none;
  flex: 1;
  padding: 0 1rem;
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .18s, border-color .18s, color .18s, transform 80ms;
}

.thread-request-accept:active, .thread-request-decline:active {
  transform: scale(.97);
}

.thread-request-accept {
  color: var(--button-text);
  background-color: var(--button-bg);
  border: none;
}

@media (hover: hover) and (pointer: fine) {
  .thread-request-accept:hover {
    background-color: var(--button-hover);
  }
}

.thread-request-decline {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  background: none;
}

@media (hover: hover) and (pointer: fine) {
  .thread-request-decline:hover {
    color: var(--text-color);
    background: var(--input-bg);
  }
}

.thread-group-actions {
  justify-content: center;
  padding: 1rem 0 .5rem;
  display: flex;
}

.thread-group-leave {
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: .4rem 1rem;
  font-size: .825rem;
  transition: color .18s, border-color .18s;
}

.thread-group-leave:hover {
  color: var(--accent-error);
  border-color: color-mix(in srgb, var(--accent-error) 30%, var(--border-color));
}

.thread-bottom-marker {
  width: 100%;
  height: 1px;
}

.thread-composer-bar {
  padding: 0 max(1rem, 50% - 280px + 1rem);
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--post-card-bg);
  border-top: 1px solid var(--border-color);
  flex-direction: column;
  flex-shrink: 0;
  display: flex;
}

.thread-attachment-pending {
  color: var(--text-secondary);
  align-items: center;
  gap: .5rem;
  padding: .5rem 0;
  font-size: .825rem;
  display: flex;
}

.thread-attachment-pending--error {
  color: var(--accent-error);
}

.thread-attachment-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1rem;
  height: 1rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .thread-attachment-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.thread-attachment-spinner {
  flex-shrink: 0;
}

.thread-attachment-preview {
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
}

.thread-attachment-cancel {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  margin-left: auto;
  padding: .15rem;
  line-height: 0;
  display: inline-flex;
}

.thread-attachment-cancel svg {
  width: 18px;
  height: 18px;
}

.thread-attachment-cancel:hover {
  color: var(--text-color);
}

.thread-reply-banner {
  border-left: 3px solid var(--accent-gold);
  flex-direction: column;
  gap: .15rem;
  padding: .4rem .5rem;
  font-size: .8rem;
  display: flex;
}

.thread-edit-banner {
  border-left: 3px solid var(--button-bg);
  flex-direction: column;
  gap: .15rem;
  padding: .4rem .5rem;
  font-size: .8rem;
  display: flex;
}

.thread-reply-banner-head {
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  display: flex;
}

.thread-reply-label {
  color: var(--text-secondary);
  font-weight: 500;
}

.thread-reply-snippet {
  min-width: 0;
  color: var(--text-color);
  text-align: left;
  overflow-wrap: anywhere;
}

.thread-reply-cancel {
  color: var(--text-secondary);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: .15rem;
  line-height: 0;
  display: inline-flex;
}

.thread-reply-cancel svg {
  width: 18px;
  height: 18px;
}

.thread-reply-cancel:hover {
  color: var(--text-color);
}

.thread-send {
  align-items: flex-end;
  gap: .5rem;
  padding: .5rem 0;
  display: flex;
}

.thread-send .thread-attach-btn, .thread-send .thread-send-btn {
  margin-bottom: .25rem;
}

.thread-send .form-input {
  min-width: 0;
  font: inherit;
  color: var(--text-color);
  background: var(--input-bg);
  border: 1px solid var(--border-color);
  resize: none;
  border-radius: 1.25rem;
  flex: 1;
  max-height: calc(7.75rem + 2px);
  padding: .5rem .75rem;
  line-height: 1.35;
  overflow-y: auto;
}

.thread-send-btn {
  background: var(--button-bg);
  width: 2rem;
  height: 2rem;
  color: var(--button-text);
  cursor: pointer;
  border: none;
  border-radius: 50%;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  transition: background-color .18s, transform 80ms;
  display: none;
}

.thread-send-btn--visible {
  display: inline-flex;
}

.thread-send-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

.thread-send-btn:hover:not(:disabled) {
  background: var(--button-hover);
}

.thread-send-btn:active:not(:disabled) {
  transform: scale(.95);
}

.thread-send-btn:disabled {
  opacity: .5;
  cursor: not-allowed;
}

.thread-attach-btn {
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  width: 2rem;
  height: 2rem;
  color: var(--text-color);
  font: inherit;
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 1.1rem;
  transition: background-color .18s, transform 80ms;
}

.thread-attach-btn:hover:not(:disabled) {
  background: var(--post-card-bg);
}

.thread-attach-btn:active:not(:disabled) {
  transform: scale(.95);
}

.thread-attach-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.thread-shared-post .thread-shared-post-thumb {
  position: relative;
}

.thread-shared-post .thread-shared-post-thumb img {
  object-fit: cover;
  width: 100%;
  max-height: 220px;
  display: block;
}

.thread-shared-post .thread-shared-post-play {
  color: #fff;
  background: #00000080;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  position: absolute;
  bottom: .5rem;
  right: .5rem;
}

.thread-shared-post .thread-shared-post-caption {
  color: var(--text-secondary);
  font-size: .85rem;
}

.thread-shared-post.thread-shared-post--locked {
  opacity: .75;
}

.channel-page-container {
  width: 100%;
  min-height: 100dvh;
  padding: calc(1.5rem + 53px) 0 calc(3.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  display: flex;
}

@media (width >= 768px) {
  .channel-page-container {
    padding-bottom: 2.5rem;
  }
}

.channel-page-container leptos-island, .channel-page-container leptos-children {
  display: contents;
}

.channel-page-inner {
  flex-direction: column;
  flex: 1;
  width: 100%;
  max-width: 600px;
  padding: 0 .75rem;
  display: flex;
}

.channel-page-header {
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem .75rem;
  margin-bottom: .5rem;
  padding: 0;
  display: flex;
}

@media (width >= 768px) {
  .channel-page-header {
    flex-wrap: nowrap;
  }
}

.channel-page-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: flex;
}

.channel-page-icon svg {
  width: 40px;
  height: 40px;
  display: block;
}

.channel-page-action {
  flex: 0 0 100%;
}

@media (width >= 768px) {
  .channel-page-action {
    flex: none;
    margin-left: auto;
  }
}

.channel-trial-note {
  color: var(--text-secondary);
  text-align: right;
  margin: .35rem 0 0;
  font-size: .8rem;
}

.channel-settings-link {
  color: var(--text-secondary);
  align-items: center;
  text-decoration: none;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .channel-settings-link:hover {
    color: var(--text-color);
  }
}

.channel-page-action-row {
  justify-content: flex-end;
  align-items: center;
  gap: .9rem;
  display: flex;
}

.channel-page-share svg {
  width: 16px;
  height: 16px;
}

.channel-page-header-text {
  text-align: left;
  flex-direction: column;
  flex: 1;
  gap: .1rem;
  min-width: 0;
  display: flex;
}

.channel-page-name {
  text-align: left;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  display: -webkit-box;
  overflow: hidden;
}

.channel-page-name--long {
  font-size: 1.1rem;
}

.channel-created-at {
  color: var(--text-secondary);
  margin: .15rem 0 0;
  font-size: .85rem;
}

.channel-page-owner {
  color: var(--text-secondary);
  text-align: left;
  overflow-wrap: anywhere;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .channel-page-owner:hover {
    color: var(--text-color);
  }
}

.channel-page-owner--long {
  font-size: .9rem;
}

.channel-page-description {
  color: var(--text-color);
  text-align: left;
  white-space: pre-wrap;
  word-break: break-word;
  margin: .25rem 0 0;
  padding: 0 1rem;
  font-size: .95rem;
}

.channel-page-meta {
  color: var(--text-secondary);
  align-items: center;
  gap: .4rem;
  margin: .75rem 0 0;
  padding: 0 1rem;
  font-size: .85rem;
  display: flex;
}

.channel-page-meta svg {
  display: block;
}

.channel-page-visibility {
  align-items: center;
  display: flex;
}

.channel-page-subscribers {
  white-space: nowrap;
}

.channel-page-inner .feed-posts {
  margin-top: 1.25rem;
}

.single-post-container {
  width: 100%;
  min-height: 100dvh;
  padding: calc(1.5rem + 53px) 0 calc(3.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  align-items: center;
  display: flex;
}

@media (width >= 768px) {
  .single-post-container {
    padding-bottom: 2.5rem;
  }
}

.single-post-container leptos-island, .single-post-container leptos-children {
  display: contents;
}

.single-post-inner {
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
  width: 100%;
  max-width: 600px;
  padding: 0 .75rem;
  display: flex;
}

.single-post-inner--centered {
  text-align: center;
  justify-content: center;
  align-items: center;
}

@media (width >= 1024px) {
  .single-post-inner:not(.single-post-inner--centered) {
    grid-template-columns: minmax(0, 1fr) minmax(19rem, 24rem);
    align-items: start;
    column-gap: 2.5rem;
    max-width: 65.5rem;
    display: grid;
  }

  .single-post-inner:not(.single-post-inner--centered) .feed-post-card, .single-post-inner:not(.single-post-inner--centered) .single-post-view-channel-cta, .single-post-inner:not(.single-post-inner--centered) .single-post-more {
    grid-column: 1;
  }

  .single-post-inner:not(.single-post-inner--centered) .single-post-view-channel-cta {
    justify-self: center;
  }

  .single-post-inner:not(.single-post-inner--centered) .comments-section {
    grid-area: 1 / 2 / span 12;
    margin-top: 0;
  }
}

.single-post-more {
  border-top: 1px solid var(--border-color);
  flex-direction: column;
  gap: .5rem;
  margin-bottom: 1.5rem;
  padding-top: .5rem;
  display: flex;
}

.single-post-more-header {
  color: var(--text-color);
  text-align: left;
  margin: 0;
  font-size: .9375rem;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .single-post-more-header:hover {
    color: var(--text-color);
  }
}

.single-post-more-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  display: grid;
}

.single-post-thumb {
  aspect-ratio: 1;
  background: var(--input-bg);
  border-radius: 4px;
  display: block;
  position: relative;
  overflow: hidden;
}

.single-post-thumb-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.single-post-thumb-video-badge {
  color: #fff;
  pointer-events: none;
  background: #00000080;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  position: absolute;
  top: .375rem;
  right: .375rem;
}

.single-post-thumb-video-badge svg {
  display: block;
}

.single-post-view-channel-cta {
  border-radius: var(--border-radius);
  background: var(--button-bg);
  color: var(--button-text);
  justify-content: center;
  align-self: center;
  align-items: center;
  margin-bottom: 1.5rem;
  padding: .75rem 2rem;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
}

.single-post-view-channel-cta:hover {
  background: var(--button-hover);
}

.sparkline {
  margin: 0;
}

.sparkline-caption {
  color: var(--text-secondary);
  margin-bottom: .5rem;
  font-size: .875rem;
}

.sparkline-plot {
  width: 100%;
  height: 48px;
  display: block;
}

.sparkline-bar {
  fill: var(--button-bg);
}

.sparkline-baseline {
  stroke: var(--border-color);
  stroke-width: 1px;
}

.sparkline-empty {
  color: var(--text-secondary);
  font-size: .875rem;
}

.insights-modal {
  width: min(28rem, 100%);
}

.insights-status {
  color: var(--text-secondary);
}

.insights-headline {
  align-items: baseline;
  gap: .5rem;
  margin-bottom: 1rem;
  display: flex;
}

.insights-headline-number {
  font-variant-numeric: tabular-nums;
  font-size: 2rem;
  font-weight: 700;
}

.insights-headline-label {
  color: var(--text-secondary);
}

.insights-stats {
  flex-direction: column;
  margin-top: 1rem;
  display: flex;
}

.insights-stat-row {
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .5rem 0;
  display: flex;
}

.insights-stat-row + .insights-stat-row {
  border-top: 1px solid var(--border-color);
}

.insights-stat-label {
  color: var(--text-secondary);
}

.insights-stat-value {
  font-variant-numeric: tabular-nums;
  align-items: center;
  gap: .5rem;
  display: inline-flex;
}

.insights-reactions-detail {
  color: var(--text-secondary);
  gap: .375rem;
  display: inline-flex;
}

.insights-footnote {
  color: var(--text-secondary);
  margin-top: 1rem;
  font-size: .8125rem;
}

.insights-totals {
  gap: 1rem;
  margin-bottom: .75rem;
  display: flex;
}

.insights-total {
  flex-direction: column;
  flex: 1;
  gap: .25rem;
  display: flex;
}

.insights-total-number {
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  font-weight: 700;
}

.insights-total-label {
  color: var(--text-secondary);
  font-size: .875rem;
}

.insights-toggle {
  gap: .5rem;
  margin-bottom: .75rem;
  display: flex;
}

.insights-toggle-button {
  appearance: none;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font: inherit;
  cursor: pointer;
  background: none;
  border-radius: 999px;
  padding: .375rem .75rem;
  font-size: .875rem;
}

.insights-toggle-button[aria-pressed="true"] {
  border-color: var(--text-color);
  color: var(--text-color);
}

.insights-post-list {
  flex-direction: column;
  display: flex;
}

.insights-post-row {
  color: var(--text-color);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .625rem 0;
  text-decoration: none;
  display: flex;
}

.insights-post-row + .insights-post-row {
  border-top: 1px solid var(--border-color);
}

a.insights-post-row:hover .insights-post-caption {
  text-decoration: underline;
}

.insights-post-caption {
  -webkit-line-clamp: 1;
  line-clamp: 1;
  -webkit-box-orient: vertical;
  min-width: 0;
  display: -webkit-box;
  overflow: hidden;
}

.insights-post-stats {
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  align-items: center;
  gap: .75rem;
  font-size: .875rem;
  display: inline-flex;
}

.insights-post-stat {
  align-items: center;
  gap: .25rem;
  display: inline-flex;
}

.insights-post-stat-icon {
  align-items: center;
  display: inline-flex;
}

.insights-post-stat-icon > svg {
  width: 1rem;
  height: 1rem;
  display: block;
}

.insights-empty {
  color: var(--text-secondary);
  font-size: .875rem;
}

.dashboard {
  --dash-bg: #faf9fc;
  --dash-text: #1a1625;
  --dash-text-secondary: #6b6580;
  --dash-panel-bg: #f4f2f8;
  --dash-panel-border: #e4e0ec;
  --dash-label: #7a7490;
  --dash-value: #1a1625;
  --dash-stat-value: #1a1625;
  --dash-stat-label: #8880a0;
  --dash-rank: #9690a8;
  --dash-list-value: #56506a;
  --dash-list-border: #eae8f0;
  --dash-empty: #a8a2b8;
  --dash-activity-user: #9a7b1a;
  --dash-activity-caption: #56506a;
  --dash-ok: #388e3c;
  --dash-warn: #d4453a;
}

@media (prefers-color-scheme: dark) {
  .dashboard {
    --dash-bg: #0e0c14;
    --dash-text: #dbd6e8;
    --dash-text-secondary: #8880a0;
    --dash-panel-bg: #181522;
    --dash-panel-border: #2a2636;
    --dash-label: #8880a0;
    --dash-value: #dbd6e8;
    --dash-stat-value: #f0edf5;
    --dash-stat-label: #6b6580;
    --dash-rank: #56506a;
    --dash-list-value: #a8a2b8;
    --dash-list-border: #1e1b28;
    --dash-empty: #443e58;
    --dash-activity-user: #cda832;
    --dash-activity-caption: #a8a2b8;
    --dash-ok: #51cf66;
    --dash-warn: #ff7b6e;
  }
}

body:has(.dashboard) {
  background-color: #faf9fc;
}

@media (prefers-color-scheme: dark) {
  body:has(.dashboard) {
    background-color: #0e0c14;
  }
}

body:has(.dashboard) .page-wrapper {
  grid-template-columns: minmax(0, 1fr);
}

body:has(.dashboard) .content-wrapper {
  align-items: stretch;
  width: 100%;
  min-width: 0;
}

@media (resolution <= 1x) {
  html:has(.dashboard) {
    font-size: 120%;
  }
}

@media (width <= 700px) {
  html:has(.dashboard) {
    font-size: 87.5%;
  }
}

@media (width <= 480px) {
  html:has(.dashboard) {
    font-size: 81.25%;
  }
}

.dashboard {
  background: var(--dash-bg);
  color: var(--dash-text);
  text-align: left;
  box-sizing: border-box;
  width: 100%;
  min-height: 100dvh;
  padding: 18px 14px;
  font-family: Marzigram Default, system-ui, sans-serif;
}

@media (resolution <= 1x) {
  .dashboard {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizelegibility;
    padding: 10px 12px;
  }
}

@media (width <= 480px) {
  .dashboard {
    padding: 12px 10px;
  }
}

.dashboard:has( > .dashboard-loading) {
  justify-content: center;
  align-items: center;
  display: flex;
}

.dashboard-loading, .dashboard-error {
  color: var(--dash-text-secondary);
  justify-content: center;
  align-items: center;
  font-size: 1.25rem;
  display: flex;
}

.dashboard-loading .dashboard-loading-spinner {
  border-width: 3px;
  width: 48px;
  height: 48px;
}

.dashboard-error {
  min-height: 60dvh;
  color: var(--dash-warn);
}

.dashboard-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 0;
  display: grid;
}

@media (resolution <= 1x) {
  .dashboard-grid {
    gap: 6px;
  }
}

@media (width >= 1600px) {
  .dashboard-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

@media (width <= 1200px) {
  .dashboard-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (width <= 700px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

.dashboard-servers {
  margin: 0 0 12px;
}

@media (resolution <= 1x) {
  .dashboard-servers {
    margin-bottom: 6px;
  }
}

.dashboard-nodes-table-wrap {
  min-width: 0;
  max-width: 100%;
  margin-top: -24px;
  overflow-x: auto;
}

.dashboard-nodes-table {
  border-collapse: collapse;
  white-space: nowrap;
  width: 100%;
  font-size: .85rem;
}

.dashboard-nodes-table th, .dashboard-nodes-table td {
  text-align: left;
  padding: 4px 12px;
}

@media (resolution <= 1x) {
  .dashboard-nodes-table th, .dashboard-nodes-table td {
    padding: 2px 8px;
  }
}

.dashboard-nodes-table th {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dash-text-secondary);
  border-bottom: 1px solid var(--dash-panel-border);
  font-size: .7rem;
  font-weight: 600;
}

.dashboard-nodes-table .dashboard-th-sort {
  width: 100%;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  background: none;
  border: none;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  display: inline-flex;
}

.dashboard-nodes-table .dashboard-th-sort:hover {
  color: var(--dash-text);
}

.dashboard-nodes-table .dashboard-th-sort:focus-visible {
  outline: 2px solid var(--dash-text);
  outline-offset: 2px;
}

.dashboard-nodes-table .dashboard-th-caret {
  border-left: .3em solid #0000;
  border-right: .3em solid #0000;
  flex: none;
  width: 0;
  height: 0;
}

.dashboard-nodes-table th[aria-sort="ascending"] .dashboard-th-caret {
  border-bottom: .34em solid;
}

.dashboard-nodes-table th[aria-sort="descending"] .dashboard-th-caret {
  border-top: .34em solid;
}

.dashboard-nodes-table th[aria-sort="ascending"] .dashboard-th-sort, .dashboard-nodes-table th[aria-sort="descending"] .dashboard-th-sort {
  color: var(--dash-text);
}

.dashboard-nodes-table tr.dashboard-nodes-super-header th {
  letter-spacing: .08em;
  color: var(--dash-text);
  text-align: center;
  border-bottom: none;
  padding-top: 4px;
  padding-bottom: 6px;
  font-size: .65rem;
  font-weight: 700;
}

.dashboard-nodes-table tr.dashboard-nodes-super-header th:not(:empty) {
  background-image: linear-gradient(var(--dash-text-secondary), var(--dash-text-secondary));
  background-position: center bottom 2px;
  background-repeat: no-repeat;
  background-size: calc(100% - 16px) 2px;
}

.dashboard-nodes-table tr.dashboard-nodes-super-header + tr th {
  padding-top: 6px;
}

.dashboard-nodes-table td {
  color: var(--dash-value);
  font-variant-numeric: tabular-nums;
}

.dashboard-nodes-table tbody tr:nth-child(2n) {
  background: var(--dash-bg);
}

.dashboard-nodes-table tbody tr:nth-child(odd) {
  background: var(--dash-panel-bg);
}

.dashboard-nodes-hostname {
  color: var(--dash-text);
  font-weight: 500;
}

.dashboard-panel {
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 14px 16px;
  display: flex;
}

@media (resolution <= 1x) {
  .dashboard-panel {
    gap: 5px;
    padding: 8px 12px;
  }
}

@media (width <= 480px) {
  .dashboard-panel {
    gap: 10px;
    padding: 14px;
  }
}

.dashboard-panel--recent {
  grid-column: span 4;
}

@media (width >= 1600px) {
  .dashboard-panel--recent {
    grid-column: span 2;
  }
}

@media (width <= 1200px) {
  .dashboard-panel--recent {
    grid-column: span 2;
  }
}

@media (width <= 700px) {
  .dashboard-panel--recent {
    grid-column: span 1;
  }
}

.dashboard-panel--commits {
  grid-column: span 2;
}

@media (width >= 1600px) {
  .dashboard-panel--commits {
    grid-column: span 2;
  }
}

@media (width <= 700px) {
  .dashboard-panel--commits {
    grid-column: span 1;
  }
}

@media (width >= 1600px) {
  .dashboard-panel--qr {
    grid-column: span 2;
  }
}

.dashboard-panel--qr .dashboard-nodes-table-wrap {
  --campaign-visible-rows: 10;
  --campaign-header-height: 1.4rem;
  --campaign-row-height: 1.55rem;
  max-height: calc(var(--campaign-header-height) + var(--campaign-visible-rows) * var(--campaign-row-height));
  margin-top: 0;
  overflow-y: auto;
}

@media (resolution <= 1x) {
  .dashboard-panel--qr .dashboard-nodes-table-wrap {
    --campaign-header-height: 1.15rem;
    --campaign-row-height: 1.3rem;
  }
}

.dashboard-panel--qr .dashboard-nodes-table thead th {
  z-index: 1;
  background: var(--dash-panel-bg);
  box-shadow: inset 0 -1px 0 var(--dash-panel-border);
  position: sticky;
  top: 0;
}

@media (width >= 1600px) {
  .dashboard-panel--top-posters, .dashboard-panel--top-channels, .dashboard-panel--referrals {
    grid-column: span 2;
  }
}

.dashboard-commit-sha {
  color: var(--dash-text-secondary);
  white-space: nowrap;
}

.dashboard-commit-summary {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.dashboard-commit-author {
  color: var(--dash-text-secondary);
  white-space: nowrap;
  font-size: .8rem;
}

.dashboard-panel-title {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--dash-text-secondary);
  margin: 0;
  font-size: .8rem;
  font-weight: 600;
  line-height: 1.1;
}

.dashboard-kv {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

@media (resolution <= 1x) {
  .dashboard-kv {
    gap: 2px;
  }
}

.dashboard-kv-row {
  justify-content: space-between;
  align-items: baseline;
  font-size: .9rem;
  line-height: 1.3;
  display: flex;
}

.dashboard-label {
  color: var(--dash-label);
}

.dashboard-value {
  font-variant-numeric: tabular-nums;
  color: var(--dash-value);
}

.dashboard-value--ok {
  color: var(--dash-ok);
}

.dashboard-value--warn {
  color: var(--dash-warn);
}

.dashboard-mono {
  letter-spacing: .02em;
  font-family: ui-monospace, Cascadia Code, Fira Code, monospace;
  font-size: .9rem;
}

.dashboard-stat-row {
  flex-wrap: wrap;
  gap: 12px;
  display: flex;
}

@media (resolution <= 1x) {
  .dashboard-stat-row {
    gap: 6px;
  }
}

.dashboard-stat {
  flex-direction: column;
  flex: 1;
  align-items: center;
  min-width: 50px;
  display: flex;
}

@media (width <= 480px) {
  .dashboard-stat {
    min-width: 50px;
  }
}

.dashboard-stat-value {
  font-variant-numeric: tabular-nums;
  color: var(--dash-stat-value);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
}

@media (resolution <= 1x) {
  .dashboard-stat-value {
    font-size: 1.25rem;
  }
}

@media (width <= 480px) {
  .dashboard-stat-value {
    font-size: 1.35rem;
  }
}

.dashboard-stat-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dash-stat-label);
  text-align: center;
  margin-top: 2px;
  font-size: .7rem;
}

.dashboard-sparkline {
  align-items: flex-end;
  gap: 2px;
  height: 36px;
  margin-top: 2px;
  display: flex;
}

@media (resolution <= 1x) {
  .dashboard-sparkline {
    height: 28px;
  }
}

.dashboard-sparkline-bar {
  background: var(--dash-activity-user);
  opacity: .8;
  border-radius: 2px 2px 0 0;
  flex: 1;
  min-width: 4px;
  transition: opacity .18s;
}

.dashboard-sparkline-bar:hover {
  opacity: 1;
}

.dashboard-list {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.dashboard-list-row {
  border-bottom: 1px solid var(--dash-list-border);
  align-items: baseline;
  gap: 8px;
  padding: 2px 0;
  font-size: .9rem;
  display: flex;
}

.dashboard-rank {
  color: var(--dash-rank);
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 20px;
}

.dashboard-list-name {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  overflow: hidden;
}

.dashboard-list-value {
  font-variant-numeric: tabular-nums;
  color: var(--dash-list-value);
}

.dashboard-empty {
  color: var(--dash-empty);
  margin: 0;
  font-size: .85rem;
  font-style: italic;
}

.dashboard-activity-item, .dashboard-commit-item {
  border-bottom: 1px solid var(--dash-list-border);
  align-items: baseline;
  gap: 10px;
  padding: 3px 0;
  font-size: .9rem;
  display: flex;
}

.dashboard-activity-item:last-child, .dashboard-commit-item:last-child {
  border-bottom: none;
}

.dashboard-activity-user {
  color: var(--dash-activity-user);
  white-space: nowrap;
  min-width: 100px;
}

.dashboard-activity-caption {
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--dash-activity-caption);
  flex: 1;
  overflow: hidden;
}

.dashboard-activity-time, .dashboard-commit-time {
  color: var(--dash-text-secondary);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
}

.dashboard-topbar {
  border-bottom: 1px solid var(--dash-panel-border);
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 0 0 12px;
  padding: 0 0 10px;
  display: flex;
}

@media (resolution <= 1x) {
  .dashboard-topbar {
    margin-bottom: 8px;
    padding-bottom: 6px;
  }
}

@media (width <= 480px) {
  .dashboard-topbar {
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }
}

.dashboard-topbar > * {
  min-width: 0;
}

@media (width <= 700px) {
  .dashboard-topbar {
    grid-template-columns: minmax(0, 1fr) auto;
    display: grid;
  }

  .dashboard-topbar .dashboard-topbar-left {
    display: contents;
  }

  .dashboard-topbar .top-bar-logo {
    justify-self: start;
  }

  .dashboard-topbar .admin-tabs {
    grid-area: 2 / 1 / auto / -1;
    justify-content: center;
  }
}

.dashboard-topbar-right {
  flex-shrink: 0;
  align-items: center;
  gap: 12px;
  display: flex;
}

@media (width <= 480px) {
  .dashboard-topbar-right {
    gap: 6px;
  }
}

.dashboard-topbar-menu-btn {
  color: var(--dash-text);
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 4px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-topbar-menu-btn:hover {
    background: var(--dash-panel-bg);
  }
}

.dashboard-topbar-overlay {
  z-index: 20;
  position: fixed;
  inset: 0;
}

.dashboard-topbar-popover {
  z-index: 21;
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  flex-direction: column;
  gap: 12px;
  min-width: 220px;
  max-width: calc(100vw - 24px);
  padding: 16px;
  display: flex;
  position: fixed;
  top: 56px;
  right: 24px;
}

@media (width <= 480px) {
  .dashboard-topbar-popover {
    min-width: 0;
    max-width: none;
    padding: 12px;
    top: 48px;
    left: 10px;
    right: 10px;
  }
}

.dashboard-topbar-popover-header {
  flex-direction: column;
  display: flex;
}

.dashboard-topbar-popover-email {
  color: var(--dash-text);
  word-break: break-all;
  font-size: .85rem;
  font-weight: 500;
}

.dashboard-topbar-popover-section {
  flex-direction: column;
  gap: 4px;
  display: flex;
}

.dashboard-topbar-popover-label {
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--dash-text-secondary);
  font-size: .7rem;
}

.dashboard-topbar-popover-permission {
  color: var(--dash-text);
  font-size: .8rem;
}

.dashboard-topbar-popover-divider {
  border: none;
  border-top: 1px solid var(--dash-panel-border);
  margin: 0;
}

.dashboard-topbar-popover-logout {
  color: var(--dash-warn);
  cursor: pointer;
  text-align: left;
  background: none;
  border: none;
  padding: 4px 0;
  font-family: inherit;
  font-size: .85rem;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-topbar-popover-logout:hover {
    opacity: .8;
  }
}

.dashboard-refresh-status {
  color: var(--dash-text-secondary);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  gap: 5px;
  font-size: .78rem;
  display: flex;
}

.dashboard-refresh-countdown {
  font-variant-numeric: tabular-nums;
}

.dashboard-loading-spinner {
  border: 1.5px solid color-mix(in srgb, var(--dash-warn) 35%, transparent);
  border-color: color-mix(in srgb, var(--dash-text-secondary) 35%, transparent);
  border-top-color: var(--dash-text-secondary);
  border-radius: 50%;
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  animation: .75s linear infinite dashboard-loading-spin;
}

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

.dashboard-refresh-status--offline {
  color: var(--dash-warn);
  background: color-mix(in srgb, var(--dash-warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--dash-warn) 30%, transparent);
  border-radius: 6px;
  gap: 6px;
  padding: 3px 8px 3px 6px;
  animation: 2s ease-in-out infinite dashboard-offline-pulse;
}

.dashboard-low-power-pill {
  color: var(--dash-warn);
  background: color-mix(in srgb, var(--dash-warn) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--dash-warn) 30%, transparent);
  border-radius: 6px;
  flex-shrink: 0;
  padding: 3px 8px;
  font-size: .85rem;
  font-weight: 500;
}

@keyframes dashboard-offline-pulse {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: .65;
  }
}

.dashboard-topbar-left {
  align-items: center;
  gap: 16px;
  min-width: 0;
  display: flex;
}

.admin-tabs {
  flex-wrap: wrap;
  gap: .5rem;
  display: flex;
}

.admin-tab {
  border-radius: var(--border-radius);
  color: var(--dash-text-secondary);
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
  text-decoration: none;
}

.admin-tab:hover, .admin-tab:focus-visible {
  color: var(--dash-text);
  background: var(--dash-panel-bg);
}

.admin-tab--active {
  color: var(--dash-value);
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
}

.admin-pager {
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: .9rem;
  display: flex;
}

.admin-pager-status {
  color: var(--dash-text-secondary);
  text-align: center;
  font-size: .8rem;
}

.admin-pager-link {
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  color: var(--dash-text);
  padding: .3rem .8rem;
  font-size: .8rem;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .admin-pager-link:hover {
    background: var(--dash-panel-bg);
  }
}

.admin-pager-link:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 1px;
}

.admin-pager-link--off {
  color: var(--dash-text-secondary);
  opacity: .5;
}

.admin-users-table th, .admin-users-table td {
  white-space: nowrap;
}

.admin-users-table .admin-users-email {
  white-space: normal;
  overflow-wrap: anywhere;
  min-width: 24ch;
}

.admin-users-name, .admin-users-since {
  color: var(--dash-text-secondary);
  font-size: .75rem;
  display: block;
}

.admin-users-name {
  white-space: normal;
  overflow-wrap: anywhere;
}

.ln-mono {
  word-break: break-all;
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: .8rem;
}

.ln-muted {
  color: var(--dash-text-secondary);
  font-size: .8rem;
}

.ln-table-wrap {
  min-width: 0;
  max-width: 100%;
  overflow-x: auto;
}

.ln-table {
  border-collapse: collapse;
  width: 100%;
  font-size: .82rem;
}

.ln-table th, .ln-table td {
  text-align: left;
  border-bottom: 1px solid var(--dash-list-border);
  padding: .35rem .5rem;
}

.ln-table .ln-mono {
  word-break: normal;
  white-space: nowrap;
}

.ln-table th {
  color: var(--dash-stat-label);
  font-weight: 600;
}

.ln-table td {
  color: var(--dash-value);
}

.ln-table a {
  color: var(--ln-accent);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .ln-table a:hover {
    text-decoration: underline;
  }
}

.ln-table a:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 2px;
}

.ln-hint {
  color: var(--dash-text-secondary);
  margin-top: .5rem;
  font-size: .78rem;
}

.ln-console {
  --ln-accent: #7c3aed;
  --ln-accent-ink: #fff;
  --ln-accent-soft: #7c3aed14;
  --ln-danger-ink: #fff;
  --ln-danger-soft: #d4453a12;
}

@media (prefers-color-scheme: dark) {
  .ln-console {
    --ln-accent: #9b6ff0;
    --ln-accent-ink: #14101e;
    --ln-accent-soft: #9b6ff021;
    --ln-danger-ink: #2b0f0a;
    --ln-danger-soft: #ff7b6e1a;
  }
}

.ln-console {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding-bottom: 3rem;
}

.ln-console .ln-mono {
  word-break: normal;
  white-space: nowrap;
}

.ln-strip {
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1.9rem;
  padding: .5rem 0 1.2rem;
  display: flex;
}

.ln-strip-node {
  align-items: center;
  gap: .6rem;
  display: flex;
}

.ln-strip-dot {
  background: var(--dash-ok);
  width: 9px;
  height: 9px;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-ok) 18%, transparent);
  border-radius: 50%;
  flex-shrink: 0;
}

.ln-strip-dot--down {
  background: var(--dash-warn);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dash-warn) 18%, transparent);
}

.ln-strip-item {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.ln-strip-label {
  color: var(--dash-stat-label);
  font-size: .68rem;
}

.ln-strip-value {
  color: var(--dash-value);
  font-variant-numeric: tabular-nums;
  font-size: .85rem;
}

.ln-strip-idrow {
  align-items: center;
  gap: 2px;
  display: flex;
}

.ln-strip-idrow .ln-copy {
  width: 22px;
  height: 20px;
}

.ln-strip-right {
  align-items: center;
  gap: .75rem;
  min-width: 0;
  margin-left: auto;
  display: flex;
}

.ln-strip-note {
  color: var(--dash-ok);
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 34ch;
  font-size: .78rem;
  overflow: hidden;
}

.ln-strip-note--error {
  color: var(--dash-warn);
}

@media (width <= 700px) {
  .ln-strip {
    gap: .6rem 1.25rem;
  }

  .ln-strip-right {
    margin-left: 0;
  }
}

.ln-section {
  border-top: 1px solid var(--dash-panel-border);
  padding: 1.1rem 0 1.7rem;
}

.ln-console > .ln-section:first-child {
  border-top: none;
  padding-top: .4rem;
}

.ln-section-head {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .6rem 1rem;
  margin-bottom: 1rem;
  display: flex;
}

.ln-section-title {
  letter-spacing: .01em;
  color: var(--dash-text);
  margin: 0;
  font-size: .95rem;
  font-weight: 600;
}

.ln-subtitle {
  color: var(--dash-text-secondary);
  margin: 0 0 .5rem;
  font-size: .78rem;
  font-weight: 600;
}

.ln-subhead {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .5rem 1rem;
  display: flex;
}

.ln-subhead .ln-subtitle {
  margin: 0;
}

.ln-search {
  flex: 20rem;
  align-items: center;
  gap: .5rem;
  max-width: 34rem;
  display: flex;
}

.ln-search .ln-input {
  flex: 1;
  min-width: 0;
}

.ln-search .ln-btn {
  flex: none;
}

.ln-section .ln-hint + .ln-table-wrap {
  margin-top: .75rem;
}

.ln-cmdbar {
  flex-wrap: wrap;
  gap: .45rem;
  display: flex;
}

.ln-cmd {
  color: var(--dash-text-secondary);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  background: none;
  padding: .38rem .8rem;
  font-family: inherit;
  font-size: .8rem;
  font-weight: 600;
  transition: color .18s, border-color .18s, background-color .18s;
}

@media (hover: hover) and (pointer: fine) {
  .ln-cmd:hover {
    color: var(--dash-text);
    border-color: var(--dash-text-secondary);
  }
}

.ln-cmd:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 2px;
}

.ln-cmd--open {
  color: var(--ln-accent);
  border-color: var(--ln-accent);
  background: var(--ln-accent-soft);
}

@media (hover: hover) and (pointer: fine) {
  .ln-cmd--open:hover {
    color: var(--ln-accent);
    border-color: var(--ln-accent);
  }
}

.ln-cmd--danger {
  color: var(--dash-warn);
  border-color: color-mix(in srgb, var(--dash-warn) 35%, var(--dash-panel-border));
}

@media (hover: hover) and (pointer: fine) {
  .ln-cmd--danger:hover {
    color: var(--dash-warn);
    border-color: var(--dash-warn);
    background: var(--ln-danger-soft);
  }
}

.ln-cmd--danger:focus-visible {
  outline-color: var(--dash-warn);
}

.ln-cmd--danger.ln-cmd--open {
  color: var(--dash-warn);
  border-color: var(--dash-warn);
  background: var(--ln-danger-soft);
}

.ln-figures {
  flex-wrap: wrap;
  gap: .75rem 2.4rem;
  margin-bottom: .9rem;
  display: flex;
}

.ln-figure {
  flex-direction: column;
  gap: 2px;
  display: flex;
}

.ln-figure-label {
  color: var(--dash-stat-label);
  font-size: .72rem;
}

.ln-figure-value {
  font-variant-numeric: tabular-nums;
  color: var(--dash-stat-value);
  font-size: 1.05rem;
  font-weight: 600;
}

.ln-figure-unit {
  color: var(--dash-stat-label);
  margin-left: 3px;
  font-size: .75rem;
  font-weight: 400;
}

.ln-recon {
  flex-wrap: wrap;
  align-items: baseline;
  gap: .35rem 1.6rem;
  margin-bottom: .3rem;
  font-size: .85rem;
  display: flex;
}

.ln-recon-item {
  color: var(--dash-value);
  font-variant-numeric: tabular-nums;
  align-items: baseline;
  gap: .45rem;
  display: flex;
}

.ln-recon-label {
  color: var(--dash-label);
}

.ln-recon-item--warn, .ln-recon-item--warn .ln-recon-label {
  color: var(--dash-warn);
}

.ln-deposit {
  align-items: center;
  gap: .5rem;
  margin-top: .9rem;
  font-size: .85rem;
  display: flex;
}

.ln-deposit .ln-deposit-label, .ln-deposit .ln-copy {
  flex: none;
}

.ln-deposit .ln-mono {
  word-break: break-all;
  white-space: normal;
  flex: 0 auto;
  min-width: 0;
}

.ln-deposit-label {
  color: var(--dash-label);
}

.ln-drawer {
  background: var(--dash-panel-bg);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  margin-bottom: 1.1rem;
  padding: .9rem 1rem 1rem;
  animation: .18s ease-out both ln-pop-in;
}

.ln-drawer-title {
  color: var(--dash-text);
  margin: 0 0 .75rem;
  font-size: .85rem;
  font-weight: 600;
}

.ln-drawer-fields {
  flex-wrap: wrap;
  gap: .75rem;
  display: flex;
}

.ln-field {
  flex-direction: column;
  flex: 1;
  gap: 4px;
  min-width: 170px;
  display: flex;
}

.ln-field--wide {
  flex: 2 100%;
}

.ln-field-label {
  color: var(--dash-stat-label);
  font-size: .72rem;
}

.ln-input {
  width: 100%;
  color: var(--dash-text);
  background: var(--dash-bg);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  appearance: none;
  outline: none;
  padding: .5rem .65rem;
  font-family: inherit;
  font-size: .9rem;
  transition: border-color .18s;
}

.ln-input::placeholder {
  color: var(--dash-empty);
}

.ln-input:focus, .ln-input:focus-visible {
  border-color: var(--ln-accent);
}

.ln-input--mono {
  font-family: ui-monospace, SF Mono, Menlo, monospace;
  font-size: .82rem;
}

.ln-drawer-foot {
  flex-wrap: wrap;
  align-items: center;
  gap: .9rem;
  margin-top: .9rem;
  display: flex;
}

.ln-drawer-hint {
  color: var(--dash-text-secondary);
  margin: 0;
  font-size: .78rem;
}

@media (width <= 480px) {
  .ln-field {
    min-width: 100%;
  }
}

.ln-btn {
  color: var(--ln-accent-ink);
  background: var(--ln-accent);
  border-radius: var(--border-radius);
  cursor: pointer;
  border: none;
  padding: .5rem 1rem;
  font-family: inherit;
  font-size: .85rem;
  font-weight: 600;
  transition: filter .18s;
}

@media (hover: hover) and (pointer: fine) {
  .ln-btn:hover {
    filter: brightness(1.08);
  }

  .ln-btn:active {
    transform: translateY(1px);
  }
}

.ln-btn:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 2px;
}

.ln-btn.disabled {
  opacity: .45;
  cursor: default;
}

@media (hover: hover) and (pointer: fine) {
  .ln-btn.disabled:hover {
    filter: none;
  }

  .ln-btn.disabled:active {
    transform: none;
  }
}

.ln-btn--danger {
  color: var(--ln-danger-ink);
  background: var(--dash-warn);
}

.ln-btn--danger:focus-visible {
  outline-color: var(--dash-warn);
}

.ln-btn--ghost {
  color: var(--dash-text-secondary);
  background: none;
}

@media (hover: hover) and (pointer: fine) {
  .ln-btn--ghost:hover {
    color: var(--dash-text);
    filter: none;
  }
}

.ln-row-btn {
  color: var(--dash-text-secondary);
  border: 1px solid var(--dash-panel-border);
  border-radius: var(--border-radius);
  cursor: pointer;
  background: none;
  padding: .22rem .6rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 500;
  transition: color .18s, border-color .18s, background-color .18s;
}

@media (hover: hover) and (pointer: fine) {
  .ln-row-btn:hover {
    color: var(--dash-text);
    border-color: var(--dash-text-secondary);
  }
}

.ln-row-btn:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 1px;
}

.ln-row-btn + .ln-row-btn {
  margin-left: .4rem;
}

.ln-row-btn--danger {
  color: var(--dash-warn);
}

@media (hover: hover) and (pointer: fine) {
  .ln-row-btn--danger:hover {
    color: var(--dash-warn);
    border-color: var(--dash-warn);
    background: var(--ln-danger-soft);
  }
}

.ln-row-btn--danger:focus-visible {
  outline-color: var(--dash-warn);
}

.ln-feedback {
  color: var(--dash-ok);
  background: color-mix(in srgb, var(--dash-ok) 9%, transparent);
  border: 1px solid color-mix(in srgb, var(--dash-ok) 25%, transparent);
  border-radius: var(--border-radius);
  align-items: center;
  gap: .6rem;
  margin-bottom: 1rem;
  padding: .5rem .75rem;
  font-size: .82rem;
  animation: .18s ease-out both ln-pop-in;
  display: flex;
}

.ln-feedback--error {
  color: var(--dash-warn);
  background: color-mix(in srgb, var(--dash-warn) 9%, transparent);
  border-color: color-mix(in srgb, var(--dash-warn) 25%, transparent);
}

.ln-feedback-text {
  word-break: break-word;
  flex: 1;
  min-width: 0;
}

.ln-feedback-text.ln-mono {
  word-break: break-all;
  white-space: normal;
  font-size: .78rem;
}

.ln-copy {
  width: 24px;
  height: 24px;
  color: inherit;
  cursor: pointer;
  opacity: .75;
  background: none;
  border: none;
  border-radius: 6px;
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

@media (hover: hover) and (pointer: fine) {
  .ln-copy:hover {
    opacity: 1;
    background: color-mix(in srgb, currentColor 12%, transparent);
  }
}

.ln-copy:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 1px;
  opacity: 1;
}

.ln-copy svg {
  width: 13px;
  height: 13px;
}

.ln-copy--copied {
  color: var(--dash-ok);
  opacity: 1;
}

.ln-confirm-inline {
  color: var(--dash-warn);
  background: var(--ln-danger-soft);
  border: 1px solid color-mix(in srgb, var(--dash-warn) 45%, transparent);
  border-radius: var(--border-radius);
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem;
  margin-top: .9rem;
  padding: .65rem .75rem;
  animation: .18s ease-out both ln-pop-in;
  display: flex;
}

.ln-confirm-inline svg {
  flex-shrink: 0;
}

.ln-confirm-inline--table {
  margin-top: 0;
  margin-bottom: 1rem;
}

.ln-confirm-copy {
  flex: 1;
  min-width: 16rem;
  margin: 0;
  font-size: .8rem;
}

.ln-confirm-copy strong {
  letter-spacing: .04em;
}

.ln-confirm-input {
  border-color: color-mix(in srgb, var(--dash-warn) 45%, transparent);
  flex: none;
  width: 9.5rem;
}

.ln-confirm-input:focus, .ln-confirm-input:focus-visible {
  border-color: var(--dash-warn);
}

.ln-console .ln-table th, .ln-console .ln-table td {
  vertical-align: top;
  padding: .42rem .7rem;
}

.ln-console .ln-table th {
  font-size: .72rem;
}

.ln-console .ln-table th:first-child, .ln-console .ln-table td:first-child {
  padding-left: 0;
}

.ln-console .ln-table th:last-child, .ln-console .ln-table td:last-child {
  padding-right: 0;
}

.ln-console .ln-table tbody tr {
  transition: background-color .18s;
}

@media (hover: hover) and (pointer: fine) {
  .ln-console .ln-table tbody tr:hover {
    background: var(--dash-panel-bg);
  }
}

.ln-console .ln-table .ln-num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.ln-console .ln-table .ln-actions {
  text-align: right;
  white-space: nowrap;
}

.ln-console .ln-table .ln-icon-link {
  opacity: .8;
  border-radius: 6px;
  justify-content: center;
  align-items: center;
  width: 1.6rem;
  height: 1.6rem;
  margin: -.2rem 0;
  transition: opacity .18s, background-color .18s;
  display: inline-flex;
}

@media (hover: hover) and (pointer: fine) {
  .ln-console .ln-table .ln-icon-link:hover {
    opacity: 1;
    background: var(--ln-accent-soft);
  }
}

.ln-console .ln-table .ln-icon-link:focus-visible {
  outline: 2px solid var(--ln-accent);
  outline-offset: 1px;
  opacity: 1;
}

.ln-console .ln-table .ln-icon-link svg {
  width: 14px;
  height: 14px;
}

.ln-console .ln-table .ln-row-btn + .ln-icon-link {
  margin-left: .4rem;
}

.ln-console .ln-table tr.ln-row--safe td {
  color: var(--dash-text-secondary);
}

.ln-console .ln-table .ln-flagged-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
  min-width: 18rem;
}

.ln-state {
  white-space: nowrap;
  align-items: center;
  gap: 6px;
  display: inline-flex;
}

.ln-state--ok {
  color: var(--dash-ok);
}

.ln-state--warn {
  color: var(--dash-warn);
}

.ln-state--muted {
  color: var(--dash-text-secondary);
}

.ln-dot {
  background: var(--dash-empty);
  border-radius: 50%;
  flex-shrink: 0;
  width: 7px;
  height: 7px;
}

.ln-dot--ok {
  background: var(--dash-ok);
}

.ln-console .ln-table .ln-mono.ln-wrap {
  white-space: normal;
  word-break: break-word;
  min-width: 26ch;
}

.ln-reason {
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  max-width: 24ch;
  color: var(--dash-text-secondary);
  display: inline-block;
  overflow: hidden;
}

.ln-peers {
  margin-top: 1.4rem;
}

.ln-peer-row {
  border-bottom: 1px solid var(--dash-list-border);
  align-items: center;
  gap: .6rem;
  padding: .35rem 0;
  font-size: .85rem;
  display: flex;
}

.ln-peer-row:last-child {
  border-bottom: none;
}

.ln-peer-addr {
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  color: var(--dash-text-secondary);
  flex: 1;
  font-size: .8rem;
  overflow: hidden;
}

.ln-tag {
  color: var(--dash-text-secondary);
  border: 1px solid var(--dash-panel-border);
  white-space: nowrap;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: .68rem;
}

.ln-ledger {
  grid-template-columns: 1fr;
  align-items: start;
  gap: 1.5rem;
  display: grid;
}

@media (width >= 1000px) {
  .ln-ledger {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
}

.ln-ledger-block {
  min-width: 0;
}

@keyframes ln-pop-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ln-drawer, .ln-feedback, .ln-confirm-inline {
    animation: none;
  }
}

.search-container {
  width: 100%;
  max-width: 600px;
  min-height: 100dvh;
  padding: 7rem .75rem calc(3.5rem + env(safe-area-inset-bottom));
  flex-direction: column;
  margin: 0 auto;
  display: flex;
}

@media (width >= 768px) {
  .search-container {
    padding-bottom: 2.5rem;
  }
}

.search-container leptos-island, .search-container leptos-children {
  display: contents;
}

.search-header {
  z-index: 10;
  background-color: var(--post-card-bg);
  box-shadow: var(--shadow-card);
  flex-direction: column;
  padding: .75rem max(.875rem, 50% - 300px + .875rem);
  transition: transform .3s;
  display: flex;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

@media (width >= 768px) {
  .search-header {
    left: var(--nav-rail-width);
    padding: .75rem max(.875rem, (100% - var(--nav-rail-width) - 600px) / 2 + .875rem);
  }
}

.search-header--hidden {
  transform: translateY(-100%);
}

.search-header-top {
  justify-content: space-between;
  align-items: center;
  display: flex;
}

.search-form {
  gap: .5rem;
  margin: 0;
  padding-top: .5rem;
  display: flex;
}

.search-input-wrapper {
  flex: 1;
  align-items: center;
  min-width: 0;
  display: flex;
  position: relative;
}

.search-input {
  width: 100%;
  min-width: 0;
  color: var(--text-color);
  background-color: var(--input-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  appearance: none;
  outline: none;
  padding: .875rem 2.5rem .875rem 1rem;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color .18s, background-color .3s;
}

.search-input:focus, .search-input:focus-visible {
  border-color: var(--text-color);
}

.search-input::placeholder {
  color: var(--text-secondary);
  opacity: .6;
}

.search-input::-webkit-search-cancel-button {
  appearance: none;
}

.search-input::-webkit-search-decoration {
  appearance: none;
}

@media (width >= 768px) {
  .search-input {
    padding: 1rem 2.75rem 1rem 1.125rem;
  }
}

.search-clear {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--text-secondary);
  cursor: pointer;
  appearance: none;
  background: none;
  border: none;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  padding: 0;
  transition: color .18s, background-color .18s;
  display: inline-flex;
  position: absolute;
  top: 50%;
  right: .5rem;
  transform: translateY(-50%);
}

.search-clear svg {
  width: 1rem;
  height: 1rem;
}

.search-clear:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .search-clear:hover {
    color: var(--text-color);
    background-color: var(--border-color);
  }
}

.search-clear--hidden {
  visibility: hidden;
  pointer-events: none;
}

.search-loading, .search-empty, .search-error {
  color: var(--text-secondary);
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding-top: 1.5rem;
  font-size: .95rem;
  display: flex;
}

.search-loading-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 1.5rem;
  height: 1.5rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .search-loading-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.search-results {
  flex-direction: column;
  gap: .75rem;
  display: flex;
}

.search-sections {
  flex-direction: column;
  gap: 1.25rem;
  display: flex;
}

.search-section {
  flex-direction: column;
  gap: .5rem;
  display: flex;
}

.search-section-heading {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  text-align: left;
  margin: 0;
  padding: 0 .25rem;
  font-size: .75rem;
  font-weight: 600;
}

.search-rows {
  flex-direction: column;
  display: flex;
}

.search-rows > .search-row {
  animation: .18s cubic-bezier(.16, 1, .3, 1) backwards slide-up;
}

.search-rows > .search-row:first-of-type {
  animation-delay: 0s;
}

.search-rows > .search-row:nth-of-type(2) {
  animation-delay: 20ms;
}

.search-rows > .search-row:nth-of-type(3) {
  animation-delay: 40ms;
}

.search-rows > .search-row:nth-of-type(4) {
  animation-delay: 60ms;
}

.search-rows > .search-row:nth-of-type(5) {
  animation-delay: 80ms;
}

.search-rows > .search-row:nth-of-type(6) {
  animation-delay: .1s;
}

.search-rows > .search-row:nth-of-type(7) {
  animation-delay: .12s;
}

.search-rows > .search-row:nth-of-type(8) {
  animation-delay: .14s;
}

.search-row {
  color: var(--text-color);
  border-radius: var(--border-radius);
  align-items: center;
  gap: .75rem;
  padding: .625rem .25rem;
  text-decoration: none;
  transition: background-color .18s;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .search-row:hover {
    background-color: var(--input-bg);
  }
}

.search-row:active {
  background-color: var(--input-bg);
}

.search-row-avatar {
  object-fit: cover;
  border: 1px solid var(--border-color);
  border-radius: 50%;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
}

.search-row-icon {
  width: 2.25rem;
  color: var(--text-secondary);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: flex;
}

.search-row-icon svg {
  width: 1.75rem;
  height: 1.75rem;
  display: block;
}

.search-row-button {
  width: 100%;
  font: inherit;
  cursor: pointer;
  background: none;
  border: none;
}

.search-row-icon-hashtag {
  color: var(--accent-gold);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1;
}

.search-row-avatar-placeholder {
  background-color: var(--input-bg);
  color: var(--text-secondary);
  justify-content: center;
  align-items: center;
  display: flex;
}

.search-row-text {
  text-align: left;
  flex-direction: column;
  gap: .125rem;
  min-width: 0;
  display: flex;
}

.search-row-primary {
  letter-spacing: -.01em;
  color: var(--text-color);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .9375rem;
  font-weight: 600;
  overflow: hidden;
}

.search-row-secondary {
  color: var(--text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .75rem;
  overflow: hidden;
}

.search-row-secondary--inline {
  align-items: center;
  gap: .375rem;
  display: flex;
}

.search-idle {
  flex-direction: column;
  flex: 1;
  gap: 1.25rem;
  min-height: 0;
  display: flex;
}

.search-highlight {
  color: var(--accent-gold);
  background-color: #0000;
  font-weight: 700;
}

.search-section-header {
  justify-content: space-between;
  align-items: baseline;
  padding: 0 .25rem;
  display: flex;
}

.search-section-action {
  letter-spacing: .02em;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--border-radius);
  appearance: none;
  background: none;
  border: none;
  margin: 0;
  padding: .25rem .5rem;
  font-family: inherit;
  font-size: .75rem;
  font-weight: 600;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .search-section-action:hover {
    color: var(--text-color);
  }
}

.search-section-action:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.search-recent-row {
  border-radius: var(--border-radius);
  align-items: stretch;
  gap: .25rem;
  transition: background-color .18s;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .search-recent-row:hover {
    background-color: var(--input-bg);
  }
}

.search-recent-select {
  min-width: 0;
  color: var(--text-color);
  text-align: left;
  cursor: pointer;
  border-radius: var(--border-radius);
  appearance: none;
  background: none;
  border: none;
  flex: 1;
  align-items: center;
  gap: .625rem;
  padding: .625rem .5rem;
  font-family: inherit;
  font-size: .9375rem;
  display: flex;
}

.search-recent-select:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: -2px;
}

.search-recent-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.search-recent-query {
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.search-recent-remove {
  width: 2rem;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--border-radius);
  appearance: none;
  background: none;
  border: none;
  justify-content: center;
  align-items: center;
  padding: 0;
  display: inline-flex;
}

.search-recent-remove svg {
  width: 1rem;
  height: 1rem;
}

@media (hover: hover) and (pointer: fine) {
  .search-recent-remove:hover {
    color: var(--text-color);
  }
}

.search-recent-remove:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.trending-container {
  width: 100%;
  max-width: 600px;
  min-height: 100dvh;
  padding: calc(53px + .75rem) .75rem calc(3.5rem + env(safe-area-inset-bottom));
  text-align: left;
  margin: 0 auto;
}

@media (width >= 768px) {
  .trending-container {
    padding-bottom: 2.5rem;
  }
}

.trending-updated {
  color: var(--text-secondary);
  text-align: center;
  margin: 0;
  padding: .25rem .25rem .75rem;
  font-size: .75rem;
}

.trending-section-heading {
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-secondary);
  margin: 0 0 .5rem;
  padding: 0 .25rem;
  font-size: .75rem;
  font-weight: 600;
}

.trending-list {
  flex-direction: column;
  display: flex;
}

.trending-list > .trending-entry, .trending-skeleton > .trending-entry {
  animation: .18s cubic-bezier(.16, 1, .3, 1) backwards slide-up;
}

.trending-list > .trending-entry:first-child, .trending-skeleton > .trending-entry:first-child {
  animation-delay: 0s;
}

.trending-list > .trending-entry:nth-child(2), .trending-skeleton > .trending-entry:nth-child(2) {
  animation-delay: 20ms;
}

.trending-list > .trending-entry:nth-child(3), .trending-skeleton > .trending-entry:nth-child(3) {
  animation-delay: 40ms;
}

.trending-list > .trending-entry:nth-child(4), .trending-skeleton > .trending-entry:nth-child(4) {
  animation-delay: 60ms;
}

.trending-list > .trending-entry:nth-child(5), .trending-skeleton > .trending-entry:nth-child(5) {
  animation-delay: 80ms;
}

.trending-list > .trending-entry:nth-child(6), .trending-skeleton > .trending-entry:nth-child(6) {
  animation-delay: .1s;
}

.trending-list > .trending-entry:nth-child(7), .trending-skeleton > .trending-entry:nth-child(7) {
  animation-delay: .12s;
}

.trending-list > .trending-entry:nth-child(8), .trending-skeleton > .trending-entry:nth-child(8) {
  animation-delay: .14s;
}

.trending-entry {
  flex-direction: column;
  padding-bottom: .375rem;
  display: flex;
}

.trending-row {
  color: var(--text-color);
  border-radius: var(--border-radius);
  align-items: center;
  gap: .875rem;
  padding: .625rem .25rem;
  text-decoration: none;
  transition: background-color .18s;
  display: flex;
}

@media (hover: hover) and (pointer: fine) {
  .trending-row:hover {
    background-color: var(--input-bg);
  }
}

.trending-row:active {
  background-color: var(--input-bg);
}

.trending-row:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.trending-rank {
  text-align: center;
  min-width: 2.25rem;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
  font-family: Marzigram Headline, Marzigram Default, sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.trending-row-text {
  flex-direction: column;
  gap: .2rem;
  min-width: 0;
  display: flex;
}

.trending-tag {
  letter-spacing: -.01em;
  color: var(--accent-gold-copy);
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.0625rem;
  font-weight: 600;
  overflow: hidden;
}

.trending-meta {
  color: var(--text-secondary);
  align-items: center;
  gap: .375rem;
  font-size: .75rem;
  display: flex;
}

.trending-pill {
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
  border-radius: 9999px;
  flex-shrink: 0;
  padding: .0625rem .5rem;
  font-size: .6875rem;
  font-weight: 600;
  line-height: 1.4;
}

.trending-thumbs {
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  padding: 0 .25rem;
  display: grid;
}

.trending-thumb {
  aspect-ratio: 1;
  background: var(--input-bg);
  border-radius: 4px;
  display: block;
  position: relative;
  overflow: hidden;
}

.trending-thumb:focus-visible {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.trending-thumb-img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  display: block;
}

.trending-thumb-video-badge {
  color: #fff;
  pointer-events: none;
  background: #00000080;
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  width: 1.5rem;
  height: 1.5rem;
  display: inline-flex;
  position: absolute;
  top: .375rem;
  right: .375rem;
}

.trending-thumb-video-badge svg {
  display: block;
}

.trending-footnote {
  color: var(--text-secondary);
  text-align: center;
  margin: 1.5rem 0 0;
  padding: 0 1rem;
  font-size: .75rem;
  line-height: 1.5;
}

.trending-error {
  color: var(--text-secondary);
  justify-content: center;
  padding-top: 1.5rem;
  font-size: .95rem;
  display: flex;
}

.trending-skeleton {
  flex-direction: column;
  display: flex;
}

.trending-skeleton-updated {
  background-color: var(--border-color);
  border-radius: 4px;
  width: 8.5rem;
  height: .75rem;
  margin: .3rem auto 1.05rem;
  animation: 1.2s ease-in-out infinite pulse;
  display: block;
}

.trending-skeleton-row {
  align-items: center;
  gap: .875rem;
  padding: .625rem .25rem;
  display: flex;
}

.trending-skeleton-rank {
  background-color: var(--border-color);
  border-radius: 4px;
  flex-shrink: 0;
  width: 2.25rem;
  height: 1.75rem;
  animation: 1.2s ease-in-out infinite pulse;
}

.trending-skeleton-text {
  flex-direction: column;
  flex: 1;
  gap: .375rem;
  min-width: 0;
  display: flex;
}

.trending-skeleton-line {
  background-color: var(--border-color);
  border-radius: 4px;
  height: .875rem;
  animation: 1.2s ease-in-out infinite pulse;
  display: block;
}

.trending-skeleton-line--primary {
  width: 40%;
}

.trending-skeleton-line--secondary {
  width: 25%;
  height: .625rem;
}

.trending-skeleton-thumb {
  aspect-ratio: 1;
  background-color: var(--border-color);
  border-radius: 4px;
  animation: 1.2s ease-in-out infinite pulse;
  display: block;
}

.tag-page-header {
  padding: 1rem 1rem .5rem;
}

.tag-page-tag {
  letter-spacing: -.02em;
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.tag-page-counts {
  color: var(--text-secondary);
  margin: .25rem 0 0;
  font-size: .9rem;
}

.tag-page-grid {
  grid-template-columns: repeat(3, 1fr);
  gap: .25rem;
  padding: 0 .25rem;
  display: grid;
}

.tag-page-empty {
  color: var(--text-secondary);
  text-align: center;
  padding: 2rem 1rem;
}

.tag-page-nav {
  justify-content: space-between;
  padding: 1rem;
  display: flex;
}

.tag-page-nav:has(.tag-page-nav-link:only-child) {
  justify-content: flex-end;
}

.tag-page-nav-link {
  color: var(--text-color);
  font-weight: 500;
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .tag-page-nav-link:hover {
    text-decoration: underline;
  }
}

.import-upload-stack {
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  width: min(540px, 100%);
  min-width: 0;
  display: flex;
}

.import-complete {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 1rem .5rem;
  display: flex;
}

.import-complete-mark {
  width: 96px;
  height: 96px;
  color: var(--accent-gold);
  background: color-mix(in srgb, var(--accent-gold) 12%, transparent);
  border-radius: 50%;
  justify-content: center;
  align-items: center;
  margin-bottom: .5rem;
  animation: .55s cubic-bezier(.18, 1.2, .5, 1) both import-complete-pop;
  display: inline-flex;
}

.import-complete-mark svg {
  display: block;
}

.import-complete-title {
  color: var(--text-color);
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.import-complete-congrats {
  color: var(--text-color);
  max-width: 32ch;
  margin: 0;
  line-height: 1.4;
}

.import-complete-summary {
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
}

.import-complete-cta {
  width: auto;
  min-width: 12rem;
  margin-top: .5rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

@keyframes import-complete-pop {
  0% {
    opacity: 0;
    transform: scale(.6);
  }

  100% {
    opacity: 1;
    transform: scale(1);
  }
}

.import-active-banner {
  box-sizing: border-box;
  border-radius: var(--border-radius);
  background: var(--post-card-bg);
  border: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-color);
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  font-size: .9rem;
  display: flex;
}

.import-active-banner-text {
  text-align: left;
  flex: 1;
  margin: 0;
}

.import-active-banner-cta {
  background: var(--button-bg);
  color: var(--button-text);
  border-radius: 9999px;
  flex-shrink: 0;
  padding: .4rem .85rem;
  font-size: .85rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
}

.import-active-banner-cta:hover {
  background: var(--button-hover);
}

.import-queued {
  text-align: center;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem .5rem .5rem;
  display: flex;
}

.import-queued-title {
  color: var(--text-color);
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.import-queued-message {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.import-queued-cta {
  width: auto;
  min-width: 12rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.import-steps {
  color: var(--text-secondary);
  text-align: left;
  margin: .5rem 0 0;
  padding-left: 1.25rem;
  font-size: .85rem;
}

.import-steps li {
  margin: .25rem 0;
}

.import-preparing-spinner {
  border: 2.5px solid color-mix(in srgb, var(--text-secondary) 25%, transparent);
  border-top-color: var(--text-secondary);
  will-change: transform;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .import-preparing-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.import-preparing-spinner {
  margin: 1rem auto;
}

.import-inline-spinner {
  border: 2.5px solid color-mix(in srgb, currentColor 30%, transparent);
  will-change: transform;
  border-top-color: currentColor;
  border-radius: 50%;
  width: .85rem;
  height: .85rem;
  animation: .8s linear infinite spin;
}

@media (prefers-reduced-motion: reduce) {
  .import-inline-spinner {
    animation-duration: 1.6s !important;
    animation-iteration-count: infinite !important;
  }
}

.import-inline-spinner {
  vertical-align: -.15em;
  margin-left: .4rem;
  display: inline-block;
}

.import-progress-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 2.6em;
  display: inline-block;
}

.import-progress {
  appearance: none;
  background-color: color-mix(in srgb, var(--text-secondary) 20%, transparent);
  width: 100%;
  height: .5rem;
  color: var(--button-bg);
  border: none;
  border-radius: 9999px;
  overflow: hidden;
}

.import-progress::-webkit-progress-bar {
  background-color: color-mix(in srgb, var(--text-secondary) 20%, transparent);
  border-radius: 9999px;
}

.import-progress::-webkit-progress-value {
  background-color: var(--button-bg);
  border-radius: 9999px;
  transition: width .18s;
}

.import-progress::-moz-progress-bar {
  background-color: var(--button-bg);
  border-radius: 9999px;
}

.import-file-picker {
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  display: flex;
}

.import-file-picker.is-disabled {
  opacity: .6;
  pointer-events: none;
}

.import-file-picker-button {
  border-radius: var(--border-radius);
  background: var(--button-bg);
  color: var(--button-text);
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  align-items: center;
  padding: 10px 16px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .18s;
  display: inline-flex;
}

.import-file-picker-button:hover {
  background: var(--button-hover);
}

.import-file-picker-name {
  color: var(--text-secondary);
  word-break: break-all;
  text-align: left;
  font-size: .9rem;
}

.import-review {
  flex-direction: column;
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto 20px;
  padding: calc(1rem + 53px) 1rem 1rem;
  display: flex;
}

.import-review > .form-button {
  align-self: center;
  width: auto;
  min-width: 12rem;
  padding-left: 2rem;
  padding-right: 2rem;
}

.import-review-summary-line {
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
}

.import-review-summary {
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  display: flex;
}

.import-review-actions {
  gap: 8px;
  display: flex;
}

.form-button-secondary {
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
  color: var(--text-color);
  cursor: pointer;
  font: inherit;
  background: none;
  padding: 6px 12px;
}

.import-review-grid {
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
}

.import-review-card {
  background: var(--post-card-bg);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  color: var(--text-color);
  flex-direction: column;
  gap: 8px;
  display: flex;
  overflow: hidden;
}

.import-review-card .import-review-card-thumb, .import-review-card .carousel-dots, .import-review-card .import-review-card-body > * {
  transition: opacity .18s;
}

.import-review-card.is-unselected .import-review-card-thumb, .import-review-card.is-unselected .carousel-dots, .import-review-card.is-unselected .import-review-card-body > :not(.import-review-card-duplicate) {
  opacity: .45;
}

.import-review-card-thumb {
  aspect-ratio: 1;
  cursor: pointer;
  background: #000;
  display: block;
  position: relative;
  overflow: hidden;
}

.import-review-card-thumb input[type="checkbox"] {
  appearance: none;
  cursor: pointer;
  z-index: 1;
  background: #00000073;
  border: 1.5px solid #ffffffd9;
  border-radius: 6px;
  width: 20px;
  height: 20px;
  margin: 0;
  transition: background-color .18s, border-color .18s;
  position: absolute;
  top: 8px;
  left: 8px;
}

.import-review-card-thumb input[type="checkbox"]:checked {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='3 8.5 6.5 12 13 4.5'/></svg>");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 14px 14px;
}

.import-review-card-slides {
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  width: 100%;
  height: 100%;
  display: flex;
  overflow: auto hidden;
}

.import-review-card-slides::-webkit-scrollbar {
  display: none;
}

.import-review-card-slide {
  scroll-snap-align: start;
  scroll-snap-stop: always;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}

.import-review-card-slide img {
  object-fit: cover;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
  width: 100%;
  height: 100%;
  display: block;
}

.import-review-card-slide img.import-review-card-slide-img--decrypting {
  background-color: var(--border-color);
  animation: 1.2s ease-in-out infinite pulse;
}

.import-review-card-body {
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 10px;
  display: flex;
}

.import-review-card-caption {
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  text-align: left;
  -webkit-box-orient: vertical;
  max-height: 3.9em;
  margin: 0;
  font-size: 13px;
  line-height: 1.3;
  display: -webkit-box;
  overflow: hidden;
}

.import-review-card-caption.is-empty {
  color: var(--text-secondary);
  font-style: italic;
}

.import-review-card-date {
  color: var(--text-secondary);
  text-align: left;
  font-size: 11px;
}

.import-review-card-channel {
  text-align: left;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  display: flex;
}

.import-review-card-channel select {
  border: 1px solid var(--border-color);
  background: var(--input-bg);
  min-width: 0;
  color: var(--text-color);
  --lightningcss-light: initial;
  --lightningcss-dark: ;
  color-scheme: light dark;
  border-radius: 6px;
  flex: 1;
  padding: 4px 6px;
}

@media (prefers-color-scheme: dark) {
  .import-review-card-channel select {
    --lightningcss-light: ;
    --lightningcss-dark: initial;
  }
}

.import-review-card-channel-row {
  align-items: center;
  gap: 6px;
  display: flex;
}

.import-review-card-channel-icon {
  color: var(--text-secondary);
  flex-shrink: 0;
  align-items: center;
  display: inline-flex;
}

.import-review-card-channel-icon svg {
  display: block;
}

.import-review-card-duplicate {
  border: 1px solid var(--accent-gold);
  background: color-mix(in srgb, var(--accent-gold) 14%, transparent);
  color: var(--text-color);
  text-align: left;
  border-radius: 6px;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  font-size: 12px;
  line-height: 1.35;
  display: flex;
}

.import-review-card-duplicate-icon {
  color: var(--accent-gold);
  flex-shrink: 0;
  align-items: center;
  margin-top: 1px;
  display: inline-flex;
}

.import-review-card-duplicate-icon svg {
  display: block;
}

.import-review-card-duplicate-content {
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  display: flex;
}

.import-review-card-duplicate-text {
  font-weight: 600;
}

.import-review-card-duplicate-button {
  background: var(--button-bg);
  color: #fff;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  transition: background-color .18s;
}

.import-review-card-duplicate-button:hover {
  background: var(--button-hover);
}

.low-power-banner {
  box-sizing: border-box;
  border-radius: var(--border-radius);
  background: var(--post-card-bg);
  border: 1px solid var(--border-color);
  width: 100%;
  color: var(--text-color);
  text-align: left;
  margin: 0 0 1rem;
  padding: .85rem 1rem;
  font-size: .9rem;
}

.toast {
  border-radius: var(--border-radius);
  background: var(--text-color);
  max-width: calc(100vw - 2rem);
  color: var(--bg-color);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 1000;
  padding: .85rem 1.25rem;
  font-size: .9rem;
  line-height: 1.4;
  transition: opacity .18s, transform .18s;
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translate(-50%, 1rem);
  box-shadow: 0 8px 24px #00000026;
}

.toast.is-visible {
  opacity: 1;
  transform: translate(-50%);
}

body:has(.bottom-bar) .toast {
  bottom: 5rem;
}

@media (width >= 768px) {
  body:has(.bottom-bar) .toast {
    bottom: 1.5rem;
    left: calc(50% + var(--nav-rail-width) / 2);
  }
}

.toggle-row {
  padding: .25rem var(--border-radius);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  display: flex;
}

.toggle-row:has(.toggle-input:disabled) {
  cursor: default;
}

.toggle-row-label {
  color: var(--text-color);
  text-align: left;
  font-size: .95rem;
  line-height: 1.4;
}

.toggle-input {
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  position: absolute;
}

.toggle-track {
  background-color: var(--border-color);
  border-radius: 28px;
  flex-shrink: 0;
  width: 52px;
  height: 28px;
  transition: background-color .18s;
  position: relative;
}

.toggle-track:before {
  content: "";
  background-color: var(--input-bg);
  width: 20px;
  height: 20px;
  box-shadow: var(--shadow-card);
  border-radius: 50%;
  transition: transform .18s;
  position: absolute;
  top: 4px;
  left: 4px;
}

.toggle-input:checked + .toggle-track {
  background-color: var(--accent-gold);
}

.toggle-input:checked + .toggle-track:before {
  transform: translateX(24px);
}

.toggle-input:focus-visible + .toggle-track {
  outline: 2px solid var(--text-color);
  outline-offset: 2px;
}

.toggle-input:disabled + .toggle-track {
  opacity: .5;
}

@media (hover: hover) and (pointer: fine) {
  .toggle-row:hover .toggle-input:not(:disabled, :checked) + .toggle-track {
    background-color: color-mix(in srgb, var(--border-color) 80%, var(--text-color));
  }

  .toggle-row:hover .toggle-input:checked:not(:disabled) + .toggle-track {
    background-color: color-mix(in srgb, var(--accent-gold) 90%, var(--text-color));
  }
}

@media (prefers-reduced-motion: reduce) {
  .toggle-track, .toggle-track:before {
    transition: none;
  }
}

.push-prompt-overlay {
  z-index: 9999;
  backdrop-filter: blur(4px);
  background-color: #0006;
  justify-content: center;
  align-items: center;
  padding: 20px;
  animation: .24s cubic-bezier(.2, 0, 0, 1) fade-in;
  display: flex;
  position: fixed;
  inset: 0;
}

.push-prompt-overlay--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards fade-out;
}

.push-prompt-overlay--closing .push-prompt-card {
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards modal-exit;
}

.push-prompt-card {
  background: linear-gradient(135deg, var(--button-bg), var(--button-hover));
  width: 100%;
  max-width: 400px;
  color: var(--button-text);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-elevated);
  flex-direction: column;
  gap: .75rem;
  padding: 1.25rem;
  animation: .3s cubic-bezier(.16, 1, .3, 1) modal-enter;
  display: flex;
}

.push-prompt-title {
  color: var(--button-text);
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
}

.push-prompt-body {
  color: #ffffffd9;
  margin: .25rem 0 0;
  font-size: .9rem;
  line-height: 1.4;
}

.push-prompt-actions {
  gap: .5rem;
  display: flex;
}

.push-prompt-enable, .push-prompt-dismiss {
  border-radius: var(--border-radius);
  cursor: pointer;
  appearance: none;
  flex: 1;
  padding: .7rem 1rem;
  font-family: inherit;
  font-size: .9rem;
  font-weight: 600;
  transition: background-color .18s;
}

.push-prompt-enable:focus-visible, .push-prompt-dismiss:focus-visible {
  outline: 2px solid var(--button-text);
  outline-offset: 2px;
}

.push-prompt-enable {
  color: var(--button-bg);
  background-color: var(--button-text);
  border: none;
}

@media (hover: hover) and (pointer: fine) {
  .push-prompt-enable:hover {
    background-color: #ffffffe0;
  }
}

.push-prompt-dismiss {
  color: var(--button-text);
  background-color: #0000;
  border: 1px solid #ffffff80;
}

@media (hover: hover) and (pointer: fine) {
  .push-prompt-dismiss:hover {
    background-color: #ffffff1f;
  }
}

.install-prompt-overlay {
  z-index: 9999;
  backdrop-filter: blur(4px);
  background-color: #00000080;
  justify-content: center;
  align-items: flex-end;
  animation: .24s cubic-bezier(.2, 0, 0, 1) fade-in;
  display: flex;
  position: fixed;
  inset: 0;
}

@media (width >= 768px) {
  .install-prompt-overlay {
    align-items: center;
    padding: 20px;
  }
}

.install-prompt-overlay--closing {
  pointer-events: none;
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards fade-out;
}

.install-prompt-overlay--closing .install-prompt-sheet {
  animation: .18s cubic-bezier(.2, 0, 0, 1) forwards modal-exit;
}

.install-prompt-sheet {
  width: 100%;
  max-width: 600px;
  padding: 1.5rem 1.25rem;
  padding-bottom: calc(1.25rem + env(safe-area-inset-bottom));
  background-color: var(--post-card-bg);
  color: var(--text-color);
  box-shadow: var(--shadow-elevated);
  border-radius: 16px 16px 0 0;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  animation: .3s cubic-bezier(.16, 1, .3, 1) modal-enter;
  display: flex;
}

@media (width >= 768px) {
  .install-prompt-sheet {
    border-radius: var(--border-radius);
    max-width: 26rem;
    padding-bottom: 1.5rem;
  }
}

.install-prompt-icon {
  width: 56px;
  height: 56px;
  box-shadow: var(--shadow-card);
  border-radius: 14px;
}

.install-prompt-title {
  text-align: center;
  color: var(--text-color);
  margin: .5rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.install-prompt-subtitle {
  text-align: center;
  color: var(--text-secondary);
  margin: 0;
  font-size: .9rem;
}

.install-prompt-steps {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  width: 100%;
  margin: 1rem 0 .5rem;
  padding: 0;
  list-style: none;
}

.install-prompt-step {
  color: var(--text-secondary);
  align-items: center;
  gap: .85rem;
  padding: .7rem 1rem;
  font-size: .95rem;
  line-height: 1.3;
  display: flex;
}

.install-prompt-step + .install-prompt-step {
  border-top: 1px solid var(--border-color);
}

.install-prompt-step-icon {
  width: 24px;
  height: 24px;
  color: var(--text-color);
  flex: none;
  justify-content: center;
  align-items: center;
  display: inline-flex;
}

.install-prompt-step-text b {
  color: var(--text-color);
  font-weight: 700;
}

.install-prompt-install {
  width: 100%;
  color: var(--button-text);
  background-color: var(--button-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  appearance: none;
  border: none;
  margin-top: 1rem;
  padding: .7rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  transition: background-color .18s;
}

.install-prompt-install:focus-visible {
  outline: 2px solid var(--button-bg);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .install-prompt-install:hover {
    background-color: var(--button-hover);
  }
}

.install-prompt-dismiss {
  color: var(--button-bg);
  border-radius: var(--border-radius);
  cursor: pointer;
  appearance: none;
  background-color: #0000;
  border: none;
  margin-top: .5rem;
  padding: .7rem 1.5rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
}

.install-prompt-dismiss:focus-visible {
  outline: 2px solid var(--button-bg);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .install-prompt-dismiss:hover {
    text-decoration: underline;
  }
}

.claim-code {
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  background: var(--post-card-bg);
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  display: flex;
}

.claim-code-value {
  letter-spacing: .08em;
  -webkit-user-select: all;
  user-select: all;
  font-family: ui-monospace, SF Mono, Menlo, Consolas, monospace;
  font-size: 1.4rem;
  font-weight: 600;
}

.claim-code-copy {
  appearance: none;
  background: var(--button-bg);
  color: var(--button-text);
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 999px;
  flex: none;
  padding: .4rem .9rem;
  font-size: .85rem;
  font-weight: 600;
}

@media (hover: hover) and (pointer: fine) {
  .claim-code-copy:hover {
    background: var(--button-hover);
  }
}

.claim-steps {
  padding: 0 var(--border-radius) 0 calc(var(--border-radius) + 1.25rem);
  text-align: left;
  color: var(--text-secondary);
  flex-direction: column;
  gap: .4rem;
  margin: 0;
  font-size: .9rem;
  line-height: 1.5;
  display: flex;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation-duration: .18s;
}

::view-transition-new(root) {
  animation-duration: .18s;
}

.bottom-bar {
  view-transition-name: bottom-bar;
}

.single-post-inner .carousel-wrapper {
  view-transition-name: post-media;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*) {
    animation: none !important;
  }

  ::view-transition-image-pair(*) {
    animation: none !important;
  }

  ::view-transition-old(*) {
    animation: none !important;
  }

  ::view-transition-new(*) {
    animation: none !important;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --border-radius: 14px;
}

@media (width >= 768px) {
  :root {
    --nav-rail-width: calc(4.75rem + env(safe-area-inset-left, 0px));
  }

  body:has(.bottom-bar) .page-wrapper {
    padding-left: var(--nav-rail-width);
  }
}

button, input, textarea, select, a, [role="button"] {
  outline: none;
}

body {
  text-align: center;
  background-color: var(--bg-color);
  color: var(--text-color);
  margin: 0;
  padding: 0;
  font-family: Marzigram Default, sans-serif;
  overflow-x: hidden;
}

.page-wrapper {
  grid-template-rows: 1fr auto;
  grid-template-columns: minmax(0, 1fr);
  min-height: 100dvh;
  display: grid;
}

.content-wrapper {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  display: flex;
}

.content-wrapper > leptos-island {
  width: 100%;
}

.username {
  color: var(--accent-gold);
  font-weight: 700;
}

.inline-hashtag {
  color: var(--accent-gold);
  text-decoration: none;
}

@media (hover: hover) and (pointer: fine) {
  .inline-hashtag:hover {
    text-underline-offset: 2px;
    text-decoration: underline;
  }
}
