:root {
  --bg: #fff6f8;
  --surface: rgba(255, 255, 255, 0.78);
  --ink: #5a3245;
  --muted: #8d6677;
  --line: rgba(217, 95, 143, 0.16);
  --accent: #d64a83;
  --accent-strong: #f1689c;
  --accent-deep: #b72f63;
  --accent-soft: #ffe4ee;
  --accent-softest: #fff3f8;
  --warm: #ff95b5;
  --danger: #ca4772;
  --success: #2f9c77;
  --shadow: 0 22px 55px rgba(204, 103, 142, 0.16);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --container: 1180px;
  --font-display: "Candara", "Trebuchet MS", "Microsoft YaHei", sans-serif;
  --font-body: "Verdana", "Segoe UI", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 15%, rgba(255, 169, 200, 0.32), transparent 24%),
    radial-gradient(circle at 85% 10%, rgba(255, 218, 230, 0.78), transparent 20%),
    radial-gradient(circle at 82% 82%, rgba(252, 174, 202, 0.24), transparent 24%),
    linear-gradient(180deg, #fffdfd 0%, #fff5f8 44%, #ffeaf2 100%);
  min-height: 100vh;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 178, 204, 0.34) 1.5px, transparent 1.5px),
    radial-gradient(circle, rgba(244, 117, 167, 0.12) 1px, transparent 1px);
  background-size: 34px 34px, 62px 62px;
  background-position: 0 0, 16px 20px;
  opacity: 0.45;
}

body::after {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.3), transparent 40%),
    linear-gradient(315deg, rgba(255, 215, 227, 0.4), transparent 42%);
}

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

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

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

button {
  border: 0;
  cursor: pointer;
}

.hidden {
  display: none !important;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.page-shell {
  padding-bottom: 48px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  position: relative;
  width: 28px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff80ab 0%, #e94c84 100%);
  box-shadow: 0 8px 18px rgba(233, 76, 132, 0.25);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 14px 14px 10px 14px;
  background: linear-gradient(180deg, #ff8db5 0%, #de4f82 100%);
}

.brand-mark::before {
  left: -10px;
  transform: rotate(-16deg);
}

.brand-mark::after {
  right: -10px;
  transform: scaleX(-1) rotate(-16deg);
}

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

.nav-links a,
.text-button {
  padding: 10px 15px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(217, 95, 143, 0.08);
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    border-color 0.2s ease;
}

.nav-links a:hover,
.text-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.94);
  border-color: rgba(217, 95, 143, 0.24);
}

.page-home,
.admin-shell,
.article-layout {
  display: grid;
  gap: 26px;
}

.hero,
.control-panel,
.featured-card,
.about-card,
.article-card,
.panel,
.empty-state {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  animation: float-up 0.7s ease;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto -40px -60px auto;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 180, 210, 0.35), transparent 70%);
}

.hero-copy h1,
.article-head h1,
.about-card h2,
.panel h2,
.control-panel h2,
.admin-intro h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  line-height: 0.95;
  max-width: 11ch;
}

.hero-description,
.section-copy,
.about-card p,
.admin-intro p,
.article-summary {
  color: var(--muted);
  line-height: 1.8;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.74rem;
  font-weight: 700;
}

.hero-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  color: white;
  font-weight: 700;
  transition:
    transform 0.2s ease,
    filter 0.2s ease,
    box-shadow 0.2s ease;
  box-shadow: 0 12px 26px rgba(214, 74, 131, 0.24);
}

.button:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.button-secondary,
.button-ghost {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border: 1px solid rgba(217, 95, 143, 0.14);
  box-shadow: none;
}

.button-ghost {
  color: var(--accent-deep);
}

.hero-panel,
.stats-grid {
  display: grid;
  gap: 16px;
}

.dream-panel {
  align-content: start;
}

.kitty-scene {
  position: relative;
  min-height: 230px;
  padding: 24px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.86), transparent 45%),
    linear-gradient(180deg, rgba(255, 231, 240, 0.8), rgba(255, 244, 248, 0.6));
  border: 1px solid rgba(217, 95, 143, 0.12);
  overflow: hidden;
}

.hero-kitty-image {
  position: relative;
  z-index: 1;
  width: min(100%, 320px);
  max-height: 280px;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(224, 126, 168, 0.24));
  animation: kitty-float 5.8s ease-in-out infinite;
}

