:root {
  color-scheme: dark;
  --bg: #060405;
  --panel: rgba(42, 23, 17, 0.82);
  --panel-strong: rgba(62, 32, 20, 0.9);
  --panel-soft: rgba(29, 17, 14, 0.78);
  --text: #fff3dc;
  --muted: #c5ad96;
  --line: rgba(168, 101, 42, 0.42);
  --line-strong: rgba(234, 164, 67, 0.74);
  --accent: #f3bd55;
  --accent-hot: #ff7417;
  --danger: #ff9b83;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.5);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24) 34%, rgba(0, 0, 0, 0.2) 64%, rgba(0, 0, 0, 0.9)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.78), rgba(13, 6, 5, 0.34) 34%, rgba(0, 0, 0, 0.72) 100%),
    url("/assets/forum-background.png") center / cover no-repeat fixed,
    #060405;
  color: var(--text);
  font-family: Arial, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

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

body::before {
  background:
    radial-gradient(ellipse at center, transparent 0 38%, rgba(0, 0, 0, 0.5) 72%, rgba(0, 0, 0, 0.88) 100%),
    radial-gradient(circle at 46% 42%, rgba(255, 98, 13, 0.18), transparent 0 16rem);
}

body::after {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.14), rgba(0, 0, 0, 0.48)),
    radial-gradient(circle at 28% 24%, rgba(255, 90, 11, 0.12), transparent 0 12rem),
    radial-gradient(circle at 75% 58%, rgba(33, 120, 255, 0.12), transparent 0 13rem);
}

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

button {
  cursor: pointer;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 58px);
  background: rgba(7, 6, 9, 0.78);
  border-bottom: 1px solid rgba(255, 171, 69, 0.08);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.36);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  display: block;
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 0 13px rgba(255, 89, 13, 0.62));
}

.brand__mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-weight: 800;
  text-shadow: 0 0 14px rgba(255, 221, 172, 0.24);
}

.brand small,
.muted,
small {
  color: var(--muted);
}

.nav,
.account {
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  align-items: center;
}

.nav {
  justify-content: center;
}

.account {
  justify-content: flex-end;
}

.nav__button {
  position: relative;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e2d3c4;
  padding: 8px 0 14px;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.nav__button:hover,
.nav__button.is-active {
  color: var(--accent);
}

.nav__button::after {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  box-shadow: 0 0 16px rgba(243, 189, 85, 0.7);
  content: "";
  transform: translateX(-50%);
  transition: width 160ms ease;
}

.nav__button:hover::after,
.nav__button.is-active::after {
  width: 100%;
}

.account-link {
  color: #e8d7c7;
}

.account-link.is-hidden {
  display: none;
}

.ghost,
.auth-tabs button {
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: #d6c3ad;
  padding: 9px 11px;
  font-weight: 800;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
}

.auth-tabs button.is-active,
.ghost:hover {
  border-color: rgba(228, 145, 42, 0.45);
  background: rgba(95, 49, 25, 0.52);
  color: var(--accent);
  box-shadow: 0 0 18px rgba(255, 132, 22, 0.18);
}

.shell {
  width: min(1210px, calc(100% - 32px));
  margin: 24px auto 60px;
  padding: 0;
}

.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(77, 45, 31, 0.42), rgba(22, 11, 10, 0.58)),
    var(--panel);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 219, 152, 0.08);
  backdrop-filter: blur(5px);
}

.intro {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  min-height: 300px;
  margin-bottom: 22px;
  overflow: hidden;
  border: 1px solid rgba(234, 164, 67, 0.48);
  border-radius: 8px;
  padding: 42px;
  background: url("/assets/forum-background.png") center 43% / cover no-repeat;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.52), inset 0 1px 0 rgba(255, 219, 152, 0.1);
  text-align: left;
}

.intro::before {
  position: absolute;
  inset: 0;
  background: rgba(3, 3, 5, 0.58);
  content: "";
}

.intro__content,
.intro__stats {
  position: relative;
  z-index: 1;
}

.intro__content {
  max-width: 660px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
  text-shadow: 0 0 16px rgba(255, 174, 58, 0.56);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  margin-bottom: 10px;
  font-size: 4.2rem;
  line-height: 1;
  text-shadow: 0 0 20px rgba(255, 225, 180, 0.28), 0 3px 12px rgba(0, 0, 0, 0.8);
}

h2 {
  margin-bottom: 16px;
  font-size: 1.75rem;
}

h3 {
  font-size: 1.4rem;
}

.intro__copy {
  max-width: 620px;
  margin: 0;
  color: #d9c8b7;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.5;
}

.intro__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.intro__actions .ghost {
  border-color: rgba(228, 145, 42, 0.42);
  background: rgba(14, 8, 7, 0.66);
}

.intro__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  border: 1px solid rgba(234, 164, 67, 0.34);
  border-radius: 8px;
  background: rgba(9, 7, 8, 0.72);
  backdrop-filter: blur(8px);
}

.intro__stats span {
  display: grid;
  gap: 2px;
  min-width: 96px;
  padding: 13px 15px;
  text-align: center;
}

.intro__stats span + span {
  border-left: 1px solid rgba(234, 164, 67, 0.2);
}

.intro__stats strong {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
}

.intro__stats small {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
}

.home-discovery {
  margin-bottom: 22px;
}

.home-discovery__heading {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(234, 164, 67, 0.24);
}

.home-discovery__heading .eyebrow {
  margin-bottom: 5px;
}

.home-discovery__heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.home-discovery__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr);
  gap: 14px;
  align-items: stretch;
}

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

.home-bestiary-card,
.home-random-find {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(180, 101, 43, 0.34);
  border-radius: 8px;
  padding: 0;
  background: rgba(15, 10, 10, 0.92);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 226, 172, 0.06);
}

.home-bestiary-card:hover,
.home-bestiary-card:focus-visible,
.home-random-find:hover,
.home-random-find:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.bestiary-section-image.home-bestiary-card__image,
.bestiary-section-image.home-random-find__image {
  display: block;
  width: 100%;
  border: 0;
  border-radius: 0;
}

.home-bestiary-card {
  display: grid;
  grid-template-columns: 156px minmax(0, 1fr);
  min-height: 132px;
}

.bestiary-section-image.home-bestiary-card__image {
  height: 100%;
  aspect-ratio: auto;
  border-right: 1px solid rgba(234, 164, 67, 0.18);
}

.home-bestiary-card__image img,
.home-random-find__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-bestiary-card__body,
.home-random-find__body {
  display: grid;
  min-width: 0;
}

.home-bestiary-card__body {
  align-content: center;
  gap: 7px;
  padding: 18px;
}

.home-bestiary-card__body small,
.home-random-find__body small {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.home-bestiary-card__body strong,
.home-random-find__body strong {
  overflow-wrap: anywhere;
  color: #ffedcc;
  font-family: Georgia, "Times New Roman", serif;
}

.home-bestiary-card__body strong {
  font-size: 1.4rem;
}

.home-bestiary-card__body em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
}

