﻿/* Base tokens, reset, header, hero and shared controls. */
:root {
  color-scheme: dark;
  --bg: #0e1110;
  --bg-2: #151a18;
  --panel: #f4f1e8;
  --panel-2: #ebe7dc;
  --ink: #121513;
  --muted: #77827c;
  --line: rgba(244, 241, 232, .14);
  --line-dark: rgba(18, 21, 19, .16);
  --accent: #8fc7b1;
  --accent-strong: #1f6f5b;
  --danger: #b84832;
  --gold: #c9a868;
  --radius: 8px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .28);
  --serif: Georgia, "Times New Roman", serif;
  --sans: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

* {
  box-sizing: border-box;
}

*,
*::before,
*::after {
  min-width: 0;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  max-width: 100%;
  overflow-x: clip;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  max-width: 100%;
  min-height: 100dvh;
  overflow-x: clip;
  background:
    radial-gradient(circle at 78% 4%, rgba(143, 199, 177, .16), transparent 30rem),
    linear-gradient(90deg, rgba(244, 241, 232, .035) 1px, transparent 1px),
    linear-gradient(rgba(244, 241, 232, .028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 48px 48px, 48px 48px, auto;
  color: var(--panel);
  font-family: var(--sans);
}

main:focus {
  outline: none;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: image-set(
    url("/assets/hero-manuscript-lite.webp") type("image/webp"),
    url("/assets/hero-manuscript.png") type("image/png")
  );
  background-size: cover;
  background-position: center;
  opacity: .12;
  transform: translateZ(0);
  contain: paint;
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
  overflow-wrap: anywhere;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

p,
li,
h1,
h2,
h3,
td,
th,
.poem-excerpt,
.poem-body,
.certificate,
.meta,
.tag {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 22px;
  align-items: center;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
  background: rgba(14, 17, 16, .96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, .18);
  border-radius: 50%;
  overflow: hidden;
  background: transparent;
  box-shadow: 0 0 0 3px rgba(244, 241, 232, .035);
  font-family: var(--serif);
  font-size: 0;
  color: var(--accent);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
}

.brand small {
  display: block;
  margin-top: 3px;
  color: rgba(244, 241, 232, .62);
  font-size: 12px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.main-nav a {
  padding: 9px 10px;
  border-radius: 999px;
  color: rgba(244, 241, 232, .74);
  white-space: nowrap;
  font-size: 14px;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--panel);
  background: rgba(244, 241, 232, .09);
}

.header-tools {
  display: flex;
  align-items: end;
  gap: 10px;
}

.user-switcher {
  display: grid;
  gap: 4px;
  color: rgba(244, 241, 232, .62);
  font-size: 12px;
}

.header-support-button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 199, 177, .2);
  border-radius: var(--radius);
  background: rgba(143, 199, 177, .075);
  color: rgba(244, 241, 232, .82);
  padding: 10px 13px;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.header-support-button:hover,
.header-support-button.active {
  border-color: rgba(143, 199, 177, .42);
  background: rgba(143, 199, 177, .13);
  color: var(--accent);
  transform: translateY(-1px);
}

.user-switcher select,
.field input,
.field textarea,
.field select,
.searchbar input,
.searchbar select,
.feed-toolbar input,
.feed-toolbar select {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
  padding: 11px 12px;
  outline: none;
}

.user-switcher option,
.field option,
.searchbar option,
.feed-toolbar option {
  background: #111513;
  color: var(--panel);
}

.field input:focus,
.field textarea:focus,
.field select:focus,
.searchbar input:focus,
.searchbar select:focus,
.feed-toolbar input:focus,
.feed-toolbar select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 199, 177, .13);
}

.select-skin {
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
}

.select-native {
  position: absolute !important;
  inset: 0 auto auto 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.select-skin-button {
  position: relative;
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
  padding: 11px 38px 11px 12px;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.select-skin-button::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-62%) rotate(45deg);
  color: rgba(244, 241, 232, .76);
  transition: transform .18s ease, color .18s ease;
}

.select-skin.open .select-skin-button,
.select-skin-button:focus-visible {
  border-color: var(--accent);
  background: rgba(143, 199, 177, .1);
  box-shadow: 0 0 0 3px rgba(143, 199, 177, .13);
  outline: none;
}

.select-skin.open .select-skin-button::after {
  color: var(--accent);
  transform: translateY(-28%) rotate(225deg);
}

.select-skin-panel {
  position: absolute;
  z-index: 80;
  top: calc(100% + 6px);
  left: 0;
  width: max(100%, 180px);
  max-height: min(320px, 52vh);
  overflow-y: auto;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(244, 241, 232, .045), rgba(244, 241, 232, .02)),
    rgba(17, 22, 20, .98);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .42);
  padding: 6px;
}

.select-skin-option {
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(244, 241, 232, .82);
  padding: 8px 10px;
  text-align: left;
  white-space: normal;
}

.select-skin-option:hover,
.select-skin-option:focus-visible {
  background: rgba(143, 199, 177, .12);
  color: var(--panel);
  outline: none;
}

.select-skin-option.selected {
  background: rgba(143, 199, 177, .2);
  color: var(--accent);
  font-weight: 800;
}

.select-skin-option:disabled {
  cursor: default;
  color: rgba(244, 241, 232, .36);
}

.page {
  width: min(1220px, calc(100% - 36px));
  max-width: 100%;
  overflow-x: clip;
  margin: 0 auto;
  padding: 42px 0 64px;
}

.hero {
  min-height: calc(100dvh - 76px);
  width: min(1360px, calc(100% - 48px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .78fr);
  gap: clamp(32px, 5vw, 78px);
  align-items: center;
  padding: 42px 0 62px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
  padding: 24px 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 30px;
  height: 1px;
  background: currentColor;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
}

h1 {
  margin: 18px 0 20px;
  max-width: 660px;
  font-size: clamp(40px, 5.2vw, 78px);
  line-height: 1;
  letter-spacing: 0;
}

.hero-copy h1 {
  max-width: 780px;
  font-size: clamp(42px, 4.35vw, 66px);
  line-height: 1.04;
  text-wrap: balance;
}

.lead {
  max-width: 580px;
  margin: 0;
  color: rgba(244, 241, 232, .72);
  font-size: 19px;
  line-height: 1.65;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  border: 1px solid var(--panel);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  min-height: 42px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.button:hover {
  transform: translateY(-1px);
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .14);
}

.button.secondary {
  background: transparent;
  color: var(--panel);
}

.button.secondary:hover {
  background: rgba(244, 241, 232, .1);
}

.button.danger {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}

.button.small {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

.hero-image {
  min-width: 0;
  align-self: center;
  justify-self: end;
  width: min(100%, 620px);
  min-height: 560px;
  border: 1px solid rgba(244, 241, 232, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(14,17,16,.1), rgba(14,17,16,.74)),
    image-set(
      url("/assets/hero-manuscript-lite.webp") type("image/webp"),
      url("/assets/hero-manuscript.png") type("image/png")
    ) center / cover;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  transform: translate3d(0, 0, 0);
  animation: heroDrift 12s ease-in-out infinite alternate;
}

.hero-image::before {
  content: "";
  position: absolute;
  inset: -18%;
  background:
    radial-gradient(circle at 18% 22%, rgba(143, 199, 177, .12), transparent 26%),
    radial-gradient(circle at 84% 74%, rgba(201, 168, 104, .1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, .06), transparent 40%);
  opacity: .65;
  pointer-events: none;
  animation: heroGlow 10s ease-in-out infinite alternate;
  z-index: 0;
}

.feed-toolbar {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(170px, 220px) minmax(170px, 220px) auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  margin-bottom: 18px;
}

.hero-image::after {
  content: "SS-2026-AUTHOR-REGISTRY";
  position: absolute;
  right: 26px;
  bottom: 24px;
  border: 1px solid rgba(201, 168, 104, .75);
  color: var(--gold);
  border-radius: 50%;
  width: 154px;
  height: 154px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 18px;
  font-size: 12px;
  font-weight: 800;
  transform: rotate(7deg);
  z-index: 1;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 30px;
}

.stat {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 34px;
}

.stat span {
  color: rgba(244, 241, 232, .62);
  font-size: 13px;
}
/* Section headers, feed tabs and admin navigation. */
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 460px);
  gap: 28px;
  align-items: end;
  margin-bottom: 24px;
}

.section-head.compact {
  grid-template-columns: minmax(0, 1fr);
}

.section-head-copy {
  min-width: 0;
}

.section-head-side {
  display: grid;
  gap: 14px;
  align-content: end;
  min-width: 0;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .98;
}

.section-head p {
  margin: 0;
  color: rgba(244, 241, 232, .66);
  line-height: 1.6;
}

.section-head-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.section-head-metric {
  border: 1px solid rgba(244, 241, 232, .105);
  border-radius: var(--radius);
  padding: 12px 14px;
  background: rgba(17, 22, 20, .84);
  min-height: 84px;
  display: grid;
  align-content: end;
}

.section-head-metric strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1;
  color: var(--accent);
}

.section-head-metric span {
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
  margin-top: 4px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .06);
  box-shadow: 0 16px 48px rgba(0, 0, 0, .16);
}

.social-feed-page {
  position: relative;
  z-index: 3;
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 72px;
}

.feed-mode-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
  gap: 10px;
  margin: 0 auto 18px;
  color: rgba(244, 241, 232, .78);
  font-family: var(--serif);
}

.feed-mode-tabs button {
  min-height: 44px;
  border: 0;
  border-bottom: 1px solid transparent;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 18px;
}

.feed-mode-tabs button.active {
  color: var(--panel);
  border-color: rgba(244, 241, 232, .82);
  font-size: 27px;
}

.feed-tab-with-hint {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-width: 0;
}

.feed-tab-with-hint > [data-feed-mode] {
  width: 100%;
}

.feed-recommendation-tip {
  position: absolute;
  z-index: 45;
  left: calc(50% + 48px);
  bottom: 7px;
  margin: 0;
  font-family: var(--sans);
}

.feed-recommendation-tip summary {
  width: 24px;
  height: 24px;
  min-height: 24px;
  display: grid;
  place-items: center;
  gap: 1px;
  border: 1px solid rgba(143, 199, 177, .2);
  border-radius: 50%;
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .1), rgba(244, 241, 232, .03)),
    rgba(17, 22, 20, .9);
  color: rgba(244, 241, 232, .64);
  padding: 0;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(244, 241, 232, .06),
    0 8px 20px rgba(0, 0, 0, .16);
  user-select: none;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background .18s ease, transform .18s ease;
}

.feed-recommendation-tip summary::-webkit-details-marker {
  display: none;
}

.feed-recommendation-tip summary span {
  color: inherit;
  font-family: var(--serif);
  font-size: 15px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  transform: translateY(-1px);
}

.feed-recommendation-tip summary small {
  display: none;
}

.feed-recommendation-tip[open] summary {
  border-color: rgba(143, 199, 177, .46);
  background: rgba(143, 199, 177, .14);
  color: var(--accent);
  transform: translateY(-1px);
}

.feed-recommendation-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: -12px;
  width: min(320px, calc(100vw - 40px));
  border: 1px solid rgba(143, 199, 177, .24);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(143, 199, 177, .08), rgba(244, 241, 232, .035)),
    rgba(12, 17, 15, .98);
  color: rgba(244, 241, 232, .76);
  padding: 15px 16px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, .38);
  text-align: left;
}

