﻿:root {
  --color-ink: #24333a;
  --color-muted: #637177;
  --color-soft: #eef7f9;
  --color-line: rgba(31, 78, 95, 0.12);
  --color-brand: #1f4e5f;
  --color-brand-light: #2e6f86;
  --color-accent: #33c7cc;
  --color-white: #ffffff;
  --shadow-card: 0 30px 80px rgba(31, 78, 95, 0.12), 0 10px 25px rgba(31, 78, 95, 0.08);
  --radius-card: 24px;
  --radius-control: 12px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: "Poppins", Arial, sans-serif;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(198, 237, 242, 0.72) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(220, 238, 243, 0.82) 0%, transparent 34%),
    linear-gradient(135deg, #fbfdfc 0%, #ffffff 100%);
}

a {
  color: inherit;
}

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

[hidden] {
  display: none !important;
}

.page-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.topbar {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.68);
  border-bottom: 1px solid rgba(31, 78, 95, 0.08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 92px;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  height: 34px;
}

.topbar__cta {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  text-align: right;
}

.topbar__cta a {
  color: var(--color-brand);
  font-weight: 700;
  text-decoration: none;
}

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

.login-layout {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 440px);
  align-items: center;
  gap: clamp(40px, 7vw, 86px);
  padding: clamp(28px, 5vh, 56px) 0;
}

.hero-copy {
  max-width: 760px;
  text-align: center;
  animation: fade-left 700ms ease both;
}

.hero-copy__logo {
  display: block;
  width: min(100%, 760px);
  height: auto;
  margin: 0 auto -158px;
}

.hero-copy__text {
  max-width: 640px;
  margin: 0 auto;
  color: var(--color-muted);
  font-size: clamp(1.1rem, 1.9vw, 1.42rem);
  line-height: 1.55;
}

.hero-copy__text span {
  display: block;
  margin-top: 4px;
}

@media (min-width: 901px) {
  .hero-copy {
    margin-top: -104px;
  }
}

.login-card {
  width: 100%;
  padding: clamp(28px, 3.5vw, 42px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
  animation: fade-up 700ms ease both;
}

.login-card h1 {
  margin: 0 0 28px;
  color: var(--color-ink);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  text-transform: uppercase;
}

.login-form {
  display: grid;
  gap: 18px;
}

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

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-brand);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  color: var(--color-ink);
  font-size: 0.94rem;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  outline: none;
  background: #f4f7f8;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.field textarea {
  min-height: 92px;
  padding: 14px 16px;
  line-height: 1.5;
  resize: vertical;
}

.field input::placeholder {
  color: #98a4a9;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  background: var(--color-white);
  border-color: rgba(46, 111, 134, 0.42);
  box-shadow: 0 0 0 4px rgba(51, 199, 204, 0.16);
}

.password-control {
  position: relative;
  min-height: 40px;
}

.password-control input {
  padding-right: 58px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  min-width: 42px;
  min-height: 24px;
  padding: 0 7px;
  color: var(--color-brand);
  border: 0;
  border-radius: 999px;
  background: rgba(31, 78, 95, 0.08);
  font-size: 0.68rem;
  font-weight: 700;
  cursor: pointer;
  transform: translateY(-50%);
}

.password-toggle:hover {
  background: rgba(31, 78, 95, 0.14);
}

.password-strength {
  height: 6px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(31, 78, 95, 0.12);
}

.password-strength--ghost {
  opacity: 0;
}

.password-strength span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: #b8c3c8;
  transition: width 180ms ease, background 180ms ease;
}

.password-strength.is-weak span {
  width: 33%;
  background: #b64b5c;
}

.password-strength.is-medium span {
  width: 66%;
  background: #c49a35;
}

.password-strength.is-strong span {
  width: 100%;
  background: #16805b;
}

.password-strength__label {
  min-height: 34px;
  margin: 4px 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.password-grid {
  align-items: start;
}

.password-grid .field {
  grid-template-rows: auto auto auto auto;
}

.password-match-ok {
  color: #16805b;
}

.field label span {
  color: var(--color-muted);
  font-weight: 500;
}

.primary-button {
  width: 100%;
  min-height: 54px;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 0;
  border-radius: var(--radius-control);
  color: var(--color-white);
  background: linear-gradient(135deg, var(--color-brand), var(--color-brand-light));
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(31, 78, 95, 0.22);
}

.primary-button:focus-visible {
  outline: 4px solid rgba(51, 199, 204, 0.28);
  outline-offset: 3px;
}

.login-links {
  display: grid;
  justify-items: center;
  gap: 11px;
  margin-top: 24px;
}

.login-links a {
  color: var(--color-muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.login-links a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.footer {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  padding: 10px 0 14px;
  color: #859197;
  font-size: 0.82rem;
  text-align: center;
}

.footer nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 24px;
}

.footer a {
  text-decoration: none;
}

.footer a:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.footer p {
  margin: 0;
}

.split-layout {
  width: min(100% - 40px, var(--container));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 520px);
  align-items: center;
  gap: clamp(38px, 7vw, 86px);
  padding: clamp(14px, 2.6vh, 28px) 0;
}

.split-layout--form {
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 560px);
}

.register-copy {
  max-width: 560px;
}

.register-copy__logo {
  display: block;
  width: min(100%, 340px);
  height: auto;
  margin: 0 0 8px;
}

.register-copy h1 {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: clamp(1.65rem, 2.6vw, 2.28rem);
  line-height: 1.12;
  letter-spacing: 0;
}

.register-copy p {
  margin: 0;
  color: var(--color-muted);
  font-size: clamp(0.96rem, 1.35vw, 1.06rem);
  line-height: 1.48;
}

.principles-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.principles-list li {
  position: relative;
  padding-left: 30px;
  color: var(--color-brand);
  font-size: 0.95rem;
  font-weight: 600;
}

.principles-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--color-accent);
  box-shadow: 0 0 0 6px rgba(51, 199, 204, 0.12);
}