.home-random-find {
  min-height: 274px;
  isolation: isolate;
}

.home-random-find::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 5, 8, 0.48);
  content: "";
  pointer-events: none;
}

.bestiary-section-image.home-random-find__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
}

.home-random-find__body {
  position: relative;
  z-index: 2;
  align-content: end;
  gap: 7px;
  height: 100%;
  padding: 22px;
}

.home-random-find__body strong {
  font-size: 1.55rem;
}

.home-random-find__body > span {
  max-width: 34ch;
  color: #d8c8b8;
  font-size: 0.88rem;
  line-height: 1.4;
}

.home-random-find__body em {
  margin-top: 4px;
  color: var(--accent);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.home-latest-story {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(234, 164, 67, 0.24);
}

.home-latest-story__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.home-latest-story__heading .eyebrow {
  margin-bottom: 5px;
}

.home-latest-story__heading h2 {
  margin: 0;
  font-size: 1.8rem;
}

.home-story-card {
  display: grid;
  grid-template-columns: 230px minmax(150px, 0.7fr) minmax(300px, 2fr) minmax(210px, 0.8fr);
  align-items: center;
  width: 100%;
  min-height: 190px;
  overflow: hidden;
  border: 1px solid rgba(180, 101, 43, 0.4);
  padding: 0;
  color: var(--text);
  text-align: left;
  background:
    linear-gradient(100deg, rgba(64, 28, 19, 0.9), rgba(19, 12, 12, 0.95) 58%, rgba(31, 20, 18, 0.95));
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 226, 172, 0.05);
}

.home-story-card__cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 190px;
  overflow: hidden;
  border-right: 1px solid rgba(234, 164, 67, 0.2);
  background: #100b0b;
}

.home-story-card__cover img {
  width: 100%;
  height: 100%;
  min-height: 190px;
  object-fit: cover;
}

.home-story-card__cover.is-fallback {
  background: rgba(91, 43, 27, 0.55);
}

.home-story-card__cover.is-fallback strong {
  color: rgba(243, 203, 139, 0.78);
  font-family: Georgia, serif;
  font-size: 3rem;
}

.home-story-card:hover,
.home-story-card:focus-visible {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.home-story-card__status,
.home-story-card__title,
.home-story-card__meta {
  display: grid;
  min-width: 0;
  align-content: center;
  height: 100%;
  padding: 20px;
}

.home-story-card__status {
  gap: 8px;
  border-right: 1px solid rgba(234, 164, 67, 0.16);
}

.home-story-card__status .story-status-badge {
  margin: 0;
}

.home-story-card__status small,
.home-story-card__title small,
.home-story-card__meta small,
.home-story-card__meta em {
  color: #bba997;
  font-size: 0.75rem;
  font-style: normal;
}

.home-story-card__title {
  gap: 8px;
}

.home-story-card__title p {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: #cbbba9;
  font-size: 0.82rem;
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.home-story-card__title > em {
  width: max-content;
  margin-top: 3px;
  color: #e4ad50;
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.home-story-card__title strong {
  overflow-wrap: anywhere;
  color: #f7e3c4;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.home-story-card__meta {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  justify-items: stretch;
  gap: 0;
  padding: 0;
  border-left: 1px solid rgba(234, 164, 67, 0.16);
  text-align: center;
}

.home-story-card__meta > span {
  display: grid;
  place-content: center;
  gap: 3px;
  min-width: 0;
  padding: 18px 10px;
}

.home-story-card__meta > span + span {
  border-left: 1px solid rgba(234, 164, 67, 0.14);
}

.home-story-card__meta strong {
  color: #e4ad50;
  font-family: Georgia, serif;
  font-size: 1.8rem;
}

.home-story-card__meta > span:nth-child(2) strong {
  font-family: Arial, sans-serif;
  font-size: 1.15rem;
  white-space: nowrap;
}

.home-story-card__meta em {
  grid-column: 1 / -1;
  align-self: end;
  padding: 11px 8px;
  border-top: 1px solid rgba(234, 164, 67, 0.14);
}

.home-story-empty {
  padding: 24px;
  border: 1px solid rgba(180, 101, 43, 0.28);
  color: var(--muted);
  background: rgba(15, 10, 10, 0.76);
}

.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}

.sidebar {
  display: grid;
  gap: 18px;
}

.sidebar .panel,
.content .panel {
  padding: 18px;
}

.sidebar .panel {
  background: linear-gradient(145deg, rgba(74, 39, 27, 0.2), rgba(14, 7, 7, 0.28));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 219, 152, 0.06);
  backdrop-filter: blur(3px);
}

.category-list {
  display: grid;
  gap: 10px;
}

.category-group {
  display: grid;
  gap: 8px;
}

.category-list,
.topic-list,
.post-list {
  scrollbar-color: rgba(243, 189, 85, 0.45) rgba(22, 11, 10, 0.6);
  scrollbar-width: thin;
}

.content {
  min-width: 0;
}

.view {
  min-width: 0;
}

body.is-admin-view .layout {
  grid-template-columns: 1fr;
}

body.is-admin-view .sidebar {
  display: none;
}

.category {
  display: flex;
  width: 100%;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 13px;
  background: rgba(25, 12, 10, 0.24);
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 0 14px rgba(255, 120, 18, 0.025);
}

.category:hover,
.category.is-active {
  border-color: rgba(234, 164, 67, 0.58);
  background: linear-gradient(90deg, rgba(116, 67, 28, 0.26), rgba(27, 13, 10, 0.34));
}

.category strong {
  color: #ffedcc;
}

.category small {
  display: block;
  margin-top: 4px;
  line-height: 1.35;
}

.category em {
  min-width: 34px;
  border: 1px solid rgba(245, 190, 92, 0.42);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(83, 46, 21, 0.24);
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.subcategory-list {
  display: grid;
  gap: 7px;
  margin-left: 12px;
  padding-left: 12px;
  border-left: 1px solid rgba(180, 101, 43, 0.24);
}

.subcategory {
  display: flex;
  width: 100%;
  gap: 10px;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(180, 101, 43, 0.22);
  border-radius: 8px;
  padding: 10px 11px;
  background: rgba(25, 12, 10, 0.16);
  color: var(--text);
  text-align: left;
}

.bestiary-section-image {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid rgba(245, 190, 92, 0.34);
  border-radius: 8px;
  background: rgba(83, 46, 21, 0.18);
  color: var(--accent);
  font-weight: 900;
}

.bestiary-section-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bestiary-section-image--admin {
  width: 76px;
}

.subcategory:hover,
.subcategory.is-active {
  border-color: rgba(234, 164, 67, 0.5);
  background: linear-gradient(90deg, rgba(116, 67, 28, 0.22), rgba(27, 13, 10, 0.28));
}

.subcategory strong,
.subcategory small {
  display: block;
}

.subcategory strong {
  color: #ffedcc;
  font-size: 0.94rem;
}

.subcategory small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.25;
}

.subcategory em {
  min-width: 30px;
  border: 1px solid rgba(245, 190, 92, 0.34);
  border-radius: 8px;
  padding: 5px 7px;
  background: rgba(83, 46, 21, 0.18);
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
  text-align: center;
}

.bestiary-directory {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.bestiary-directory-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 142px;
  border: 1px solid rgba(180, 101, 43, 0.36);
  border-radius: 8px;
  padding: 14px;
  background: rgba(31, 15, 12, 0.84);
  color: var(--text);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 226, 172, 0.08);
}