.feed-recommendation-panel::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 18px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(143, 199, 177, .24);
  border-top: 1px solid rgba(143, 199, 177, .24);
  background: rgba(12, 17, 15, .98);
  transform: rotate(45deg);
}

.feed-recommendation-panel strong {
  display: block;
  margin-bottom: 7px;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
}

.feed-recommendation-panel p {
  margin: 0;
  color: rgba(244, 241, 232, .72);
  font-size: 13px;
  line-height: 1.55;
}

.social-feed-toolbar {
  position: relative;
  z-index: 40;
  width: min(900px, calc(100vw - 32px));
  display: grid;
  grid-template-columns: minmax(178px, 1.35fr) repeat(3, minmax(116px, .85fr)) minmax(92px, .55fr);
  gap: 7px;
  align-items: center;
  margin: 0 0 14px 50%;
  transform: translateX(-50%);
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .055);
  box-shadow: 0 16px 44px rgba(0, 0, 0, .2);
  padding: 8px;
}

.section-search-toolbar {
  width: min(760px, calc(100vw - 32px));
  grid-template-columns: minmax(180px, 1.45fr) repeat(2, minmax(124px, .9fr)) minmax(94px, .55fr);
}

#feedRefresh {
  min-width: 0;
  width: 100%;
  padding-inline: 10px;
  border-radius: 999px;
}

#sectionRefresh {
  min-width: 0;
  width: 100%;
  padding-inline: 10px;
  border-radius: 999px;
}

.social-feed-toolbar input,
.social-feed-toolbar select {
  width: 100%;
  min-height: 40px;
  border: 1px solid rgba(244, 241, 232, .08);
  border-radius: 6px;
  background: rgba(244, 241, 232, .07);
  color: var(--panel);
  padding: 9px 11px;
  outline: none;
}

.social-feed-toolbar option {
  background: #111513;
  color: var(--panel);
}

.filter-menu {
  position: relative;
  min-height: 40px;
  min-width: 0;
  z-index: 1;
}

.filter-menu[open] {
  z-index: 80;
}

.filter-menu summary {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: 6px;
  background: rgba(244, 241, 232, .07);
  color: var(--panel);
  padding: 9px 12px;
  list-style: none;
  cursor: pointer;
  overflow: hidden;
  transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.filter-menu summary span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-menu summary::-webkit-details-marker {
  display: none;
}

.filter-menu summary::after {
  content: "⌄";
  color: rgba(244, 241, 232, .6);
  transition: transform .2s ease;
}

.filter-menu[open] summary {
  border-color: rgba(143, 199, 177, .34);
  background: rgba(143, 199, 177, .09);
  color: var(--accent);
}

.filter-menu[open] summary::after {
  transform: rotate(180deg);
}

.filter-options {
  position: absolute;
  z-index: 90;
  inset-inline: 0;
  top: calc(100% + 6px);
  display: grid;
  gap: 4px;
  min-width: max(100%, 230px);
  max-height: 280px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid rgba(143, 199, 177, .26);
  border-radius: var(--radius);
  background: #0d1110;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .72), 0 0 0 1px rgba(244, 241, 232, .04) inset;
  padding: 8px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  border-radius: 6px;
  color: rgba(244, 241, 232, .78);
  padding: 8px 9px;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}

.filter-option span {
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.25;
}

.filter-option:hover,
.filter-option:has(input:checked) {
  background: rgba(143, 199, 177, .1);
  color: var(--accent);
}

.filter-option input {
  width: 15px;
  height: 15px;
  accent-color: var(--accent);
}

.filter-decision-menu .filter-options {
  min-width: max(100%, 260px);
}

.filter-decision-options {
  gap: 6px;
}

.filter-decision-row {
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(244, 241, 232, .055);
  border-radius: 8px;
  background: rgba(244, 241, 232, .032);
  padding: 6px;
  color: rgba(244, 241, 232, .78);
}

.filter-decision-row:hover {
  border-color: rgba(143, 199, 177, .18);
  background: rgba(143, 199, 177, .055);
}

.filter-decision-label {
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.25;
}

.filter-decision-control {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, .11);
  border-radius: 50%;
  background: rgba(244, 241, 232, .045);
  color: rgba(244, 241, 232, .55);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, color .18s ease, transform .18s ease;
}

.filter-decision-control input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.filter-decision-control span[aria-hidden="true"] {
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}

.filter-decision-control:hover {
  transform: translateY(-1px);
}

.filter-decision-control.exclude:hover,
.filter-decision-control.exclude:has(input:checked) {
  border-color: rgba(212, 77, 54, .5);
  background: rgba(212, 77, 54, .15);
  color: #f0b2a6;
}

.filter-decision-control.include:hover,
.filter-decision-control.include:has(input:checked) {
  border-color: rgba(143, 199, 177, .52);
  background: rgba(143, 199, 177, .16);
  color: var(--accent);
}

.filter-decision-control:focus-within {
  outline: 2px solid rgba(143, 199, 177, .35);
  outline-offset: 2px;
}

.directory-toolbar {
  width: min(980px, 100%);
  margin: 0 auto 18px;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .055);
  padding: 8px;
}

.directory-toolbar input {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(244, 241, 232, .08);
  border-radius: 6px;
  background: rgba(244, 241, 232, .07);
  color: var(--panel);
  padding: 10px 12px;
  outline: none;
}

.directory-toolbar input:focus {
  border-color: rgba(143, 199, 177, .45);
}

.admin-quick-nav {
  width: min(1220px, 100%);
  margin: 0 auto 18px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.admin-jump-card {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 4px;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .085), transparent 48%),
    rgba(17, 22, 20, .84);
  color: rgba(244, 241, 232, .72);
  padding: 12px 14px;
  text-decoration: none;
  text-align: left;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 14px 40px rgba(0, 0, 0, .16);
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}

.admin-jump-card:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 199, 177, .34);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .14), transparent 56%),
    rgba(17, 22, 20, .92);
  color: var(--panel);
}

.admin-jump-card:active {
  transform: scale(.96);
}

.admin-jump-card span {
  color: var(--panel);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
}

.runtime-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.runtime-grid span {
  display: grid;
  gap: 6px;
  min-height: 62px;
  padding: 12px;
  border: 1px solid rgba(244, 241, 232, .08);
  border-radius: 6px;
  background: rgba(244, 241, 232, .045);
  color: rgba(244, 241, 232, .58);
}

.runtime-grid strong {
  color: var(--accent);
}

.admin-jump-card strong {
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.admin-panel-stack {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.admin-users-card,
.admin-audit-card {
  width: 100%;
}

.admin-users-table {
  min-width: 1040px;
}

.admin-users-table th:nth-child(1),
.admin-users-table td:nth-child(1) {
  width: 22%;
}

.admin-users-table th:nth-child(2),
.admin-users-table td:nth-child(2) {
  width: 18%;
}

.admin-users-table th:nth-child(3),
.admin-users-table td:nth-child(3) {
  width: 24%;
}

.admin-users-table th:nth-child(4),
.admin-users-table td:nth-child(4),
.admin-users-table th:nth-child(5),
.admin-users-table td:nth-child(5) {
  width: 18%;
}

.admin-users-table td {
  color: rgba(244, 241, 232, .82);
}

.admin-users-table tr:hover td {
  background: rgba(143, 199, 177, .035);
}

.admin-users-table .button.small {
  margin-top: 7px;
}

.social-feed-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.social-card-list {
  width: min(760px, 100%);
  margin: 0 auto;
}
/* Section landing panels and author grids. */
.section-author-grid {
  width: min(1220px, 100%);
  margin: 0 auto;
}

.section-mode-title {
  width: min(1220px, 100%);
  margin: 0 auto 14px;
  display: grid;
  justify-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(244, 241, 232, .12);
  padding-bottom: 10px;
  text-align: center;
}

.section-mode-title span {
  color: rgba(143, 199, 177, .78);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.section-mode-title strong {
  color: var(--panel);
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
}

.section-feature {
  width: min(1220px, 100%);
  margin: 0 auto 18px;
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr) minmax(210px, 300px);
  gap: clamp(16px, 3vw, 30px);
  align-items: stretch;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(244, 241, 232, .05), transparent 34%),
    rgba(17, 22, 20, .88);
  box-shadow: 0 22px 64px rgba(0, 0, 0, .26);
  padding: clamp(18px, 3vw, 28px);
}

.section-feature-no-mark {
  grid-template-columns: minmax(0, 1fr) minmax(210px, 300px);
}

.section-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(143, 199, 177, .16), transparent 1px) 0 0 / 72px 100%,
    radial-gradient(circle at 92% 16%, rgba(143, 199, 177, .14), transparent 18rem);
  opacity: .34;
}

.section-feature-foreign::before {
  background:
    linear-gradient(90deg, rgba(201, 168, 104, .14), transparent 1px) 0 0 / 72px 100%,
    radial-gradient(circle at 92% 16%, rgba(201, 168, 104, .13), transparent 18rem);
}

.section-feature-mark {
  position: relative;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(244, 241, 232, .1);
  color: rgba(244, 241, 232, .82);
  font-family: var(--serif);
  font-size: clamp(56px, 7vw, 92px);
  line-height: .8;
}

.section-feature-copy,
.section-feature-stats {
  position: relative;
}

