:root {
  color-scheme: light;
  --bg: #fff8fc;
  --bg-soft: #fff2f8;
  --surface: rgba(255, 255, 255, 0.96);
  --surface-strong: #ffffff;
  --surface-soft: #fff0f7;
  --border: #f4cfde;
  --border-strong: #edbfd5;
  --text: #342036;
  --muted: #7f6a79;
  --accent: #eb4a96;
  --accent-strong: #cf2f78;
  --accent-soft: #ffe3ef;
  --success: #2f8b63;
  --shadow: 0 20px 45px rgba(219, 137, 174, 0.12);
  --shadow-strong: 0 28px 70px rgba(214, 126, 165, 0.18);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 220, 236, 0.65), transparent 26%),
    radial-gradient(circle at right 20%, rgba(255, 233, 243, 0.6), transparent 24%),
    linear-gradient(180deg, #fffafd 0%, #fff2f8 100%);
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--accent-soft);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

button:hover,
.button-link:hover,
.nav a:hover {
  background: #ffd9e9;
}

button:hover {
  transform: translateY(-1px);
}

input,
textarea,
select {
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  color: var(--text);
}

input[type="file"] {
  font: inherit;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #ec8bb5;
  box-shadow: 0 0 0 4px rgba(235, 74, 150, 0.09);
}

textarea {
  resize: vertical;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

.shell {
  min-height: 100vh;
  display: grid;
}

.shell-app {
  grid-template-columns: 260px minmax(0, 1fr);
}

.shell-auth {
  grid-template-columns: 1fr;
}

.page {
  width: 100%;
  padding: 26px 28px 40px;
}

.shell-app .page {
  max-width: 1360px;
}

.page-auth {
  padding: 0;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 24px 18px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 22px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 246, 250, 0.94));
  border-right: 1px solid rgba(244, 207, 222, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 16px 0 44px rgba(223, 162, 190, 0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(244, 207, 222, 0.8);
  box-shadow: 0 12px 28px rgba(222, 149, 182, 0.08);
}

.brand-logo {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
}

.brand-name {
  line-height: 1;
  font-size: 21px;
  font-weight: 800;
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a,
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(244, 207, 222, 0.86);
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.nav a.active {
  background: linear-gradient(135deg, rgba(255, 224, 237, 0.98), rgba(255, 244, 248, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 12px 24px rgba(225, 151, 183, 0.12);
}

.nav a:hover,
.button-link:hover {
  transform: translateY(-1px);
}

.sidebar-user {
  display: grid;
  gap: 7px;
  padding: 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(244, 207, 222, 0.9);
  box-shadow: 0 18px 38px rgba(221, 145, 179, 0.12);
}

.stack {
  display: grid;
  gap: 16px;
}

.compact {
  gap: 10px;
}

.flash,
.panel {
  background: var(--surface);
  border: 1px solid rgba(244, 207, 222, 0.92);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

.flash p,
.muted {
  color: var(--muted);
}

.toast-stack {
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 1200;
  display: grid;
  gap: 12px;
  width: min(360px, calc(100vw - 32px));
}

.flash-toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(244, 207, 222, 0.95);
  box-shadow: 0 18px 42px rgba(199, 117, 157, 0.2);
  backdrop-filter: blur(14px);
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.flash-toast.success {
  border-left: 4px solid var(--accent);
}

.flash-toast.error {
  border-left: 4px solid #e1557e;
}

.flash-toast.info,
.flash-toast.notice {
  border-left: 4px solid #d38cb0;
}

.flash-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.flash-copy strong {
  font-size: 14px;
}

.flash-copy p {
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
}

.flash-dismiss {
  width: 34px;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border-radius: 12px;
  background: rgba(255, 237, 244, 0.92);
  color: var(--accent-strong);
  font-size: 20px;
  line-height: 1;
  box-shadow: none;
}

.flash-dismiss:hover {
  background: rgba(255, 223, 235, 0.98);
}

.flash-toast.is-hiding {
  opacity: 0;
  transform: translateY(-10px);
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), #ff73ad);
  color: #fff;
  box-shadow: 0 16px 28px rgba(235, 74, 150, 0.22);
}

.primary-button:hover {
  background: linear-gradient(135deg, var(--accent-strong), #ff5ea4);
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-left: 8px;
  border-radius: 999px;
  background: #1790ff;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  vertical-align: middle;
  box-shadow: 0 8px 18px rgba(23, 144, 255, 0.24);
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 420px);
}

.single-auth .hero-panel {
  min-height: 100vh;
  padding-right: 0;
}

.hero-panel {
  padding: 40px 44px;
  display: grid;
  align-content: center;
  gap: 18px;
  background: linear-gradient(135deg, rgba(255, 228, 239, 0.92), rgba(255, 245, 250, 0.96));
}

.login-hero-panel,
.signup-hero-panel {
  position: relative;
  overflow: hidden;
  padding: 56px;
  background: #fcecf4;
}

.login-hero-background,
.login-hero-overlay {
  position: absolute;
  inset: 0;
}

.login-hero-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.login-hero-overlay {
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.97) 0%, rgba(255, 243, 248, 0.94) 24%, rgba(255, 241, 247, 0.58) 46%, rgba(255, 241, 247, 0.16) 66%, rgba(255, 241, 247, 0.06) 100%);
}

.signup-hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 251, 0.97) 0%, rgba(255, 243, 248, 0.94) 30%, rgba(255, 241, 247, 0.62) 50%, rgba(255, 241, 247, 0.18) 70%, rgba(255, 241, 247, 0.06) 100%);
}