.sparkle {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: rgba(255, 122, 165, 0.32);
  transform: rotate(45deg);
}

.sparkle-a {
  left: 24px;
  top: 30px;
}

.sparkle-b {
  right: 30px;
  top: 50px;
}

.sparkle-c {
  right: 60px;
  bottom: 36px;
}

.stat-card,
.stat-panel {
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(255, 245, 249, 0.82));
  border: 1px solid rgba(217, 95, 143, 0.14);
}

.stat-card strong,
.stat-panel strong {
  display: block;
  font-size: 2rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.stat-card span,
.stat-panel span {
  color: var(--muted);
}

.ribbon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.ribbon-chip {
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent-softest);
  border: 1px solid rgba(217, 95, 143, 0.12);
  color: var(--accent-deep);
  font-size: 0.9rem;
  font-weight: 700;
}

.control-panel,
.about-card,
.article-card,
.panel,
.empty-state {
  border-radius: var(--radius-xl);
}

.control-panel {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 30px;
}

.search-box,
.field,
.checkbox-field {
  display: grid;
  gap: 8px;
}

.search-box {
  width: min(390px, 100%);
}

.search-box span,
.field span {
  font-size: 0.95rem;
  color: var(--muted);
}

input,
textarea,
select {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 95, 143, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 14px 15px;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(214, 74, 131, 0.45);
  box-shadow: 0 0 0 4px rgba(214, 74, 131, 0.12);
}

textarea {
  resize: vertical;
  min-height: 260px;
}

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

.tag-chip {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.64);
  color: var(--muted);
  transition:
    background 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.tag-chip:hover {
  transform: translateY(-1px);
}

.tag-chip.active {
  background: var(--accent-soft);
  color: var(--accent-deep);
  border-color: rgba(217, 95, 143, 0.24);
}

.featured-wrap {
  min-height: 120px;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  animation: float-up 0.7s ease;
}

.featured-copy,
.article-body {
  display: grid;
  gap: 16px;
}

.featured-copy h3,
.post-card h3,
.about-grid h3,
.admin-post-card h3 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

.featured-copy h3 {
  font-size: 2rem;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-grid,
.about-grid,
.dashboard-grid,
.field-grid {
  display: grid;
  gap: 18px;
}

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

.post-card,
.admin-post-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
  animation: float-up 0.75s ease;
}

.post-card p,
.admin-post-card p,
.loading-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.card-cover,
.article-cover,
.featured-cover {
  overflow: hidden;
  border-radius: calc(var(--radius-xl) - 8px);
  min-height: 210px;
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.featured-cover {
  min-height: 300px;
}

.article-cover {
  min-height: 280px;
}

.card-cover img,
.article-cover img,
.featured-cover img {
  height: 100%;
  object-fit: cover;
}

.placeholder-art {
  position: relative;
  display: grid;
  place-items: end start;
  padding: 24px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.3), transparent 24%),
    linear-gradient(135deg, #ff9fc0 0%, #ffbfd4 46%, #ffdbe8 100%);
  color: white;
  overflow: hidden;
}

.placeholder-art::before,
.placeholder-art::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.3);
}

.placeholder-art::before {
  inset: 20px auto auto 18px;
  width: 68px;
  height: 68px;
}

.placeholder-art::after {
  inset: auto 22px 18px auto;
  width: 34px;
  height: 34px;
}

.placeholder-art span {
  position: relative;
  max-width: 12ch;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2vw, 2rem);
  line-height: 1.1;
  z-index: 1;
}

.tag-list-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-badge,
.status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
}

.tag-badge {
  background: rgba(214, 74, 131, 0.08);
  color: var(--accent-deep);
}

.status-badge.published {
  background: rgba(47, 156, 119, 0.12);
  color: var(--success);
}

.status-badge.draft {
  background: rgba(202, 71, 114, 0.1);
  color: var(--danger);
}

.empty-state {
  padding: 28px;
  text-align: center;
}

.empty-state h3,
.article-card h1 {
  margin: 0;
  font-family: var(--font-display);
}

.about-card {
  padding: 30px;
}

.about-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.about-grid article {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 95, 143, 0.08);
}

.footer {
  padding-top: 18px;
  color: var(--muted);
}