.section-feature-copy span {
  color: rgba(143, 199, 177, .82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.section-feature-foreign .section-feature-copy span {
  color: rgba(201, 168, 104, .86);
}

.section-feature-copy h3 {
  margin: 8px 0 10px;
  color: var(--panel);
  font-family: var(--serif);
  font-size: clamp(32px, 4vw, 54px);
  line-height: .96;
  text-wrap: balance;
}

.section-feature-copy p {
  max-width: 62ch;
  margin: 0;
  color: rgba(244, 241, 232, .66);
  line-height: 1.62;
}

.section-feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.section-feature-tags span {
  border: 1px solid rgba(143, 199, 177, .2);
  border-radius: 999px;
  background: rgba(143, 199, 177, .075);
  color: var(--accent);
  padding: 6px 9px;
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

.section-feature-foreign .section-feature-tags span {
  border-color: rgba(201, 168, 104, .22);
  background: rgba(201, 168, 104, .075);
  color: rgba(229, 207, 161, .92);
}

.section-feature-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.section-feature-stats div {
  border: 1px solid rgba(244, 241, 232, .085);
  border-radius: 6px;
  background: rgba(244, 241, 232, .045);
  padding: 12px 14px;
}

.section-feature-stats strong {
  display: block;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section-feature-stats span {
  color: rgba(244, 241, 232, .54);
  font-size: 12px;
}

.profile-poem-grid {
  width: min(1320px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.profile-poem-grid .social-poem-card {
  width: 100%;
}

.post-owner-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
}

.post-owner-actions .button {
  width: auto;
}

.post-author.compact {
  gap: 8px;
}

.post-author.compact span {
  display: none;
}

.social-poem-card {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  min-height: 192px;
  border: 1px solid rgba(244, 241, 232, .085);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .86);
  color: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
  overflow: hidden;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 210px;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
/* Poem, author, news and feed cards. */
.author-profile-card,
.author-card,
.news-card,
.admin-card,
.legal-card,
.comment-card,
.queue-card {
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.social-poem-card:hover,
.author-profile-card:hover,
.author-card:hover,
.news-card:hover,
.admin-card:hover,
.legal-card:hover,
.comment-card:hover,
.queue-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 199, 177, .24);
  box-shadow: 0 26px 68px rgba(0, 0, 0, .28);
}

.social-poem-card {
  width: min(760px, 100%);
  min-width: 0;
  max-width: 100%;
  min-height: 220px;
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  overflow: hidden;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 280px;
  border: 1px solid rgba(244, 241, 232, .095);
  border-radius: var(--radius);
  background:
    linear-gradient(110deg, rgba(143, 199, 177, .055), transparent 48%),
    rgba(13, 18, 16, .88);
  color: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
}

.social-poem-card.poem-hidden-card {
  border-color: rgba(201, 168, 104, .28);
  background:
    linear-gradient(110deg, rgba(201, 168, 104, .08), transparent 48%),
    rgba(13, 18, 16, .9);
}

.social-poem-card *,
.social-news-card * {
  min-width: 0;
  max-width: 100%;
}

.post-author {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 8px;
  border-right: 1px solid rgba(244, 241, 232, .08);
  padding: 26px 16px 18px;
  text-align: center;
  color: rgba(244, 241, 232, .72);
  font-size: 13px;
}

.post-avatar {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, .14);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 28%, rgba(244, 241, 232, .22), transparent 26px),
    linear-gradient(135deg, #050606, #303633);
  color: var(--panel);
  font-family: var(--serif);
  font-size: 22px;
  transition: transform .22s ease, border-color .22s ease;
}

.social-poem-card:hover .post-avatar {
  transform: scale(1.035);
  border-color: rgba(143, 199, 177, .32);
}

.post-avatar img,
.avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.post-avatar.has-photo,
.avatar.has-photo {
  background: #101412;
  color: transparent;
}

.post-author a:not(.post-avatar) {
  color: rgba(244, 241, 232, .9);
  font-weight: 700;
}

.post-author span {
  font-size: 12px;
  color: rgba(244, 241, 232, .48);
}

.post-body {
  position: relative;
  min-width: 0;
  padding: 20px 24px 16px;
}

.post-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
  align-items: start;
}

.post-title-row h3 {
  margin: 0 0 8px;
  color: var(--panel);
  font-size: 26px;
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poem-visibility-badge,
.poem-visibility-note,
.poem-explicit-badge,
.poem-explicit-note {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(201, 168, 104, .24);
  border-radius: 999px;
  background: rgba(201, 168, 104, .08);
  color: rgba(244, 241, 232, .78);
  font-size: 11px;
  font-weight: 900;
}

.poem-visibility-badge {
  margin: 0 0 9px;
  padding: 4px 8px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.poem-explicit-badge {
  margin: 0 0 9px;
  padding: 4px 8px;
  border-color: rgba(212, 77, 54, .28);
  background: rgba(212, 77, 54, .09);
  color: rgba(244, 205, 196, .86);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.poem-visibility-note {
  margin: 0 0 14px;
  padding: 7px 10px;
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.poem-explicit-note {
  margin: 0 0 14px;
  padding: 7px 10px;
  border-color: rgba(212, 77, 54, .24);
  background: rgba(212, 77, 54, .08);
  color: rgba(244, 241, 232, .7);
  font-size: 12px;
}

.bookmark-button {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: rgba(244, 241, 232, .72);
  font-size: 25px;
  line-height: 1;
}

.bookmark-button.active,
.bookmark-button:hover {
  color: var(--accent);
}

.post-excerpt {
  max-height: 8.8em;
  overflow: hidden;
  white-space: pre-wrap;
  color: rgba(244, 241, 232, .88);
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.55;
}

.read-more {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}

.read-more span {
  transition: transform .18s ease;
}

.read-more:hover span {
  transform: translateX(3px);
}

.social-poem-card .tags {
  margin-top: 12px;
}

.social-poem-card .compact-tags {
  max-height: 58px;
  overflow: hidden;
}

.social-poem-card .tag {
  min-height: 22px;
  border-color: rgba(143, 199, 177, .2);
  background: rgba(143, 199, 177, .075);
  color: var(--accent);
  font-size: 11px;
}

.post-reason {
  margin-top: 12px;
  border: 1px dashed rgba(143, 199, 177, .24);
  border-radius: 6px;
  background: rgba(143, 199, 177, .06);
  color: rgba(244, 241, 232, .68);
  padding: 9px 10px;
  font-size: 12px;
}

.social-news-card {
  min-height: 176px;
}

.social-news-card .post-title-row,
.news-title-row {
  grid-template-columns: minmax(0, 1fr);
}

.news-author strong {
  color: rgba(244, 241, 232, .9);
  font-size: 13px;
}

.news-avatar {
  background:
    radial-gradient(circle at 42% 30%, rgba(143, 199, 177, .28), transparent 28px),
    linear-gradient(135deg, #0b0f0d, #293832);
}

.news-excerpt {
  max-height: 6.2em;
}

.news-image {
  width: 100%;
  max-height: 260px;
  display: block;
  object-fit: cover;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  margin: 10px 0 12px;
  aspect-ratio: 16 / 9;
}

.post-news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  color: rgba(244, 241, 232, .56);
  font-size: 13px;
}

.post-actions {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: clamp(12px, 1.4vw, 18px);
  margin-top: 14px;
  color: rgba(244, 241, 232, .72);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.post-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  min-height: 28px;
  line-height: 1;
}

.post-action:hover,
.post-action.active {
  color: var(--accent);
}

.post-action-static {
  cursor: default;
}

.post-action-static:hover {
  color: rgba(244, 241, 232, .72);
}

.post-report-action {
  color: rgba(244, 241, 232, .46);
  font-size: 12px;
  font-weight: 800;
}

.post-report-action:hover {
  color: rgba(244, 205, 196, .9);
}

.post-action-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  display: inline-grid;
  place-items: center;
  font-size: 18px;
  line-height: 1;
}

.post-action-icon svg {
  width: 100%;
  height: 100%;
  max-width: 19px;
  max-height: 19px;
  display: block;
}

.post-action-icon.comment {
  width: 19px;
  height: 19px;
}

.post-action-icon.share {
  width: 18px;
  height: 18px;
  border-radius: 0;
  background: transparent;
  color: rgba(244, 241, 232, .94);
  box-shadow: none;
  transform: translateY(-1px);
}

.post-action-icon.share svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.25;
}

.post-action-icon.view {
  width: 19px;
  height: 19px;
}

.community-placeholder {
  width: min(760px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .86);
  color: var(--panel);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
}

.community-placeholder h3 {
  margin: 12px 0 8px;
  color: var(--panel);
  font-size: clamp(28px, 4vw, 44px);
}

.community-placeholder p {
  max-width: 58ch;
  color: rgba(244, 241, 232, .66);
  line-height: 1.6;
}

.inline-comment {
  margin-top: 12px;
  border-top: 1px solid rgba(244, 241, 232, .1);
  padding-top: 12px;
  color: rgba(244, 241, 232, .62);
  font-size: 13px;
}

.inline-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.inline-comment-form textarea {
  width: 100%;
  min-height: 42px;
  max-height: 140px;
  resize: vertical;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .07);
  color: var(--panel);
  padding: 10px 11px;
  outline: none;
}

.inline-report {
  border-color: rgba(212, 77, 54, .18);
}

.inline-report p {
  margin: 8px 0 0;
  color: rgba(244, 241, 232, .48);
}

.explicit-warning {
  color: rgba(244, 205, 196, .88);
}

.post-owner-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 16px;
}

.post-owner-actions .button {
  width: auto;
}

.post-edit-panel {
  margin-top: 16px;
  border: 1px solid rgba(143, 199, 177, .18);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .065), transparent 54%),
    rgba(244, 241, 232, .035);
  padding: clamp(14px, 2vw, 18px);
  box-shadow: inset 0 1px 0 rgba(244, 241, 232, .04);
}

.poem-edit-form {
  display: grid;
  gap: 13px;
}

.poem-edit-form .field {
  display: grid;
  gap: 7px;
  color: rgba(244, 241, 232, .72);
  font-size: 13px;
  font-weight: 700;
}

.poem-edit-form input,
.poem-edit-form select,
.poem-edit-form textarea {
  width: 100%;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: 8px;
  background: rgba(244, 241, 232, .075);
  color: var(--panel);
  padding: 11px 12px;
  outline: none;
}

.poem-edit-form textarea {
  min-height: 220px;
  resize: vertical;
  line-height: 1.55;
  white-space: pre-wrap;
}

.poem-edit-form input:focus,
.poem-edit-form select:focus,
.poem-edit-form textarea:focus {
  border-color: rgba(143, 199, 177, .45);
  box-shadow: 0 0 0 3px rgba(143, 199, 177, .12);
}

.poem-edit-form input:disabled {
  color: rgba(244, 241, 232, .36);
  background: rgba(244, 241, 232, .035);
}

.poem-edit-form .field.inline {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.poem-edit-form .field.inline input {
  width: auto;
}

.poem-edit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.poem-edit-genre-grid {
  margin-top: 2px;
}

.post-edit-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.social-poem-card.editing .post-edit-panel,
.poem-sheet.editing .post-edit-panel {
  padding: clamp(18px, 2.5vw, 24px);
}

.social-poem-card.editing .poem-edit-form,
.poem-sheet.editing .poem-edit-form {
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 16px 18px;
  align-items: start;
}

.social-poem-card.editing .poem-edit-title-control,
.poem-sheet.editing .poem-edit-title-control {
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
  align-items: end;
}

.social-poem-card.editing .poem-edit-body-field,
.poem-sheet.editing .poem-edit-body-field {
  grid-column: 1;
  grid-row: 2 / span 4;
}

.social-poem-card.editing .poem-edit-body-field textarea,
.poem-sheet.editing .poem-edit-body-field textarea {
  min-height: 360px;
  font-size: 17px;
  line-height: 1.6;
}

.social-poem-card.editing .poem-edit-meta-grid,
.social-poem-card.editing .poem-edit-genres-field,
.social-poem-card.editing .poem-edit-comments-field,
.social-poem-card.editing .post-edit-actions,
.poem-sheet.editing .poem-edit-meta-grid,
.poem-sheet.editing .poem-edit-genres-field,
.poem-sheet.editing .poem-edit-comments-field,
.poem-sheet.editing .post-edit-actions {
  grid-column: 2;
}

.social-poem-card.editing .poem-edit-meta-grid,
.poem-sheet.editing .poem-edit-meta-grid {
  grid-template-columns: 1fr;
}

.social-poem-card.editing .poem-edit-form input,
.social-poem-card.editing .poem-edit-form select,
.social-poem-card.editing .poem-edit-form textarea,
.poem-sheet.editing .poem-edit-form input,
.poem-sheet.editing .poem-edit-form select,
.poem-sheet.editing .poem-edit-form textarea {
  min-height: 48px;
  font-size: 15px;
}

.social-poem-card.editing .poem-edit-form textarea,
.poem-sheet.editing .poem-edit-form textarea {
  min-height: 360px;
}

.poem-card .post-actions,
.poem-card .inline-comment,
.poem-sheet .post-actions {
  color: rgba(244, 241, 232, .7);
}

.poem-card .post-action:hover,
.poem-card .post-action.active,
.poem-sheet .post-action:hover,
.poem-sheet .post-action.active {
  color: var(--accent);
}

.poem-card .inline-comment {
  border-top-color: rgba(244, 241, 232, .1);
}

.poem-card .inline-comment-form textarea {
  border-color: rgba(244, 241, 232, .14);
  background: rgba(244, 241, 232, .07);
  color: var(--panel);
}

.feed-loader {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
}

.hidden {
  display: none !important;
}

.padded {
  padding: 18px;
}

.form-block {
  padding: 18px;
  margin-bottom: 18px;
}

.grid-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.sidebar {
  position: sticky;
  top: 96px;
  padding: 18px;
}

.sidebar h3 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 15px;
}