.login-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  gap: 18px;
  max-width: 620px;
  min-height: calc(100vh - 112px);
}

.login-copy-card {
  display: grid;
  gap: 18px;
  max-width: 560px;
  padding: 28px 30px;
  border-radius: 28px;
  background: rgba(255, 250, 252, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 24px 60px rgba(196, 112, 153, 0.14);
  backdrop-filter: blur(12px);
}

.signup-copy-card {
  max-width: 600px;
}

.hero-logo-stack {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.hero-logo {
  width: 96px;
  height: 96px;
  object-fit: contain;
  padding: 8px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 68px);
  line-height: 0.96;
}

.lede {
  max-width: 640px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
}

.hero-feature-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.hero-feature-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(247, 206, 224, 0.92);
  color: var(--accent-strong);
  font-weight: 700;
}

.auth-card {
  margin: auto;
  width: min(420px, calc(100% - 32px));
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow-strong);
}

.auth-card-login {
  align-self: center;
  margin-right: 36px;
}

.auth-meta-links,
.sidebar-legal-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-meta-links {
  justify-content: center;
  margin-top: 4px;
}

.auth-meta-links a,
.sidebar-legal-links a {
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 700;
}

.auth-meta-links a:hover,
.sidebar-legal-links a:hover {
  text-decoration: underline;
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.auth-tabs a {
  text-align: center;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #fff;
  font-weight: 800;
}

.auth-tabs a.active {
  background: linear-gradient(135deg, var(--accent), #ff73ad);
  color: white;
}

.check-row {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.check-row input {
  width: 18px;
  margin-top: 3px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
  padding: 22px 26px;
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 245, 250, 0.92));
  border: 1px solid rgba(242, 200, 216, 0.72);
  box-shadow: var(--shadow);
}

.topbar h1,
.panel h2 {
  margin: 0;
}

.section-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  color: var(--accent-strong);
  font-weight: 800;
}

.section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.section-heading p {
  margin: 6px 0 0;
}

.social-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(290px, 0.9fr);
  gap: 22px;
  align-items: start;
}

.social-main,
.social-aside {
  display: grid;
  gap: 18px;
}

.discover-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: start;
}

.discover-list {
  display: grid;
  gap: 16px;
}

.discover-card {
  display: grid;
  gap: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,252,0.95));
}

.search-results-panel {
  display: grid;
  gap: 16px;
}

.search-people-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.person-search-card {
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,252,0.95));
  border: 1px solid rgba(244, 207, 222, 0.92);
  box-shadow: var(--shadow);
}

.person-head,
.post-head,
.post-actions,
.person-row,
.moderation-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.person-head-main,
.post-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.avatar-lg,
.post-author-avatar,
.person-avatar {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: 0 10px 24px rgba(214, 132, 171, 0.16);
}

.avatar-lg {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

.grid-main {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 22px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-pill {
  display: inline-grid;
  gap: 4px;
  min-width: 110px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(244, 207, 222, 0.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.95);
}

.post-card,
.person-card,
.report-row,
.moderation-row {
  display: grid;
  gap: 12px;
}

.post-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,249,252,0.95));
}

.post-copy {
  margin: 0;
  line-height: 1.6;
  font-size: 16px;
}

.hashtag-link {
  color: var(--accent-strong);
  font-weight: 700;
}

.hashtag-link:hover {
  text-decoration: underline;
}

.post-media {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: #fff;
}

.post-audio {
  width: 100%;
  min-height: 58px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 251, 253, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.composer-card,
.side-panel,
.profile-hero,
.settings-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(255,248,252,0.95));
}

.composer-card {
  box-shadow: var(--shadow-strong);
}

.file-upload {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(244, 207, 222, 0.92);
  background: rgba(255, 255, 255, 0.96);
  cursor: pointer;
}

.file-upload:hover {
  background: rgba(255, 246, 250, 0.98);
}

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

.file-upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(255, 228, 239, 0.96);
  color: var(--accent-strong);
  font-weight: 800;
}

.file-upload-name {
  color: var(--muted);
  font-size: 14px;
}

.composer-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 232, 241, 0.96);
  color: var(--accent-strong);
  font-weight: 700;
  border: 1px solid var(--border);
}

.side-panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.profile-shell {
  display: grid;
  gap: 24px;
}

.profile-hero {
  display: grid;
  gap: 20px;
  box-shadow: var(--shadow-strong);
}

.profile-head {
  display: flex;
  gap: 22px;
  align-items: center;
}

