:root {
  --moss: #3f5133;
  --moss-mid: #5c6f4c;
  --moss-soft: #7a8b68;
  --pink: #f7cdd6;
  --pink-deep: #efb3c0;
  --cream: #fbf6f1;
  --paper: #fffaf6;
  --ink: #24301c;
  --muted: #5d6756;
  --line: color-mix(in srgb, var(--moss) 16%, var(--pink));
  --shadow: 0 24px 50px color-mix(in srgb, var(--moss) 14%, transparent);
  --radius: 1.4rem;
  --header: 4.25rem;
  --font-display: "Fraunces", Georgia, serif;
  --font: "Outfit", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, var(--pink) 0%, transparent 55%),
    radial-gradient(900px 500px at 110% 8%, color-mix(in srgb, var(--moss-soft) 35%, white) 0%, transparent 50%),
    var(--cream);
  font-family: var(--font);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.6rem 1rem;
  background: var(--moss);
  color: var(--cream);
  border-radius: 999px;
}

.skip-link:focus {
  top: 1rem;
}

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

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(16px);
  background: color-mix(in srgb, var(--cream) 82%, transparent);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  position: relative;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section,
.hero {
  scroll-margin-top: calc(var(--header) + 0.6rem);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 0.7rem;
  background: var(--moss);
  color: var(--pink);
  font-family: Fraunces, Georgia, serif;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: -0.04em;
  line-height: 1;
}

.nav {
  display: flex;
  gap: 1.25rem;
}

.nav a,
.nav-chat {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--moss);
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  background: var(--pink);
  border-radius: 999px;
}

.nav-toggle span {
  display: block;
  width: 1rem;
  height: 2px;
  margin: 5px auto;
  background: var(--moss);
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1.5rem;
  width: min(1080px, calc(100% - 2rem));
  margin: 2rem auto 0;
  align-items: stretch;
}

.hero-grid {
  width: 100%;
  padding: 2.5rem 0 1rem;
}

.eyebrow,
.kicker {
  margin: 0 0 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.74rem;
  color: var(--moss-mid);
  font-weight: 600;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  margin: 0 0 0.8rem;
}

h1 {
  font-size: clamp(2.2rem, 5.4vw, 4rem);
  max-width: none;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.lede,
.section-head p {
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.6rem 0 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--moss);
  color: var(--cream);
}