.footer p {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.article-layout {
  max-width: 860px;
}

.back-link {
  width: fit-content;
  color: var(--accent-deep);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.article-card {
  padding: 30px;
}

.article-head {
  display: grid;
  gap: 16px;
  margin-bottom: 22px;
}

.article-head h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.04;
}

.rich-content {
  color: #60384a;
  line-height: 1.9;
}

.rich-content > *:first-child {
  margin-top: 0;
}

.rich-content h1,
.rich-content h2,
.rich-content h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
}

.rich-content p,
.rich-content ul,
.rich-content ol,
.rich-content blockquote,
.rich-content pre {
  margin: 0 0 1.1rem;
}

.rich-content ul,
.rich-content ol {
  padding-left: 1.4rem;
}

.rich-content blockquote {
  padding: 18px 20px;
  border-left: 4px solid var(--warm);
  background: rgba(255, 173, 202, 0.14);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.rich-content pre,
.rich-content code {
  font-family: "Consolas", "Courier New", monospace;
}

.rich-content pre {
  overflow: auto;
  padding: 16px;
  border-radius: var(--radius-md);
  background: #6a3551;
  color: #fff7fb;
}

.rich-content img {
  border-radius: var(--radius-lg);
  margin: 1.4rem 0;
}

.admin-intro {
  display: grid;
  gap: 10px;
}

.admin-intro h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

.panel,
.auth-panel {
  padding: 26px;
}

.auth-panel {
  display: grid;
  gap: 22px;
  max-width: 620px;
}

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

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

.dashboard {
  display: grid;
  gap: 20px;
}

.dashboard-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.editor-panel,
.list-panel {
  align-content: start;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

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

.checkbox-field {
  align-content: center;
  align-items: center;
  grid-template-columns: auto 1fr;
  gap: 12px;
  min-height: 100%;
  padding: 15px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(217, 95, 143, 0.16);
  background: rgba(255, 255, 255, 0.92);
}

.checkbox-field input {
  width: 18px;
  height: 18px;
  margin: 0;
}

.checkbox-field span {
  color: var(--ink);
}

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

.admin-post-card .card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.notice {
  padding: 15px 18px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  border: 1px solid transparent;
}

.notice.success {
  color: var(--success);
  background: rgba(47, 156, 119, 0.09);
  border-color: rgba(47, 156, 119, 0.16);
}

.notice.error {
  color: var(--danger);
  background: rgba(202, 71, 114, 0.08);
  border-color: rgba(202, 71, 114, 0.16);
}

.notice.info {
  color: var(--accent-deep);
  background: rgba(214, 74, 131, 0.08);
  border-color: rgba(214, 74, 131, 0.14);
}

.loading-card {
  min-height: 280px;
  display: grid;
  place-content: center;
  text-align: center;
}

.community-grid,
.account-grid,
.account-dashboard-grid {
  display: grid;
  gap: 18px;
}

.community-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

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

.spotlight-card,
.comment-shell,
.related-shell,
.author-feed,
.profile-panel,
.member-dashboard,
.guestbook-layout,
.account-layout,
.author-layout {
  display: grid;
  gap: 18px;
}

.inline-link {
  color: var(--accent-deep);
  font-weight: 700;
}

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

.compact-meta {
  font-size: 0.92rem;
}

.community-stats,
.author-meta,
.profile-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  color: var(--muted);
}

.community-stats span,
.profile-meta span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.community-stats strong {
  color: var(--accent-deep);
}

.textarea-field textarea {
  min-height: 140px;
}

.comment-shell .stack-form {
  gap: 14px;
}

.soft-count {
  color: var(--muted);
  font-weight: 700;
}

.comment-cta {
  display: grid;
  gap: 16px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.comment-list {
  display: grid;
  gap: 14px;
}

.comment-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.comment-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.comment-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.comment-head time,
.member-pill span {
  color: var(--muted);
  font-size: 0.92rem;
}

.comment-role {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(214, 74, 131, 0.08);
  color: var(--accent-deep);
  font-size: 0.82rem;
  font-weight: 700;
}

.comment-card p,
.member-pill p,
.profile-summary p {
  margin: 0;
  line-height: 1.8;
}

.comment-card p {
  white-space: pre-wrap;
}

.guestbook-card p,
.guestbook-mini-card p,
.activity-card p,
.mini-post-card p,
.trending-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.compact-empty {
  min-height: unset;
  padding: 20px;
}

.account-hero,
.author-hero,
.guestbook-hero {
  display: grid;
  gap: 24px;
}

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

.compact-stat {
  padding: 18px 20px;
}

.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.profile-summary-main,
.profile-avatar-editor,
.profile-avatar-preview-card,
.member-admin-copy,
.member-admin-top,
.member-admin-identity,
.member-detail-top,
.member-detail-badges {
  display: grid;
  gap: 12px;
}

.profile-summary h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.6rem;
}

.member-avatar {
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(217, 95, 143, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.9), transparent 48%),
    linear-gradient(155deg, rgba(255, 217, 232, 0.96), rgba(255, 243, 247, 0.78));
  box-shadow: 0 18px 34px rgba(214, 74, 131, 0.12);
}

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