.searchbar {
  display: grid;
  gap: 10px;
}

.feed-grid,
.cards-grid {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feed-grid:not(.feed-grid-wide) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.poem-card,
.author-card,
.news-card,
.admin-card,
.legal-card,
.comment-card,
.queue-card,
.poem-sheet {
  min-width: 0;
  max-width: 100%;
  contain: layout paint style;
  content-visibility: auto;
  contain-intrinsic-size: 360px;
  overflow: hidden;
  border: 1px solid rgba(244, 241, 232, .095);
  border-radius: var(--radius);
  background:
    linear-gradient(105deg, rgba(244, 241, 232, .045), transparent 42%),
    rgba(15, 20, 18, .88);
  color: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
}

.poem-card {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  transition: transform .18s ease, border-color .18s ease;
  position: relative;
  overflow: hidden;
}

.poem-card *,
.news-card *,
.author-card *,
.admin-card *,
.legal-card *,
.comment-card *,
.queue-card *,
.poem-sheet * {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.poem-card a,
.news-card a,
.poem-card span,
.news-card span,
.poem-card div,
.news-card div {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.poem-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-strong), var(--gold));
}

.poem-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 199, 177, .8);
}

.poem-card h3 {
  margin: 0 0 12px;
  font-size: clamp(22px, 2vw, 29px);
  line-height: 1.04;
  overflow-wrap: anywhere;
  word-break: break-all;
  hyphens: auto;
}

.poem-excerpt,
.poem-body {
  max-width: 100%;
  white-space: pre-wrap;
  font-family: var(--serif);
  line-height: 1.82;
  color: rgba(244, 241, 232, .88);
  font-size: 18px;
  overflow-wrap: anywhere;
  word-break: break-all;
  hyphens: auto;
}

.poem-excerpt {
  display: block;
  overflow: hidden;
  max-height: 13.2em;
  word-break: break-all;
}

.meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
  margin-top: 18px;
}

.tags {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.compact-tags {
  align-items: flex-start;
}

.compact-tags .tag {
  max-width: min(100%, 168px);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tag {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 25px;
  border: 1px solid rgba(143, 199, 177, .24);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--accent);
  background: rgba(143, 199, 177, .075);
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-align: center;
}

.tag-more {
  min-width: 34px;
  border-color: rgba(244, 241, 232, .18);
  background: rgba(244, 241, 232, .1);
  color: rgba(244, 241, 232, .82);
  cursor: help;
}

.poem-detail-sheet .compact-tags {
  max-height: none;
}

.poem-detail-sheet .compact-tags .tag {
  max-width: 100%;
  white-space: normal;
}

.tag.danger {
  color: #e4a391;
  border-color: rgba(184, 72, 50, .38);
  background: rgba(184, 72, 50, .11);
}

.tag.dark {
  color: var(--panel);
  border-color: rgba(244, 241, 232, .22);
  background: rgba(244, 241, 232, .08);
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 18px;
}

.pagination {
  width: 100%;
  margin: 24px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  color: rgba(244, 241, 232, .68);
}

.pagination span {
  font-size: 13px;
}

.page-link {
  min-width: 36px;
  min-height: 36px;
  border: 1px solid rgba(244, 241, 232, .16);
  border-radius: 999px;
  background: rgba(244, 241, 232, .06);
  color: rgba(244, 241, 232, .82);
  padding: 7px 11px;
  font-weight: 700;
}

.page-link:hover,
.page-link.active {
  border-color: var(--accent);
  background: rgba(143, 199, 177, .16);
  color: var(--panel);
}

.page-link:disabled {
  opacity: .35;
  cursor: default;
}

.page-link.next {
  padding-inline: 16px;
}

.tab {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(244, 241, 232, .08);
  color: rgba(244, 241, 232, .78);
  padding: 10px 13px;
/* Page layouts, poem detail and form blocks. */
}

.tab.active,
.tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.profile-layout,
.poem-layout,
.admin-layout {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.author-card,
.news-card,
.admin-card,
.legal-card,
.comment-card,
.queue-card {
  padding: 20px;
  scroll-margin-top: 92px;
}

.author-directory-card {
  display: grid;
  gap: 15px;
  min-height: 260px;
  align-content: start;
  background: rgba(17, 22, 20, .86);
  border: 1px solid rgba(244, 241, 232, .085);
  border-radius: var(--radius);
  color: var(--panel);
}

.author-directory-card .avatar {
  width: 74px;
  height: 74px;
}

.author-card-pseudo {
  margin-top: -4px;
  color: var(--accent) !important;
  font-size: 13px;
}

.author-mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.author-mini-stats span {
  border: 1px solid rgba(244, 241, 232, .08);
  border-radius: 6px;
  background: rgba(244, 241, 232, .045);
  color: rgba(244, 241, 232, .62);
  padding: 9px 10px;
  font-size: 12px;
}

.author-mini-stats strong {
  display: block;
  color: var(--accent);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1;
}

.author-card h3,
.news-card h3,
.admin-card h3,
.legal-card h3 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.05;
  color: var(--panel);
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.author-card p,
.news-card p,
.legal-card p,
.legal-card li,
.admin-card p {
  max-width: 100%;
  color: rgba(244, 241, 232, .66);
  line-height: 1.58;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.legal-document {
  display: grid;
  gap: 13px;
  width: min(980px, 100%);
  margin: 0 auto;
  padding: clamp(20px, 3vw, 34px);
}

.legal-document .legal-source-link {
  width: fit-content;
  margin-bottom: 4px;
}

.legal-document h3 {
  margin: 18px 0 2px;
  color: var(--panel);
  font-size: clamp(22px, 2.5vw, 29px);
}

.legal-document p {
  margin: 0;
  max-width: 82ch;
  color: rgba(244, 241, 232, .72);
  font-size: 15px;
  line-height: 1.72;
}

.legal-document .legal-lead {
  color: rgba(244, 241, 232, .86);
  font-family: var(--serif);
  font-size: clamp(18px, 2.2vw, 22px);
  line-height: 1.35;
}

.legal-consent-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(143, 199, 177, .22);
  border-radius: var(--radius);
  background: rgba(143, 199, 177, .075);
  color: rgba(244, 241, 232, .72);
  padding: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.legal-consent-check input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--accent-strong);
}

.legal-consent-check a {
  color: var(--accent);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.news-card h3,
.news-card p {
  overflow-wrap: anywhere;
  word-break: break-all;
  hyphens: auto;
}

.avatar {
  width: 86px;
  height: 86px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, .14);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 28%, rgba(244, 241, 232, .22), transparent 34px),
    linear-gradient(135deg, #050606, #303633);
  color: var(--panel);
  font-family: var(--serif);
  font-size: 32px;
  margin-bottom: 16px;
}

.post-avatar,
.avatar,
.comment-avatar,
.profile-avatar {
  aspect-ratio: 1 / 1;
  flex: 0 0 auto;
  line-height: 1;
  text-align: center;
}

.avatar-initials {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  line-height: 1;
  font-variant-numeric: lining-nums;
  letter-spacing: 0;
  transform: translateY(-.01em);
}

.post-avatar img,
.avatar img,
.comment-avatar img,
.profile-avatar img {
  border-radius: inherit;
}

.avatar-upload-form {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.avatar-upload-form.compact {
  margin-top: 0;
  gap: 7px;
}

.avatar-upload-control {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  cursor: pointer;
}

.avatar-upload-control.compact {
  width: 100%;
}

.avatar-upload-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.avatar-upload-control span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(143, 199, 177, .34);
  border-radius: 999px;
  background: rgba(143, 199, 177, .1);
  color: var(--accent);
  padding: 9px 13px;
  font-weight: 800;
}

.avatar-upload-control.compact span {
  width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  font-size: 13px;
}

.avatar-upload-form p {
  margin: 0;
  max-width: 520px;
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
  line-height: 1.5;
}

.author-avatar-widget {
  display: grid;
  gap: 8px;
  position: relative;
  width: 96px;
  justify-items: center;
}

.author-avatar-trigger {
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  font-size: 13px;
}

.author-avatar-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: grid;
  gap: 8px;
  width: min(240px, calc(100vw - 42px));
  border: 1px solid rgba(244, 241, 232, .12);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .06);
  padding: 10px;
  box-shadow: var(--shadow);
}

.author-avatar-panel p {
  margin: 0;
  color: rgba(244, 241, 232, .54);
  font-size: 12px;
  line-height: 1.45;
}

.certificate {
  margin-top: 16px;
  border: 1px dashed rgba(184, 72, 50, .42);
  border-radius: var(--radius);
  background: rgba(184, 72, 50, .08);
  color: #dfaa9c;
  padding: 14px;
  font-size: 13px;
  line-height: 1.45;
}

.poem-detail-sheet .certificate {
  border-style: solid;
  border-color: rgba(244, 241, 232, .085);
  background: rgba(244, 241, 232, .035);
  color: rgba(244, 241, 232, .46);
  padding: 9px 11px;
  font-size: 12px;
}

.poem-detail-sheet .certificate:hover {
  border-color: rgba(143, 199, 177, .2);
  color: rgba(244, 241, 232, .68);
}