.bestiary-directory-card:hover,
.bestiary-directory-card:focus-visible {
  border-color: var(--line-strong);
  background: rgba(58, 29, 17, 0.9);
  transform: translateY(-1px);
}

.bestiary-directory-card__image {
  width: 88px;
}

.bestiary-directory-card__content {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.bestiary-directory-card__content strong,
.bestiary-directory-card__content small {
  display: block;
  overflow-wrap: anywhere;
}

.bestiary-directory-card__content strong {
  color: #ffedcc;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
}

.bestiary-directory-card__content small {
  color: var(--muted);
  line-height: 1.35;
}

.bestiary-directory-card__content em {
  width: max-content;
  border: 1px solid rgba(245, 190, 92, 0.34);
  border-radius: 8px;
  padding: 5px 8px;
  background: rgba(83, 46, 21, 0.18);
  color: var(--accent);
  font-size: 0.82rem;
  font-style: normal;
  font-weight: 900;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  background: rgba(28, 14, 12, 0.76);
}

.toolbar h2 {
  margin: 0;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid rgba(151, 89, 42, 0.62);
  border-radius: 8px;
  background: rgba(15, 8, 7, 0.9);
  color: var(--text);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input[type="file"] {
  padding: 9px;
}

select:focus,
input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(243, 189, 85, 0.12);
}

.creative-topic-fields {
  display: grid;
  gap: 16px;
}

.publication-type {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
}

.publication-type legend {
  width: 100%;
  margin-bottom: 6px;
  font-weight: 700;
}

.publication-type label {
  position: relative;
  min-width: 130px;
  padding: 10px 16px;
  border: 1px solid rgba(224, 171, 74, 0.35);
  background: rgba(12, 9, 12, 0.72);
  cursor: pointer;
}

.publication-type label:has(input:checked) {
  border-color: #e0ab4a;
  background: rgba(135, 68, 24, 0.5);
  color: #ffd879;
}

.publication-type input {
  margin-right: 7px;
  accent-color: #e0ab4a;
}

.creative-image-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}

.creative-image-preview:empty {
  display: none;
}

.creative-image-preview span {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(224, 171, 74, 0.35);
}

.creative-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.subcategory--nested {
  margin-left: 18px;
  width: calc(100% - 18px);
  border-left: 2px solid rgba(224, 171, 74, 0.45);
}

.creative-directory {
  display: grid;
  gap: 14px;
}

.creative-directory-group {
  border-top: 1px solid rgba(224, 171, 74, 0.35);
  background: rgba(12, 9, 12, 0.78);
}

.creative-directory-card,
.creative-directory-children button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.creative-directory-card:hover,
.creative-directory-children button:hover {
  background: rgba(132, 63, 24, 0.22);
}

.creative-directory-card span,
.creative-directory-children span {
  display: grid;
  gap: 5px;
}

.creative-directory-card strong {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #f3dfc4;
}

.creative-directory-card small,
.creative-directory-children small {
  color: #bcae9f;
}

.creative-directory-card em,
.creative-directory-children em {
  flex: 0 0 auto;
  color: #e0ab4a;
  font-style: normal;
}

.creative-directory-children {
  border-top: 1px solid rgba(224, 171, 74, 0.16);
}

.creative-directory-children button {
  padding-left: 42px;
  border-bottom: 1px solid rgba(224, 171, 74, 0.1);
}

.creative-story {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 12px 4px 24px;
}

.creative-story p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.85;
  color: #eadfce;
}

.story-editor {
  display: grid;
  gap: 14px;
  padding-top: 6px;
}

.story-editor__heading,
.story-chapter-editor__header,
.story-illustrations__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.story-editor__heading > div,
.story-illustrations__heading > span {
  display: grid;
  gap: 3px;
}

.story-editor__heading strong {
  font-family: Georgia, serif;
  font-size: 22px;
  color: #f3dfc4;
}

.story-editor__tools {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.story-status-field {
  display: grid;
  gap: 5px;
  min-width: 150px;
  color: #bcae9f;
  font-size: 12px;
  font-weight: 800;
}

.story-status-field select {
  min-height: 38px;
  padding: 7px 32px 7px 10px;
}

.story-status-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  margin: 8px 0 10px;
  padding: 4px 8px;
  border: 1px solid rgba(219, 160, 68, 0.5);
  color: #e6b85d;
  font-family: Arial, sans-serif;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

.story-status-badge--completed {
  border-color: rgba(112, 180, 126, 0.55);
  color: #9bd4a5;
  background: rgba(37, 91, 49, 0.22);
}

.topic-detail .story-status-badge {
  margin: 0 0 0 8px;
  vertical-align: middle;
}

.story-editor__heading small,
.story-illustrations__heading small {
  color: #ad9b8c;
}

.story-editor__chapters {
  display: grid;
  gap: 18px;
}

.story-chapter-editor {
  display: grid;
  gap: 15px;
  padding: 18px;
  border: 1px solid rgba(224, 171, 74, 0.34);
  border-left: 3px solid #d39638;
  background: rgba(10, 8, 10, 0.72);
}

.story-chapter-editor__header {
  padding-bottom: 11px;
  border-bottom: 1px solid rgba(224, 171, 74, 0.18);
}

.story-chapter-editor__identity {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(240px, 1.55fr);
  gap: 12px;
}

.story-chapter-editor__header > span {
  color: #e0ab4a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.story-chapter-editor__actions {
  display: grid;
  grid-template-columns: repeat(3, 36px);
  gap: 5px;
}

.story-chapter-editor__actions button,
.story-illustration-editor__remove {
  width: 36px;
  min-width: 36px;
  height: 34px;
  padding: 0;
  font-size: 18px;
}

.story-chapter-editor textarea {
  min-height: 260px;
  line-height: 1.65;
  resize: vertical;
}

.story-illustrations {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.story-illustration-editor {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) 36px;
  align-items: start;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(224, 171, 74, 0.17);
}

.story-illustration-editor__preview {
  display: grid;
  place-items: center;
  width: 150px;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid rgba(224, 171, 74, 0.28);
  color: #8e7e70;
  background: #080708;
}

.story-illustration-editor__preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.story-illustration-editor__fields {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(200px, 1.4fr) minmax(150px, 0.7fr);
  gap: 10px;
}

.story-illustration-editor__fields small {
  color: #9f8f80;
}

.creative-story--structured {
  width: min(100%, 860px);
  padding-top: 0;
}

.creative-story--structured .story-lead {
  margin: 4px auto 24px;
  padding: 16px 18px;
  border-left: 2px solid #d39638;
  color: #cbbba9;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.7;
  background: rgba(10, 8, 10, 0.48);
}

.story-chapter {
  padding: 22px 0 42px;
  border-bottom: 1px solid rgba(224, 171, 74, 0.2);
}

.story-chapter:last-child {
  border-bottom: 0;
}

.story-chapter > header {
  margin-bottom: 26px;
  text-align: center;
}

.story-chapter > header small {
  display: block;
  margin-bottom: 8px;
  color: #d8a143;
  font-weight: 900;
  text-transform: uppercase;
}

.story-chapter > header h3 {
  margin: 0;
  font-family: Georgia, serif;
  font-size: 30px;
  color: #f5e4cd;
}

.story-chapter__text p {
  margin: 0 0 1.4em;
}

.story-chapter__text p:first-child::first-letter {
  float: left;
  margin: 5px 8px 0 0;
  color: #e0ab4a;
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 0.78;
}

.story-illustration {
  width: min(100%, 760px);
  margin: 26px auto 30px;
}

.story-illustration button {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 171, 74, 0.38);
  background: #080708;
  cursor: zoom-in;
}