.form-card {
  width: 100%;
  padding: clamp(20px, 2.4vw, 28px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.form-card--wide {
  max-width: 560px;
}

.form-card h2 {
  margin: 0 0 12px;
  color: var(--color-ink);
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  text-align: center;
  text-transform: uppercase;
}

.stacked-form {
  display: grid;
  gap: 8px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.form-note {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.field-footnote {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.character-counter {
  flex: 0 0 auto;
  color: var(--color-brand);
  font-weight: 700;
  text-align: right;
}

.form-message {
  margin: 0;
  padding: 12px 14px;
  color: var(--color-brand);
  background: rgba(51, 199, 204, 0.12);
  border: 1px solid rgba(51, 199, 204, 0.2);
  border-radius: var(--radius-control);
  font-size: 0.86rem;
  line-height: 1.45;
}

.form-message.is-error {
  color: #8b1e2d;
  background: rgba(139, 30, 45, 0.08);
  border-color: rgba(139, 30, 45, 0.18);
}

.form-card .field {
  gap: 6px;
}

.form-card .field input,
.form-card .field select {
  min-height: 40px;
}

.form-card .primary-button {
  min-height: 44px;
}

.compact-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.compact-fieldset legend {
  margin: 0 0 6px;
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 600;
}

.birth-grid {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr 1fr;
  gap: 10px;
}

.birth-grid .field {
  gap: 0;
}

.birth-grid .field label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.recover-copy {
  justify-self: center;
}

.intro-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: auto 1fr;
  background:
    radial-gradient(circle at top left, rgba(198, 237, 242, 0.7) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(220, 238, 243, 0.86) 0%, transparent 34%),
    linear-gradient(135deg, #fbfdfc 0%, #ffffff 100%);
}

.intro-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 14px clamp(20px, 5vw, 64px);
}

.intro-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.intro-header img {
  width: auto;
  height: 36px;
}

.intro-card {
  width: min(100% - 40px, 980px);
  margin: auto;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.intro-card--single {
  width: min(100% - 40px, 760px);
  min-height: 520px;
  display: grid;
  align-content: center;
}

.intro-step {
  margin: 0 0 12px;
  color: var(--color-brand);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
}

.intro-slide {
  display: none;
  animation: fade-up 360ms ease both;
}

.intro-slide.is-active {
  display: block;
}

.intro-card h1 {
  max-width: 760px;
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.9rem, 3.2vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0;
}

.intro-title-break {
  display: block;
}

.intro-slide p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.intro-card > p:not(.intro-step) {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--color-muted);
  font-size: clamp(1rem, 1.6vw, 1.18rem);
  line-height: 1.65;
}

.intro-slide p + p {
  margin-top: 12px;
}

.intro-progress {
  display: flex;
  gap: 8px;
  margin-top: 34px;
}

.intro-progress span {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(31, 78, 95, 0.16);
  transition: width 180ms ease, background 180ms ease;
}

.intro-progress span.is-active {
  width: 54px;
  background: var(--color-brand);
}

.intro-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 30px;
}

.intro-actions.is-final {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.intro-actions.is-final .intro-back {
  justify-self: start;
}

.intro-actions.is-final .intro-enter {
  grid-column: 2;
  justify-self: center;
}

.intro-back {
  min-height: 54px;
  padding: 0 22px;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.18);
  border-radius: var(--radius-control);
  background: rgba(255, 255, 255, 0.68);
  font-weight: 700;
  cursor: pointer;
}

.intro-back:hover {
  border-color: rgba(31, 78, 95, 0.36);
}

.intro-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.intro-panels article {
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.64);
}

.intro-panels span {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-bottom: 14px;
  border-radius: 999px;
  color: var(--color-white);
  background: var(--color-brand);
  font-weight: 700;
}

.intro-panels h2 {
  margin: 0 0 10px;
  color: var(--color-ink);
  font-size: 1.02rem;
  line-height: 1.35;
}

.intro-panels p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.intro-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 240px;
  margin-top: 0;
  padding: 0 24px;
  text-decoration: none;
}

.app-shell {
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(198, 237, 242, 0.72) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(220, 238, 243, 0.82) 0%, transparent 34%),
    linear-gradient(135deg, #fbfdfc 0%, #ffffff 100%);
}

.app-shell--network {
  background:
    linear-gradient(180deg, rgba(238, 247, 249, 0.86) 0%, rgba(255, 255, 255, 0.72) 34%),
    #eef2f3;
}

.app-topbar {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(31, 78, 95, 0.08);
  backdrop-filter: blur(16px);
}

.network-topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  min-height: 68px;
  display: grid;
  grid-template-columns: 160px minmax(280px, 560px) auto;
  align-items: center;
  gap: 24px;
  padding: 12px clamp(20px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(31, 78, 95, 0.1);
  backdrop-filter: blur(16px);
}

.network-search {
  display: grid;
  gap: 0;
}

.network-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.network-search input {
  width: 100%;
  min-height: 42px;
  padding: 0 16px;
  color: var(--color-ink);
  border: 1px solid rgba(31, 78, 95, 0.16);
  border-radius: 999px;
  outline: none;
  background: rgba(255, 255, 255, 0.72);
}

.network-search input:focus {
  border-color: rgba(46, 111, 134, 0.42);
  box-shadow: 0 0 0 4px rgba(51, 199, 204, 0.14);
}

.network-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.network-actions a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
}

.network-actions a:hover {
  background: rgba(31, 78, 95, 0.08);
}

.network-layout {
  width: min(100% - 40px, 1440px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr) 220px;
  align-items: start;
  gap: 24px;
  padding: 28px 0 48px;
}

.profile-column,
.tags-column {
  position: sticky;
  top: 92px;
  display: grid;
  gap: 18px;
}

.profile-card,
.tags-card,
.post-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(31, 78, 95, 0.08);
}

.profile-card {
  padding: 18px;
}

.profile-card__top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.profile-zodiac {
  min-width: 76px;
  align-self: start;
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 8px 10px 9px;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.12);
  border-radius: 14px;
  background: rgba(31, 78, 95, 0.04);
  text-align: center;
}

.profile-zodiac__icon {
  color: var(--color-brand);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1;
}

.profile-zodiac__name {
  color: var(--color-brand);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
}