.poem-certificate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.certificate-toolbar {
  width: min(900px, 100%);
  margin: 0 auto 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.publication-certificate {
  width: min(900px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(244, 241, 232, .32);
  border-radius: 6px;
  background:
    linear-gradient(180deg, rgba(255, 252, 242, .98), rgba(241, 237, 224, .98)),
    var(--panel);
  color: #171916;
  padding: clamp(28px, 5vw, 52px);
  box-shadow: 0 38px 96px rgba(0, 0, 0, .34);
}

.publication-certificate-head {
  display: grid;
  gap: 8px;
  text-align: center;
  border-bottom: 1px solid rgba(18, 21, 19, .2);
  padding-bottom: 20px;
}

.publication-certificate-head span {
  color: #1f6f5b;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.publication-certificate h1 {
  margin: 0;
  color: #2a2d29;
  font-family: var(--serif);
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.05;
}

.publication-certificate-head p,
.publication-certificate-foot {
  margin: 0;
  color: rgba(23, 25, 22, .62);
  line-height: 1.55;
}

.publication-certificate-copy {
  display: grid;
  gap: 14px;
  margin-top: 24px;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
}

.publication-certificate-copy p {
  margin: 0;
}

.publication-certificate-copy a {
  color: #1f5f77;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}

.certificate-private-note {
  border: 1px dashed rgba(184, 72, 50, .32);
  border-radius: 6px;
  background: rgba(184, 72, 50, .07);
  padding: 12px;
}

.publication-certificate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.publication-certificate-meta span {
  border: 1px solid rgba(31, 111, 91, .24);
  border-radius: 999px;
  background: rgba(31, 111, 91, .08);
  color: #1f5f51;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.publication-certificate-sign {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 34px;
  border-top: 1px solid rgba(18, 21, 19, .18);
  border-bottom: 1px solid rgba(18, 21, 19, .18);
  padding: 18px 0;
}

.publication-certificate-sign span {
  display: block;
  margin-bottom: 4px;
  color: rgba(23, 25, 22, .58);
  font-size: 13px;
}

.publication-certificate-sign strong {
  color: #2a2d29;
  font-family: var(--serif);
  font-size: 20px;
}

.certificate-seal {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(201, 168, 104, .7);
  border-radius: 50%;
  color: #9f7e36;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 900;
  box-shadow: inset 0 0 0 6px rgba(201, 168, 104, .08);
}

.publication-certificate-foot {
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
}

.publication-certificate-appendix {
  margin-top: 34px;
}

.publication-certificate-appendix h2 {
  margin: 0 0 22px;
  color: #3a3d38;
  font-family: var(--serif);
  font-size: clamp(22px, 3.4vw, 30px);
  text-align: center;
}

.publication-certificate-appendix h3 {
  margin: 0 0 18px;
  color: #171916;
  font-family: var(--serif);
  font-size: clamp(24px, 3.4vw, 32px);
}

.certificate-poem-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #171916;
  font-family: var(--serif);
  font-size: clamp(18px, 2.5vw, 23px);
  line-height: 1.45;
}

@media print {
  body {
    background: #fff !important;
  }

  .site-header,
  .site-footer,
  .certificate-toolbar,
  .toast,
  .cookie-banner {
    display: none !important;
  }

  .main {
    padding: 0 !important;
  }

  .publication-certificate {
    width: 100%;
    border: 0;
    box-shadow: none;
    page-break-inside: avoid;
  }
}

.poem-sheet {
  padding: clamp(24px, 5vw, 52px);
}

.poem-detail-stack {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.poem-detail-sheet {
  width: 100%;
}

.poem-sheet h1 {
  color: var(--panel);
  margin-top: 0;
  font-size: clamp(42px, 7vw, 82px);
}

.poem-comments-panel {
  display: grid;
  gap: 14px;
}

.comment-card-with-avatar {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.comment-avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, .14);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 28%, rgba(244, 241, 232, .18), transparent 22px),
    linear-gradient(135deg, #050606, #303633);
  color: var(--panel);
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 700;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.comment-content {
  min-width: 0;
}

.support-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.support-compose-card,
.support-thread-card,
.support-inbox-card,
.support-staff-card {
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .08), transparent 42%),
    rgba(17, 22, 20, .86);
}

.support-message-list {
  display: grid;
  gap: 10px;
}

.support-message-card {
  border-color: rgba(143, 199, 177, .12);
  background: rgba(244, 241, 232, .045);
}

.support-message-card h4 {
  margin: 0 0 7px;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 21px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.support-message-card p {
  white-space: pre-wrap;
}

.support-image-link {
  display: block;
  width: fit-content;
  max-width: min(100%, 360px);
  margin-top: 9px;
  border: 1px solid rgba(244, 241, 232, .12);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .22);
}

.support-image-link img {
  display: block;
  max-width: 100%;
  max-height: 260px;
  object-fit: contain;
}

.support-file-field input {
  padding-top: 11px;
}

.support-inbox-card > p {
  margin-top: -4px;
}

.support-inbox-card .button {
  width: fit-content;
  margin: 4px 0 12px;
}

.support-staff-card {
  grid-column: 1 / -1;
}

.support-staff-card > p {
  margin-top: -4px;
}

.support-chat-list {
  display: grid;
  gap: 12px;
  align-content: start;
}

.support-board {
  display: grid;
  grid-template-columns: minmax(230px, 320px) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.support-thread-item {
  width: 100%;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .04);
  color: var(--panel);
  padding: 14px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.support-thread-item:hover,
.support-thread-item.active {
  border-color: rgba(143, 199, 177, .38);
  background: rgba(143, 199, 177, .09);
  transform: translateY(-1px);
}

.support-thread-head {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.support-thread-head h4 {
  margin: 0;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 23px;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.support-thread-head span {
  display: block;
  margin-top: 3px;
  color: rgba(244, 241, 232, .54);
  font-size: 12px;
}

.support-thread-last {
  color: rgba(244, 241, 232, .48);
  font-size: 12px;
}

.support-chat-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(143, 199, 177, .06), transparent 42%),
    rgba(8, 11, 10, .54);
  padding: 16px;
  min-width: 0;
}

.support-chat-head {
  border-bottom: 1px solid rgba(244, 241, 232, .08);
  padding-bottom: 12px;
}

.support-chat-head h3 {
  margin: 6px 0 4px;
}

.support-chat-head p {
  margin: 0;
}

.support-chat-empty {
  min-height: 180px;
}

.support-thread-messages {
  display: grid;
  gap: 8px;
}

.support-thread-bubble {
  width: min(86%, 620px);
  border-left: 2px solid rgba(143, 199, 177, .36);
  background: rgba(17, 22, 20, .62);
  padding: 10px 12px;
}

.support-thread-bubble.mine {
  justify-self: end;
  border-left: 0;
  border-right: 2px solid rgba(143, 199, 177, .48);
  background: rgba(143, 199, 177, .09);
}

.support-thread-bubble strong {
  display: block;
  margin-bottom: 5px;
  color: var(--panel);
  font-size: 12px;
}

.support-thread-bubble p {
  margin: 0;
  white-space: pre-wrap;
}

.support-thread-bubble small {
  display: block;
  margin-top: 7px;
  color: rgba(244, 241, 232, .46);
}

.support-reply-form {
  border-top: 1px solid rgba(244, 241, 232, .08);
  padding-top: 12px;
}

.form {
  display: grid;
  gap: 14px;
}

.title-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
}

.titleless-control,
.publication-author-note {
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .055);
  padding: 10px 12px;
}

.publication-author-note {
  display: grid;
  gap: 5px;
  color: rgba(244, 241, 232, .62);
  font-size: 12px;
}

.publication-author-note strong {
  color: var(--panel);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.genre-check-grid.collapsed .genre-extra {
  display: none;
}

.genre-check-grid.expanded .genre-extra {
  display: inline-flex;
}

.genre-more-button {
  width: 100%;
  margin-top: 8px;
}

.forbidden-editor-card,
.taxonomy-editor-card {
  margin: 18px 0;
}

.forbidden-word-preview,
.taxonomy-preview {
  margin-top: 14px;
  max-height: 170px;
  overflow: auto;
}

.dictionary-section {
  margin-top: 16px;
  border: 1px solid rgba(244, 241, 232, .08);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .035);
  padding: 12px;
}

.dictionary-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.dictionary-section-head h4 {
  margin: 0;
  color: var(--panel);
  font-size: 14px;
  letter-spacing: 0;
}

.dictionary-section-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.dictionary-word-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.dictionary-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(244, 241, 232, .12);
  border-radius: 999px;
  background: rgba(244, 241, 232, .055);
  color: rgba(244, 241, 232, .78);
  padding: 5px 6px 5px 11px;
  line-height: 1;
}

.dictionary-chip.custom {
  border-color: rgba(143, 199, 177, .24);
  background: rgba(143, 199, 177, .075);
}

.dictionary-chip.disabled {
  border-color: rgba(201, 168, 104, .24);
  background: rgba(201, 168, 104, .06);
  color: rgba(244, 241, 232, .62);
}

.genre-catalog-section {
  border-color: rgba(143, 199, 177, .16);
}

.genre-disabled-section {
  border-color: rgba(201, 168, 104, .16);
}

.genre-chip.base {
  border-color: rgba(244, 241, 232, .12);
  background: rgba(244, 241, 232, .045);
}

.genre-chip.custom {
  border-color: rgba(143, 199, 177, .3);
}

.dictionary-chip span {
  max-width: 180px;
  overflow-wrap: anywhere;
}

.dictionary-chip small {
  color: rgba(244, 241, 232, .42);
  font-size: 10px;
}

.dictionary-chip button {
  min-width: 28px;
  min-height: 28px;
  border: 1px solid rgba(244, 241, 232, .12);
  border-radius: 999px;
  background: rgba(5, 6, 6, .42);
  color: rgba(244, 241, 232, .82);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease;
}

.dictionary-chip button:hover {
  border-color: rgba(143, 199, 177, .34);
  background: rgba(143, 199, 177, .12);
  color: var(--accent);
}

.dictionary-chip button:active {
  transform: scale(.96);
}

.dictionary-disabled-section {
  border-color: rgba(201, 168, 104, .14);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.check-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(244, 241, 232, .18);
  border-radius: 999px;
  padding: 8px 10px;
  color: rgba(244, 241, 232, .78);
  background: rgba(244, 241, 232, .06);
  font-size: 13px;
}

.check-pill input {
  width: 16px;
  height: 16px;
  accent-color: var(--accent-strong);
}

.field {
  display: grid;
  gap: 7px;
  color: rgba(244, 241, 232, .74);
  font-size: 13px;
  font-weight: 700;
}

.field textarea {
  min-height: 170px;
  resize: vertical;
}

.field.inline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.field.inline input {
  width: auto;
}

.password-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 8px;
}

.icon-button {
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
  min-height: 42px;
}

.light-form .icon-button {
  border-color: rgba(244, 241, 232, .2);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
}

.mini-stats,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.mini-stats div,
.metric-card {
  border: 1px solid rgba(244, 241, 232, .105);
  border-radius: var(--radius);
  padding: 12px;
  background: rgba(17, 22, 20, .84);
}

.mini-stats strong,
.metric-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--accent);
}

.mini-stats span,
.metric-card span {
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
}
/* Author profile dashboard and profile lists. */
.author-discussion,
.profile-dashboard {
  margin-top: 18px;
}

.profile-dashboard {
  display: grid;
  gap: 18px;
}

.author-profile-shell {
  width: min(980px, 100%);
  margin: 0 auto 28px;
}

.author-profile-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) minmax(190px, auto);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
  border: 1px solid rgba(244, 241, 232, .105);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .88);
  box-shadow: 0 18px 52px rgba(0, 0, 0, .22);
  padding: clamp(18px, 3vw, 28px);
}