.story-illustration img {
  display: block;
  width: 100%;
  max-height: 680px;
  object-fit: contain;
}

.story-illustration figcaption {
  padding: 9px 12px 0;
  color: #bbaa98;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.creative-gallery-post {
  min-width: 0;
}

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

.creative-gallery button {
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(224, 171, 74, 0.38);
  background: #080708;
  cursor: zoom-in;
}

.creative-gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 180ms ease;
}

.creative-gallery button:hover img {
  transform: scale(1.025);
}

.creative-gallery-post__caption {
  margin-top: 18px;
  line-height: 1.7;
}

.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 38px;
  background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox img {
  max-width: 94vw;
  max-height: 90vh;
  object-fit: contain;
}

.gallery-lightbox button {
  position: absolute;
  top: 14px;
  right: 18px;
  width: 42px;
  height: 42px;
  border: 0;
  color: white;
  font-size: 30px;
  background: transparent;
  cursor: pointer;
}

.creative-section-level {
  color: #e0ab4a;
  font-weight: 800;
  text-transform: uppercase;
}

.creative-section-admin-card--nested {
  margin-left: 28px;
  width: calc(100% - 28px);
  border-left: 3px solid rgba(224, 171, 74, 0.55);
}

.topic-list,
.post-list {
  display: grid;
  gap: 12px;
}

.topic-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 115, 15, 0.14), transparent 0 12rem),
    rgba(31, 15, 12, 0.84);
  box-shadow: inset 0 1px 0 rgba(255, 226, 172, 0.08);
}

.topic-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.topic-card h3 {
  margin-bottom: 10px;
}

.topic-card__category {
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topic-card__meta {
  display: grid;
  gap: 3px;
  align-content: center;
  min-width: 118px;
  text-align: right;
}

.topic-card__meta strong {
  color: var(--accent);
  font-size: 1.45rem;
}

.topic-card__meta em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  text-transform: uppercase;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags span {
  border: 1px solid rgba(167, 94, 37, 0.54);
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(76, 38, 18, 0.42);
  color: #d8b993;
  font-size: 0.82rem;
  font-weight: 700;
}

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

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(6px);
}

.auth-modal__dialog {
  position: relative;
  width: min(390px, 100%);
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(77, 45, 31, 0.74), rgba(22, 11, 10, 0.88)),
    var(--panel);
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  line-height: 1;
}

.auth-close:hover {
  color: var(--accent);
}

.form {
  display: grid;
  gap: 12px;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
}

.compact {
  gap: 10px;
}

.primary {
  border: 1px solid rgba(255, 190, 83, 0.74);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(103, 54, 25, 0.92), rgba(51, 25, 16, 0.96));
  color: #fff0cf;
  padding: 12px 14px;
  font-weight: 900;
  text-shadow: 0 0 12px rgba(255, 205, 129, 0.28);
  box-shadow: inset 0 0 24px rgba(255, 111, 14, 0.18), 0 0 22px rgba(255, 120, 18, 0.12);
}

.primary:hover {
  background: linear-gradient(180deg, rgba(145, 77, 30, 0.98), rgba(67, 31, 18, 0.98));
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
}

.user-pill,
.profile-box {
  display: grid;
  gap: 2px;
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(31, 15, 12, 0.84);
}

.user-pill span {
  display: grid;
  gap: 2px;
}

.user-pill strong {
  color: var(--text);
  line-height: 1.05;
}

.user-pill small {
  color: var(--muted);
}

.account-status {
  font-weight: 800;
}

.profile-box {
  color: var(--muted);
}

.profile-box strong {
  color: var(--text);
}

.profile-page {
  display: grid;
  gap: 14px;
}

.profile-page .panel {
  background: linear-gradient(145deg, rgba(74, 39, 27, 0.2), rgba(14, 7, 7, 0.28));
  border-color: rgba(180, 101, 43, 0.36);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 219, 152, 0.06);
  backdrop-filter: blur(3px);
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background:
    linear-gradient(135deg, rgba(82, 44, 28, 0.24), rgba(16, 8, 7, 0.3)),
    rgba(25, 12, 10, 0.2);
}

.profile-hero--violet {
  background:
    linear-gradient(135deg, rgba(64, 35, 86, 0.2), rgba(17, 9, 20, 0.3)),
    rgba(25, 12, 10, 0.2);
}

.profile-hero--forest {
  background:
    linear-gradient(135deg, rgba(35, 75, 53, 0.2), rgba(9, 21, 15, 0.3)),
    rgba(25, 12, 10, 0.2);
}

.profile-hero--frost {
  background:
    linear-gradient(135deg, rgba(38, 75, 91, 0.2), rgba(8, 17, 22, 0.3)),
    rgba(25, 12, 10, 0.2);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.profile-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 88px;
  height: 88px;
  overflow: hidden;
  border: 1px solid rgba(235, 168, 76, 0.62);
  border-radius: 50%;
  background:
    linear-gradient(145deg, rgba(112, 62, 30, 0.38), rgba(26, 13, 10, 0.48));
  color: #fff0cf;
  font-size: 1.45rem;
  font-weight: 900;
  box-shadow: inset 0 0 24px rgba(255, 132, 31, 0.16);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  clip-path: circle(50% at center);
}

.profile-avatar--small {
  width: 34px;
  height: 34px;
  font-size: 0.78rem;
}

.profile-avatar--preview {
  width: 112px;
  height: 112px;
}

.profile-avatar.avatar-frame--prism,
.profile-avatar.avatar-frame--ember,
.profile-avatar.avatar-frame--aurora,
.profile-avatar.avatar-frame--storm,
.profile-avatar.avatar-frame--gold {
  position: relative;
  isolation: isolate;
  overflow: visible;
  border-color: transparent;
}