.profile-name,
.post-author {
  margin: 0;
  color: var(--color-ink);
  font-weight: 700;
}

.profile-name {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.profile-code,
.post-tag,
.post-code {
  margin: 2px 0 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.sex-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  height: auto;
  margin-right: 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  vertical-align: middle;
}

.profile-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 16px;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.profile-meta span:first-child {
  grid-column: 1 / -1;
  color: var(--color-brand);
  font-weight: 700;
}

.profile-flag {
  font-size: 1.45rem;
  line-height: 1;
}

.gift-button {
  width: 100%;
  min-height: 38px;
  margin-top: 14px;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.gift-button:hover {
  background: rgba(31, 78, 95, 0.07);
}

.side-menu {
  display: grid;
  gap: 10px;
}

.side-menu a {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 78, 95, 0.08);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  text-decoration: none;
}

.about-panel {
  overflow: hidden;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 78, 95, 0.08);
  border-radius: 22px;
}

.about-panel summary {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.about-panel summary::-webkit-details-marker {
  display: none;
}

.about-panel summary::after {
  content: "+";
  margin-left: auto;
  color: var(--color-brand);
  font-size: 1rem;
  font-weight: 700;
}

.about-panel[open] summary::after {
  content: "-";
}

.about-panel p {
  margin: 0;
  padding: 0 16px 16px 48px;
  color: var(--color-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.side-menu a:hover,
.side-menu a[aria-current="page"],
.about-panel:hover,
.about-panel[open] {
  color: var(--color-brand);
  border-color: rgba(31, 78, 95, 0.16);
  background: rgba(255, 255, 255, 0.96);
}

.side-menu span,
.about-panel span {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: 999px;
  font-size: 0.72rem;
}

.feed-column {
  display: grid;
  gap: 14px;
}

.feed-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  padding: 4px 4px 8px;
}

.feed-header h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.45rem, 2vw, 1.92rem);
  line-height: 1.12;
}

.feed-kicker {
  margin: 0 0 6px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
}

.feed-filter-note {
  margin: 8px 0 0;
  color: var(--color-muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.diary-entry-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--color-white);
  background: var(--color-brand);
  border-radius: 12px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.feed-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 4px 2px;
}

.feed-pagination a {
  min-width: 42px;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  color: var(--color-brand);
  background: var(--color-white);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(24, 56, 68, 0.06);
}

.feed-pagination a[aria-current="page"] {
  color: var(--color-white);
  background: var(--color-brand);
}

.feed-pagination a.is-disabled {
  pointer-events: none;
  opacity: 0.42;
}

.post-card {
  padding: 18px 24px 16px;
}

.post-card--feed {
  border-radius: 18px;
}

.post-card__header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  margin-bottom: 12px;
}

.post-card--feed .post-card__header {
  margin-bottom: 8px;
}

.post-card p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.95rem;
  line-height: 1.62;
}

.post-body-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}

.post-flag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-top: 4px;
  line-height: 1;
}

.flag-icon {
  width: 34px;
  height: 23px;
  display: inline-block;
  border: 1px solid rgba(31, 78, 95, 0.16);
  border-radius: 4px;
  box-shadow: 0 2px 7px rgba(31, 78, 95, 0.1);
  overflow: hidden;
}