.author-profile-media {
  display: grid;
  gap: 10px;
  justify-items: center;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(244, 241, 232, .16);
  overflow: hidden;
  background:
    radial-gradient(circle at 40% 28%, rgba(244, 241, 232, .22), transparent 38px),
    linear-gradient(135deg, #050606, #303633);
  color: var(--panel);
  font-family: var(--serif);
  font-size: 34px;
  transition: transform .22s ease, border-color .22s ease;
}

.author-profile-card:hover .profile-avatar {
  transform: scale(1.025);
  border-color: rgba(143, 199, 177, .32);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-profile-copy {
  min-width: 0;
}

.author-profile-copy h2 {
  margin: 0 0 6px;
  color: var(--panel);
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
}

.profile-alias,
.profile-date,
.profile-bio {
  margin: 0;
  color: rgba(244, 241, 232, .62);
  line-height: 1.55;
}

.profile-date {
  color: rgba(143, 199, 177, .86);
  font-weight: 700;
}

.profile-life-dates,
.profile-hidden-note {
  margin: 4px 0 0;
  color: rgba(244, 241, 232, .58);
  line-height: 1.45;
}

.profile-hidden-note {
  width: fit-content;
  border: 1px solid rgba(143, 199, 177, .24);
  border-radius: 999px;
  background: rgba(143, 199, 177, .08);
  color: var(--accent);
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 800;
}

.profile-bio {
  margin-top: 8px;
  max-width: 620px;
}

.author-profile-actions {
  display: grid;
  gap: 10px;
  justify-items: stretch;
}

.author-social-menu {
  position: relative;
}

.author-social-trigger {
  min-height: 42px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
  padding: 10px 12px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.author-social-trigger:hover,
.author-social-menu.open .author-social-trigger {
  border-color: rgba(143, 199, 177, .36);
  background: rgba(143, 199, 177, .12);
  color: var(--accent);
}

.author-social-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 5;
  width: min(360px, calc(100vw - 42px));
  display: grid;
  gap: 10px;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .98);
  box-shadow: var(--shadow);
  padding: 10px;
}

.author-social-list {
  display: grid;
  gap: 8px;
}

.author-social-link {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 6px;
  padding: 8px;
  color: rgba(244, 241, 232, .84);
}

.author-social-link:hover {
  background: rgba(143, 199, 177, .1);
  color: var(--panel);
}

.social-logo {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(143, 199, 177, .24);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(244, 241, 232, .06);
}

.social-logo svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.author-social-link strong,
.author-social-link small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.author-social-link strong {
  font-size: 13px;
}

.author-social-link small {
  margin-top: 2px;
  color: rgba(244, 241, 232, .54);
  font-size: 12px;
}

.author-social-panel p {
  margin: 0;
  color: rgba(244, 241, 232, .58);
  font-size: 13px;
}

.author-social-edit-button {
  width: 100%;
}

.author-social-editor {
  display: grid;
  gap: 9px;
  border-top: 1px solid rgba(244, 241, 232, .1);
  padding-top: 10px;
}

.author-social-editor .field {
  color: rgba(244, 241, 232, .76);
}

.author-social-editor input {
  min-height: 38px;
}

.profile-stat-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid rgba(244, 241, 232, .08);
  border-top: 0;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
  background: rgba(244, 241, 232, .08);
}

.profile-stat-strip div {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  background: rgba(17, 22, 20, .86);
  padding: 12px 8px;
  text-align: center;
}

.profile-stat-strip strong {
  font-family: var(--serif);
  color: var(--accent);
  font-size: clamp(24px, 3vw, 34px);
}

.profile-stat-strip span {
  color: rgba(244, 241, 232, .58);
  font-size: 12px;
}

.profile-publication-title {
  width: min(980px, 100%);
  margin: 4px auto 20px;
  text-align: center;
}

.profile-publication-title span {
  color: rgba(143, 199, 177, .82);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.profile-publication-title h2 {
  margin: 4px 0 0;
  font-size: clamp(34px, 6vw, 72px);
  line-height: .95;
}

.profile-publication-summary {
  width: min(360px, 100%);
  margin: 14px auto 10px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 4px;
  padding: 0 2px;
}

.profile-publication-summary span {
  color: rgba(143, 199, 177, .82);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
}

.profile-publication-summary strong {
  color: var(--panel);
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 72px);
  line-height: .9;
}

.profile-library-summary {
  width: min(520px, 100%);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.profile-library-summary div {
  display: grid;
  justify-items: center;
  gap: 4px;
}

.profile-account-card {
  width: min(980px, 100%);
  margin: -8px auto 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  border: 1px solid rgba(244, 241, 232, .09);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .72);
  padding: 16px;
}

.profile-account-card h3 {
  margin: 0 0 4px;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 26px;
}

.profile-account-card p {
  margin: 0;
  color: rgba(244, 241, 232, .58);
  line-height: 1.45;
}

.profile-account-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.profile-security-card {
  width: min(980px, 100%);
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(244, 241, 232, .075);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(184, 72, 50, .05), transparent 45%),
    rgba(17, 22, 20, .56);
  padding: 15px 16px;
}

.profile-security-card h3 {
  margin: 6px 0 4px;
  color: rgba(244, 241, 232, .86);
  font-family: var(--serif);
  font-size: 24px;
}

.profile-security-card p {
  margin: 0;
  color: rgba(244, 241, 232, .52);
  line-height: 1.45;
}

.profile-security-actions,
.account-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.ghost-danger {
  border-color: rgba(184, 72, 50, .42);
  background: rgba(184, 72, 50, .14);
  color: #f2d6cf;
}

.ghost-danger:hover {
  border-color: rgba(184, 72, 50, .72);
  background: rgba(184, 72, 50, .24);
}

.account-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(4, 6, 5, .72);
  backdrop-filter: blur(10px);
}

.account-confirm-panel {
  width: min(460px, 100%);
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .1), transparent 48%),
    rgba(17, 22, 20, .98);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .45);
  padding: 22px;
}

.account-confirm-panel h3 {
  margin: 8px 0 8px;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.04;
}

.account-confirm-panel p {
  margin: 0 0 18px;
  color: rgba(244, 241, 232, .66);
  line-height: 1.55;
}

.account-confirm-wait {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px !important;
  border: 1px solid rgba(201, 168, 104, .22);
  border-radius: 999px;
  background: rgba(201, 168, 104, .08);
  color: rgba(244, 241, 232, .72) !important;
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
}

.account-confirm-wait strong {
  min-width: 2ch;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
  text-align: center;
}

.account-confirm-panel .button:disabled {
  cursor: wait;
  border-color: rgba(244, 241, 232, .16);
  background: rgba(244, 241, 232, .08);
  color: rgba(244, 241, 232, .48);
  box-shadow: none;
  transform: none;
}

.profile-settings-card {
  width: min(980px, 100%);
  margin: 8px auto 0;
  border: 1px solid rgba(244, 241, 232, .09);
  border-radius: var(--radius);
  background: rgba(17, 22, 20, .82);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
  padding: clamp(18px, 3vw, 26px);
}

.profile-settings-head {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.profile-settings-head h3 {
  margin: 0;
  color: var(--panel);
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1;
}

.profile-settings-head p {
  margin: 0;
  color: rgba(244, 241, 232, .58);
  line-height: 1.5;
}

.profile-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.profile-legal-section {
  border: 1px solid rgba(143, 199, 177, .16);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .075), transparent 46%),
    rgba(244, 241, 232, .035);
  padding: 0;
  overflow: hidden;
}

.profile-legal-section summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 14px 16px;
  color: var(--panel);
  cursor: pointer;
  list-style: none;
}

.profile-legal-section summary::-webkit-details-marker {
  display: none;
}

.profile-legal-section summary::after {
  content: "+";
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 241, 232, .14);
  border-radius: 50%;
  color: var(--accent);
  background: rgba(17, 22, 20, .72);
  transition: transform .18s ease, background .18s ease;
}

.profile-legal-section[open] summary::after {
  content: "−";
  transform: rotate(180deg);
  background: rgba(143, 199, 177, .11);
}

.profile-legal-section summary span {
  font-weight: 900;
}

.profile-legal-section summary small {
  color: rgba(244, 241, 232, .48);
  font-weight: 700;
}

.profile-legal-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(244, 241, 232, .08);
  padding: 16px;
}

.profile-explicit-toggle {
  width: fit-content;
  margin-top: 12px;
  border: 1px solid rgba(212, 77, 54, .18);
  border-radius: 999px;
  background: rgba(212, 77, 54, .06);
  padding: 10px 14px;
}

.profile-explicit-hint {
  margin: 8px 0 16px;
  max-width: 72ch;
  color: rgba(244, 241, 232, .52);
  font-size: 13px;
  line-height: 1.55;
}

.profile-settings-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-owner-tools {
  width: min(420px, 100%);
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.social-links-form h3 {
  margin: 0;
  color: var(--panel);
  font-family: var(--serif);
  font-size: 28px;
}

.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  width: min(980px, 100%);
  margin: 0 auto;
}

.author-library-tabs,
.favorite-tabs {
  margin-bottom: 18px;
}

.collection-form {
  width: min(980px, 100%);
  margin: 0 auto 18px;
  border: 1px solid rgba(143, 199, 177, .14);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .08), transparent 48%),
    rgba(17, 22, 20, .82);
  padding: clamp(16px, 3vw, 24px);
  box-shadow: 0 18px 48px rgba(0, 0, 0, .18);
}

.author-report-tools {
  width: min(980px, 100%);
  margin: -8px auto 26px;
  display: grid;
  justify-items: end;
  gap: 10px;
}

.author-report-box {
  width: min(560px, 100%);
}

.explicit-publish-toggle,
.poem-edit-explicit-field {
  border: 1px solid rgba(212, 77, 54, .18);
  border-radius: 999px;
  background: rgba(212, 77, 54, .06);
  padding: 10px 14px;
}

.collection-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .45fr);
  gap: 12px;
}

.collection-picker {
  display: grid;
  gap: 10px;
  border: 1px solid rgba(244, 241, 232, .09);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .035);
  padding: 12px;
}

.collection-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: rgba(244, 241, 232, .74);
}

.collection-picker-head span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 900;
}

.collection-picker-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 260px;
  overflow: auto;
  padding-right: 4px;
}

.collection-poem-choice {
  min-height: 44px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  border: 1px solid rgba(244, 241, 232, .1);
  border-radius: 999px;
  background: rgba(244, 241, 232, .055);
  color: rgba(244, 241, 232, .78);
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 800;
}

.collection-poem-choice span {
  overflow-wrap: anywhere;
}

.collection-grid {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: start;
}

.collection-card {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  border: 1px solid rgba(244, 241, 232, .095);
  border-radius: var(--radius);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(143, 199, 177, .055), transparent 54%),
    rgba(13, 18, 16, .88);
  color: var(--panel);
  box-shadow: 0 14px 42px rgba(0, 0, 0, .2);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.collection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(143, 199, 177, .24);
  box-shadow: 0 26px 68px rgba(0, 0, 0, .28);
}

.collection-cover {
  min-height: 360px;
  display: grid;
  place-items: center;
  border-right: 1px solid rgba(244, 241, 232, .08);
  background:
    radial-gradient(circle at 50% 24%, rgba(244, 241, 232, .13), transparent 72px),
    linear-gradient(150deg, rgba(3, 5, 4, .98), rgba(20, 31, 27, .9));
  padding: 14px;
}

.collection-cover img {
  width: 100%;
  height: auto;
  max-height: 540px;
  display: block;
  object-fit: contain;
  border: 1px solid rgba(244, 241, 232, .12);
  border-radius: 10px;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .28);
}

.collection-cover-fallback {
  height: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
}

.collection-cover-fallback span {
  font-family: var(--serif);
  font-size: 58px;
  color: var(--panel);
}

.collection-cover-fallback small {
  color: rgba(143, 199, 177, .78);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.collection-copy {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: clamp(20px, 3vw, 30px);
}

.collection-title-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 12px;
}

.collection-title-row h3 {
  margin: 7px 0 0;
  color: var(--panel);
  font-family: var(--serif);
  font-size: clamp(31px, 4vw, 48px);
  line-height: 1.02;
  overflow-wrap: anywhere;
}