.profile-avatar.avatar-frame--prism::before,
.profile-avatar.avatar-frame--ember::before,
.profile-avatar.avatar-frame--aurora::before,
.profile-avatar.avatar-frame--storm::before,
.profile-avatar.avatar-frame--gold::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -7px;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(
    from 25deg,
    var(--avatar-neon),
    var(--avatar-neon-2),
    var(--avatar-neon),
    var(--avatar-neon-2),
    var(--avatar-neon)
  );
  filter: blur(6px) saturate(1.08);
  animation: avatar-flux-ring 3.8s ease-in-out infinite alternate;
}

.profile-avatar.avatar-frame--prism { --avatar-neon: #d67cff; --avatar-neon-2: #55dfff; --avatar-neon-soft: rgba(199, 91, 255, 0.7); }
.profile-avatar.avatar-frame--ember { --avatar-neon: #ff5bb8; --avatar-neon-2: #ff9b72; --avatar-neon-soft: rgba(255, 79, 164, 0.7); }
.profile-avatar.avatar-frame--aurora { --avatar-neon: #54dcff; --avatar-neon-2: #b979ff; --avatar-neon-soft: rgba(65, 217, 255, 0.7); }
.profile-avatar.avatar-frame--storm { --avatar-neon: #61ffc0; --avatar-neon-2: #4da7ff; --avatar-neon-soft: rgba(88, 255, 174, 0.7); }
.profile-avatar.avatar-frame--gold { --avatar-neon: #ffe06b; --avatar-neon-2: #ff8d56; --avatar-neon-soft: rgba(255, 211, 78, 0.7); }

.profile-avatar.avatar-frame--prism::after,
.profile-avatar.avatar-frame--ember::after,
.profile-avatar.avatar-frame--aurora::after,
.profile-avatar.avatar-frame--storm::after,
.profile-avatar.avatar-frame--gold::after {
  content: none;
}

@keyframes avatar-flux-ring {
  from { transform: scale(0.97); opacity: 0.34; }
  to { transform: scale(1.035); opacity: 0.76; }
}

.avatar-frame-picker {
  grid-column: 1 / -1;
  border: 0;
  padding: 0;
  margin: 0;
}

.avatar-frame-picker legend {
  margin-bottom: 10px;
  color: var(--text);
  font-weight: 700;
}

.avatar-frame-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.avatar-frame-option {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 76px;
  padding: 8px;
  border: 1px solid rgba(244, 192, 93, 0.2);
  border-radius: 6px;
  cursor: pointer;
}

.avatar-frame-option input {
  position: absolute;
  opacity: 0;
}

.avatar-frame-option:has(input:checked) {
  border-color: rgba(247, 191, 72, 0.85);
  background: rgba(123, 66, 22, 0.28);
}

.avatar-frame-swatch {
  position: relative;
  isolation: isolate;
  overflow: visible;
  display: block;
  width: 34px;
  aspect-ratio: 1;
  border: 3px solid rgba(240, 223, 194, 0.5);
  border-radius: 8px;
}

.avatar-frame-swatch.avatar-frame--prism { border-color: #b968ff; box-shadow: 0 0 9px #b968ff; }
.avatar-frame-swatch.avatar-frame--ember { border-color: #ff4fa4; box-shadow: 0 0 9px #ff4fa4; }
.avatar-frame-swatch.avatar-frame--aurora { border-color: #41d9ff; box-shadow: 0 0 9px #41d9ff; }
.avatar-frame-swatch.avatar-frame--storm { border-color: #58ffae; box-shadow: 0 0 9px #58ffae; }
.avatar-frame-swatch.avatar-frame--gold { border-color: #ffd34e; box-shadow: 0 0 9px #ffd34e; }

.avatar-frame-option small {
  color: var(--muted);
}

.avatar-color-mixer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 220px));
  gap: 10px;
}

.avatar-color-mixer label {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  gap: 3px 10px;
  padding: 10px;
  border: 1px solid rgba(244, 192, 93, 0.22);
  border-radius: 6px;
  background: rgba(18, 9, 9, 0.34);
  cursor: pointer;
}

.avatar-color-mixer label > span {
  grid-column: 1 / -1;
  color: var(--text);
  font-weight: 700;
}

.avatar-color-mixer input[type="color"] {
  width: 42px;
  height: 36px;
  padding: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 5px;
  background: transparent;
  cursor: pointer;
}

.avatar-color-mixer code {
  color: var(--muted);
  font: 700 0.82rem/1 monospace;
}

.profile-hero h2 {
  margin: 0 0 6px;
  color: #fff0cf;
}

.profile-hero p {
  margin: 0 0 4px;
  color: var(--text);
}

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

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

.profile-stats span {
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(25, 12, 10, 0.24);
  color: var(--muted);
  text-align: center;
  box-shadow: inset 0 0 14px rgba(255, 120, 18, 0.025);
}

.profile-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.55rem;
}

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

.profile-form {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.profile-form label,
.profile-preview {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.profile-form textarea,
.profile-class-options,
.profile-form__footer {
  grid-column: 1 / -1;
}

.profile-preview {
  grid-row: span 2;
}

.profile-class-options {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.profile-class {
  position: relative;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(25, 12, 10, 0.24);
  color: var(--text);
  cursor: pointer;
}

.profile-class input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.profile-class span {
  display: block;
  text-align: center;
}

.profile-class:has(input:checked) {
  border-color: rgba(243, 189, 85, 0.78);
  background: linear-gradient(90deg, rgba(116, 67, 28, 0.22), rgba(27, 13, 10, 0.28));
  box-shadow: inset 0 0 18px rgba(255, 137, 35, 0.08);
}

.profile-form__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.profile-bio {
  margin: 0;
  border-top: 1px solid rgba(180, 101, 43, 0.22);
  padding-top: 12px;
  color: var(--text);
  line-height: 1.55;
}

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

.profile-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(25, 12, 10, 0.24);
  color: var(--text);
  text-align: left;
  box-shadow: inset 0 0 14px rgba(255, 120, 18, 0.025);
}

.profile-item:hover {
  border-color: rgba(234, 164, 67, 0.58);
  background: linear-gradient(90deg, rgba(116, 67, 28, 0.26), rgba(27, 13, 10, 0.34));
}

.profile-item strong,
.profile-item small {
  display: block;
}

.profile-item small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.profile-item em {
  flex: 0 0 auto;
  color: var(--accent);
  font-style: normal;
  font-weight: 800;
}

.topic-detail {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: rgba(31, 15, 12, 0.84);
}

.topic-detail__heading {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.topic-detail .topic-card__category {
  margin: 0;
  flex: 0 0 auto;
  white-space: nowrap;
}

.topic-detail h2 {
  margin: 0;
  min-width: 0;
  color: #fff0cf;
  font-size: 1.28rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.topic-detail .tags {
  margin-top: 2px;
}

.topic-detail__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 260px;
}

.topic-detail__actions .post-edit-button {
  margin-left: 0;
}

.back-button {
  flex: 0 0 auto;
  border-color: rgba(228, 145, 42, 0.45);
  background: rgba(95, 49, 25, 0.36);
  padding: 7px 10px;
  color: #efe0c9;
  line-height: 1;
}

.back-button:hover {
  background: rgba(120, 63, 29, 0.58);
}

.post {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(31, 15, 12, 0.84);
}

.post aside {
  display: grid;
  gap: 4px;
  align-content: start;
}

.post-author {
  min-width: 0;
}

.post-author__avatar {
  width: 58px;
  height: 58px;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.post-author__identity {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.post-author__identity strong,
.post-author__identity small {
  overflow-wrap: anywhere;
}

.post--story {
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding: 0;
}

.post--story > .post-author {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(224, 171, 74, 0.18);
  background: rgba(24, 12, 11, 0.5);
}

.post--story .post-author__avatar {
  width: 48px;
  height: 48px;
  margin: 0;
}

.post--story > .creative-story {
  width: min(100%, 980px);
  padding: 24px 30px 32px;
}

.reading-mode-toolbar {
  display: none;
}

body.is-reading-mode {
  --reader-font-size: 19px;
  background:
    repeating-linear-gradient(0deg, rgba(83, 53, 26, 0.025) 0, rgba(83, 53, 26, 0.025) 1px, transparent 1px, transparent 4px),
    #d8bc82;
  color: #332317;
}

body.is-reading-mode .topbar,
body.is-reading-mode .sidebar,
body.is-reading-mode .topic-detail,
body.is-reading-mode .post--story > .post-author,
body.is-reading-mode .post-list > .post:not(.post--story),
body.is-reading-mode #topicView > .panel:last-child {
  display: none;
}

body.is-reading-mode .shell {
  width: min(100% - 32px, 1080px);
  margin-top: 0;
}

body.is-reading-mode .layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

body.is-reading-mode .reading-mode-toolbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(69, 42, 22, 0.7);
  background: rgba(58, 38, 24, 0.97);
  backdrop-filter: blur(12px);
}

body.is-reading-mode .reading-mode-toolbar strong {
  min-width: 0;
  overflow: hidden;
  color: #f0ddb6;
  font-family: Georgia, serif;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.reading-mode-toolbar__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex: 0 0 auto;
}

.reader-font-control {
  display: grid;
  grid-template-columns: 38px 54px 38px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(237, 207, 151, 0.42);
  background: rgba(28, 18, 12, 0.3);
}

.reader-font-control button {
  width: 38px;
  height: 34px;
  padding: 0;
  border: 0;
  color: #f3dfb8;
  font-weight: 900;
  background: transparent;
  cursor: pointer;
}

.reader-font-control button:hover,
.reader-font-control button:focus-visible {
  background: rgba(231, 189, 111, 0.18);
}

.reader-font-control span {
  display: grid;
  place-items: center;
  height: 34px;
  border-right: 1px solid rgba(237, 207, 151, 0.25);
  border-left: 1px solid rgba(237, 207, 151, 0.25);
  color: #d9c49f;
  font-size: 12px;
  font-weight: 800;
}

body.is-reading-mode .reading-mode-toolbar .ghost {
  border-color: rgba(237, 207, 151, 0.42);
  color: #f3dfb8;
  background: rgba(28, 18, 12, 0.25);
}

body.is-reading-mode .post-list {
  gap: 0;
}

body.is-reading-mode .post--story {
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.is-reading-mode .post--story > .creative-story {
  width: min(100%, 860px);
  margin: 0 auto;
  padding: 42px 28px 80px;
}

body.is-reading-mode .creative-story p {
  color: #332317;
  font-size: var(--reader-font-size);
  line-height: 1.9;
}

body.is-reading-mode .creative-story--structured .story-lead {
  border-left-color: #80532c;
  color: #533923;
  font-size: max(15px, calc(var(--reader-font-size) - 2px));
  background: rgba(111, 73, 37, 0.09);
}

body.is-reading-mode .story-chapter {
  border-bottom-color: rgba(88, 57, 29, 0.3);
}

body.is-reading-mode .story-chapter > header small,
body.is-reading-mode .story-chapter__text p:first-child::first-letter {
  color: #85562a;
}

body.is-reading-mode .story-chapter > header h3 {
  color: #2e1e14;
}

body.is-reading-mode .story-illustration button {
  border-color: rgba(74, 47, 24, 0.55);
  background: #24170f;
}

body.is-reading-mode .story-illustration figcaption {
  color: #5c422d;
}

body.is-reading-mode .story-illustration {
  display: none;
}

body.is-reading-mode .story-chapter {
  padding-top: 30px;
  padding-bottom: 56px;
}

.post--mount {
  grid-template-columns: 1fr;
  gap: 10px;
}

.post--mount aside {
  display: flex;
  align-items: center;
  gap: 10px 14px;
  flex-wrap: wrap;
}

.post--mount aside small {
  color: var(--muted);
}

.post-edit-button {
  margin-left: auto;
}

.post p {
  margin: 0;
  color: #eadccb;
  line-height: 1.65;
}

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

.image-preview {
  width: 100%;
  height: 210px;
  border: 1px solid rgba(180, 101, 43, 0.34);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(12, 7, 7, 0.68);
}

.skill-editor {
  border: 1px solid rgba(180, 101, 43, 0.22);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 9, 8, 0.24);
}

.skill-editor h3 {
  margin: 0;
  font-size: 1.25rem;
}

.skill-list {
  display: grid;
  gap: 10px;
}

.skill-item {
  display: grid;
  grid-template-columns: 132px minmax(150px, 0.7fr) minmax(220px, 1.3fr) auto;
  gap: 10px;
  align-items: stretch;
  border: 1px solid rgba(180, 101, 43, 0.18);
  border-radius: 8px;
  padding: 10px;
  background: rgba(18, 9, 8, 0.22);
}

.skill-icon-field {
  gap: 8px;
}

.skill-icon-preview {
  width: 82px;
  height: 82px;
}

.mount-post {
  display: grid;
  gap: 14px;
  --mount-label-height: 28px;
  --mount-media-height: clamp(164px, 18vw, 220px);
}

.mount-post__intro {
  grid-area: intro;
  min-height: 42px;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 12px 14px;
  background: rgba(18, 9, 8, 0.38);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.mount-post__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(280px, 1fr);
  grid-template-rows: auto calc(var(--mount-label-height) + var(--mount-media-height)) auto;
  grid-template-areas:
    "intro intro"
    "hero map"
    "skills seal";
  gap: 12px 14px;
  align-items: stretch;
}

.mount-post__hero {
  display: grid;
  grid-template-rows: var(--mount-label-height) var(--mount-media-height);
  margin: 0;
  grid-area: hero;
  min-width: 0;
}

.mount-post__map-panel {
  grid-area: map;
  display: grid;
  grid-template-rows: var(--mount-label-height) var(--mount-media-height);
  gap: 0;
  min-width: 0;
}

.mount-post__skills-panel {
  grid-area: skills;
  display: grid;
  grid-template-rows: 24px auto;
  gap: 8px;
}

.mount-post__seal {
  grid-area: seal;
  display: grid;
  grid-template-rows: 24px auto;
  gap: 8px;
}

.mount-post__hero img,
.mount-post__map {
  display: block;
  width: 100%;
  border: 1px solid rgba(243, 189, 85, 0.34);
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
}

.mount-post__hero img {
  grid-row: 2;
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
}

.mount-post__map {
  height: 100%;
  aspect-ratio: auto;
  max-height: none;
  min-height: 0;
}

.mount-post__map-panel h3 {
  height: var(--mount-label-height);
  display: flex;
  align-items: flex-start;
}

.mount-post__map-panel h3,
.mount-post__skills-panel h3,
.mount-post__seal h3 {
  margin: 0;
  color: #ffe5ba;
  font-size: 1rem;
  line-height: 1.15;
}

.mount-post__skills {
  display: grid;
  gap: 10px;
  align-self: start;
}

.mount-post__seal p {
  align-self: start;
  min-height: 220px;
  border: 1px solid rgba(180, 101, 43, 0.34);
  border-radius: 8px;
  padding: 13px 14px;
  background: rgba(18, 9, 8, 0.52);
}

.mount-post__skill {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  min-height: 94px;
  border: 1px solid rgba(180, 101, 43, 0.3);
  border-radius: 8px;
  padding: 10px;
  background: rgba(18, 9, 8, 0.5);
}

.mount-post__skill img,
.mount-post__skill-icon {
  width: 70px;
  height: 70px;
  border: 1px solid rgba(243, 189, 85, 0.32);
  border-radius: 8px;
  object-fit: cover;
  background: rgba(45, 18, 10, 0.78);
}

.mount-post__skill-icon {
  display: grid;
  place-items: center;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  font-weight: 800;
}

.mount-post__skills strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(21, 10, 9, 0.54);
  color: var(--muted);
  text-align: center;
}

.admin-grid {
  display: grid;
  gap: 14px;
}

.admin-page {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.admin-sidebar {
  position: sticky;
  top: 106px;
}

.admin-sidebar h2 {
  margin-bottom: 14px;
}

.admin-menu {
  display: grid;
  gap: 8px;
}

.admin-menu button {
  width: 100%;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 11px 12px;
  background: rgba(18, 9, 8, 0.52);
  color: var(--text);
  font: inherit;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.admin-menu button:hover,
.admin-menu button.is-active {
  border-color: rgba(243, 189, 85, 0.72);
  background: rgba(97, 54, 18, 0.42);
  color: var(--accent);
}

.admin-content {
  min-width: 0;
}

.admin-section-panel--flush {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.admin-workspace,
.bestiary-admin {
  display: grid;
  gap: 16px;
}

.admin-tool-card {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(145deg, rgba(74, 39, 27, 0.18), rgba(14, 7, 7, 0.24)),
    rgba(18, 9, 8, 0.18);
  backdrop-filter: blur(3px);
}

.admin-tool-card__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(180, 101, 43, 0.22);
  padding-bottom: 14px;
}

.admin-tool-card__header h2 {
  margin: 4px 0 0;
}

.admin-tool-card__header > span {
  border: 1px solid rgba(245, 190, 92, 0.34);
  border-radius: 8px;
  padding: 7px 10px;
  background: rgba(83, 46, 21, 0.18);
  color: var(--accent);
  font-weight: 900;
  white-space: nowrap;
}

.bestiary-section-create {
  border: 1px solid rgba(180, 101, 43, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 9, 8, 0.28);
}

.bestiary-section-admin-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(420px, 1fr));
  gap: 12px;
}

.bestiary-section-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 9, 8, 0.34);
}

.bestiary-section-card__preview {
  display: grid;
  gap: 8px;
  justify-items: start;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 800;
}

.bestiary-section-edit {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-width: 0;
}

.bestiary-section-edit label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 800;
}

.bestiary-section-edit input {
  width: 100%;
  min-width: 0;
}

.bestiary-section-card__actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.bestiary-section-card__actions .muted {
  max-width: 220px;
  text-align: right;
}

.mount-editor {
  display: grid;
  gap: 14px;
}

.mount-editor > label,
.mount-editor .form-grid {
  border: 1px solid rgba(180, 101, 43, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 9, 8, 0.2);
}

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

.admin-heading h2 {
  margin: 0;
}

.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.admin-stats span {
  border: 1px solid rgba(180, 101, 43, 0.38);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 9, 8, 0.5);
  color: var(--muted);
}

.admin-stats strong {
  display: block;
  color: var(--accent);
  font-size: 1.55rem;
  text-shadow: 0 0 14px rgba(255, 147, 33, 0.36);
}

.admin-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.admin-overview-grid article {
  border: 1px solid rgba(180, 101, 43, 0.24);
  border-radius: 8px;
  padding: 12px;
  background: rgba(18, 9, 8, 0.24);
}

.admin-overview-grid strong,
.admin-overview-grid small {
  display: block;
}

.admin-overview-grid small {
  margin-top: 5px;
  color: var(--muted);
}

.admin-list,
.admin-entity-list {
  display: grid;
  gap: 10px;
}

.admin-message {
  border: 1px solid rgba(243, 189, 85, 0.48);
  border-radius: 8px;
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(77, 48, 20, 0.38);
  color: #ffe0a3;
  font-weight: 800;
}

.admin-message.is-error {
  border-color: rgba(255, 126, 92, 0.55);
  background: rgba(104, 27, 18, 0.42);
  color: #ffd6ca;
}

.admin-access-note {
  margin: 0;
  padding: 11px 13px;
  border-left: 2px solid #d49a3e;
  color: #cbb8a3;
  font-size: 0.82rem;
  line-height: 1.5;
  background: rgba(78, 42, 22, 0.28);
}

.admin-row,
.admin-entity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(180, 101, 43, 0.3);
  border-radius: 8px;
  padding: 13px;
  background: rgba(26, 13, 11, 0.58);
}

.admin-entity-card {
  background: rgba(18, 9, 8, 0.3);
}

.admin-row strong,
.admin-row small,
.admin-entity-card strong,
.admin-entity-card small {
  display: block;
}

.admin-row small,
.admin-entity-card small {
  margin-top: 5px;
  line-height: 1.35;
}

.admin-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-actions select {
  min-width: 120px;
  padding: 9px 10px;
}

.admin-password-input {
  width: 180px;
  min-width: 150px;
  padding: 9px 10px;
}

.role-form {
  border: 1px solid rgba(180, 101, 43, 0.24);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 9, 8, 0.24);
}

.role-list {
  display: grid;
  gap: 10px;
}

.role-card {
  display: grid;
  gap: 12px;
  border: 1px solid rgba(180, 101, 43, 0.28);
  border-radius: 8px;
  padding: 14px;
  background: rgba(18, 9, 8, 0.3);
}

.role-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(180, 101, 43, 0.18);
  padding-bottom: 10px;
}

.role-card strong,
.role-card small {
  display: block;
}

.role-card small {
  margin-top: 4px;
  color: var(--muted);
}

.permission-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 8px;
}