.flag-ar { background: linear-gradient(#75aadb 0 33%, #fff 33% 66%, #75aadb 66%); }
.flag-bo { background: linear-gradient(#d52b1e 0 33%, #f9e300 33% 66%, #007934 66%); }
.flag-br { background: linear-gradient(135deg, #009b3a 0 100%); position: relative; }
.flag-br::before { content: ""; position: absolute; inset: 5px 8px; background: #ffdf00; transform: rotate(45deg); }
.flag-ca { background: linear-gradient(90deg, #d52b1e 0 25%, #fff 25% 75%, #d52b1e 75%); }
.flag-cl { background: linear-gradient(#fff 0 50%, #d52b1e 50%); position: relative; }
.flag-cl::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 42%; height: 50%; background: #0039a6; }
.flag-co { background: linear-gradient(#fcd116 0 50%, #003893 50% 75%, #ce1126 75%); }
.flag-cr { background: linear-gradient(#002b7f 0 16%, #fff 16% 32%, #ce1126 32% 68%, #fff 68% 84%, #002b7f 84%); }
.flag-cu { background: linear-gradient(#002a8f 0 20%, #fff 20% 40%, #002a8f 40% 60%, #fff 60% 80%, #002a8f 80%); position: relative; }
.flag-cu::before { content: ""; position: absolute; left: 0; top: 0; border-top: 11.5px solid transparent; border-bottom: 11.5px solid transparent; border-left: 18px solid #cf142b; }
.flag-do { background: linear-gradient(90deg, transparent 42%, #fff 42% 58%, transparent 58%), linear-gradient(transparent 40%, #fff 40% 60%, transparent 60%), linear-gradient(90deg, #002d62 0 50%, #ce1126 50%); }
.flag-ec { background: linear-gradient(#ffdd00 0 50%, #034ea2 50% 75%, #ed1c24 75%); }
.flag-es { background: linear-gradient(#aa151b 0 25%, #f1bf00 25% 75%, #aa151b 75%); }
.flag-gt { background: linear-gradient(90deg, #4997d0 0 33%, #fff 33% 66%, #4997d0 66%); }
.flag-hn { background: linear-gradient(#0073cf 0 33%, #fff 33% 66%, #0073cf 66%); }
.flag-mx { background: linear-gradient(90deg, #006847 0 33%, #fff 33% 66%, #ce1126 66%); }
.flag-ni { background: linear-gradient(#0067c6 0 33%, #fff 33% 66%, #0067c6 66%); }
.flag-pa { background: linear-gradient(90deg, #fff 0 50%, #d21034 50% 100%); position: relative; }
.flag-pa::before { content: ""; position: absolute; left: 0; bottom: 0; width: 50%; height: 50%; background: #005293; }
.flag-pa::after { content: ""; position: absolute; right: 0; top: 0; width: 50%; height: 50%; background: #fff; }
.flag-pe { background: linear-gradient(90deg, #d91023 0 33%, #fff 33% 66%, #d91023 66%); }
.flag-py { background: linear-gradient(#d52b1e 0 33%, #fff 33% 66%, #0038a8 66%); }
.flag-sv { background: linear-gradient(#0047ab 0 33%, #fff 33% 66%, #0047ab 66%); }
.flag-us { background: repeating-linear-gradient(#b22234 0 2px, #fff 2px 4px); position: relative; }
.flag-us::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 42%; height: 54%; background: #3c3b6e; }
.flag-uy { background: repeating-linear-gradient(#fff 0 3px, #0038a8 3px 6px); position: relative; }
.flag-uy::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 38%; height: 44%; background: #fff7ad; }
.flag-ve { background: linear-gradient(#f4d900 0 33%, #0033a0 33% 66%, #cf142b 66%); }
.flag-unknown { background: linear-gradient(135deg, #f4f7f8, #dce8ec); }

.post-text--clamped {
  display: -webkit-box;
  max-height: calc(1.62em * 4);
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.read-more-link {
  display: inline-flex;
  width: fit-content;
  margin-top: 10px;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.read-more-link:hover {
  text-decoration: underline;
}

.post-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-identity .sex-symbol {
  margin-top: 0;
  margin-right: 0;
}

.sex-icon {
  width: 34px;
  height: 34px;
  display: block;
  object-fit: contain;
}

.post-meta {
  display: grid;
  justify-items: end;
  gap: 2px;
  min-width: 120px;
  color: var(--color-muted);
  font-size: 0.76rem;
}

.post-meta span:first-child {
  font-size: 1.25rem;
  line-height: 1;
}

.post-meta strong {
  color: var(--color-brand);
  font-weight: 700;
}

.post-sign {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 2px;
  min-width: 190px;
  text-align: center;
}

.post-number {
  color: #16252b;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.post-sign strong {
  color: #111c20;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.05rem, 4vw, 3.2rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.94;
}

.post-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.post-actions button {
  min-height: 34px;
  padding: 0 9px;
  color: var(--color-brand);
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-weight: 700;
  cursor: pointer;
}

.post-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: #1c272d;
  min-width: 46px;
  font-size: 1rem;
  line-height: 1;
  transition: color 160ms ease, transform 160ms ease;
}

.post-action svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linejoin: round;
}

.post-action span {
  font-size: 0.78rem;
  font-weight: 800;
}

.post-action--comment {
  color: #17252b;
  font-size: 1.42rem;
}

.post-action--heart {
  color: #b31c3a;
}

.post-action--hurt {
  color: #20292e;
}

.heart-svg {
  stroke-width: 1.9;
}

.post-action--heart .heart-svg {
  color: #e25570;
}

.post-action--heart.is-active .heart-svg {
  fill: #e25570;
}

.post-action--hurt .heart-svg {
  color: #111111;
}

.post-action--hurt.is-active .heart-shape {
  fill: #111111;
}

.heart-crack-line {
  opacity: 0;
  fill: none;
  stroke: #ffffff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.post-action--hurt.is-active .heart-crack-line {
  opacity: 1;
}
.post-action--report {
  margin-left: auto;
  color: #8b1e2d;
  border: 1px solid rgba(139, 30, 45, 0.14) !important;
  border-radius: 999px !important;
  font-size: 0.78rem;
}

.post-comments {
  margin-top: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(31, 78, 95, 0.1);
  border-radius: 12px;
  background: rgba(238, 247, 249, 0.45);
}

.post-comments summary {
  color: var(--color-brand);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}

.post-comments summary strong {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  margin-left: 5px;
  color: var(--color-white);
  border-radius: 50%;
  background: var(--color-brand);
  font-size: 0.72rem;
}

.comment-item {
  margin-top: 8px;
}

.comment-item p {
  margin-top: 8px;
  padding-left: 10px;
  border-left: 3px solid rgba(51, 199, 204, 0.35);
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
  display: -webkit-box;
  max-height: 3em;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.comment-tools {
  display: flex;
  gap: 8px;
  margin: 5px 0 0 10px;
}

.comment-tools button {
  padding: 0;
  color: var(--color-brand);
  border: 0;
  background: transparent;
  font-size: 0.72rem;
  font-weight: 800;
  cursor: pointer;
}

.comment-edit-input {
  width: 100%;
  min-height: 34px;
  margin-top: 8px;
  padding: 0 10px;
  color: var(--color-ink);
  border: 1px solid rgba(31, 78, 95, 0.18);
  border-radius: 10px;
  background: var(--color-white);
  outline: none;
}

.comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.comment-form label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.comment-form input {
  min-height: 36px;
  padding: 0 12px;
  color: var(--color-ink);
  border: 1px solid rgba(31, 78, 95, 0.13);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  outline: none;
}

.comment-counter {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.comment-form button {
  min-height: 36px;
  padding: 0 14px;
  color: var(--color-white);
  border: 0;
  border-radius: 999px;
  background: var(--color-brand);
  font-weight: 800;
  cursor: pointer;
}

.post-comments--modal h3 {
  margin: 0 0 8px;
  color: var(--color-brand);
  font-size: 0.95rem;
}

.post-comments--modal .comment-item p {
  display: block;
  max-height: none;
  overflow: visible;
  -webkit-line-clamp: unset;
}

.post-action--heart.is-active {
  animation: heart-pop 420ms ease;
}

.post-action--hurt.is-active {
  animation: heart-crack 520ms ease;
}

.post-share {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 7px;
  margin-top: 4px;
}

.post-share span {
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.post-share a,
.post-share button {
  width: 30px;
  height: 30px;
  padding: 0;
  display: inline-grid;
  place-items: center;
  color: #3d4b51;
  border: 1px solid rgba(31, 78, 95, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.share-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.share-button--facebook {
  color: #1877f2 !important;
}

.share-button--whatsapp {
  color: #128c7e !important;
}

.share-button--x {
  color: #111111 !important;
}

.share-button--telegram {
  color: #229ed9 !important;
}

.share-button--download,
.share-button--image {
  width: auto !important;
  padding: 0 10px !important;
  display: inline-flex !important;
  gap: 6px;
  color: #ffffff !important;
  background: #7f4bb6 !important;
  border-color: rgba(127, 75, 182, 0.28) !important;
}

.share-button--download {
  background: var(--color-brand) !important;
  border-color: rgba(31, 78, 95, 0.28) !important;
}

.share-button--download.is-ready-to-share {
  background: #7f4bb6 !important;
  border-color: rgba(127, 75, 182, 0.28) !important;
}

.share-button--image span {
  color: inherit;
  font-size: 0.72rem;
}

.share-button--download span {
  color: inherit;
  font-size: 0.72rem;
}

.share-button.is-hidden {
  display: none !important;
}

@keyframes heart-pop {
  0% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.42) translateY(-3px);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes heart-crack {
  0%, 100% {
    transform: translateX(0) rotate(0);
  }
  20% {
    transform: translateX(-2px) rotate(-7deg);
  }
  42% {
    transform: translateX(3px) rotate(8deg);
  }
  68% {
    transform: translateX(-1px) rotate(-4deg);
  }
}

.post-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 24px;
}

.post-modal:target {
  display: grid;
}

.post-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(18, 32, 38, 0.48);
  backdrop-filter: blur(8px);
}

.post-modal__card {
  position: relative;
  z-index: 1;
  width: min(100%, 680px);
  max-height: min(82vh, 760px);
  overflow: auto;
  padding: 22px 24px 20px;
  color: var(--color-ink);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.92);
  border-radius: 18px;
  box-shadow: 0 32px 90px rgba(18, 32, 38, 0.24);
}

.post-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.post-modal__close {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 50%;
  background: rgba(238, 247, 249, 0.9);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.post-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--color-muted);
  font-size: 0.8rem;
}

.post-modal__meta strong {
  color: var(--color-brand);
}

.post-modal__card > p {
  margin: 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.75;
}

.tags-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  max-height: calc(100vh - 118px);
  overflow: auto;
}

.tags-card h2 {
  margin: 0 0 4px;
  color: var(--color-ink);
  font-size: 1rem;
}

.tag-filter {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 9px;
  color: var(--color-muted);
  border-radius: 10px;
  font-size: 0.86rem;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.tag-filter span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag-filter strong {
  min-width: 26px;
  padding: 2px 7px;
  color: var(--color-brand);
  border-radius: 999px;
  background: rgba(31, 78, 95, 0.08);
  font-size: 0.72rem;
  text-align: center;
}

.tag-filter:hover,
.tag-filter[aria-current="true"] {
  color: var(--color-brand);
  font-weight: 700;
  background: rgba(51, 199, 204, 0.13);
}

.tag-filter[aria-current="true"] strong {
  color: var(--color-white);
  background: var(--color-brand);
}

.slam-shell {
  min-height: 100vh;
  color: #17191c;
  background: #ffffff;
  font-family: "Poppins", Arial, sans-serif;
}

.slam-topbar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 36px;
  padding: 0 6.3vw;
  background: #9b0018;
}

.slam-home {
  width: 42px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  color: #ffffff;
  background: #111111;
  border: 2px solid #ffffff;
  font-size: 1.45rem;
  line-height: 1;
  text-decoration: none;
}

.slam-back {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 10px;
  text-decoration: none;
}

.slam-topbar img {
  justify-self: end;
  width: 170px;
  max-height: 54px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.slam-page {
  width: min(100% - 56px, 1360px);
  margin: 0 auto;
  padding: 52px 0 70px;
}

.slam-intro {
  width: min(100%, 900px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 22px;
  text-align: center;
}

.slam-intro img,
.slam-brand-panel img,
.slam-viewer__intro img {
  width: min(100%, 380px);
  object-fit: contain;
}

.slam-intro p {
  max-width: 880px;
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
}

.slam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
}

.slam-actions a,
.slam-question-form button {
  min-width: 200px;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  color: #ffffff;
  border: 0;
  border-radius: 999px;
  background: #5d96d9;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.slam-form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(360px, 1fr);
  align-items: center;
  gap: 70px;
}

.slam-brand-panel {
  display: grid;
  justify-items: center;
  gap: 22px;
  color: #9b0018;
  text-align: center;
}

.slam-brand-panel p,
.slam-viewer__intro p {
  margin: 0;
  color: #9b0018;
  font-size: 0.95rem;
  line-height: 1.45;
}

.slam-question-form {
  display: grid;
  gap: 16px;
}

.slam-question {
  display: grid;
  gap: 7px;
}

.slam-question span {
  font-size: 0.98rem;
}

.slam-question input,
.slam-answer-row output {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: #17191c;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  background: #ffffff;
  font: inherit;
}

.slam-question-form button {
  justify-self: end;
  margin-top: 18px;
}

.slam-viewer {
  display: grid;
  gap: 58px;
}

.slam-viewer__intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(300px, 1fr);
  align-items: center;
  gap: 80px;
}

.slam-viewer__intro img {
  justify-self: center;
}

.slam-answer-list {
  display: grid;
  gap: 12px;
}

.slam-answer-row {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1fr);
  align-items: center;
  gap: 42px;
}

.slam-answer-row p {
  margin: 0;
  font-size: 0.95rem;
}

.slam-actions--viewer {
  justify-content: flex-end;
  margin-top: 0;
}

.slam-page .slam-intro h1,
.slam-page .slam-brand-panel h1,
.slam-page .slam-viewer__intro h1 {
  max-width: 720px;
  font-size: clamp(1.65rem, 3vw, 2.45rem);
  line-height: 1.12;
}

.slam-page .slam-intro {
  min-height: calc(100vh - 230px);
  padding-block: clamp(32px, 5vw, 64px);
}

.slam-page .slam-intro p,
.slam-page .slam-brand-panel p,
.slam-page .slam-viewer__intro p {
  font-size: 0.9rem;
  line-height: 1.55;
}

.slam-page .slam-kicker {
  font-size: 0.72rem;
}

.slam-page .slam-actions a,
.slam-page .slam-question-form button,
.slam-page .slam-pager a,
.slam-page .slam-pager span {
  min-height: 40px;
  padding: 0 16px;
  font-size: 0.86rem;
}

.slam-page .slam-actions strong {
  margin-left: 4px;
}

.slam-page .slam-brand-panel {
  text-align: center;
}

.slam-page .slam-question-form {
  gap: 12px;
}

.slam-page .slam-question span,
.slam-page .slam-answer-row p {
  font-size: 0.84rem;
  line-height: 1.35;
}

.slam-page .slam-question input,
.slam-page .slam-answer-row output {
  min-height: 38px;
  font-size: 0.86rem;
}

.slam-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.slam-pager--form {
  justify-content: flex-end;
  margin-top: 8px;
}

.slam-pager a,
.slam-pager span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 800;
  text-decoration: none;
}

.slam-page--owner,
.slam-page--visitor {
  width: min(100% - 40px, 1040px);
  padding: 18px 0 24px;
}

.slam-shell .slam-topbar {
  min-height: 64px;
  padding-top: 8px;
  padding-bottom: 8px;
}

.slam-shell .slam-topbar .brand img {
  height: 40px;
}

.slam-shell .slam-nav a {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.78rem;
}

.slam-page--owner .slam-viewer,
.slam-page--visitor .slam-viewer {
  gap: 10px;
}

.slam-page--owner .slam-viewer__intro,
.slam-page--visitor .slam-viewer__intro,
.slam-page--owner .slam-answer-list,
.slam-page--visitor .slam-answer-list {
  padding: 16px 20px;
  border-radius: 16px;
}

.slam-page--owner .slam-viewer__intro h1,
.slam-page--visitor .slam-viewer__intro h1 {
  font-size: clamp(1.35rem, 2.2vw, 1.95rem);
}

.slam-page--owner .slam-viewer__intro p,
.slam-page--visitor .slam-viewer__intro p {
  font-size: 0.78rem;
  line-height: 1.35;
}

.slam-page--owner .slam-kicker,
.slam-page--visitor .slam-kicker {
  font-size: 0.66rem;
}

.slam-page--owner .slam-progress,
.slam-page--visitor .slam-progress {
  margin-top: 0 !important;
  padding: 6px 10px;
  font-size: 0.72rem;
}

.slam-page--owner .slam-answer-list,
.slam-page--visitor .slam-answer-list {
  gap: 0;
}

.slam-page--owner .slam-answer-row,
.slam-page--visitor .slam-answer-row {
  grid-template-columns: minmax(260px, 0.74fr) minmax(0, 1fr);
  gap: 16px;
  padding: 7px 0;
}

.slam-page--owner .slam-answer-row p,
.slam-page--visitor .slam-answer-row p {
  font-size: 0.8rem;
  line-height: 1.32;
}

.slam-page--owner .slam-answer-row output,
.slam-page--visitor .slam-answer-row output {
  min-height: 32px;
  padding: 0 10px;
  border-radius: 10px;
  font-size: 0.82rem;
}

.slam-page--owner .slam-actions,
.slam-page--visitor .slam-actions {
  margin-top: 4px;
}

.slam-page--owner .slam-actions a,
.slam-page--visitor .slam-actions a,
.slam-page--owner .slam-pager a,
.slam-page--visitor .slam-pager a,
.slam-page--owner .slam-pager span,
.slam-page--visitor .slam-pager span {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.78rem;
}

/* SLAM follows the current MDER visual language. */
.slam-shell {
  min-height: 100vh;
  color: var(--color-ink);
  background:
    radial-gradient(circle at top left, rgba(198, 237, 242, 0.72) 0%, transparent 32%),
    radial-gradient(circle at bottom right, rgba(220, 238, 243, 0.82) 0%, transparent 34%),
    linear-gradient(135deg, #fbfdfc 0%, #ffffff 100%);
  font-family: "Poppins", Arial, sans-serif;
}

.slam-topbar {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(20px, 5vw, 76px);
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(31, 78, 95, 0.08);
  backdrop-filter: blur(16px);
}

.slam-topbar .brand img {
  width: auto;
  height: 50px;
  max-height: none;
  filter: none;
}

.slam-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.slam-nav a,
.slam-actions a,
.slam-question-form button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  color: var(--color-brand);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  font-weight: 700;
  text-decoration: none;
}

.slam-actions a:first-child,
.slam-question-form button {
  color: var(--color-white);
  background: var(--color-brand);
}

.slam-page {
  width: min(100% - 40px, 1180px);
  margin: 0 auto;
  padding: 34px 0 56px;
}

.mder-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.slam-intro {
  width: min(100%, 860px);
  min-height: calc(100vh - 190px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 14px;
  padding: clamp(28px, 5vw, 54px);
  text-align: center;
}

.slam-kicker {
  margin: 0;
  color: var(--color-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.slam-intro h1,
.slam-brand-panel h1,
.slam-viewer__intro h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.08;
}

.slam-intro p,
.slam-brand-panel p,
.slam-viewer__intro p {
  max-width: 760px;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.slam-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 16px;
}

.slam-form-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.slam-brand-panel,
.slam-question-form,
.slam-viewer__intro,
.slam-answer-list {
  padding: clamp(22px, 3vw, 34px);
}

.slam-brand-panel {
  position: sticky;
  top: 108px;
  display: grid;
  gap: 14px;
}

.slam-progress {
  width: fit-content;
  margin-top: 6px !important;
  padding: 8px 12px;
  color: var(--color-brand) !important;
  background: rgba(51, 199, 204, 0.13);
  border-radius: 999px;
  font-weight: 800;
}

.slam-question-form {
  display: grid;
  gap: 14px;
}

.slam-question {
  display: grid;
  gap: 7px;
}

.slam-question span,
.slam-answer-row p {
  color: var(--color-ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.slam-question input,
.slam-answer-row output {
  width: 100%;
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  color: var(--color-ink);
  border: 1px solid rgba(31, 78, 95, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
}

.slam-question-form button {
  justify-self: end;
  min-width: 180px;
  margin-top: 8px;
  border: 0;
  cursor: pointer;
}

.slam-viewer {
  display: grid;
  gap: 18px;
}

.slam-viewer__intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

.slam-answer-list {
  display: grid;
  gap: 12px;
}

.slam-answer-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(31, 78, 95, 0.08);
}

.slam-answer-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.slam-answer-row p {
  margin: 0;
}

.slam-answer-row output {
  min-height: 40px;
}

.slam-empty {
  margin: 0;
  padding: 16px;
  color: var(--color-muted);
  border: 1px dashed rgba(31, 78, 95, 0.18);
  border-radius: 14px;
  background: rgba(238, 247, 249, 0.54);
  font-size: 0.9rem;
  text-align: center;
}

.slam-actions--viewer {
  justify-content: flex-end;
  margin-top: 0;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-nav a,
.secondary-link {
  color: var(--color-muted);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}

.app-nav a {
  padding: 9px 12px;
  border-radius: 999px;
}

.app-nav a:hover,
.app-nav a[aria-current="page"] {
  color: var(--color-brand);
  background: rgba(31, 78, 95, 0.08);
}

.module-home {
  width: min(100% - 40px, 900px);
  min-height: calc(100vh - 64px);
  margin: 0 auto;
  display: grid;
  place-items: center;
  padding: 36px 0;
}

.module-card,
.settings-card {
  width: 100%;
  padding: clamp(28px, 4vw, 48px);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(18px);
}

.module-card h1,
.settings-intro h1 {
  margin: 0;
  color: var(--color-ink);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.12;
}

.module-card p,
.settings-intro p {
  max-width: 660px;
  margin: 16px 0 0;
  color: var(--color-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.module-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}

.settings-layout {
  width: min(100% - 40px, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(28px, 5vw, 58px) 0;
}

.settings-intro {
  position: sticky;
  top: 92px;
}

.settings-card {
  display: grid;
  gap: 12px;
  padding: clamp(22px, 3vw, 34px);
}

.settings-card details {
  border: 1px solid var(--color-line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.58);
}

.settings-card summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 54px;
  padding: 0 18px;
  color: var(--color-ink);
  font-weight: 700;
  cursor: pointer;
}

.settings-card summary::after {
  content: "+";
  color: var(--color-brand);
  font-size: 1.2rem;
}

.settings-card details[open] summary::after {
  content: "-";
}

.settings-section {
  display: grid;
  gap: 12px;
  padding: 0 18px 18px;
}

.checkbox-row,
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.checkbox-row input,
.check-row input {
  margin-top: 3px;
  accent-color: var(--color-brand);
}

.danger-row {
  color: #8b1e2d;
}

.settings-links a {
  color: var(--color-brand);
  font-weight: 600;
  text-decoration: none;
}

.settings-links a:hover {
  text-decoration: underline;
}

.info-panel {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(31, 78, 95, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.62);
}

.info-panel--soft {
  background: rgba(232, 249, 252, 0.58);
  border-color: rgba(24, 184, 190, 0.18);
}

.info-panel h2 {
  margin: 0;
  color: var(--color-brand);
  font-size: 1rem;
  line-height: 1.35;
}

.info-panel p {
  margin: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.alias-lock {
  width: fit-content;
  padding: 10px 14px;
  color: var(--color-brand) !important;
  background: rgba(31, 78, 95, 0.08);
  border: 1px solid rgba(31, 78, 95, 0.12);
  border-radius: 999px;
  font-weight: 700;
}

.settings-save {
  justify-self: end;
  width: min(100%, 260px);
  margin-top: 8px;
}

@keyframes fade-left {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .network-topbar {
    grid-template-columns: 120px 1fr;
    gap: 12px;
  }

  .network-search {
    grid-column: 1 / -1;
    order: 3;
  }

  .network-actions {
    flex-wrap: wrap;
  }

  .network-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-column,
  .tags-column {
    position: static;
  }

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

  .slam-form-layout,
  .slam-viewer__intro,
  .slam-answer-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slam-viewer {
    gap: 36px;
  }

  .slam-actions--viewer {
    justify-content: center;
  }

  .login-layout {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 34px;
    padding-top: 28px;
  }

  .hero-copy {
    max-width: 620px;
    text-align: center;
  }

  .hero-copy__logo {
    width: min(100%, 560px);
    margin-bottom: -112px;
    margin-inline: auto;
  }

  .hero-copy__text {
    margin-inline: auto;
  }

  .login-card {
    max-width: 460px;
  }

  .split-layout,
  .split-layout--form {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 30px;
    padding-top: 28px;
  }

  .register-copy {
    max-width: 620px;
    text-align: center;
  }

  .register-copy__logo {
    margin-inline: auto;
  }

  .principles-list {
    justify-items: start;
    width: fit-content;
    margin-inline: auto;
    text-align: left;
  }

  .intro-panels {
    grid-template-columns: 1fr;
  }

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

  .settings-intro {
    position: static;
    text-align: center;
  }

  .settings-intro .register-copy__logo {
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    min-height: 100svh;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    min-height: 54px;
    padding: 10px 18px;
  }

  .brand img {
    height: 28px;
  }

  .topbar__cta {
    max-width: 160px;
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .post-card {
    padding: 16px;
  }

  .post-card__header {
    gap: 8px;
  }

  .post-sign {
    min-width: 0;
    justify-items: center;
  }

  .post-sign strong {
    font-size: 2.25rem;
  }

  .post-body-line {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }

  .post-flag {
    font-size: 1.5rem;
  }

  .post-share {
    justify-content: flex-start;
  }

  .login-layout {
    width: min(100% - 28px, var(--container));
    gap: 8px;
    padding: 2px 0 10px;
  }

  .hero-copy {
    margin-top: -36px;
    margin-bottom: -22px;
  }

  .hero-copy__logo {
    width: min(100%, 410px);
    margin-top: -36px;
    margin-bottom: -56px;
  }

  .hero-copy__text {
    font-size: 0.86rem;
    line-height: 1.32;
  }

  .hero-copy__text span {
    margin-top: 2px;
  }

  .login-card {
    padding: 18px 20px 16px;
    border-radius: 20px;
  }

  .login-card h1 {
    margin-bottom: 14px;
  }

  .login-form {
    gap: 12px;
  }

  .field input {
    min-height: 48px;
  }

  .field select {
    min-height: 48px;
  }

  .primary-button {
    min-height: 50px;
  }

  .login-links {
    gap: 8px;
    margin-top: 18px;
  }

  .footer {
    width: min(100% - 28px, var(--container));
    padding: 4px 0 8px;
    font-size: 0.76rem;
  }

  .footer nav {
    gap: 8px 18px;
  }

  .split-layout,
  .split-layout--form {
    width: min(100% - 28px, var(--container));
    gap: 22px;
    padding: 18px 0 14px;
  }

  .register-copy__logo {
    width: min(100%, 360px);
    margin-bottom: 10px;
  }

  .register-copy h1 {
    font-size: 1.7rem;
  }

  .register-copy p {
    font-size: 0.95rem;
    line-height: 1.52;
  }

  .principles-list {
    gap: 9px;
    margin-top: 16px;
  }

  .principles-list li {
    font-size: 0.92rem;
  }

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

  .form-card h2 {
    margin-bottom: 18px;
  }

  .stacked-form {
    gap: 12px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .intro-shell {
    min-height: 100svh;
  }

  .intro-header {
    min-height: 54px;
    padding: 10px 18px;
  }

  .intro-header img {
    height: 28px;
  }

  .intro-card {
    width: min(100% - 28px, 980px);
    padding: 24px 20px;
  }

  .intro-card--single {
    min-height: calc(100svh - 92px);
    align-content: center;
  }

  .intro-card h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .intro-card > p:not(.intro-step) {
    margin-top: 14px;
    font-size: 0.98rem;
    line-height: 1.58;
  }

  .intro-panels {
    gap: 12px;
    margin-top: 22px;
  }

  .intro-panels article {
    padding: 16px;
    border-radius: 16px;
  }

  .intro-button {
    width: 100%;
    min-width: 0;
  }

  .intro-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    margin-top: 24px;
  }

  .intro-actions.is-final {
    display: flex;
    align-items: stretch;
  }

  .intro-back {
    min-height: 48px;
  }

  .intro-progress {
    margin-top: 26px;
  }

  .app-topbar {
    align-items: flex-start;
    gap: 12px;
    padding: 10px 18px;
  }

  .network-topbar {
    grid-template-columns: 96px 1fr;
    align-items: start;
    padding: 10px 18px;
  }

  .network-topbar .brand img {
    height: 28px;
  }

  .network-actions {
    justify-content: flex-end;
    gap: 6px;
  }

  .network-actions a {
    min-height: 34px;
    padding: 0 10px;
    font-size: 0.76rem;
  }

  .network-search input {
    min-height: 40px;
    border-radius: 14px;
  }

  .network-layout {
    width: min(100% - 28px, 1440px);
    gap: 18px;
    padding: 18px 0 32px;
  }

  .profile-column {
    gap: 10px;
  }

  .profile-card,
  .tags-card,
  .post-card {
    border-radius: 16px;
  }

  .side-menu {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 2px 8px;
    scrollbar-width: thin;
  }

  .side-menu a,
  .about-panel {
    flex: 0 0 auto;
  }

  .side-menu a,
  .about-panel summary {
    min-height: 38px;
    padding: 0 12px;
    font-size: 0.78rem;
    white-space: nowrap;
  }

  .about-panel[open] {
    min-width: 230px;
  }

  .about-panel p {
    padding: 0 12px 12px 42px;
  }

  .slam-topbar {
    grid-template-columns: auto auto;
    gap: 12px;
    padding: 10px 18px;
  }

  .slam-topbar img {
    grid-column: 1 / -1;
    justify-self: end;
    width: 132px;
  }

  .slam-page {
    width: min(100% - 28px, 1360px);
    padding: 28px 0 46px;
  }

  .slam-intro {
    min-height: auto;
    align-content: start;
    gap: 16px;
  }

  .slam-intro img,
  .slam-brand-panel img,
  .slam-viewer__intro img {
    width: min(100%, 280px);
  }

  .slam-actions {
    width: 100%;
    gap: 12px;
    margin-top: 14px;
  }

  .slam-actions a,
  .slam-question-form button {
    width: 100%;
    min-width: 0;
  }

  .slam-question-form button {
    justify-self: stretch;
  }

  .slam-page .slam-intro h1,
  .slam-page .slam-brand-panel h1,
  .slam-page .slam-viewer__intro h1 {
    font-size: 1.7rem;
  }

  .slam-page .slam-brand-panel,
  .slam-page .slam-question-form,
  .slam-page .slam-viewer__intro,
  .slam-page .slam-answer-list {
    padding: 18px;
  }

  .slam-page .slam-question span,
  .slam-page .slam-answer-row p {
    font-size: 0.8rem;
  }

  .slam-pager--form,
  .slam-actions--viewer {
    justify-content: stretch;
  }

  .slam-pager a,
  .slam-pager span,
  .slam-pager button {
    flex: 1 1 auto;
  }

  .feed-header {
    align-items: stretch;
    flex-direction: column;
  }

  .diary-entry-link {
    justify-content: center;
  }

  .post-card {
    padding: 16px;
  }

  .post-card__header {
    align-items: flex-start;
    gap: 10px;
  }

  .post-identity {
    flex: 1 1 auto;
    min-width: 0;
  }

  .post-sign {
    min-width: 132px;
    justify-items: end;
    text-align: right;
  }

  .post-sign strong {
    max-width: 132px;
    font-size: 1.72rem;
    white-space: nowrap;
  }

  .app-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 6px;
  }

  .app-nav a {
    padding: 7px 9px;
    font-size: 0.8rem;
  }

  .module-home,
  .settings-layout {
    width: min(100% - 28px, 1080px);
    padding: 22px 0;
  }

  .module-card,
  .settings-card {
    padding: 22px 20px;
    border-radius: 20px;
  }

  .module-card h1,
  .settings-intro h1 {
    font-size: 1.85rem;
  }

  .module-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

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

  .settings-card summary {
    min-height: 50px;
    padding: 0 14px;
  }

  .settings-section {
    padding: 0 14px 16px;
  }

  .settings-save {
    width: 100%;
  }
}