.collection-copy p {
  margin: 0;
  color: rgba(244, 241, 232, .62);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.collection-poems {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.collection-poems li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(244, 241, 232, .07);
  border-radius: 8px;
  background: rgba(244, 241, 232, .028);
  padding: 9px 11px;
}

.collection-poems a {
  color: rgba(244, 241, 232, .88);
  font-weight: 900;
}

.collection-poems li:hover {
  border-color: rgba(143, 199, 177, .2);
  background: rgba(143, 199, 177, .055);
}

.collection-poems span,
.collection-more,
.collection-empty-note,
.collection-meta {
  color: rgba(244, 241, 232, .5);
  font-size: 12px;
}

.collection-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.collection-meta strong {
  color: var(--accent);
}

.collection-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.profile-favorites {
  width: min(1320px, 100%);
}

.profile-poem-grid {
  width: min(1240px, 100%);
  align-items: start;
  grid-auto-rows: min-content;
  gap: 16px;
}

.profile-poem-grid .social-poem-card {
  align-self: start;
  grid-template-columns: minmax(88px, 102px) minmax(0, 1fr);
  min-height: 282px;
  contain-intrinsic-size: 300px;
}

.profile-poem-grid .social-poem-card.editing {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(1120px, 100%);
  grid-template-columns: minmax(118px, 148px) minmax(0, 1fr);
  overflow: visible;
  contain: none;
  content-visibility: visible;
  background:
    linear-gradient(125deg, rgba(143, 199, 177, .08), transparent 42%),
    rgba(13, 18, 16, .94);
  border-color: rgba(143, 199, 177, .24);
  box-shadow: 0 24px 76px rgba(0, 0, 0, .34);
}

.profile-poem-grid .social-poem-card.editing .post-author.compact {
  padding: 28px 16px;
}

.profile-poem-grid .social-poem-card.editing .post-avatar {
  width: 70px;
  height: 70px;
}

.profile-poem-grid .social-poem-card.editing .post-body {
  padding: 24px;
}

.profile-poem-grid .post-author.compact {
  gap: 7px;
  padding: 20px 8px 14px;
}

.profile-poem-grid .post-avatar {
  width: 54px;
  height: 54px;
  font-size: 19px;
}

.profile-poem-grid .post-author a:not(.post-avatar) {
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.profile-poem-grid .post-body {
  display: flex;
  flex-direction: column;
  padding: 18px 16px 16px;
}

.profile-poem-grid .post-title-row h3 {
  font-size: clamp(23px, 1.55vw, 28px);
  line-height: 1.06;
}

.profile-poem-grid .post-excerpt {
  font-size: 16px;
  line-height: 1.48;
  max-height: 5.95em;
}

.profile-poem-grid .post-owner-actions {
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.profile-poem-grid .post-owner-actions .button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
  white-space: nowrap;
}

.profile-poem-grid .post-edit-panel {
  grid-column: 1 / -1;
}

.profile-hero {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}

.hero,
.page,
.social-feed-page {
  animation: pageFadeIn .45s ease both;
}

.social-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
}

.social-strip {
  margin-top: 22px;
}

.social-strip a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(244, 241, 232, .8);
  background: rgba(244, 241, 232, .06);
  font-size: 13px;
}
/* Footer, legal links and table helpers. */
.site-footer {
  padding: 28px clamp(18px, 4vw, 44px) 38px;
  color: rgba(244, 241, 232, .72);
}

.footer-panel {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(244, 241, 232, .06);
  box-shadow: 0 18px 56px rgba(0, 0, 0, .18);
  padding: 18px;
}

.footer-panel > div {
  display: grid;
  gap: 4px;
}

.footer-panel nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.footer-panel a {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 12px;
  color: rgba(244, 241, 232, .8);
  background: rgba(244, 241, 232, .06);
  font-size: 13px;
}

.footer-legal {
  width: min(1220px, 100%);
  margin: 28px auto 0;
  padding-top: 26px;
  border-top: 1px solid rgba(244, 241, 232, .18);
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: rgba(168, 201, 228, .82);
  font-size: 16px;
  line-height: 1.7;
}

.footer-legal a {
  color: rgba(168, 201, 228, .88);
  text-decoration: none;
  transition: color .18s ease;
}

.footer-legal a:hover {
  color: var(--panel);
}

.site-footer strong {
  font-family: var(--serif);
  color: var(--panel);
  font-size: 20px;
}