.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  border: 1px solid rgba(180, 101, 43, 0.24);
  border-radius: 8px;
  padding: 8px 10px;
  background: rgba(26, 13, 11, 0.52);
  color: var(--muted);
  font-weight: 800;
}

.permission-item input {
  width: auto;
  accent-color: #f3bd55;
}

.role-card__actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.danger-button {
  color: #ffb19d;
}

.danger-button:hover {
  border-color: rgba(255, 126, 92, 0.55);
  background: rgba(104, 27, 18, 0.44);
  color: #ffd6ca;
}

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

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
  }

  .nav,
  .account {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .intro {
    grid-template-columns: 1fr;
    padding: 32px;
    text-align: left;
  }

  .intro__content {
    justify-self: start;
  }

  .intro__stats {
    width: 100%;
  }

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

  .home-random-find {
    min-height: 260px;
  }

  .home-story-card {
    grid-template-columns: 190px minmax(130px, 0.65fr) minmax(250px, 1.7fr) minmax(190px, 0.75fr);
  }

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

  .admin-page {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: static;
  }

  .bestiary-section-admin-list {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .topic-detail {
    flex-wrap: wrap;
  }

  .topic-detail h2 {
    flex: 1 1 100%;
  }

  .topic-detail .tags {
    margin-left: 0;
  }

  .topic-card,
  .post,
  .admin-row,
  .admin-entity-card,
  .skill-item,
  .bestiary-section-card,
  .bestiary-section-edit,
  .form-grid,
  .profile-form {
    grid-template-columns: 1fr;
  }

  .admin-tool-card__header,
  .bestiary-section-card__actions {
    align-items: stretch;
    justify-items: stretch;
  }

  .bestiary-section-card__actions {
    flex-direction: column;
  }

  .bestiary-section-card__actions .muted {
    max-width: none;
    text-align: left;
  }

  .admin-tool-card__header {
    flex-direction: column;
  }

  .bestiary-section-edit label:nth-child(2) {
    grid-column: auto;
  }

  .profile-preview {
    grid-row: auto;
  }

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

  .topic-card__meta {
    text-align: left;
  }

  .mount-post__layout {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    grid-template-areas:
      "intro"
      "map"
      "hero"
      "skills"
      "seal";
  }

  .mount-post__map-panel {
    grid-template-rows: auto;
  }

  .mount-post__hero {
    display: block;
  }

  .mount-post__intro,
  .mount-post__map-panel h3 {
    min-height: 0;
    height: auto;
  }

  .mount-post__hero img,
  .mount-post__map {
    height: auto;
    max-height: none;
  }

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

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

  .story-illustration-editor {
    grid-template-columns: 120px minmax(0, 1fr) 36px;
  }

  .story-illustration-editor__preview {
    width: 120px;
  }

  .story-illustration-editor__fields {
    grid-template-columns: 1fr;
  }

  .story-chapter-editor__identity {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .topic-detail {
    grid-template-columns: minmax(0, 1fr);
  }

  .topic-detail__heading {
    grid-column: 1;
    grid-row: 2;
  }

  .topic-detail__actions {
    grid-column: 1;
    grid-row: 3;
    justify-content: flex-start;
    max-width: none;
  }

  .shell {
    width: min(100% - 20px, 1210px);
    margin-top: 10px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .intro {
    min-height: 0;
    padding: 24px 18px;
    background-position: 55% center;
  }

  .intro__actions {
    display: grid;
  }

  .intro__actions button {
    width: 100%;
  }

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

  .intro__stats span {
    min-width: 0;
    padding: 10px 5px;
  }

  .intro__stats strong {
    font-size: 1.25rem;
  }

  .intro__stats small {
    font-size: 0.64rem;
  }

  .home-discovery__heading {
    display: grid;
    gap: 5px;
  }

  .home-discovery__heading .ghost {
    width: 100%;
  }

  .home-latest-story__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .home-latest-story__heading .ghost {
    width: 100%;
  }

  .home-story-card {
    grid-template-columns: 1fr;
  }

  .home-story-card__cover,
  .home-story-card__cover img {
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    border-right: 0;
    border-bottom: 1px solid rgba(234, 164, 67, 0.2);
  }

  .home-story-card__status,
  .home-story-card__title,
  .home-story-card__meta {
    height: auto;
    padding: 15px 16px;
  }

  .home-story-card__status {
    border-right: 0;
    border-bottom: 1px solid rgba(234, 164, 67, 0.16);
  }

  .home-story-card__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-items: start;
    align-items: baseline;
    padding: 0;
    border-top: 1px solid rgba(234, 164, 67, 0.16);
    border-left: 0;
    text-align: left;
  }

  .home-story-card__meta em {
    grid-column: 1 / -1;
    justify-self: stretch;
    margin-top: 0;
    text-align: left;
  }

  .home-bestiary-card {
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 112px;
  }

  .home-bestiary-card__body {
    padding: 13px;
  }

  .home-bestiary-card__body strong {
    font-size: 1.15rem;
  }

  .home-random-find {
    min-height: 240px;
  }

  .admin-stats {
    grid-template-columns: 1fr;
  }

  .profile-hero,
  .profile-item,
  .profile-form__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-identity {
    align-items: flex-start;
  }

  .profile-actions {
    justify-content: stretch;
  }

  .profile-actions button {
    width: 100%;
  }

  .profile-stats,
  .profile-class-options {
    grid-template-columns: 1fr;
  }

  .creative-gallery {
    grid-template-columns: 1fr;
  }

  .creative-directory-card,
  .creative-directory-children button {
    align-items: flex-start;
    padding: 15px;
  }

  .creative-directory-children button {
    padding-left: 28px;
  }

  .creative-section-admin-card--nested {
    margin-left: 12px;
    width: calc(100% - 12px);
  }

  .gallery-lightbox {
    padding: 12px;
  }

  .story-editor__heading,
  .story-illustrations__heading {
    align-items: stretch;
    flex-direction: column;
  }

  .story-chapter-editor {
    padding: 14px;
  }

  .story-illustration-editor {
    grid-template-columns: 1fr 36px;
  }

  .story-illustration-editor__preview {
    width: 100%;
    grid-column: 1 / -1;
  }

  .story-chapter > header h3 {
    font-size: 25px;
  }

  .creative-story p {
    font-size: 17px;
  }

  .post--story > .creative-story {
    padding: 20px 16px 26px;
  }

  .post--story > .post-author {
    padding: 12px 14px;
  }

  body.is-reading-mode .shell {
    width: min(100% - 18px, 1080px);
  }

  body.is-reading-mode .reading-mode-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  body.is-reading-mode .reading-mode-toolbar__actions {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  body.is-reading-mode .post--story > .creative-story {
    padding: 28px 8px 54px;
  }
}