.btn-ghost {
  background: var(--pink);
  color: var(--moss);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-stats li {
  padding: 0.9rem 0.8rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.hero-stats strong {
  display: block;
  color: var(--moss);
  font-size: 1.15rem;
}

.hero-card {
  margin-top: 2.5rem;
  padding: 1.6rem;
  background: var(--moss);
  color: var(--cream);
  border-radius: calc(var(--radius) + 0.4rem);
  box-shadow: var(--shadow);
  align-self: end;
  text-decoration: none;
  display: block;
}

.hero-card:hover,
.hero-card:focus-visible {
  transform: translateY(-2px);
}

.hero-card .kicker,
.hero-card .meta {
  color: var(--pink);
}

.hero-card p {
  color: color-mix(in srgb, var(--cream) 88%, var(--pink));
}

.section {
  padding: 4.5rem 0;
}

.section-alt {
  background: color-mix(in srgb, var(--pink) 28%, var(--cream));
}

.section-head {
  margin-bottom: 2rem;
}

.study-grid,
.story-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.study-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.study-card,
.story-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.story-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  appearance: none;
  text-decoration: none;
}

.meta {
  margin-top: 0.8rem;
  margin-bottom: 0;
  font-size: 0.85rem;
  color: var(--moss-mid);
}

.story-card:hover,
.story-card:focus-visible {
  border-color: var(--moss-soft);
  transform: translateY(-2px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.tag {
  display: inline-flex;
  margin-bottom: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: var(--pink);
  color: var(--moss);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.story-card h3 {
  font-size: 1.4rem;
}

.story-card p {
  color: var(--muted);
  flex: 1;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.2rem;
}

.chip {
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--moss);
  border-radius: 999px;
  min-height: 2.3rem;
  padding: 0 0.9rem;
  font: inherit;
  cursor: pointer;
}

.chip.is-active {
  background: var(--moss);
  color: var(--cream);
  border-color: var(--moss);
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.timeline li {
  position: relative;
  padding: 1.3rem 1.3rem 1.3rem 1.6rem;
  background: var(--paper);
  border-radius: var(--radius);
  border-left: 6px solid var(--pink-deep);
}

.when {
  margin: 0 0 0.3rem;
  color: var(--moss-mid);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.where {
  margin: 0 0 0.5rem;
  color: var(--muted);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1rem;
}

.contact-list li {
  padding: 1rem 1.1rem;
  background: var(--paper);
  border-radius: 1.1rem;
  border: 1px solid var(--line);
}

.contact-list span {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--moss-mid);
  margin-bottom: 0.25rem;
}

.contact-list a,
.text-btn {
  color: var(--moss);
  font-weight: 600;
}

.text-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  cursor: pointer;
}

.site-footer {
  padding: 1.5rem 0 calc(1.5rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.sheet {
  width: min(680px, calc(100% - 1.5rem));
  border: 0;
  border-radius: 1.5rem;
  padding: 1.6rem;
  background: var(--paper);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.sheet::backdrop {
  background: color-mix(in srgb, var(--moss) 45%, black);
}

.sheet-close {
  float: right;
  width: 2.4rem;
  height: 2.4rem;
  border: 0;
  border-radius: 999px;
  background: var(--pink);
  color: var(--moss);
  font-size: 1.4rem;
  cursor: pointer;
}

.sheet-body p + p {
  margin-top: 0.9rem;
}

.wa-tab {
  position: fixed;
  right: 0;
  top: 42%;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  border: 0;
  border-radius: 0.9rem 0.9rem 0 0;
  padding: 0.95rem 0.55rem;
  background: var(--moss);
  color: var(--pink);
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.wa-tab-icon {
  display: flex;
  transform: rotate(180deg);
}

.wa-desk {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 40;
  width: min(420px, calc(100vw - 1.5rem));
  height: min(640px, calc(100vh - 5.5rem));
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.wa-desk[hidden] {
  display: none;
}

.wa-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1rem 0.9rem;
  background: linear-gradient(135deg, var(--moss), #2c3a24);
  color: var(--cream);
}

.wa-kicker {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pink);
}

.wa-status {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.35;
  color: var(--pink);
}

.wa-head h2 {
  margin: 0.15rem 0 0.25rem;
  font-size: 1.25rem;
  color: var(--cream);
}

.wa-body {
  display: flex;
  min-height: 0;
  flex: 1;
}

.wa-threads {
  flex: 0 0 42%;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--pink) 22%, var(--paper));
}

.wa-threads[hidden] {
  display: none;
}

.wa-thread {
  display: grid;
  gap: 0.2rem;
  width: 100%;
  padding: 0.8rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wa-thread span {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wa-thread.is-current {
  background: var(--paper);
}

.wa-main {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
}

.wa-log {
  flex: 1;
  overflow: auto;
  padding: 1rem;
  display: grid;
  align-content: start;
  gap: 0.65rem;
  background:
    radial-gradient(circle at 10% 0, color-mix(in srgb, var(--pink) 35%, transparent), transparent 40%),
    var(--cream);
}

.wa-empty {
  margin: 0;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: color-mix(in srgb, var(--pink) 40%, white);
  color: var(--moss);
}

.wa-bubble {
  max-width: 85%;
  padding: 0.7rem 0.85rem 0.45rem;
  border-radius: 1rem;
}

.wa-bubble p {
  margin: 0;
}

.wa-bubble time {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.7rem;
  opacity: 0.7;
}

.wa-bubble-visitor {
  justify-self: end;
  background: var(--moss);
  color: var(--cream);
  border-bottom-right-radius: 0.3rem;
}

.wa-bubble-gabrielle {
  justify-self: start;
  background: var(--pink);
  color: var(--ink);
  border-bottom-left-radius: 0.3rem;
}

.wa-form,
.wa-owner {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.85rem;
  background: var(--paper);
}

.wa-form {
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.wa-name-field,
.wa-message-field,
.wa-owner {
  min-width: 0;
}

.wa-compose,
.wa-owner {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  gap: 0.5rem;
}

.wa-message-field {
  flex: 1;
}

.wa-form input,
.wa-form textarea,
.wa-owner input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--cream);
  color: var(--ink);
  resize: none;
}

.wa-form textarea {
  min-height: 3.2rem;
}

.wa-send,
.wa-owner button {
  flex: 0 0 auto;
  min-height: 3.2rem;
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: var(--cream);
  padding: 0 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wa-owner {
  padding-top: 0;
  padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
}

body:has(#wa-desk:not([hidden])) .wa-tab {
  visibility: hidden;
}

.wa-head .sheet-close {
  background: color-mix(in srgb, var(--pink) 70%, white);
}

@media (max-width: 860px) {
  .wa-tab {
    top: auto;
    bottom: calc(1rem + env(safe-area-inset-bottom));
    writing-mode: horizontal-tb;
    transform: none;
    border-radius: 999px;
    padding: 0.85rem 1rem;
    right: 1rem;
  }

  .wa-tab-icon {
    transform: none;
  }

  .wa-desk {
    inset: 0;
    width: auto;
    height: auto;
    max-height: none;
    border: 0;
    border-radius: 0;
  }

  .wa-head {
    padding-top: calc(1rem + env(safe-area-inset-top));
  }

  .wa-body,
  .wa-desk:has(#wa-threads:not([hidden])) .wa-body {
    flex-direction: column;
  }

  .wa-threads:not([hidden]) {
    flex: 0 0 auto;
    max-height: 9.5rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (display-mode: standalone) {
  .wa-desk {
    inset: 0;
    width: auto;
    height: 100dvh;
    border: 0;
    border-radius: 0;
  }
}

@media (max-width: 860px) {
  .hero,
  .study-grid,
  .story-grid,
  .contact-grid,
  .hero-stats,
  .footer-inner {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero {
    margin-top: 1rem;
  }

  .hero-card {
    margin-top: 0;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav {
    display: none;
    position: absolute;
    inset: var(--header) 1rem auto;
    padding: 0.8rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 1rem;
    flex-direction: column;
  }

  .nav.is-open {
    display: flex;
  }

  h1 {
    max-width: none;
  }
}

.nav-drop {
  position: relative;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 0.55rem);
  right: 0;
  z-index: 20;
  min-width: 11rem;
  display: grid;
  padding: 0.45rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  box-shadow: var(--shadow);
}

.nav-sub[hidden],
#nav-admin[hidden],
#nav-public-wa[hidden],
#public-chat[hidden],
#admin-gate[hidden],
#public-log[hidden],
#public-composer[hidden],
#public-start[hidden] {
  display: none !important;
}

.admin-entry {
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 0.92rem;
  cursor: pointer;
}

.nav-sub a {
  padding: 0.55rem 0.7rem;
  border-radius: 0.65rem;
}

.nav-sub a:hover {
  background: var(--pink);
}

.wx-login,
.wx-shell,
.wx-chat,
.wx-setup,
.wx-list,
#wx-qr {
  background: var(--paper);
}

.wx-login[hidden],
.wx-shell[hidden],
.wx-chat[hidden],
.wx-setup[hidden],
.wx-list[hidden],
#wx-qr[hidden] {
  display: none !important;
}

.wx-login,
.wx-shell {
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
}

.wx-login {
  display: grid;
  gap: 0.8rem;
  max-width: 28rem;
  padding: 1.3rem;
}

.pub-chat {
  display: flex;
  flex-direction: column;
  width: min(440px, 100%);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--pink) 45%, transparent), transparent 42%),
    #f6f1ea;
}

.pub-chat:has(#public-log:not([hidden])) {
  height: min(640px, calc(100dvh - var(--header) - 9rem));
  min-height: 420px;
}

.pub-start,
.pub-log {
  padding: 1rem;
}

.pub-start {
  display: grid;
  gap: 0.7rem;
}

.pub-start input,
.pub-start textarea,
#public-reply {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--cream);
  color: var(--ink);
}

.pub-start button {
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: var(--cream);
  min-height: 2.8rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.pub-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.wx-login input,
.wx-setup input,
.wx-side select,
.wx-composer textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.75rem 0.85rem;
  font: inherit;
  background: var(--cream);
  color: var(--ink);
}

.wx-login button,
.wx-setup button,
.wx-card button,
.wx-composer button,
.wx-side-top button,
.wx-back {
  border: 0;
  border-radius: 999px;
  background: var(--moss);
  color: var(--cream);
  min-height: 2.6rem;
  padding: 0 1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.wx-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  height: calc(100dvh - var(--header) - 1.25rem);
  min-height: 0;
  scroll-margin-top: calc(var(--header) + 0.75rem);
}

.wx-side {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: color-mix(in srgb, var(--pink) 28%, white);
  border-right: 1px solid var(--line);
}

.wx-side-top,
.wx-tabs {
  display: flex;
  gap: 0.5rem;
  align-items: end;
  padding: 0.8rem;
}

.wx-side-top label {
  flex: 1;
  display: grid;
  gap: 0.3rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--moss-mid);
}

.wx-tabs button {
  flex: 1;
  border: 0;
  border-radius: 999px;
  min-height: 2.3rem;
  background: transparent;
  color: var(--moss);
  font: inherit;
  cursor: pointer;
}

.wx-tabs button.is-active {
  background: var(--moss);
  color: var(--cream);
}

.wx-list {
  overflow: auto;
  min-height: 0;
  flex: 1;
}

.wx-chat-item,
.wx-card {
  display: grid;
  width: 100%;
  gap: 0.15rem;
  padding: 0.85rem 0.9rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.wx-chat-item span,
.wx-card p,
.wx-chat-head p,
.wx-note,
.wx-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.wx-chat-item.is-current {
  background: var(--paper);
}

.wx-chat,
.wx-setup {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at 0 0, color-mix(in srgb, var(--pink) 45%, transparent), transparent 42%),
    #f6f1ea;
}

.wx-chat-head {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1rem;
  background: var(--moss);
  color: var(--cream);
}

.wx-chat-head p,
.wx-chat-head strong {
  color: var(--cream);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wx-chat-head div {
  min-width: 0;
}

.wx-back {
  display: none;
  background: var(--pink);
  color: var(--moss);
}

.wx-log {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1rem;
}

.wx-bubble {
  max-width: min(78%, 460px);
  padding: 0.55rem 0.7rem 0.35rem;
  border-radius: 0.9rem;
  background: white;
}

.wx-bubble p {
  margin: 0.25rem 0 0;
  white-space: pre-wrap;
}

.wx-bubble time {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.7rem;
  opacity: 0.65;
}

.wx-bubble.is-out {
  align-self: flex-end;
  background: #e7f6df;
  border-bottom-right-radius: 0.25rem;
}

.wx-bubble.is-in {
  align-self: flex-start;
  border-bottom-left-radius: 0.25rem;
}

.wx-bubble img,
.wx-bubble video {
  display: block;
  width: min(100%, 280px);
  border-radius: 0.7rem;
}

.wx-bubble audio,
.wx-file {
  display: block;
  width: min(100%, 260px);
}

.wx-composer {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: flex-end;
  padding: 0.7rem;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.wx-composer textarea {
  flex: 1 1 8rem;
  width: auto;
  min-width: 0;
  resize: none;
  min-height: 2.8rem;
}

.wx-composer button {
  flex: 0 0 auto;
}

#wx-attach,
#wx-mic {
  width: 2.6rem;
  padding: 0;
}

#wx-send-note {
  flex: 1 1 100%;
}

#wx-mic.is-recording {
  background: #9b3d4a;
}

.wx-setup {
  padding: 1.2rem;
  gap: 0.8rem;
}

.wx-setup form {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.wx-setup input {
  flex: 1;
  min-width: 14rem;
}

#wx-qr {
  width: min(280px, 100%);
  background: white;
  border-radius: 1rem;
  padding: 0.6rem;
}

.wx-card div {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.45rem;
}

@media (max-width: 860px) {
  .nav-sub {
    position: static;
    box-shadow: none;
    margin-top: 0.35rem;
  }

  .wx-shell {
    grid-template-columns: 1fr;
    height: calc(100dvh - var(--header) - 1rem);
    min-height: 0;
  }

  .wx-chat,
  .wx-setup {
    display: none;
  }

  .wx-shell.is-open .wx-side,
  .wx-shell.is-setup .wx-side {
    display: none;
  }

  .wx-shell.is-open .wx-chat,
  .wx-shell.is-setup .wx-setup {
    display: flex;
    height: 100%;
    min-height: 0;
  }

  .wx-back {
    display: inline-flex;
    align-items: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .story-card:hover {
    transform: none;
  }
}