.site-footer span {
  color: rgba(244, 241, 232, .62);
  font-size: 13px;
}

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 90;
  width: min(760px, calc(100% - 28px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 14px 14px 16px;
  border: 1px solid rgba(143, 199, 177, .26);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(143, 199, 177, .12), transparent 56%),
    rgba(14, 17, 16, .96);
  box-shadow: 0 22px 70px rgba(0, 0, 0, .42);
  color: rgba(244, 241, 232, .78);
  transform: translate(-50%, 16px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease;
  backdrop-filter: blur(16px);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

.cookie-copy {
  display: grid;
  gap: 4px;
}

.cookie-copy strong {
  color: var(--panel);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.1;
}

.cookie-copy p {
  margin: 0;
  color: rgba(244, 241, 232, .62);
  font-size: 13px;
  line-height: 1.45;
}

.cookie-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
}

.light-form .field {
  color: rgba(244, 241, 232, .74);
}

.light-form .field input,
.light-form .field textarea,
.light-form .field select {
  border-color: rgba(244, 241, 232, .2);
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
}

.table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  color: rgba(244, 241, 232, .78);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-card .table {
  min-width: 760px;
}

.table th,
.table td {
  padding: 12px;
  border-bottom: 1px solid rgba(244, 241, 232, .1);
  text-align: left;
  vertical-align: top;
  overflow-wrap: normal;
  word-break: normal;
}

.table th {
  color: rgba(244, 241, 232, .56);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.table td a,
.table td span {
  overflow-wrap: anywhere;
}

.table select {
  max-width: 100%;
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: 6px;
  background: rgba(244, 241, 232, .08);
  color: var(--panel);
  padding: 8px;
}

.table option {
  background: #111513;
  color: var(--panel);
}

.queue-card {
  display: grid;
  gap: 12px;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 28px;
  color: rgba(244, 241, 232, .66);
  text-align: center;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: 420px;
  border: 1px solid rgba(244, 241, 232, .2);
  border-radius: var(--radius);
  background: #111513;
  color: var(--panel);
  box-shadow: var(--shadow);
  padding: 14px 16px;
  transform: translateY(140%);
  transition: transform .22s ease;
}

.toast.show {
  transform: translateY(0);
}

.split-actions {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.muted {
  color: rgba(244, 241, 232, .62);
}

.dark-muted {
  color: rgba(244, 241, 232, .58);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.danger-text {
  color: var(--danger);
  font-weight: 800;
}
/* Responsive rules and reduced motion. */
@media (max-width: 1200px) {
  .feed-grid,
  .feed-grid:not(.feed-grid-wide) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-copy,
  .lead {
    max-width: 820px;
  }

  .hero-copy h1 {
    max-width: 820px;
  }
}

@media (max-width: 980px) {
  .site-header {
    position: static;
    grid-template-columns: 1fr;
  }

  .main-nav {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .header-tools {
    width: 100%;
    justify-content: flex-start;
  }

  .hero,
  .section-head,
  .grid-layout,
  .profile-layout,
  .poem-layout,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 24px;
  }

  .hero-image {
    min-height: 360px;
  }

  h1 {
    font-size: clamp(40px, 12vw, 62px);
  }

  .hero-copy h1 {
    font-size: clamp(40px, 8vw, 58px);
  }

  .feed-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .social-feed-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .social-feed-toolbar input {
    grid-column: 1 / -1;
  }

  .admin-quick-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar {
    position: static;
  }

  .feed-grid,
  .cards-grid,
  .cards-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-profile-card,
  .profile-owner-tools {
    grid-template-columns: 1fr;
  }

  .author-profile-actions {
    justify-items: start;
  }

  .profile-publication-summary {
    align-items: flex-start;
  }

  .profile-account-card {
    grid-template-columns: 1fr;
  }

  .profile-security-card {
    grid-template-columns: 1fr;
  }

  .profile-account-actions {
    justify-content: flex-start;
  }

  .profile-security-actions {
    justify-content: flex-start;
  }

  .profile-settings-grid {
    grid-template-columns: 1fr;
  }

  .profile-legal-grid {
    grid-template-columns: 1fr;
  }

  .profile-settings-actions {
    justify-content: flex-start;
  }

  .profile-poem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .collection-grid {
    grid-template-columns: 1fr;
  }

  .poem-edit-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  .social-feed-toolbar {
    grid-template-columns: minmax(178px, 1.35fr) repeat(3, minmax(116px, .85fr)) minmax(92px, .55fr);
  }

  .section-search-toolbar {
    grid-template-columns: minmax(180px, 1.45fr) repeat(2, minmax(124px, .9fr)) minmax(94px, .55fr);
  }

  .social-feed-toolbar input {
    grid-column: auto;
  }

  .section-author-grid.cards-grid.three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .section-feature {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .section-feature-no-mark {
    grid-template-columns: minmax(0, 1fr);
  }

  .section-feature-stats {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  html,
  body {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body {
    background-size: auto, 56px 56px, 56px 56px, auto;
  }

  main,
  #app {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  body::after {
    content: "";
    position: fixed;
    inset: auto 0 0;
    height: 28dvh;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(14, 17, 16, .78));
    z-index: -1;
  }

  .site-header {
    position: sticky;
    top: 0;
    width: 100%;
    max-width: 100vw;
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
    padding: 13px 14px 14px;
    background:
      linear-gradient(180deg, rgba(14, 17, 16, .985), rgba(14, 17, 16, .955)),
      rgba(14, 17, 16, .96);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .2);
  }

  .brand {
    width: 100%;
    gap: 11px;
  }

  .brand strong {
    font-size: 24px;
    line-height: .96;
  }

  .brand small {
    margin-top: 5px;
    font-size: 12px;
    line-height: 1.2;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    flex-basis: 40px;
  }

  .main-nav {
    width: 100%;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    justify-content: start;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    scroll-padding-inline: 14px;
    padding: 2px 14px 9px;
    margin: 0 -14px;
    mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
    -webkit-overflow-scrolling: touch;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    border: 1px solid rgba(244, 241, 232, .1);
    border-radius: 999px;
    background: rgba(244, 241, 232, .055);
    color: rgba(244, 241, 232, .78);
    font-size: 14px;
    line-height: 1;
    scroll-snap-align: start;
    box-shadow: inset 0 1px 0 rgba(244, 241, 232, .04);
  }

  .main-nav a.active {
    border-color: rgba(143, 199, 177, .22);
    background: rgba(244, 241, 232, .11);
    color: var(--panel);
  }

  .user-switcher {
    width: 100%;
    gap: 7px;
    font-size: 12px;
  }

  .header-tools {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
  }

  .header-support-button {
    min-height: 48px;
    border-radius: 13px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .user-switcher .select-skin-button {
    min-height: 48px;
    border-radius: 13px;
    padding: 12px 44px 12px 13px;
    background: rgba(244, 241, 232, .075);
    font-size: 14px;
  }

  .user-switcher .select-skin-panel {
    max-height: 44vh;
    border-radius: 14px;
  }

  .page,
  .hero {
    width: min(100%, calc(100vw - 24px));
    max-width: calc(100vw - 24px);
    margin-left: auto;
    margin-right: auto;
  }

  .surface,
  .form-block,
  .author-card,
  .author-directory-card,
  .news-card,
  .admin-card,
  .legal-card,
  .comment-card,
  .queue-card,
  .poem-sheet,
  .support-compose-card,
  .support-thread-card,
  .support-inbox-card,
  .support-staff-card {
    width: 100%;
    max-width: 100%;
    border-radius: 14px;
    overflow-x: hidden;
  }

  .field input,
  .field textarea,
  .field select,
  .searchbar input,
  .searchbar select,
  .feed-toolbar input,
  .feed-toolbar select,
  .poem-edit-form input,
  .poem-edit-form select,
  .poem-edit-form textarea {
    width: 100%;
    max-width: 100%;
  }

  .hero {
    gap: 20px;
    padding-top: 26px;
    padding-bottom: 38px;
  }

  .hero-copy {
    max-width: 100%;
    padding: 0;
  }

  .kicker {
    gap: 10px;
    font-size: 11px;
    line-height: 1.35;
    letter-spacing: .08em;
  }

  .kicker::before {
    width: 24px;
  }

  h1 {
    margin: 16px 0 16px;
    font-size: clamp(31px, 9vw, 40px);
    line-height: 1.06;
  }

  .hero-copy h1 {
    max-width: 100%;
    font-size: clamp(30px, 7.9vw, 35px);
    line-height: 1.08;
  }

  .lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr;
    width: min(100%, 360px);
    gap: 10px;
    margin-top: 22px;
  }

  .hero .actions .button {
    width: 100%;
    flex: none;
    min-height: 44px;
    padding-inline: 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .hero .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 22px;
  }

  .hero .stat {
    min-height: 72px;
    border-top-color: rgba(244, 241, 232, .12);
    padding: 10px 0 0;
  }

  .hero .stat strong {
    font-size: 27px;
  }

  .hero .stat span {
    font-size: 11px;
    line-height: 1.25;
  }

  .hero-image {
    min-height: 190px;
    border-radius: 10px;
  }

  .hero-image::after {
    right: 16px;
    bottom: 14px;
    width: 96px;
    height: 96px;
    padding: 12px;
    font-size: 8px;
  }

  .feed-toolbar,
  .stats,
  .feed-grid,
  .cards-grid,
  .cards-grid.three,
  .check-grid,
  .metric-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .form {
    width: 100%;
    max-width: 100%;
  }

  .grid-layout,
  .profile-layout,
  .poem-layout,
  .admin-layout,
  .profile-owner-tools,
  .profile-security-card {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  .poem-card {
    min-height: 0;
  }

  .social-feed-page {
    width: min(100%, calc(100vw - 22px));
    padding-top: 20px;
  }

  .section-head {
    gap: 16px;
    margin-bottom: 18px;
  }

  .section-head h2 {
    font-size: clamp(33px, 10vw, 42px);
    line-height: 1;
  }

  .section-head p {
    font-size: 15px;
    line-height: 1.5;
  }

  .section-head-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .section-head-metric {
    min-height: 76px;
    padding: 10px 11px;
  }

  .section-head-metric strong {
    font-size: 25px;
  }

  .section-head-metric span {
    font-size: 11px;
    line-height: 1.25;
  }

  .tabs {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    scroll-padding-inline: 2px;
    scrollbar-width: none;
    padding-bottom: 7px;
    margin-bottom: 14px;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tab {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .feed-mode-tabs {
    gap: 6px;
    margin-bottom: 14px;
  }

  .feed-mode-tabs button {
    font-size: 15px;
    min-height: 40px;
  }

  .feed-mode-tabs button.active {
    font-size: 21px;
  }

  .feed-tab-with-hint {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .feed-recommendation-tip {
    left: calc(50% + 42px);
    bottom: 5px;
  }

  .feed-recommendation-tip summary {
    width: 22px;
    height: 22px;
    min-height: 22px;
  }

  .feed-recommendation-tip summary span {
    font-size: 14px;
  }

  .feed-recommendation-tip summary small {
    display: none;
  }

  .feed-recommendation-panel {
    top: calc(100% + 8px);
    width: min(310px, calc(100vw - 28px));
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }

  .feed-recommendation-panel::before {
    right: auto;
    left: calc(50% - 6px);
  }

  .social-feed-toolbar {
    grid-template-columns: 1fr;
    gap: 9px;
    padding: 10px;
    margin-bottom: 12px;
  }

  .social-feed-toolbar input,
  .social-feed-toolbar select,
  .filter-menu summary {
    min-height: 46px;
    border-radius: 10px;
    font-size: 14px;
  }

  .filter-options {
    max-height: min(54vh, 330px);
    border-radius: 12px;
    padding: 10px;
  }

  .filter-option {
    min-height: 42px;
    border-radius: 9px;
    padding: 10px;
  }

  .admin-quick-nav {
    grid-template-columns: 1fr;
  }

  .admin-jump-card {
    min-height: 52px;
  }

  #feedRefresh {
    min-width: 0;
  }

  .social-poem-card {
    grid-template-columns: 1fr;
    min-height: 0;
    border-radius: 14px;
    box-shadow: 0 16px 42px rgba(0, 0, 0, .22);
    contain-intrinsic-size: 360px;
  }

  .section-feature {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .section-feature-mark {
    min-height: 76px;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, .1);
    justify-content: start;
    place-items: center start;
  }

  .section-feature-stats {
    grid-template-columns: 1fr;
  }

  .support-shell {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .support-board {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .support-thread-bubble {
    width: 100%;
    border-radius: 10px;
  }

  .profile-poem-grid {
    grid-template-columns: 1fr;
    gap: 13px;
  }

  .collection-form-grid,
  .collection-picker-list,
  .collection-grid,
  .collection-card {
    grid-template-columns: 1fr;
  }

  .collection-cover {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, .08);
    padding: 12px;
  }

  .collection-cover img,
  .collection-cover-fallback {
    min-height: 0;
    max-height: 72vh;
  }

  .collection-poems li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .profile-poem-grid .social-poem-card {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .profile-poem-grid .social-poem-card.editing {
    width: 100%;
    grid-template-columns: 1fr;
  }

  .social-poem-card.editing .poem-edit-form,
  .poem-sheet.editing .poem-edit-form {
    grid-template-columns: 1fr;
  }

  .social-poem-card.editing .poem-edit-title-control,
  .social-poem-card.editing .poem-edit-body-field,
  .social-poem-card.editing .poem-edit-meta-grid,
  .social-poem-card.editing .poem-edit-genres-field,
  .social-poem-card.editing .poem-edit-comments-field,
  .social-poem-card.editing .post-edit-actions,
  .poem-sheet.editing .poem-edit-title-control,
  .poem-sheet.editing .poem-edit-body-field,
  .poem-sheet.editing .poem-edit-meta-grid,
  .poem-sheet.editing .poem-edit-genres-field,
  .poem-sheet.editing .poem-edit-comments-field,
  .poem-sheet.editing .post-edit-actions {
    grid-column: 1;
    grid-row: auto;
  }

  .social-poem-card.editing .poem-edit-title-control,
  .poem-sheet.editing .poem-edit-title-control {
    grid-template-columns: 1fr;
  }

  .profile-poem-grid .post-author.compact {
    padding: 14px;
  }

  .profile-poem-grid .post-avatar {
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .author-profile-card {
    justify-items: center;
    text-align: center;
    gap: 14px;
    padding: 18px 16px;
    border-radius: 14px;
  }

  .profile-avatar {
    width: 76px;
    height: 76px;
    font-size: 27px;
  }

  .author-profile-actions {
    width: 100%;
    justify-items: stretch;
  }

  .author-social-panel {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 12px;
    width: auto;
    max-width: calc(100vw - 20px);
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 13px;
    border-radius: 14px;
    transform: translateY(16px);
  }

  .cookie-banner.visible {
    transform: translateY(0);
  }

  .cookie-actions {
    width: 100%;
    gap: 8px;
  }

  .cookie-actions .button {
    width: auto;
    flex: 1 1 0;
    justify-content: center;
    min-height: 40px;
    padding: 8px 10px;
    font-size: 13px;
  }

  .cookie-copy {
    width: 100%;
    min-width: 0;
    gap: 3px;
  }

  .cookie-copy strong {
    font-size: 20px;
  }

  .cookie-copy p {
    max-width: 100%;
    font-size: 12px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .profile-publication-summary {
    flex-direction: column;
    align-items: flex-start;
  }

  .profile-publication-summary p {
    max-width: none;
  }

  .profile-stat-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: 0 0 14px 14px;
  }

  .profile-stat-strip div:last-child {
    grid-column: auto;
  }

  .profile-publication-title {
    text-align: left;
  }

  .profile-publication-title h2 {
    font-size: clamp(32px, 10vw, 40px);
  }

  .post-author {
    grid-template-columns: 46px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    border-right: 0;
    border-bottom: 1px solid rgba(244, 241, 232, .08);
    padding: 13px 14px;
    text-align: left;
  }

  .post-avatar {
    grid-row: span 2;
    width: 46px;
    height: 46px;
    font-size: 17px;
  }

  .post-body {
    padding: 16px 15px 17px;
  }

  .post-title-row h3 {
    font-size: clamp(23px, 7.4vw, 29px);
    line-height: 1.03;
  }

  .post-excerpt {
    font-size: 16px;
    line-height: 1.56;
    max-height: 9.2em;
  }

  .read-more {
    min-height: 34px;
    margin-top: 9px;
    align-items: center;
  }

  .social-poem-card .tags {
    margin-top: 9px;
  }

  .social-poem-card .tag {
    min-height: 24px;
    padding-inline: 8px;
    font-size: 10px;
  }

  .post-actions {
    gap: 12px;
    margin-top: 12px;
  }

  .post-action {
    min-height: 36px;
    padding: 0 2px;
  }

  .inline-comment-form {
    grid-template-columns: 1fr;
  }

  .inline-comment-form .button {
    width: 100%;
  }

  .post-owner-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .post-owner-actions .button {
    width: 100%;
  }

  .profile-hero,
  .footer-panel {
    align-items: stretch;
    justify-content: flex-start;
  }

  .button {
    width: 100%;
    white-space: normal;
  }

  .site-footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
    padding: 24px 12px 32px;
  }

  .footer-panel {
    gap: 16px;
    padding: 16px;
    border-radius: 14px;
  }

  .footer-panel nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    gap: 8px;
  }

  .footer-panel a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer-legal {
    display: grid;
    gap: 6px;
    font-size: 14px;
    line-height: 1.45;
    width: 100%;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 420px) {
  .header-tools {
    grid-template-columns: 1fr;
  }

  .header-support-button {
    width: 100%;
  }

  .hero-copy h1 {
    font-size: clamp(28px, 7.4vw, 32px);
  }

  .hero .actions {
    width: 100%;
  }

  .cookie-actions {
    flex-direction: column;
  }

  .cookie-actions .button {
    width: 100%;
  }
}

@media (max-width: 760px) {
  body::before {
    background-image: none;
  }

  .hero-image,
  .hero-image::before,
  .hero,
  .page,
  .social-feed-page {
    animation: none;
  }
}

@media (hover: none) {
  .social-poem-card:hover,
  .author-profile-card:hover,
  .author-card:hover,
  .news-card:hover,
  .admin-card:hover,
  .legal-card:hover,
  .comment-card:hover,
  .queue-card:hover,
  .poem-card:hover,
  .button:hover {
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@keyframes pageFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroDrift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -6px, 0) scale(1.01);
  }
}

@keyframes heroGlow {
  from {
    opacity: .4;
    transform: translate3d(-1%, -1%, 0) scale(1);
  }
  to {
    opacity: .7;
    transform: translate3d(1%, 1%, 0) scale(1.03);
  }
}