.profile-avatar {
  width: 128px;
  height: 128px;
  border-radius: 32px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.profile-meta {
  display: grid;
  gap: 10px;
}

.profile-handle {
  margin: -2px 0 0;
  color: var(--accent-strong);
  font-weight: 700;
}

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

.profile-details-grid,
.profile-edit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.profile-edit-grid {
  align-items: start;
}

.profile-detail-card {
  box-shadow: none;
  background: rgba(255,255,255,0.86);
}

.settings-hero {
  position: relative;
  overflow: hidden;
}

.settings-hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -70px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 203, 226, 0.42), rgba(255, 203, 226, 0));
  pointer-events: none;
}

.settings-feature-row {
  margin-top: 2px;
}

.settings-panel-head {
  margin-bottom: 18px;
}

.settings-panel-head h2 {
  margin-bottom: 6px;
}

.settings-subtext {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid transparent;
}

.status-good {
  background: rgba(226, 248, 235, 0.95);
  color: var(--success);
  border-color: rgba(47, 139, 99, 0.14);
}

.status-waiting {
  background: rgba(255, 237, 244, 0.95);
  color: var(--accent-strong);
  border-color: rgba(235, 74, 150, 0.12);
}

.settings-status-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.settings-stat-pill {
  min-width: 0;
}

.settings-checklist {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
}

.settings-checklist li {
  position: relative;
  padding: 14px 16px 14px 44px;
  border-radius: 14px;
  background: rgba(255, 247, 251, 0.92);
  border: 1px solid rgba(242, 200, 216, 0.7);
  color: var(--muted);
}

.settings-checklist li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  border: 2px solid rgba(235, 74, 150, 0.35);
  transform: translateY(-50%);
  background: #fff;
}

.settings-checklist li.done {
  color: var(--text);
  background: rgba(255,255,255,0.98);
}

.settings-checklist li.done::before {
  background: linear-gradient(135deg, var(--accent), #ff73ad);
  border-color: transparent;
  box-shadow: 0 0 0 4px rgba(235, 74, 150, 0.12);
}

.verification-panel textarea {
  min-height: 112px;
}

.empty-state,
.empty-feed-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.97), rgba(255,248,252,0.92));
}

.action-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-button {
  justify-content: center;
  background: rgba(255, 238, 244, 0.96);
  color: #b83263;
  border-color: rgba(231, 144, 178, 0.72);
}

.danger-button:hover {
  background: rgba(255, 225, 235, 0.98);
}

.settings-line {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid rgba(242, 200, 216, 0.6);
}

.inline-form {
  display: flex;
  gap: 10px;
}

.messages-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 320px;
  gap: 20px;
}

.legal-shell {
  display: grid;
  gap: 22px;
}

.legal-hero {
  display: grid;
  gap: 14px;
  box-shadow: var(--shadow-strong);
}

.legal-meta-row {
  margin-top: 0;
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.legal-aside {
  position: sticky;
  top: 24px;
  display: grid;
  gap: 18px;
}

.legal-summary {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 12px;
  color: var(--muted);
  line-height: 1.55;
}

.legal-main {
  gap: 18px;
}

.legal-section {
  display: grid;
  gap: 12px;
}

.legal-section h2 {
  margin: 0;
}

.legal-section p {
  margin: 0;
  line-height: 1.7;
}

.conversation-link {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.86);
}

.conversation-link span {
  color: var(--muted);
  font-size: 13px;
}

.conversation-link.active {
  background: linear-gradient(135deg, rgba(255, 230, 239, 0.98), rgba(255, 247, 251, 0.98));
}

.thread {
  display: grid;
  gap: 12px;
  max-height: 540px;
  overflow: auto;
}

.message-bubble {
  max-width: 720px;
  padding: 14px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--border);
}

.message-bubble.own {
  margin-left: auto;
  background: #ffe9f3;
}

@media (max-width: 1180px) {
  .shell-app,
  .social-layout,
  .discover-layout,
  .grid-main,
  .messages-layout,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    grid-template-rows: auto auto auto auto;
  }

  .auth-layout {
    grid-template-columns: 1fr;
  }

  .auth-card-login {
    margin: 28px auto;
  }

  .login-hero-content,
  .single-auth .hero-panel {
    min-height: auto;
  }

  .profile-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings-status-grid {
    grid-template-columns: 1fr;
  }

  .legal-aside {
    position: static;
  }
}

@media (max-width: 680px) {
  .page {
    padding: 18px;
  }

  .toast-stack {
    top: 14px;
    right: 14px;
    left: 14px;
    width: auto;
  }

  .hero-panel,
  .auth-card {
    padding: 22px;
  }

  .topbar,
  .post-head,
  .post-actions,
  .person-row,
  .moderation-row,
  .inline-form,
  .person-head {
    flex-direction: column;
    align-items: stretch;
  }

  .section-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .login-hero-panel,
  .signup-hero-panel {
    padding: 28px 22px;
  }

  .login-copy-card {
    padding: 22px 20px;
    border-radius: 22px;
  }

  .hero-logo-stack {
    align-items: flex-start;
  }

  .hero-logo {
    width: 96px;
    height: 96px;
  }
}