.avatar-placeholder {
  display: grid;
  place-items: center;
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.profile-summary-avatar {
  width: 92px;
  height: 92px;
  border-radius: 28px;
}

.profile-avatar-editor {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.profile-avatar-editor h3,
.profile-avatar-preview-card strong {
  margin: 0;
  font-family: var(--font-display);
}

.profile-avatar-preview-card {
  align-items: center;
  grid-template-columns: auto 1fr;
}

.profile-avatar-art {
  width: 96px;
  height: 96px;
  border-radius: 30px;
}

.author-hero {
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
}

.author-hero-copy,
.author-portrait {
  display: grid;
  gap: 16px;
}

.author-portrait {
  justify-items: center;
  text-align: center;
}

.author-avatar-frame {
  width: min(100%, 310px);
  aspect-ratio: 1;
  padding: 12px;
  border-radius: 36px;
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.86), transparent 48%),
    linear-gradient(155deg, rgba(255, 217, 232, 0.96), rgba(255, 243, 247, 0.78));
  border: 1px solid rgba(217, 95, 143, 0.14);
  box-shadow: var(--shadow);
}

.author-avatar-frame img {
  height: 100%;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid rgba(217, 95, 143, 0.12);
}

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

.member-pill {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.member-pill strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.trending-shell {
  gap: 18px;
}

.trending-list,
.guestbook-preview-list,
.guestbook-list,
.activity-list {
  display: grid;
  gap: 14px;
}

.trending-card,
.guestbook-card,
.guestbook-mini-card,
.activity-card,
.mini-post-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.trending-card {
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.trending-rank {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(214, 74, 131, 0.14), rgba(255, 255, 255, 0.9));
  color: var(--accent-deep);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
}

.trending-copy {
  display: grid;
  gap: 8px;
}

.trending-copy h3,
.guestbook-card strong,
.guestbook-mini-card strong,
.activity-card strong,
.mini-post-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.engagement-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.engagement-card strong {
  font-family: var(--font-display);
  font-size: 1.8rem;
}

.guestbook-mini-card span,
.mini-post-copy .meta-row,
.activity-card time {
  color: var(--muted);
  font-size: 0.92rem;
}

.member-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-post-grid {
  display: grid;
  gap: 14px;
}

.mini-post-card {
  grid-template-columns: 120px 1fr;
  align-items: start;
}

.mini-post-cover {
  overflow: hidden;
  min-height: 120px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.mini-post-cover img {
  height: 100%;
  object-fit: cover;
}

.mini-post-copy {
  display: grid;
  gap: 10px;
}

.dashboard-section {
  align-content: start;
}

.guestbook-compose,
.guestbook-list-shell {
  display: grid;
  gap: 18px;
}

.activity-list {
  align-content: start;
}

.upload-row,
.upload-preview-shell,
.media-grid,
.media-card,
.media-card-copy,
.archive-subsection,
.members-admin-layout,
.member-admin-list,
.member-detail-shell,
.member-detail-grid,
.member-profile-card,
.members-toolbar {
  display: grid;
  gap: 14px;
}

.upload-row {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.upload-field {
  min-width: 0;
}

.upload-preview-card,
.media-card {
  padding: 16px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.upload-preview-card img,
.media-card img {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(217, 95, 143, 0.12);
  object-fit: cover;
}

.upload-preview-card img {
  max-height: 220px;
}

.media-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.members-admin-layout {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
}

.member-admin-list {
  display: grid;
  gap: 12px;
}

.member-admin-item,
.member-profile-card {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.member-admin-item {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.member-admin-item:hover,
.member-admin-item.is-active {
  transform: translateY(-1px);
  border-color: rgba(214, 74, 131, 0.24);
  box-shadow: 0 16px 30px rgba(214, 74, 131, 0.1);
}

.member-detail-shell,
.member-detail-grid {
  align-items: start;
}

.member-admin-top,
.member-detail-top {
  grid-template-columns: 1fr auto;
  align-items: start;
}

.member-admin-identity {
  grid-template-columns: auto 1fr;
  align-items: center;
}

.member-admin-copy strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
}

.member-admin-copy .comment-role {
  width: fit-content;
}

.member-admin-avatar,
.member-detail-avatar {
  width: 64px;
  height: 64px;
  border-radius: 20px;
}

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

.member-profile-card h3 {
  margin: 0;
  font-family: var(--font-display);
}

.member-detail-badges {
  gap: 8px;
}

.media-card img {
  aspect-ratio: 1.1;
}

.archive-subheading {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.admin-stat-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.site-settings-panel,
.moderation-grid,
.archive-layout,
.archive-hero,
.archive-group,
.archive-post-list,
.archive-post-item {
  display: grid;
  gap: 18px;
}

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

.site-settings-panel,
.archive-tag-panel,
.archive-list-panel {
  align-content: start;
}

.archive-hero {
  grid-template-columns: 1.1fr 0.9fr;
  align-items: start;
}

.archive-actions {
  margin-top: 4px;
}

.archive-tools-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 14px;
}

.archive-search {
  flex: 1 1 320px;
}

.archive-filter-note {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.archive-tag-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(217, 95, 143, 0.12);
  color: var(--muted);
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.archive-tag-button strong {
  font-size: 0.9rem;
  color: var(--accent-deep);
}

.archive-tag-button:hover,
.archive-tag-button.is-active,
.archive-inline-tag:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(214, 74, 131, 0.26);
}

.archive-tag-button.is-active {
  color: var(--accent-deep);
  box-shadow: 0 12px 24px rgba(214, 74, 131, 0.12);
}

.archive-group-list {
  display: grid;
  gap: 18px;
}

.archive-group {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(217, 95, 143, 0.12);
}

.archive-group-header,
.archive-post-top,
.archive-post-badges {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.archive-group-header h3,
.archive-post-link {
  margin: 0;
  font-family: var(--font-display);
}

.archive-post-item {
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(217, 95, 143, 0.1);
}

.archive-post-link {
  font-size: 1.15rem;
  color: var(--ink);
}

.archive-post-link:hover {
  color: var(--accent-deep);
}

.archive-post-excerpt {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

.archive-post-badges {
  justify-content: flex-end;
}

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

.archive-inline-tag {
  border: 1px solid rgba(217, 95, 143, 0.12);
  background: rgba(255, 244, 248, 0.92);
}

@keyframes kitty-float {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-8px);
  }
}

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

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

@media (max-width: 1080px) {
  .hero,
  .featured-card,
  .dashboard-grid,
  .moderation-grid,
  .members-admin-layout,
  .community-grid,
  .account-grid,
  .account-dashboard-grid,
  .author-hero,
  .member-detail-grid,
  .archive-hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .topbar,
  .control-panel,
  .panel-heading {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .article-card,
  .panel,
  .about-card,
  .control-panel {
    padding: 22px;
  }

  .stats-grid,
  .admin-stat-grid,
  .field-grid,
  .post-grid,
  .about-grid,
  .account-stat-grid,
  .member-metrics,
  .engagement-grid,
  .mini-post-card,
  .trending-card {
    grid-template-columns: 1fr;
  }

  .hero-copy h1,
  .article-head h1,
  .admin-intro h1 {
    max-width: 100%;
  }

  .search-box {
    width: 100%;
  }

  .archive-tools-row,
  .archive-group-header,
  .archive-post-top,
  .archive-post-badges {
    flex-direction: column;
    align-items: stretch;
  }

  .upload-row {
    grid-template-columns: 1fr;
  }

  .profile-summary,
  .profile-avatar-preview-card,
  .member-admin-top,
  .member-detail-top,
  .member-admin-identity {
    grid-template-columns: 1fr;
  }

  .kitty-scene {
    min-height: 200px;
  }

  .comment-head {
    flex-direction: column;
  }

  .trending-card {
    align-items: start;
  }
}
