:root {
  color-scheme: dark;
  --black: #050505;
  --soft-black: #0b0b0b;
  --white: #f4f3ef;
  --muted: #999995;
  --line: #2a2a28;
  --pad: clamp(24px, 5vw, 78px);
  --header-height: 82px;
  --playlist-height: 50px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 12px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }
::selection { background: var(--white); color: var(--black); }

.site-header {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto 0;
  height: 82px;
  padding: 0 var(--pad);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(18px);
}
.wordmark { display: flex; align-items: center; width: max-content; }
.wordmark img { width: 34px; height: 44px; object-fit: contain; }
.wordmark i { width: 5px; height: 5px; border-radius: 50%; background: var(--white); }
.tab-list { display: flex; align-self: stretch; gap: 32px; }
.tab { position: relative; color: var(--muted); background: none; border: 0; padding: 0; cursor: pointer; }
.tab::after { content: ""; position: absolute; height: 1px; left: 0; right: 100%; bottom: -1px; background: var(--white); transition: right .25s ease; }
.tab:hover, .tab:focus-visible, .tab.is-active { color: var(--white); }
.tab.is-active::after { right: 0; }
.admin-nav-tab { position: fixed; top: 0; right: var(--pad); height: 82px; padding-left: 26px; border-left: 1px solid var(--line); }
.admin-nav-tab::after { left: 26px; }
.header-cta { justify-self: end; border-bottom: 1px solid var(--muted); padding-bottom: 3px; }
.header-cta span, button span { margin-left: 8px; }

.playlist-banner {
  position: fixed;
  z-index: 19;
  top: var(--header-height);
  right: 0;
  left: 0;
  height: var(--playlist-height);
  padding: 0 var(--pad);
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(11,11,11,.94);
  backdrop-filter: blur(18px);
}
.playlist-banner button { width: 30px; height: 30px; display: grid; place-items: center; flex: 0 0 auto; padding: 0; border: 1px solid #555550; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; }
.playlist-banner button:not(:disabled):hover, .playlist-banner button:not(:disabled):focus-visible, .playlist-banner.is-playing button { outline: 0; border-color: var(--white); background: var(--white); color: var(--black); }
.playlist-banner button:disabled { opacity: .4; cursor: default; }
.playlist-banner button span { margin: 0 0 0 2px; font-size: 9px; }
.playlist-banner > div { min-width: 0; display: flex; align-items: baseline; gap: 10px; }
.playlist-label { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.playlist-banner strong { overflow: hidden; font-size: 11px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.playlist-position { margin-left: auto; color: var(--muted); font-size: 9px; font-variant-numeric: tabular-nums; }

.tab-panel { animation: reveal .45s ease both; }
.tab-panel[hidden] { display: none; }
body[data-active-tab="home"] .site-footer, body[data-active-tab="bio"] .site-footer { display: none; }
body[data-active-tab="bio"] { height: 100svh; overflow: hidden; }
@keyframes reveal { from { opacity: 0; transform: translateY(8px); } }
.eyebrow { margin: 0; color: var(--muted); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; }
.eyebrow span { padding: 0 8px; color: #535350; }

.hero {
  position: relative;
  height: 100svh;
  min-height: 680px;
  padding: calc(var(--header-height) + var(--playlist-height) + 36px) var(--pad) 58px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(390px, .9fr);
  align-items: center;
  gap: clamp(50px, 7vw, 120px);
  overflow: hidden;
}
.hero-copy h1 { margin: 24px 0 0; font-size: clamp(68px, 8.8vw, 142px); line-height: .84; letter-spacing: -.065em; font-weight: 500; }
.role { margin: clamp(20px, 3vh, 30px) 0 0; font-size: clamp(20px, 1.5vw, 24px); font-weight: 500; letter-spacing: .025em; }
.hero-location { margin-top: 8px; }
.hero-bio { max-width: 525px; margin: clamp(12px, 2vh, 18px) 0 0; color: #c5c5c0; white-space: pre-wrap; }
.hero-bio[hidden] { display: none; }
.portrait-wrap { width: min(82%, calc(100svh - 250px)); max-width: 520px; margin: 0; justify-self: end; }
.portrait-wrap img { aspect-ratio: 1 / 1; object-fit: cover; filter: grayscale(100%) contrast(1.08); }
.portrait-wrap figcaption { margin-top: 8px; color: var(--muted); font-size: 9px; text-align: right; text-transform: uppercase; letter-spacing: .08em; }
.scroll-cue { position: absolute; bottom: 28px; left: var(--pad); display: flex; align-items: center; gap: 18px; color: var(--muted); }
.scroll-cue b { color: var(--white); font-size: 20px; font-weight: 400; animation: bounce 1.6s infinite; }
@keyframes bounce { 50% { transform: translateY(5px); } }

.fund-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(50px, 10vw, 160px); padding: 60px 0 110px; border-top: 1px solid var(--line); }
.raised-row { display: flex; align-items: end; justify-content: space-between; }
.raised-row div { display: flex; align-items: baseline; gap: 12px; }
.raised-row strong { font-size: clamp(42px, 5vw, 72px); line-height: 1; font-weight: 400; letter-spacing: -.04em; }
.raised-row span, .raised-row p { color: var(--muted); margin: 0; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 45px; }
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 19px; font-weight: 500; }
.stats span { color: var(--muted); }
.donate-button, .donate-confirm { width: 100%; padding: 19px 22px; display: flex; justify-content: space-between; color: var(--black); background: var(--white); border: 1px solid var(--white); cursor: pointer; transition: .2s ease; }
.donate-button:hover, .donate-confirm:hover { background: transparent; color: var(--white); }
.fine-print { color: #696965; font-size: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.section-heading h3 { margin: 0; font-size: 15px; font-weight: 500; }
.section-heading span { color: var(--muted); }
.donor-list { margin: 0; padding: 0; list-style: none; }
.donor-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 16px; align-items: center; padding: 19px 0; border-bottom: 1px solid var(--line); }
.avatar { width: 42px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; color: var(--black); background: #d7d5cd; font-size: 10px; }
.avatar-photo { background: #8f918c; }.avatar.anonymous { color: var(--muted); background: #252523; }
.donor-copy { display: flex; flex-direction: column; }.donor-copy strong, .donor-list b { font-weight: 500; }.donor-copy span { color: var(--muted); font-size: 11px; }
.comments-block { border-top: 1px solid var(--line); padding-top: 55px; }
.comment-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.comment-grid article { min-height: 150px; padding: 25px; border: 1px solid var(--line); }
.comment-grid header { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; }
.comment-grid header strong { color: var(--white); font-weight: 500; }
.comment-grid article p { margin: 30px 0 0; font-size: 13px; }
.comment-form { display: grid; grid-template-columns: minmax(150px, .5fr) 2fr auto; gap: 20px; margin-top: 22px; }
.comment-form label { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; }
.comment-form label span { color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.comment-form input, .comment-form textarea { width: 100%; resize: none; border: 0; outline: 0; color: var(--white); background: transparent; }
.comment-form button { border: 1px solid var(--line); color: var(--white); background: transparent; padding: 0 25px; cursor: pointer; }
.comment-form button:hover { border-color: var(--white); }

.page-intro { min-height: 65vh; padding: 180px var(--pad) 80px; display: grid; grid-template-columns: 1fr 2fr 1fr; align-items: end; gap: 40px; }
.page-intro h1 { margin: 0; font-size: clamp(80px, 15vw, 230px); line-height: .72; font-weight: 400; letter-spacing: -.08em; }
.photos-page .page-intro { min-height: 46vh; padding-top: 130px; padding-bottom: 55px; }
.photos-page .page-intro h1 { grid-column: 2; font-size: clamp(68px, 11vw, 168px); }
.page-intro > p:last-child { color: var(--muted); margin: 0; }
.photo-journal { padding: 50px var(--pad) 130px; border-top: 1px solid var(--line); }
.photo-entry { margin: 0 0 150px; }
.photo-entry:last-child { margin-bottom: 0; }
.photo-entry .photo-frame, .photo-entry-wide .photo-frame, .photo-entry-wide:first-child .photo-frame, .photo-entry-offset .photo-frame { width: min(820px, 100%); margin-left: 0; display: grid; place-items: center start; }
.photo-frame img { width: 100%; height: min(68svh, 720px); object-fit: contain; object-position: left center; filter: grayscale(1); transition: filter .5s; }
.photo-frame:hover img { filter: grayscale(1); }
.photo-entry figcaption { display: grid; grid-template-columns: 50px 1fr auto; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.photo-entry figcaption > span, .photo-entry figcaption time { color: var(--muted); }
.photo-entry figcaption strong { font-size: 14px; font-weight: 500; }.photo-entry figcaption p { margin: 2px 0 0; color: var(--muted); }
.inline-comments { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; }
.inline-comments p { margin: 0; }.inline-comments p b { font-weight: 500; margin-right: 10px; }
.inline-comments button { border: 0; border-bottom: 1px solid var(--muted); padding: 0 0 2px; background: transparent; color: var(--muted); cursor: pointer; }

.story { padding-top: calc(var(--header-height) + var(--playlist-height)); scroll-margin-top: calc(var(--header-height) + var(--playlist-height)); }
.story + .story { padding-top: 0; border-top: 1px solid var(--line); }
.story + .story .story-header { padding-top: 72px; }
.story-header { width: min(820px, calc(100% - 48px)); margin: 0 auto; padding: 100px 0 20px; text-align: left; }
.story-header h1 { margin: 25px 0 18px; font-family: var(--story-title-font, Georgia, "Times New Roman", serif); font-size: clamp(min(52px, var(--story-title-size, 96px)), 7vw, var(--story-title-size, 96px)); line-height: var(--story-title-leading, .92); font-weight: var(--story-title-weight, 400); letter-spacing: var(--story-title-tracking, -.055em); text-align: var(--story-title-align, left); white-space: pre-line; }.story-header h1 em { font-style: var(--story-title-style, italic); }
.byline { margin: 0; font-size: 14px; }
.story-image { margin: 0; }.lead-image img { height: min(76vh, 850px); object-fit: cover; }.story-image img { filter: grayscale(1); }
.story-image figcaption { padding: 10px var(--pad); color: var(--muted); font-size: 10px; }
.story-body { width: min(820px, calc(100% - 48px)); margin: 70px auto; font-family: var(--story-body-font, Aptos, "Segoe UI", sans-serif); font-size: var(--story-body-size, 12px); line-height: var(--story-body-leading, 1.8); letter-spacing: var(--story-body-tracking, 0); }
.story-header + .story-body { margin-top: 18px; }
.story-body p { margin: 0 0 var(--story-paragraph-space, 25px); }
.story-body h2 { margin: 48px 0 20px; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(25px, 3vw, 36px); line-height: 1.18; font-weight: 400; letter-spacing: -.025em; }
.story-body ul, .story-body ol { margin: 0 0 var(--story-paragraph-space, 25px); padding-left: 1.6em; }.story-body li { margin: 7px 0; padding-left: .25em; }
.story-body a { color: #c5ddfa; text-decoration: underline; text-decoration-color: #6688b1; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s, text-decoration-color .15s; }.story-body a:hover, .story-body a:focus-visible { color: #fff; text-decoration-color: #fff; }
.story-body u { text-decoration-thickness: 1px; text-underline-offset: 3px; }.story-body s, .story-body strike { color: #9d9d98; }
.drop-cap::first-letter { float: left; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 70px; line-height: .7; padding: 12px 10px 0 0; }
.story-body blockquote { margin: 55px 0; padding-left: 28px; border-left: 1px solid var(--line); font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(22px, 2.2vw, 34px); line-height: 1.3; font-style: italic; text-align: left; }
.story-body p[data-spacer] { min-height: calc(var(--story-body-leading, 1.8) * 1em); margin: 0 0 var(--story-paragraph-space, 25px); }
.story-image-inset { width: min(900px, calc(100% - 48px)); margin: 0 auto; }
.story-image-inset img { aspect-ratio: 3/2; object-fit: cover; }
.story-image-inset figcaption { padding-left: 0; padding-right: 0; }
.story-end { display: flex; align-items: center; gap: 15px; margin-top: 65px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }.story-end i { height: 1px; background: var(--line); flex: 1; }
.story-footer { width: min(820px, calc(100% - 48px)); margin: 110px auto 0; padding: 40px 0 100px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: start; gap: 40px; }
.story:not(:last-child) .story-footer { padding-bottom: 64px; }
.story-footer p { max-width: 460px; margin: 0; color: var(--muted); }.story-footer p strong { color: var(--white); font-weight: 500; }
.story-footer button { border: 0; border-bottom: 1px solid var(--muted); padding: 0 0 4px; color: var(--white); background: transparent; cursor: pointer; }

.audio-page .page-intro { min-height: 46vh; padding-top: 130px; padding-bottom: 55px; }
.audio-page .page-intro h1 { grid-column: 2; font-size: clamp(68px, 11vw, 168px); }
.audio-journal { min-height: 54vh; padding: 35px var(--pad) 130px; border-top: 1px solid var(--line); }
.audio-entry { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: clamp(20px, 4vw, 60px); width: min(1060px, 100%); margin: 0 auto; padding: clamp(30px, 5vw, 68px) 0; border-bottom: 1px solid var(--line); }
.audio-entry:first-child { border-top: 0; }.audio-number { padding-top: 6px; color: var(--muted); font-variant-numeric: tabular-nums; }
.audio-entry-main { min-width: 0; }.audio-entry.has-cover .audio-entry-main { display: grid; grid-template-columns: minmax(240px, .86fr) minmax(0, 1.14fr); gap: clamp(28px, 4vw, 58px); align-items: center; }.audio-entry-copy { min-width: 0; }
.audio-entry-cover { width: 100%; max-width: 470px; aspect-ratio: 1 / 1; margin: 0; overflow: hidden; background: #151515; }.audio-entry-cover img { width: 100%; height: 100%; object-fit: cover; }.audio-entry-cover.is-grayscale img { filter: grayscale(1); }
.audio-entry-main header { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 30px; align-items: start; }
.audio-entry h2 { margin: 0; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(27px, 4vw, 50px); line-height: 1.05; font-weight: 400; letter-spacing: -.035em; }
.audio-entry h2 + p { max-width: 620px; margin: 14px 0 0; color: var(--muted); font-size: 13px; }
.audio-meta { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px 16px; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.audio-entry audio { display: none; }.audio-player { display: grid; grid-template-columns: minmax(0, 1fr) 58px; gap: 22px; align-items: center; margin-top: 35px; }
.audio-player > button { width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #555550; border-radius: 50%; background: transparent; color: var(--white); cursor: pointer; transition: .2s; }
.audio-player > button:hover, .audio-player > button:focus-visible, .audio-entry.is-playing .audio-player > button { outline: 0; border-color: var(--white); background: var(--white); color: var(--black); }
.audio-player > button span { margin: 0; font-size: 14px; }.audio-waveform { position: relative; height: 52px; }.audio-waveform-bars { position: absolute; inset: 0; display: flex; align-items: center; gap: 2px; color: #4d4e49; pointer-events: none; }.audio-waveform-bars i { width: 100%; height: max(3px, var(--wave-height)); display: block; background: currentColor; }.audio-waveform-played { --played: 0%; color: var(--white); clip-path: inset(0 calc(100% - var(--played)) 0 0); }.audio-waveform input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }.audio-time { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.audio-error { margin: 12px 80px 0 0; color: #d88e82; }.audio-empty { min-height: 220px; display: grid; place-items: center; color: var(--muted); }

.bio-page { height: 100svh; overflow: hidden; }
.bio-layout { height: 100%; padding: calc(var(--header-height) + var(--playlist-height) + clamp(28px, 6vh, 70px)) var(--pad) clamp(28px, 6vh, 70px); display: grid; place-items: center; overflow: hidden; }
.bio-layout figure { float: left; width: clamp(150px, 20vw, 285px); max-height: calc(100svh - 190px); margin: 0 clamp(28px, 5vw, 78px) clamp(18px, 4vh, 38px) 0; overflow: hidden; }
.bio-layout figure img { width: 100%; max-height: inherit; aspect-ratio: 4 / 5; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.bio-layout article { display: flow-root; width: min(1100px, 100%); max-height: calc(100svh - 230px); overflow: hidden; color: #d1d0ca; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(12px, 1.25vw, 17px); line-height: 1.65; }
.bio-layout article.is-overflowing { overflow-y: auto; padding-right: 14px; scrollbar-width: thin; scrollbar-color: #555550 transparent; }
.bio-layout article > :first-child { margin-top: 0; }.bio-layout article > :last-child { margin-bottom: 0; }
.bio-layout article p { margin: 0 0 1em; }.bio-layout article h2 { margin: 0 0 .55em; color: var(--white); font-size: 3.2em; line-height: .98; font-weight: 400; letter-spacing: -.04em; }
.bio-layout article blockquote { margin: 1.2em 0; padding-left: 1.2em; border-left: 1px solid var(--line); font-style: italic; }.bio-layout article a { text-decoration: underline; text-underline-offset: 3px; }
.bio-empty { margin: 0; color: var(--muted); font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(24px, 4vw, 48px); }

.site-footer { padding: 28px var(--pad); border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.site-footer a { color: var(--white); }

.donate-dialog { width: min(520px, calc(100% - 32px)); padding: 40px; border: 1px solid #343431; background: #0b0b0b; color: var(--white); }
.donate-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(5px); }
.dialog-close { position: absolute; top: 14px; right: 18px; border: 0; color: var(--muted); background: none; font-size: 25px; cursor: pointer; }
.donate-dialog h2 { margin: 12px 0 5px; font-size: 35px; font-weight: 400; letter-spacing: -.03em; }.donate-dialog > p:not(.eyebrow) { margin: 0; color: var(--muted); }
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 30px 0 10px; }.amounts button { padding: 13px 4px; border: 1px solid var(--line); color: var(--white); background: transparent; cursor: pointer; }.amounts button.selected { color: var(--black); background: var(--white); }
.custom-amount { display: flex; align-items: center; gap: 5px; padding: 14px; border: 1px solid var(--line); }.custom-amount input { flex: 1; min-width: 0; border: 0; outline: 0; color: var(--white); background: transparent; }.donate-confirm { margin-top: 22px; }.donate-dialog small { display: block; margin-top: 10px; color: #6f6f6b; }
.support-field { display: block; margin-top: 22px; }.support-field span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }.support-field input, .support-field textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); outline: 0; resize: vertical; background: transparent; color: var(--white); }.consent-field { display: flex; align-items: center; gap: 9px; margin-top: 18px; color: #bbb; cursor: pointer; }.support-coming-soon { margin-top: 36px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.support-coming-soon p { margin: 0; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 24px; }
.book-support-banner { position: fixed; z-index: 30; right: 0; bottom: 0; left: 0; min-height: 106px; padding: 18px var(--pad); border-top: 1px solid #484843; background: rgba(14,14,13,.98); color: var(--white); box-shadow: 0 -10px 35px rgba(0,0,0,.24); transition: opacity .35s, transform .35s; }
.book-support-banner[hidden] { display: none; }
.book-support-banner.is-leaving { opacity: 0; transform: translateY(100%); }
.book-support-banner form { display: grid; grid-template-columns: minmax(220px, 1.4fr) repeat(3, minmax(145px, 1fr)) auto; align-items: end; gap: clamp(12px, 2vw, 28px); }
.book-support-copy { align-self: center; }
.book-support-copy strong, .book-support-copy span { display: block; }
.book-support-copy strong { margin-bottom: 3px; font-size: 15px; font-weight: 500; }
.book-support-copy span { max-width: 390px; color: #aeadA7; font-size: 10px; }
.book-support-banner label > span { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 5px; color: #c2c1bb; font-size: 9px; text-transform: uppercase; letter-spacing: .09em; }
.book-support-banner label b { color: #777771; font-size: 8px; font-weight: 400; }
.book-support-banner input { width: 100%; height: 34px; padding: 6px 0; border: 0; border-bottom: 1px solid #4c4c48; outline: 0; background: transparent; color: var(--white); }
.book-support-banner input:focus { border-color: var(--white); }
.book-support-banner button { height: 38px; padding: 0 16px; border: 1px solid var(--white); background: var(--white); color: var(--black); cursor: pointer; white-space: nowrap; }
.book-support-banner button:disabled { opacity: .55; cursor: wait; }
.support-honeypot { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.book-support-thanks { min-height: 69px; margin: 0; display: grid; place-items: center; font-size: clamp(18px, 2.3vw, 30px); }
.book-support-thanks[hidden] { display: none; }
body.has-book-support-banner { padding-bottom: 106px; }
body[data-active-tab="admin"] .playlist-banner, body[data-active-tab="admin"] .book-support-banner { display: none; }
body[data-active-tab="admin"] { padding-bottom: 0; }
.toast { position: fixed; z-index: 40; right: 25px; bottom: 125px; padding: 13px 18px; color: var(--black); background: var(--white); transform: translateY(100px); opacity: 0; transition: .3s; }.toast.show { transform: none; opacity: 1; }

.book-support-card { margin-top: 0; }
.book-support-row { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(220px, 1fr) minmax(180px, 1fr) auto; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid #cfcdc5; }
.book-support-row strong { font-weight: 500; }
.book-support-row span, .book-support-row time { color: #777871; }

@media (max-width: 850px) {
  :root { --header-height: 68px; }
  .site-header { height: 68px; grid-template-columns: auto 1fr; }.header-cta { display: none; }.tab-list { justify-self: end; gap: 18px; }.tab-list:has(.admin-nav-tab:not([hidden])) { margin-right: 92px; }.admin-nav-tab { height: 68px; }
  .hero { height: 100svh; min-height: 0; padding-top: calc(var(--header-height) + var(--playlist-height) + clamp(14px, 2svh, 22px)); padding-bottom: clamp(16px, 3svh, 26px); grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); align-items: start; gap: clamp(10px, 2svh, 20px); overflow: hidden; }.hero-copy h1 { margin-top: 0; font-size: clamp(48px, 15vw, 92px); }.role { margin-top: clamp(9px, 1.5svh, 16px); }.hero-location { margin-top: 5px; }.hero-bio { margin-top: clamp(8px, 1.5svh, 14px); }.portrait-wrap { width: auto; height: 100%; max-width: 74%; max-height: 100%; aspect-ratio: 1 / 1; justify-self: end; align-self: start; }.portrait-wrap img { height: calc(100% - 22px); }.scroll-cue { display: none; }
  .page-intro { grid-template-columns: 1fr; }
  .fund-grid { grid-template-columns: 1fr; }.comment-grid { grid-template-columns: 1fr; }.comment-form { grid-template-columns: 1fr; }.comment-form button { padding: 15px; }
  .page-intro { min-height: 55vh; padding-top: 140px; }.photos-page .page-intro { min-height: 40vh; padding-top: 110px; padding-bottom: 45px; }.photos-page .page-intro h1 { grid-column: auto; }.photo-entry-wide:first-child .photo-frame, .photo-entry-offset .photo-frame { width: 100%; margin-left: 0; }
  .audio-page .page-intro { min-height: 40vh; padding-top: 110px; padding-bottom: 45px; }.audio-page .page-intro h1 { grid-column: auto; }.audio-entry.has-cover .audio-entry-main { grid-template-columns: minmax(210px, .8fr) minmax(0, 1.2fr); gap: 28px; }
  .bio-layout { padding-top: calc(var(--header-height) + var(--playlist-height) + clamp(22px, 4vh, 42px)); }.bio-layout figure, .bio-layout article { max-height: calc(100svh - 190px); }
  .site-footer { gap: 15px; flex-wrap: wrap; }
}

@media (max-width: 850px) and (max-height: 600px) and (orientation: landscape) {
  .hero { padding-top: 84px; padding-bottom: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, .7fr); grid-template-rows: minmax(0, 1fr); align-items: center; gap: 24px; }
  .hero-copy h1 { font-size: clamp(42px, 9vw, 72px); }
  .role { margin-top: 10px; }
  .hero-bio { margin-top: 7px; }
  .portrait-wrap { width: 100%; height: auto; max-width: 100%; max-height: 100%; align-self: center; }
}

@media (max-width: 520px) {
  body { font-size: 12px; }.site-header { padding: 0 14px; }.wordmark i { display: none; }.tab-list { gap: 10px; }.tab { font-size: 10px; }
  .playlist-banner { padding: 0 14px; }.playlist-label { display: none; }.playlist-banner > div { max-width: calc(100% - 92px); }
  .hero { padding-left: 24px; padding-right: 24px; }.portrait-wrap { max-width: min(68%, 260px); }
  .raised-row { align-items: start; flex-direction: column; gap: 8px; }.stats { margin-top: 28px; }
  .page-intro { padding: 130px 24px 60px; }.page-intro h1 { font-size: 26vw; }.photos-page .page-intro { min-height: 320px; padding: 105px 24px 38px; }.photos-page .page-intro h1 { font-size: 21vw; }.photo-journal { padding: 35px 24px 90px; }.photo-entry { margin-bottom: 90px; }.photo-entry figcaption { grid-template-columns: 30px 1fr; }.photo-entry figcaption time { grid-column: 2; }.inline-comments { align-items: start; }
  .audio-page .page-intro { min-height: 300px; padding: 105px 24px 38px; }.audio-page .page-intro h1 { font-size: 21vw; }.audio-journal { padding: 20px 24px 80px; }.audio-entry { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }.audio-entry.has-cover .audio-entry-main { grid-template-columns: 1fr; gap: 25px; }.audio-entry-cover { max-width: 420px; }.audio-entry-main header { grid-template-columns: 1fr; gap: 12px; }.audio-meta { justify-content: start; }.audio-player { grid-template-columns: minmax(0, 1fr) 46px; gap: 14px; margin-top: 25px; }.audio-player > button { width: 46px; height: 46px; }.audio-waveform { height: 42px; }.audio-error { margin-right: 60px; }
  .bio-layout { padding: calc(var(--header-height) + var(--playlist-height) + 22px) 20px 24px; }.bio-layout figure { width: 30vw; max-height: calc(100svh - 180px); margin-right: 18px; margin-bottom: 14px; }.bio-layout article { max-height: calc(100svh - 180px); font-size: clamp(10px, 2.8vw, 13px); line-height: 1.5; }
  .story-header { padding: 84px 0 18px; }.story + .story .story-header { padding-top: 56px; }.lead-image img { height: 55vh; }.story-body { margin: 65px auto; }.story-header + .story-body { margin-top: 16px; }.story-footer { margin: 90px auto 0; flex-direction: column; }.story:not(:last-child) .story-footer { padding-bottom: 52px; }
  .site-footer span:last-child { display: none; }.donate-dialog { padding: 34px 22px; }.amounts { grid-template-columns: repeat(2, 1fr); }
}

/* Unified supporter accounts and tier-locked Writing */
.header-account { position: absolute; right: calc(var(--pad) + 105px); top: 50%; z-index: 4; padding: 9px 12px; border: 1px solid #555550; border-radius: 0; background: #050505; color: var(--white); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; transform: translateY(-50%); }
@media (min-width: 1181px) { .site-header:has(.admin-nav-tab:not([hidden])) .header-account { right: calc(var(--pad) + 230px); } }
.header-account:hover, .header-account:focus-visible { border-color: var(--white); outline: 0; }
.account-dialog { width: min(520px, calc(100% - 28px)); padding: clamp(28px, 5vw, 48px); border: 1px solid #343431; background: #0b0b0b; color: var(--white); }
.account-dialog::backdrop { background: rgba(0,0,0,.8); backdrop-filter: blur(5px); }
.account-dialog h2 { margin: 12px 0 24px; font-size: 38px; font-weight: 400; letter-spacing: -.04em; }
.account-tabs { display: flex; border-bottom: 1px solid var(--line); }
.account-tabs button { flex: 1; padding: 12px 6px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); cursor: pointer; }
.account-tabs button.is-active { border-color: var(--white); color: var(--white); }
.account-form label { display: block; margin-top: 17px; color: #aaa; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.account-form label small { float: right; color: #73736e; text-transform: none; letter-spacing: 0; }
.account-form input { display: block; width: 100%; margin-top: 7px; padding: 12px; border: 1px solid #555; outline: 0; background: #151515; color: var(--white); }
.account-form input:focus { border-color: var(--white); }
.account-form button, [data-account-signed-in] button, .account-code-card button { margin: 20px 8px 0 0; padding: 12px 18px; border: 1px solid var(--white); border-radius: 0; background: var(--white); color: var(--black); cursor: pointer; }
.account-email { overflow-wrap: anywhere; font-size: 18px; }.account-tier { color: var(--muted); }.account-tier strong { color: var(--white); }
.account-upgrade { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }.account-upgrade p { margin: 0; color: var(--muted); }.account-upgrade p strong { color: var(--white); }.account-upgrade button { margin-top: 12px; }
.account-code-card { margin-top: 24px; padding: 18px; border: 1px solid #8e7a38; background: #1d1a10; }.account-code-card code { display: block; margin: 12px 0; font-size: 17px; letter-spacing: .08em; overflow-wrap: anywhere; }.account-code-card p { color: #c7bd9b; }
.chapter-tier-badge { display: inline-block; margin-left: 12px; padding: 4px 7px; border: 1px solid currentColor; border-radius: 0; color: #aaa9a2; font: 500 9px/1 Aptos, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; vertical-align: middle; }.chapter-tier-badge.is-locked::before { content: '●'; margin-right: 5px; font-size: 6px; }
.writing-reader-page > header .chapter-tier-badge { margin: 0 0 16px; }
.chapter-paywall { margin: 55px 0 10px; padding: clamp(26px, 5vw, 48px); border: 1px solid #55554f; background: #11110f; font-family: Aptos, "Segoe UI", sans-serif; }.chapter-paywall > span { color: #aaa9a2; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }.chapter-paywall h2 { margin: 12px 0; font-size: clamp(26px, 4vw, 42px); line-height: 1.05; font-weight: 400; }.chapter-paywall p { color: #aaa9a2; }.chapter-paywall button { margin: 12px 8px 0 0; padding: 12px 18px; border: 1px solid var(--white); background: var(--white); color: var(--black); cursor: pointer; }
.chapter-access-inspector { width: 100%; border-bottom: 1px solid #c4c4bf; background: #ececea; }.chapter-access-inspector > summary { min-height: 42px; display: flex; align-items: center; gap: 9px; padding: 9px 18px; color: #555; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .09em; cursor: pointer; list-style: none; }.chapter-access-inspector > summary::-webkit-details-marker { display: none; }.chapter-access-inspector > summary strong { margin-left: auto; color: #222; font-size: 10px; }.chapter-access-inspector > summary i { font-style: normal; transition: transform .18s ease; }.chapter-access-inspector[open] > summary { border-bottom: 1px solid #d2d1cc; }.chapter-access-inspector[open] > summary i { transform: rotate(180deg); }.chapter-access-controls { width: 100%; display: flex; align-items: end; gap: 12px; padding: 10px 18px 14px; background: #ececea; }.chapter-access-controls label span { display: block; margin-bottom: 4px; color: #666; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.chapter-access-controls select, .chapter-access-controls button { min-height: 34px; padding: 7px 10px; border: 1px solid #aaa; background: #fff; color: #222; }.chapter-access-controls button { cursor: pointer; }.chapter-access-controls button:disabled { opacity: .45; cursor: default; }.chapter-access-controls small { max-width: 390px; color: #777; }
.preview-break-divider { position: relative; clear: both; margin: 34px 0 !important; border-top: 2px dashed #9a6c18; color: #77500d; text-align: center; cursor: default; }.preview-break-divider span { position: relative; top: -.8em; margin: 0 !important; padding: 3px 9px; background: #fff; font: 600 9px/1 Aptos, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.security-form + .security-form { margin-top: 20px; }.security-form output { display: block; margin-top: 16px; padding: 12px; overflow-wrap: anywhere; background: #dedcd5; font-family: monospace; }
@media (max-width: 1180px) { .header-account { right: calc(var(--pad) + 76px); }.chapter-access-controls { flex-wrap: wrap; }.chapter-access-controls small { flex: 1 0 100%; } }
@media (max-width: 520px) { .header-account { right: 90px; max-width: 105px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.account-dialog { padding: 28px 20px; }.chapter-tier-badge { display: block; width: max-content; margin: 7px 0 0; }.chapter-access-controls { align-items: stretch; flex-direction: column; }.chapter-paywall button { width: 100%; } }

@media (max-width: 900px) {
  .book-support-banner { padding: 14px 18px; }
  .book-support-banner form { grid-template-columns: 1fr 1fr 1fr; gap: 10px 14px; }
  .book-support-copy { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; }
  .book-support-copy strong { margin: 0; }
  .book-support-copy span { max-width: none; }
  .book-support-banner button { align-self: end; }
  body.has-book-support-banner { padding-bottom: 142px; }
  .toast { bottom: 160px; }
}

@media (max-width: 600px) {
  .book-support-banner form { grid-template-columns: 1fr 1fr; }
  .book-support-copy { display: block; }.book-support-copy span { margin-top: 2px; }
  .book-support-banner label:nth-of-type(3) { grid-column: 1 / 2; }
  .book-support-banner button { grid-column: 2; }
  body.has-book-support-banner { padding-bottom: 196px; }
  body.has-book-support-banner .hero { height: calc(100svh - 196px); }
  .toast { right: 14px; bottom: 210px; }
  .book-support-row { grid-template-columns: 1fr; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* Fund journal */
.empty-public { grid-column: 1 / -1; color: var(--muted); padding: 24px 0; }
.fund-status > .stats { margin-top: 45px; }
.published-story-list:empty { display: none; }

/* Author studio */
.admin-page { min-height: 100vh; padding-top: 82px; background: #e9e7e0; color: #161714; color-scheme: light; }
.admin-page ::selection { background: #b9d8ff; color: #161714; }
.admin-page button, .admin-page input, .admin-page textarea, .admin-page select { color: inherit; }
.admin-auth { min-height: calc(100vh - 82px); display: grid; place-items: center; padding: 40px 20px; background: #11120f; color: #f4f3ef; }
.auth-card { width: min(440px, 100%); padding: 48px; border: 1px solid #353630; background: #171815; }
.admin-mark { display: flex; align-items: center; gap: 9px; width: max-content; font-weight: 700; letter-spacing: .11em; }
.admin-mark i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.auth-card .eyebrow { margin-top: 58px; }
.auth-card .admin-mark + h1 { margin-top: 58px; }
.auth-card h1 { margin: 13px 0 8px; font-size: 38px; font-weight: 400; letter-spacing: -.04em; }
.auth-card > p:not(.eyebrow) { margin: 0 0 32px; color: #a5a59e; }
.auth-card label, .security-form label { display: block; margin: 18px 0; }
.auth-card label[hidden] { display: none !important; }
.auth-card label span, .security-form label span, .field span { display: block; margin-bottom: 7px; color: #93948d; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.auth-card input { width: 100%; padding: 13px 0; border: 0; border-bottom: 1px solid #42433d; outline: none; color: #fff; background: transparent; }
.auth-card small { display: block; margin-top: 22px; color: #72736d; line-height: 1.5; }
.primary-admin-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 35px; padding: 13px 17px; border: 1px solid #161714; background: #161714; color: #f5f3ec !important; cursor: pointer; }
.auth-card .primary-admin-button { width: 100%; margin-top: 14px; border-color: #f4f3ef; background: #f4f3ef; color: #111 !important; }
.admin-shell { min-height: calc(100vh - 82px); display: grid; grid-template-columns: 235px 1fr; }
.admin-shell[hidden], .admin-auth[hidden] { display: none; }
.admin-sidebar { position: sticky; top: 82px; height: calc(100vh - 82px); display: flex; flex-direction: column; justify-content: space-between; padding: 36px 28px 25px; border-right: 1px solid #cbc9c1; background: #dedcd4; }
.admin-sidebar > div p { margin: 10px 0 55px; color: #787972; font-size: 10px; }
.admin-sidebar nav { display: grid; gap: 4px; }
.admin-sidebar nav button { display: flex; justify-content: space-between; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: #6f706a; text-align: left; cursor: pointer; }
.admin-sidebar nav button:hover, .admin-sidebar nav button.is-active { background: #cfcdbf; color: #161714; }
.admin-sidebar nav button span:not(:empty) { min-width: 20px; padding: 1px 5px; border-radius: 10px; background: #b84b38; color: white; font-size: 9px; text-align: center; }
.admin-logout { padding: 10px 0; border: 0; border-bottom: 1px solid #aaa89f; background: transparent; color: #656660 !important; text-align: left; cursor: pointer; }
.admin-workspace { min-width: 0; padding: 0 clamp(28px, 5vw, 75px) 90px; }
.admin-topbar { height: 115px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #cbc9c1; }
.admin-topbar h1 { margin: 5px 0 0; font-size: 24px; font-weight: 400; }
.admin-topbar button, .admin-card-heading button, .filter-tabs button { border: 0; border-bottom: 1px solid #8c8d85; padding: 5px 0; background: transparent; cursor: pointer; }
.admin-section { padding-top: 48px; }
.admin-section[hidden] { display: none; }
.overview-hero { padding: clamp(35px, 6vw, 75px); background: #171815; color: #f4f3ef; }
.overview-hero h2 { max-width: 700px; margin: 18px 0 16px; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: clamp(42px, 6vw, 75px); line-height: .98; font-weight: 400; letter-spacing: -.05em; }
.overview-hero > p:not(.eyebrow) { max-width: 450px; color: #a8a9a1; }
.overview-hero .primary-admin-button { margin-top: 25px; border-color: #f4f3ef; background: #f4f3ef; color: #111 !important; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid #c7c5bd; border-top: 0; }
.admin-stat { padding: 24px; border-right: 1px solid #c7c5bd; }
.admin-stat:last-child { border: 0; }
.admin-stat strong { display: block; font-size: 29px; font-weight: 400; }
.admin-stat span { color: #74756e; }
.admin-card { margin-top: 35px; padding: 28px; border: 1px solid #c7c5bd; background: #eeece6; }
.admin-card-heading, .admin-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 26px; }
.admin-card-heading h2, .admin-toolbar h2 { margin: 5px 0 0; font-size: 32px; font-weight: 400; letter-spacing: -.03em; }
.admin-list-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 25px; padding: 16px 0; border-top: 1px solid #d1cfc7; }
.admin-list-row h3 { margin: 0 0 3px; font-size: 14px; font-weight: 500; }.admin-list-row p { margin: 0; color: #777871; }
.status-pill { padding: 4px 8px; border: 1px solid #b8b6ae; border-radius: 20px; color: #6a6b65; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.status-pill.published, .status-pill.visible { border-color: #7e9a76; color: #476a42; background: #dfe8da; }
.text-button { border: 0; border-bottom: 1px solid #8c8d85; padding: 4px 0; background: transparent; cursor: pointer; }
.admin-lede { max-width: 590px; margin: -10px 0 35px; color: #70716b; }
.story-manager { min-height: 700px; border: 1px solid #c7c5bd; background: #eeece6; }
.story-library { max-height: 280px; overflow-y: auto; border-bottom: 1px solid #c7c5bd; background: #dedcd4; }
.library-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; width: 100%; padding: 17px 22px; border: 0; border-bottom: 1px solid #c7c5bd; background: transparent; text-align: left; cursor: pointer; }
.library-item:last-child { border-bottom: 0; }
.library-item.is-active { background: #cfcdbf; }.library-item strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }.library-item span { color: #7c7d76; font-size: 10px; white-space: nowrap; }
.story-editor-empty { min-height: 260px; display: grid; align-content: center; justify-items: center; color: #898a83; text-align: center; }.story-editor-empty[hidden] { display: none; }.story-editor-empty h3 { font-weight: 400; }
.story-editor { width: 100%; padding: clamp(35px, 6vw, 80px); background: #e5e4df; }
.story-editor[hidden] { display: none; }
.editor-actions { display: flex; justify-content: space-between; gap: 15px; padding-bottom: 25px; border-bottom: 1px solid #d0cec6; }
.editor-actions > div { display: flex; gap: 8px; }
.secondary-admin-button, .danger-button { padding: 10px 14px; border: 1px solid #a9a79f; background: transparent; cursor: pointer; }.danger-button { color: #9e4034 !important; }
.story-state { display: inline-flex; align-items: center; gap: 7px; min-height: 30px; padding: 6px 10px; border: 1px solid rgba(0,0,0,.08); border-radius: 999px; background: rgba(255,255,255,.58); color: #656661; font: 500 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.story-state i { width: 7px; height: 7px; border-radius: 50%; background: #a0a19c; }
.story-state.published { border-color: rgba(52,120,64,.12); background: rgba(231,243,229,.72); color: #376440; }.story-state.published i { background: #62a66b; }
.story-title-field { display: block; margin: 38px 0 18px; }.story-title-field > span { display: block; margin-bottom: 8px; color: #686963; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.story-editor .title-input { width: 100%; padding: 22px 26px; border: 1px solid rgba(0,0,0,.13); border-radius: 8px; outline: 0; resize: vertical; background: #fff; color: #171815; caret-color: #0a84ff; font-family: var(--story-title-font, Georgia, serif); font-size: clamp(24px, 5vw, var(--story-title-size, 58px)); line-height: var(--story-title-leading, .92); font-style: var(--story-title-style, italic); font-weight: var(--story-title-weight, 400); letter-spacing: var(--story-title-tracking, -.045em); text-align: var(--story-title-align, left); box-shadow: 0 1px 3px rgba(0,0,0,.04); transition: border-color .15s, box-shadow .15s; }
.story-editor .title-input::placeholder { color: #8b8c86; opacity: 1; }
.story-introduction { margin-bottom: 18px; }
.editor-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 25px 0; }
.field { display: block; width: 100%; }
.field input, .field textarea, .field select, .security-form input { display: block; width: 100%; padding: 12px; border: 1px solid #85877f; outline: 0; background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus, .security-form input:focus { border-color: #2b579a; box-shadow: 0 0 0 3px rgba(43, 87, 154, .2); }
.story-editor .title-input:focus { border-color: rgba(10,132,255,.7); box-shadow: 0 0 0 3px rgba(10,132,255,.12), 0 1px 3px rgba(0,0,0,.04); }
.story-content-editor { width: min(100%, 816px); min-height: 760px; margin: 0 auto; padding: clamp(36px, 7vw, 86px); border: 1px solid #9a9c95; outline: none; background: #fff; box-shadow: 0 4px 18px rgba(42, 42, 38, .18); font-family: var(--story-body-font, Aptos, "Segoe UI", Helvetica, Arial, sans-serif); font-size: var(--story-body-size, 17px); line-height: var(--story-body-leading, 1.8); letter-spacing: var(--story-body-tracking, 0); transition: border-color .15s, box-shadow .15s; }
.story-content-editor:focus { border-color: rgba(10,132,255,.55); box-shadow: 0 0 0 3px rgba(10,132,255,.1), 0 4px 18px rgba(42, 42, 38, .16); }
.format-toolbar { position: sticky; top: 90px; z-index: 2; width: min(100%, 816px); margin: 0 auto 8px; display: flex; flex-wrap: wrap; gap: 6px; padding: 7px; border: 1px solid rgba(0,0,0,.12); border-radius: 10px; background: rgba(246,246,244,.94); box-shadow: 0 4px 14px rgba(0,0,0,.08); backdrop-filter: blur(16px); }
.toolbar-group { display: flex; gap: 2px; padding-right: 6px; border-right: 1px solid rgba(0,0,0,.1); }.toolbar-group:last-child { padding-right: 0; border-right: 0; }
.format-toolbar button { min-width: 32px; min-height: 30px; padding: 5px 8px; border: 0; border-radius: 6px; background: transparent; color: #343532; font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }.format-toolbar button:hover { background: rgba(0,0,0,.06); }.format-toolbar button.is-active { background: rgba(10,132,255,.14); color: #075eae; }
.format-toolbar .rich-style-controls { flex: 1 1 100%; display: grid; grid-template-columns: minmax(120px, 1.4fr) repeat(4, minmax(92px, 1fr)); gap: 6px; padding: 7px 0 0; border-top: 1px solid rgba(0,0,0,.1); border-right: 0; }.rich-style-controls label { min-width: 0; }.rich-style-controls label span { display: block; margin: 0 0 4px 2px; color: #6e6f69; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.rich-style-controls input, .rich-style-controls select { width: 100%; height: 32px; padding: 5px 7px; border: 1px solid rgba(0,0,0,.16); border-radius: 5px; outline: 0; background: #fff; color: #343532; font: 500 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.rich-style-controls input:focus, .rich-style-controls select:focus { border-color: rgba(10,132,255,.65); box-shadow: 0 0 0 2px rgba(10,132,255,.1); }.rich-style-controls input::placeholder { color: #888983; opacity: 1; }
.rich-style-controls input[hidden] { display: none; }
.toolbar-group:nth-child(5) button:nth-child(2) { text-align: center; }.toolbar-group:nth-child(5) button:nth-child(3) { text-align: right; }
.story-content-editor p { margin: 0 0 var(--story-paragraph-space, 1.2em); }.story-content-editor p[data-spacer] { min-height: calc(var(--story-body-leading, 1.8) * 1em); }.story-content-editor h2 { margin: 1.7em 0 .65em; font-size: 1.55em; line-height: 1.25; }.story-content-editor blockquote { margin: 2em; font-size: 23px; font-style: italic; }.story-content-editor ul, .story-content-editor ol { margin: 0 0 var(--story-paragraph-space, 1.2em); padding-left: 1.7em; }.story-content-editor a { color: #225fae; text-decoration: underline; }
.typography-controls { width: min(100%, 816px); margin: 16px auto 22px; padding: 14px 16px 16px; border: 1px solid rgba(0,0,0,.13); border-radius: 8px; display: grid; grid-template-columns: repeat(5, minmax(105px, 1fr)); gap: 12px; background: rgba(255,255,255,.55); }.typography-controls legend { padding: 0 6px; color: #686963; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }.typography-controls label span { display: block; margin-bottom: 6px; color: #686963; font-size: 9px; }.typography-controls input, .typography-controls select { width: 100%; min-height: 36px; padding: 7px 8px; border: 1px solid #bbb9b1; border-radius: 5px; background: #fff; color: #282925; }
.story-content-editor [data-align="left"], .story-body [data-align="left"] { text-align: left; }.story-content-editor [data-align="center"], .story-body [data-align="center"] { text-align: center; }.story-content-editor [data-align="right"], .story-body [data-align="right"] { text-align: right; }.story-content-editor [data-align="justify"], .story-body [data-align="justify"] { text-align: justify; }
.story-content-editor figure, .story-body figure { width: 100%; max-width: 100%; margin: 2.5em auto; text-align: left; }
.story-content-editor figure[data-width="75"], .story-body figure[data-width="75"] { width: 75%; }.story-content-editor figure[data-width="50"], .story-body figure[data-width="50"] { width: 50%; }.story-content-editor figure[data-width="33"], .story-body figure[data-width="33"] { width: 33%; }
.story-content-editor figure[data-align="left"], .story-body figure[data-align="left"] { margin-left: 0; margin-right: auto; }.story-content-editor figure[data-align="center"], .story-body figure[data-align="center"] { margin-left: auto; margin-right: auto; }.story-content-editor figure[data-align="right"], .story-body figure[data-align="right"] { margin-left: auto; margin-right: 0; }
.story-content-editor figure img, .story-body figure img { display: block; width: 100%; height: auto; border-radius: 2px; filter: grayscale(1); }
.story-content-editor figcaption, .story-body figcaption { margin-top: 10px; color: #777872; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 11px; line-height: 1.45; letter-spacing: .01em; text-align: inherit; }
.story-content-editor figure { position: relative; padding: 4px; border-radius: 5px; outline: 1px solid transparent; cursor: default; transition: outline-color .15s, background .15s; }.story-content-editor figure:hover { outline-color: rgba(10,132,255,.22); }.story-content-editor figure.is-selected { outline-color: rgba(10,132,255,.72); background: rgba(10,132,255,.035); }.story-content-editor figcaption { min-height: 1.45em; outline: none; cursor: text; }.story-content-editor figcaption:empty::before { content: attr(data-placeholder); color: #aaa; }
.editor-info { width: min(100%, 816px); margin: 0 auto; display: flex; justify-content: flex-end; }.editor-info [data-word-count] { color: #686963; font-size: 10px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.admin-photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; }
.admin-photo-card { border: 1px solid #c2c0b8; background: #eeece6; }
.admin-photo-card img { aspect-ratio: 4/3; object-fit: cover; filter: grayscale(1); }
.admin-photo-fields { padding: 20px; }.admin-photo-fields .field { margin-bottom: 14px; }.admin-photo-actions { display: flex; justify-content: space-between; align-items: center; }
.upload-button { cursor: pointer; }.upload-button input { display: none; }
.replace-button { display: inline-block; margin-bottom: 18px; cursor: pointer; }.replace-button input { display: none; }.admin-photo-actions button:disabled { opacity: .3; cursor: default; }
.filter-tabs { display: flex; gap: 18px; }.filter-tabs button { color: #85867f; }.filter-tabs button.is-active { color: #111; border-color: #111; }
.comment-admin-card { display: grid; grid-template-columns: 1fr auto; gap: 25px; padding: 24px 0; border-top: 1px solid #c4c2ba; }.comment-admin-card:first-child { border-top: 0; }.comment-admin-card blockquote { margin: 10px 0 0; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 19px; }.comment-meta { display: flex; gap: 9px; color: #777871; }.comment-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; justify-content: end; }
.photo-comment-moderation { margin-top: 24px; padding-top: 18px; border-top: 1px solid #c4c2ba; }.photo-comment-moderation > header { display: flex; justify-content: space-between; gap: 16px; color: #777871; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }.photo-comment-moderation > header strong { color: #33342f; }.photo-comment-moderation .comment-admin-card { grid-template-columns: 1fr; gap: 12px; padding: 18px 0; }.photo-comment-moderation .comment-admin-card blockquote { font-size: 15px; line-height: 1.45; }.photo-comment-moderation .comment-controls { justify-content: start; }
.homepage-settings, .security-form { max-width: 816px; margin: 0; }.homepage-settings { padding: clamp(30px, 5vw, 64px); background: #fff; box-shadow: 0 4px 18px rgba(42, 42, 38,.14); }.homepage-settings .field { margin-bottom: 22px; }.homepage-settings textarea { min-height: 360px; padding: clamp(24px, 4vw, 48px); resize: vertical; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 16px; line-height: 1.8; }.homepage-settings .primary-admin-button, .security-form .primary-admin-button { margin-top: 15px; }.security-form h3 { margin-top: 0; font-size: 24px; font-weight: 400; }
.admin-audio-list { display: grid; gap: 18px; }.admin-audio-card { display: grid; grid-template-columns: 72px minmax(0, 1fr); border: 1px solid #c5c3bb; background: #eeece6; }.admin-audio-order { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 24px 12px; border-right: 1px solid #cfcdc5; color: #777871; }.admin-audio-order strong { margin-bottom: 8px; font-variant-numeric: tabular-nums; }.admin-audio-order button { width: 32px; padding: 6px; }.admin-audio-order button:disabled { opacity: .3; cursor: default; }.admin-audio-fields { min-width: 0; padding: clamp(22px, 4vw, 42px); }.admin-audio-heading { display: flex; justify-content: space-between; gap: 15px; margin-bottom: 24px; color: #777871; font-size: 10px; }.admin-audio-fields .field { display: block; margin: 18px 0; }.admin-audio-fields audio { width: 100%; margin: 22px 0; }.audio-metadata-controls { display: flex; flex-wrap: wrap; gap: 12px 24px; margin: 24px 0; padding: 18px; border: 1px solid #cfcdc5; }.audio-metadata-controls legend { padding: 0 8px; color: #777871; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.audio-metadata-controls label { display: flex; align-items: center; gap: 7px; }
.admin-audio-cover-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 22px; align-items: center; margin: 0 0 25px; }.admin-audio-cover { width: 190px; aspect-ratio: 1 / 1; display: grid; place-items: center; overflow: hidden; border: 1px solid #cfcdc5; background: #e3e1da; color: #777871; }.admin-audio-cover img { width: 100%; height: 100%; object-fit: cover; }.admin-audio-cover.is-grayscale img { filter: grayscale(1); }.admin-audio-cover p { padding: 18px; text-align: center; }.admin-audio-cover-row > div:last-child { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 9px; }.admin-audio-cover-row .replace-button { margin: 0; }.admin-audio-cover-row small { width: 100%; color: #777871; }.audio-image-option { width: 100%; display: flex; align-items: center; gap: 8px; margin-top: 5px; color: #555650; font-size: 11px; }.admin-audio-cover-row button:disabled { opacity: .35; cursor: default; }.admin-waveform-preview { height: 56px; display: flex; align-items: center; gap: 2px; padding: 7px 0; color: #777871; }.admin-waveform-preview i { width: 100%; height: max(3px, var(--wave-height)); display: block; background: currentColor; }.waveform-status { display: block; color: #777871; }
.bio-settings { width: min(816px, 100%); padding: clamp(28px, 5vw, 58px); background: #fff; box-shadow: 0 4px 18px rgba(42,42,38,.14); }.bio-image-editor { width: min(260px, 100%); aspect-ratio: 4 / 5; display: grid; place-items: center; overflow: hidden; border: 1px solid #cfcdc5; background: #e6e4dc; color: #777871; }.bio-image-editor img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }.bio-image-editor p { padding: 20px; text-align: center; }.bio-image-actions { display: flex; gap: 10px; margin: 14px 0 26px; }.bio-image-actions button:disabled { opacity: .35; cursor: default; }.bio-settings > .field { display: block; margin: 24px 0; }.bio-toolbar { width: 100%; margin: 30px 0 0; border-radius: 0; }.bio-content-editor { min-height: 360px; padding: clamp(24px, 4vw, 46px); border: 1px solid #bbb9b1; border-top: 0; outline: 0; background: #faf9f5; font: 16px/1.75 Aptos, "Segoe UI", Helvetica, Arial, sans-serif; }.bio-content-editor:focus { border-color: #85867f; box-shadow: inset 0 0 0 1px #85867f; }.bio-content-editor h2 { font-size: 32px; line-height: 1.1; font-weight: 400; }.bio-editor-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }.bio-editor-footer > span { color: #777871; font-variant-numeric: tabular-nums; }.bio-editor-footer > span.over-limit { color: #b84b38; font-weight: 600; }
.local-note { max-width: 590px; margin-top: 28px; padding: 20px; border-left: 3px solid #aaa89f; color: #6d6e68; }.local-note p { margin: 6px 0 0; }

@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 180px 1fr; }.admin-sidebar { padding-left: 18px; padding-right: 18px; }.admin-stats { grid-template-columns: repeat(2,1fr); }.admin-stat:nth-child(2) { border-right: 0; }.admin-photo-grid { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .admin-nav-tab { display: none; }.tab-list:has(.admin-nav-tab:not([hidden])) { margin-right: 0; }.admin-page { padding-top: 68px; }.admin-shell { display: block; }.admin-sidebar { position: static; width: 100%; height: auto; padding: 18px; border-right: 0; border-bottom: 1px solid #bbb9b1; }.admin-sidebar > div p, .admin-logout { display: none; }.admin-sidebar nav { display: flex; margin-top: 15px; overflow-x: auto; }.admin-sidebar nav button { width: auto; white-space: nowrap; }.admin-workspace { padding: 0 18px 60px; }.admin-topbar { height: 90px; }.admin-topbar button { display: none; }.story-library { max-height: 240px; }.library-item { border-right: 0; }.story-editor { padding: 22px; }.story-content-editor { min-height: 480px; padding: 22px; }.editor-actions { align-items: flex-start; flex-direction: column; }.editor-actions > div { width: 100%; flex-wrap: wrap; }.editor-meta { grid-template-columns: 1fr; }.admin-stats { grid-template-columns: 1fr 1fr; }.comment-admin-card { grid-template-columns: 1fr; }.comment-controls { justify-content: start; }.auth-card { padding: 32px 24px; }
}
@media (max-width: 650px) { .admin-audio-card { grid-template-columns: 48px minmax(0,1fr); }.admin-audio-order { padding: 20px 6px; }.admin-audio-fields { padding: 20px; }.admin-audio-cover-row { grid-template-columns: 1fr; }.admin-audio-cover { width: min(230px, 100%); }.bio-toolbar { overflow-x: auto; flex-wrap: nowrap; }.bio-image-actions { flex-wrap: wrap; } }
@media (max-width: 760px) { .typography-controls { grid-template-columns: 1fr 1fr; }.typography-controls label:first-of-type { grid-column: 1 / -1; } }
@media (max-width: 760px) { .format-toolbar .rich-style-controls { grid-template-columns: 1fr 1fr; }.rich-style-controls label:first-child { grid-column: 1 / -1; } }

/* Integrated writing workspace */
[data-section-panel="stories"] > .admin-toolbar { margin-bottom: 18px; }
.story-manager { min-height: 780px; display: grid; grid-template-columns: 230px minmax(0, 1fr); align-items: stretch; overflow: hidden; border: 1px solid #aaa9a4; border-radius: 14px; background: #d8d8d5; box-shadow: 0 18px 55px rgba(42,42,38,.16), 0 2px 8px rgba(42,42,38,.08); transition: grid-template-columns .24s cubic-bezier(.2,.8,.2,1); }.story-manager.sidebar-collapsed { grid-template-columns: 48px minmax(0,1fr); }
.story-library { grid-column: 1; grid-row: 1; max-height: none; min-height: 780px; overflow-y: auto; border: 0; border-right: 1px solid #b7b7b2; background: linear-gradient(180deg, #e7e7e3, #d9d9d4); }
.story-library-header { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; border-bottom: 1px solid rgba(0,0,0,.1); background: rgba(237,237,233,.92); color: #5f605b; font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; backdrop-filter: blur(14px); }.story-library-header small { min-width: 21px; padding: 4px 6px; border-radius: 99px; background: rgba(0,0,0,.07); color: #73746e; text-align: center; font-size: 9px; }
.story-library-header button { width: 28px; height: 28px; flex: 0 0 28px; display: grid; place-items: center; margin-left: 5px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #6f706a; cursor: pointer; transition: background .15s, color .15s; }.story-library-header button:hover, .story-library-header button:focus-visible { outline: 0; background: rgba(255,255,255,.8); color: #0a84ff; }.story-library-header button i { position: relative; width: 15px; height: 13px; display: block; border: 1.5px solid currentColor; border-radius: 2px; }.story-library-header button i::before { content: ''; position: absolute; top: 0; bottom: 0; left: 4px; border-left: 1px solid currentColor; }.story-library-header button i::after { content: ''; position: absolute; top: 4px; right: 2px; width: 3px; height: 3px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.sidebar-collapsed .story-library-header { justify-content: center; padding: 0; }.sidebar-collapsed .story-library-header > span, .sidebar-collapsed .story-library-header > small, .sidebar-collapsed .story-library > .library-item, .sidebar-collapsed .story-library > .empty-public { display: none; }.sidebar-collapsed .story-library-header button { margin: 0; }.sidebar-collapsed .story-library-header button i::after { transform: rotate(225deg); }
.library-item { display: block; padding: 16px; border: 0; border-bottom: 1px solid rgba(0,0,0,.075); border-left: 3px solid transparent; transition: background .15s, border-color .15s; }.library-item:hover { background: rgba(255,255,255,.42); }.library-item.is-active { border-left-color: #0a84ff; background: rgba(255,255,255,.72); }.library-item strong { display: block; margin-bottom: 6px; color: #292a27; font: 600 12px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.library-item span { display: block; color: #858680; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: capitalize; }
.story-editor-empty { grid-column: 2; grid-row: 1; min-height: 780px; background: #d8d8d5; }.story-editor { grid-column: 2; grid-row: 1; min-width: 0; padding: 0; background: #d8d8d5; }
.editor-actions { min-height: 54px; align-items: center; justify-content: flex-start; gap: 12px; padding: 8px 12px; border-bottom: 1px solid #b8b8b4; background: linear-gradient(#f5f5f3, #e8e8e5); box-shadow: inset 0 1px rgba(255,255,255,.8); }.editor-actions > div { margin-left: auto; align-items: center; }.window-controls { display: inline-flex; gap: 7px; padding: 0 3px; }.window-controls i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }.window-controls i:nth-child(2) { background: #febc2e; }.window-controls i:nth-child(3) { background: #28c840; }
.story-editor .editor-actions .secondary-admin-button, .story-editor .editor-actions .danger-button, .story-editor .editor-actions .primary-admin-button { min-height: 32px; padding: 7px 11px; border-radius: 7px; font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.story-editor .editor-actions .primary-admin-button { background: #147ce5; }.story-editor .editor-actions .danger-button { border-color: transparent; }
.story-state { min-height: 28px; padding: 5px 9px; background: rgba(255,255,255,.52); }
.story-editor .format-toolbar { position: sticky; top: 0; z-index: 5; width: 100%; margin: 0; padding: 9px 12px 10px; border: 0; border-bottom: 1px solid #b8b8b4; border-radius: 0; gap: 5px; background: rgba(244,244,242,.96); box-shadow: 0 4px 12px rgba(0,0,0,.08); backdrop-filter: blur(20px); }
.format-toolbar .toolbar-group { align-items: center; }.format-toolbar button { border: 1px solid transparent; }.format-toolbar button:hover { border-color: rgba(0,0,0,.06); background: #fff; }.format-toolbar button.is-active { border-color: rgba(10,132,255,.12); background: #dceeff; }
.toolbar-image-button { position: relative; min-height: 30px; display: inline-flex; align-items: center; padding: 5px 8px; border: 1px solid transparent; border-radius: 6px; color: #343532; font: 500 12px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }.toolbar-image-button:hover { border-color: rgba(0,0,0,.06); background: #fff; }.toolbar-image-button.is-loading { opacity: .55; pointer-events: none; }.toolbar-image-button.is-loading::after { content: '…'; }.toolbar-image-button input { position: absolute; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }
.image-toolbar-group select { width: 67px; height: 30px; padding: 4px 20px 4px 6px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; background: #fff; color: #343532; font: 500 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.image-toolbar-group select:disabled { opacity: .4; background: rgba(255,255,255,.45); }
.block-style-control select { width: 112px; height: 30px; padding: 5px 25px 5px 8px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; background: #fff; color: #343532; font: 600 11px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.format-toolbar .rich-style-controls { order: 2; grid-template-columns: minmax(120px, 1.25fr) repeat(4, minmax(90px, 1fr)); }.rich-style-controls label span { letter-spacing: .015em; text-transform: none; }
.title-inspector { position: relative; order: 3; margin-left: auto; font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }.title-inspector summary { min-height: 30px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; background: #fff; color: #4c4d49; cursor: pointer; list-style: none; }.title-inspector summary::-webkit-details-marker { display: none; }.title-inspector[open] summary { border-color: rgba(10,132,255,.45); box-shadow: 0 0 0 2px rgba(10,132,255,.08); }.title-inspector-panel { position: absolute; top: calc(100% + 8px); right: 0; z-index: 20; width: min(520px, calc(100vw - 80px)); margin: 0; padding: 16px; grid-template-columns: repeat(4, minmax(92px, 1fr)); border: 1px solid rgba(0,0,0,.18); border-radius: 11px; background: rgba(250,250,248,.98); box-shadow: 0 18px 45px rgba(0,0,0,.2); backdrop-filter: blur(20px); }.title-inspector-panel legend { display: none; }
.document-sheet { width: min(760px, calc(100% - 72px)); min-height: 920px; margin: 38px auto 70px; padding: 68px clamp(48px, 8vw, 86px) 90px; background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,.14), 0 18px 45px rgba(0,0,0,.11); }
.document-sheet .story-title-field { margin: 0 0 22px; }.document-sheet .story-title-field > span { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }.document-sheet .title-input { min-height: 120px; padding: 0; border: 0; border-radius: 0; resize: none; background: transparent; box-shadow: none; }.document-sheet .title-input:focus { border: 0; box-shadow: none; }
.document-sheet .story-introduction { margin: 0 0 34px; }.document-sheet .story-introduction > span { color: #9a9a94; font: 600 9px/1 Aptos, "Segoe UI", sans-serif; letter-spacing: .12em; }.document-sheet .story-introduction textarea { min-height: 72px; padding: 13px 0; border: 0; border-top: 1px solid #e0e0dc; border-bottom: 1px solid #e0e0dc; resize: vertical; background: transparent; color: #555650; font: italic 15px/1.65 Aptos, "Segoe UI", Helvetica, Arial, sans-serif; }.document-sheet .story-introduction textarea:focus { border-color: #a9ccef; box-shadow: none; }
.document-sheet .editor-info { width: 100%; margin: 0 0 16px; padding-bottom: 9px; border-bottom: 1px solid #eeeeeb; }.document-sheet .story-content-editor { width: 100%; min-height: 580px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }.document-sheet .story-content-editor:focus { border: 0; box-shadow: none; }
.story-content-editor h3, .story-body h3 { margin: 2em 0 .7em; font-family: Aptos, "Segoe UI", Helvetica, Arial, sans-serif; font-size: 1.25em; line-height: 1.3; font-weight: 500; letter-spacing: -.012em; }.story-content-editor sub, .story-content-editor sup, .story-body sub, .story-body sup { font-size: .7em; line-height: 0; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }

@media (max-width: 1050px) { .story-manager { grid-template-columns: 190px minmax(0,1fr); }.document-sheet { width: calc(100% - 40px); padding-left: 44px; padding-right: 44px; } }
@media (max-width: 760px) { .story-manager { display: block; min-height: 0; }.story-library { min-height: 0; max-height: 190px; border-right: 0; border-bottom: 1px solid #b7b7b2; transition: max-height .24s cubic-bezier(.2,.8,.2,1); }.sidebar-collapsed .story-library { max-height: 54px; }.story-editor-empty { min-height: 360px; }.editor-actions { flex-direction: row; align-items: center; flex-wrap: wrap; }.editor-actions > div { width: auto; margin-left: auto; }.story-state { order: 2; }.story-editor .format-toolbar { top: 0; overflow: visible; }.format-toolbar .rich-style-controls { grid-template-columns: minmax(58px,1.25fr) repeat(4,minmax(43px,1fr)); gap: 3px; }.rich-style-controls label:first-child { grid-column: auto; }.rich-style-controls label span { margin-left: 1px; overflow: hidden; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }.rich-style-controls input, .rich-style-controls select { height: 28px; min-width: 0; padding: 3px 4px; font-size: 9px; }.title-inspector { margin-left: 0; }.title-inspector-panel { right: auto; left: 0; grid-template-columns: 1fr 1fr; }.document-sheet { width: calc(100% - 24px); min-height: 680px; margin: 18px auto 32px; padding: 38px 25px 55px; }.document-sheet .title-input { min-height: 90px; } }
@media (max-width: 520px) { .story-content-editor figure[data-width="33"], .story-body figure[data-width="33"] { width: 50%; }.toolbar-image-button { padding-left: 6px; padding-right: 6px; }.image-toolbar-group select { width: 58px; padding-left: 4px; font-size: 9px; } }
.title-inspector { order: 0; }
.format-toolbar .rich-style-controls { grid-template-columns: 112px 72px 104px 82px 92px; justify-content: start; }

.admin-sidebar-toggle { position: absolute; top: 31px; right: 18px; width: 28px; height: 28px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #74756f; cursor: pointer; }.admin-sidebar-toggle:hover, .admin-sidebar-toggle:focus-visible { outline: 0; background: rgba(255,255,255,.55); color: #0a84ff; }.admin-sidebar-toggle i { position: relative; width: 15px; height: 13px; border: 1.5px solid currentColor; border-radius: 2px; }.admin-sidebar-toggle i::before { content: ''; position: absolute; inset: 0 auto 0 4px; border-left: 1px solid currentColor; }.admin-sidebar-toggle i::after { content: ''; position: absolute; top: 4px; right: 2px; width: 3px; height: 3px; border-left: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); transition: transform .2s; }
.admin-shell { transition: grid-template-columns .24s cubic-bezier(.2,.8,.2,1); }.admin-sidebar { transition: padding .24s cubic-bezier(.2,.8,.2,1); }
@media (min-width: 651px) { .admin-shell.admin-sidebar-collapsed { grid-template-columns: 58px minmax(0,1fr); }.admin-sidebar-collapsed .admin-sidebar { padding: 36px 8px 25px; }.admin-sidebar-collapsed .admin-sidebar > div .admin-mark { width: 100%; justify-content: center; font-size: 0; }.admin-sidebar-collapsed .admin-sidebar > div .admin-mark i { width: 7px; height: 7px; }.admin-sidebar-collapsed .admin-sidebar > div p { display: none; }.admin-sidebar-collapsed .admin-sidebar-toggle { position: static; margin: 18px auto 28px; }.admin-sidebar-collapsed .admin-sidebar-toggle i::after { transform: rotate(225deg); }.admin-sidebar-collapsed .admin-sidebar nav { margin-top: auto; margin-bottom: auto; }.admin-sidebar-collapsed .admin-sidebar nav button { position: relative; min-height: 38px; justify-content: center; padding: 9px 4px; font-size: 0; }.admin-sidebar-collapsed .admin-sidebar nav button::before { font: 600 11px/1 Aptos, "Segoe UI", sans-serif; }.admin-sidebar-collapsed [data-admin-section="overview"]::before { content: 'O'; }.admin-sidebar-collapsed [data-admin-section="homepage"]::before { content: 'H'; }.admin-sidebar-collapsed [data-admin-section="stories"]::before { content: 'W'; }.admin-sidebar-collapsed [data-admin-section="audio"]::before { content: 'A'; }.admin-sidebar-collapsed [data-admin-section="photos"]::before { content: 'P'; }.admin-sidebar-collapsed [data-admin-section="bio"]::before { content: 'B'; }.admin-sidebar-collapsed [data-admin-section="supporters"]::before { content: '$'; }.admin-sidebar-collapsed [data-admin-section="security"]::before { content: 'S'; }.admin-sidebar-collapsed .admin-sidebar nav button span { position: absolute; top: 1px; right: 1px; }.admin-sidebar-collapsed .admin-logout { width: 28px; height: 28px; align-self: center; overflow: hidden; padding: 0; border: 0; font-size: 0; }.admin-sidebar-collapsed .admin-logout::before { content: '×'; font-size: 18px; } }
@media (max-width: 650px) { .admin-sidebar-toggle { display: none; } }
@media (max-width: 760px) { .format-toolbar .rich-style-controls { grid-template-columns: minmax(58px,1.25fr) repeat(4,minmax(43px,1fr)); gap: 3px; justify-content: stretch; } }

/* Compact floating public controls */
.playlist-banner {
  top: calc(var(--header-height) + 6px);
  right: auto;
  left: 50%;
  width: min(410px, calc(100% - 32px));
  height: 38px;
  padding: 0 10px;
  gap: 10px;
  border: 1px solid #393936;
  border-radius: 999px;
  background: rgba(12,12,11,.94);
  box-shadow: 0 7px 24px rgba(0,0,0,.3);
  transform: translateX(-50%);
}
.playlist-banner button { width: 25px; height: 25px; }
.playlist-banner > div { flex: 1; justify-content: center; text-align: center; }
.playlist-banner strong { font-size: 10px; }
.playlist-position { min-width: 25px; margin-left: 0; text-align: right; }
.audio-entry-cover img { filter: grayscale(1); }
.admin-sidebar-collapsed [data-admin-section="playlist"]::before { content: 'L'; }

.book-support-banner {
  right: var(--pad);
  bottom: 16px;
  left: var(--pad);
  width: auto;
  max-width: 1040px;
  min-height: 0;
  padding: 14px 18px 16px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 14px 42px rgba(0,0,0,.48);
  transform: none;
}
.book-support-banner.is-leaving { opacity: 0; transform: translateY(120%); }
.book-support-banner form[hidden], .book-support-banner .book-support-thanks[hidden] { display: none !important; }
.book-support-banner.is-collapsed form, .book-support-banner.is-collapsed .book-support-copy, .book-support-banner.is-collapsed .book-support-thanks, .book-support-banner.is-collapsed .book-support-collapse { display: none !important; }
.book-support-banner form { grid-template-columns: minmax(190px, 1.25fr) repeat(3, minmax(125px, 1fr)) auto; gap: 12px 18px; }
.book-support-copy strong { font-size: 13px; }
.book-support-copy span { color: #4c4c48; font-size: 9px; }
.book-support-banner label > span { color: #2f302d; }
.book-support-banner label b { color: #777872; }
.book-support-banner input { border-bottom-color: #8b8b85; color: var(--black); }
.book-support-banner input:focus { border-bottom-color: var(--black); }
.book-support-banner input::placeholder { color: #85857f; }
.book-support-banner form > button { border-color: var(--black) !important; background: var(--black) !important; color: var(--white) !important; }
.book-support-banner form > button:hover, .book-support-banner form > button:focus-visible { outline: 0; background: var(--white) !important; color: var(--black) !important; }
.book-support-collapse { position: absolute; top: -28px; right: -1px; height: 27px !important; padding: 0 10px !important; border: 1px solid var(--white) !important; border-bottom: 0 !important; border-radius: 0; background: var(--black) !important; color: var(--white) !important; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.book-support-collapse:hover, .book-support-collapse:focus-visible { outline: 0; background: var(--white) !important; color: var(--black) !important; border-color: var(--black) !important; }
.book-support-thanks { color: var(--black); }
.book-support-collapse[hidden], .book-support-sign[hidden] { display: none !important; }
.book-support-banner.is-collapsed { right: auto; width: auto; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; transition: opacity .55s ease, transform .55s ease; }
.book-support-banner.is-collapsed.is-away-from-top { opacity: 0; transform: translateY(12px) scale(.94); pointer-events: none; }
.book-support-sign { height: 50px !important; display: inline-flex; align-items: center; gap: 18px; padding: 4px 4px 4px 20px !important; border: 1px solid var(--white) !important; border-radius: 0; background: var(--white) !important; color: var(--black) !important; box-shadow: 0 12px 34px rgba(0,0,0,.48); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .11em; }
.book-support-sign > span { width: 40px; height: 40px; display: grid; place-items: center; margin: 0; background: var(--black); color: var(--white); font-size: 15px; font-weight: 400; }
.book-support-sign:hover, .book-support-sign:focus-visible { outline: 0; background: var(--black) !important; color: var(--white) !important; }
.book-support-sign:hover > span, .book-support-sign:focus-visible > span { background: var(--white); color: var(--black); }
body.has-book-support-banner { padding-bottom: 0; }
.toast { bottom: 78px; }

@media (max-width: 900px) {
  .book-support-banner { padding: 13px 16px 15px; }
  .book-support-banner form { grid-template-columns: 1fr 1fr 1fr; gap: 9px 13px; }
  body.has-book-support-banner { padding-bottom: 0; }
}

@media (max-width: 600px) {
  .playlist-banner { width: min(320px, calc(100% - 28px)); }
  .book-support-banner { right: auto; bottom: 12px; left: 10px; width: calc(100% - 24px); transform: none; }
  .book-support-banner.is-collapsed { width: auto; }
  .book-support-banner.is-leaving { transform: translateY(120%); }
  .book-support-banner form { grid-template-columns: 1fr 1fr; }
  body.has-book-support-banner { padding-bottom: 0; }
  body.has-book-support-banner .hero { height: 100svh; }
  .toast { bottom: 64px; }
}

@media (prefers-reduced-motion: reduce) {
  .book-support-banner.is-collapsed.is-away-from-top { transform: none; }
}

/* Navbar-integrated music player */
:root { --playlist-height: 0px; }
.site-header { grid-template-columns: 1fr auto 1fr; gap: 0; }
.site-header .playlist-banner {
  position: absolute;
  top: 50%;
  left: calc(var(--pad) + 48px);
  z-index: auto;
  width: min(280px, 22vw);
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: translateY(-50%);
  backdrop-filter: none;
  justify-self: center;
}
.site-header .playlist-banner button,
.site-header .playlist-banner button:not(:disabled):hover,
.site-header .playlist-banner button:not(:disabled):focus-visible,
.site-header .playlist-banner.is-playing button {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: var(--white);
}
.site-header .playlist-banner button:not(:disabled):hover,
.site-header .playlist-banner button:not(:disabled):focus-visible { color: var(--muted); }
.site-header .playlist-banner > div { justify-content: flex-start; text-align: left; }
.site-header .playlist-banner strong { font-size: 10px; font-weight: 400; }
.site-header .playlist-position { color: #666661; }

@media (max-width: 850px) {
  .site-header { grid-template-columns: auto 1fr; gap: 0; }
  .site-header .playlist-banner { left: calc(var(--pad) + 45px); width: min(210px, 25vw); }
  .site-header .playlist-banner strong { font-size: 9px; }
}

@media (max-width: 620px) {
  .site-header .playlist-banner { left: 64px; width: clamp(60px, calc(100vw - 260px), 190px); gap: 8px; }
  .site-header .playlist-position { display: none; }
  .site-header .playlist-banner button { width: 20px; }
  .site-header .playlist-banner > div { max-width: none; }
}

@media (max-width: 430px) {
  .site-header .playlist-banner { left: 60px; width: clamp(54px, calc(100vw - 250px), 132px); }
  .site-header .playlist-banner strong { display: block; }
}

/* Story collections and contained readers */
body[data-active-tab="writing"] { height: 100svh; overflow: hidden; }
body[data-active-tab="writing"] .site-footer, body[data-active-tab="writing"] .book-support-banner { display: none; }
.writing-page { height: 100svh; padding-top: var(--header-height); overflow: hidden; }
.writing-toc { height: 100%; display: grid; grid-template-columns: minmax(250px, 34vw) minmax(0, 1fr); overflow: hidden; }
.writing-toc > header { padding: clamp(48px, 9vh, 110px) var(--pad); border-right: 1px solid var(--line); }
.writing-toc > header h1 { margin: 12px 0 24px; font-size: clamp(72px, 10vw, 150px); line-height: .78; font-weight: 400; letter-spacing: -.07em; }
.writing-toc > header > p:last-child { max-width: 290px; color: var(--muted); line-height: 1.7; }
.story-buckets { min-height: 0; overflow-y: auto; padding: 0 var(--pad); scrollbar-width: thin; }
.story-bucket { min-height: 48%; display: grid; grid-template-columns: minmax(210px, .8fr) minmax(250px, 1.2fr); gap: clamp(26px, 5vw, 80px); align-items: center; padding: clamp(35px, 7vh, 82px) 0; border-bottom: 1px solid var(--line); }
.story-bucket > div > span { color: #666661; font-variant-numeric: tabular-nums; }
.story-bucket h2 { margin: 15px 0; font: italic 400 clamp(36px, 5vw, 72px)/.94 Georgia, serif; letter-spacing: -.055em; }
.story-bucket > div p { max-width: 430px; color: var(--muted); line-height: 1.65; }
.story-bucket ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.story-bucket li { border-bottom: 1px solid var(--line); }
.story-bucket button { width: 100%; display: grid; grid-template-columns: 35px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 18px 0; border: 0; background: transparent; color: var(--white); text-align: left; cursor: pointer; }
.story-bucket button span { color: #686864; font-variant-numeric: tabular-nums; }.story-bucket button b { font-weight: 400; }.story-bucket button i { color: var(--muted); font-style: normal; transition: transform .2s; }.story-bucket button:hover i, .story-bucket button:focus-visible i { transform: translateX(5px); }
.writing-reader { height: 100%; display: grid; grid-template-rows: 48px minmax(0, 1fr); overflow: hidden; }
.writing-reader-header, .writing-reader-controls { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 var(--pad); border-bottom: 1px solid var(--line); }
.writing-reader-header > button, .writing-reader-controls > button, .writing-finished button { border: 0; background: transparent; color: var(--white); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; cursor: pointer; }
.writing-reader-header > button:first-child { justify-self: start; }.writing-reader-header > button:last-child { justify-self: end; }.writing-reader-header p { margin: 0; color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.writing-reader-page { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
.writing-reader-page > header { width: min(588px, calc(100% - 48px)); margin: 0 auto; padding: clamp(54px, 9vh, 100px) 0 24px; }
.writing-reader-page > header h1 { margin: 12px 0 14px; font-family: var(--story-title-font); font-size: clamp(24px, 5vw, var(--story-title-size, 58px)); line-height: var(--story-title-leading); font-style: var(--story-title-style); font-weight: var(--story-title-weight); letter-spacing: var(--story-title-tracking); text-align: var(--story-title-align); }
.writing-reader-page .story-body { width: min(588px, calc(100% - 48px)); margin: 22px auto 0; padding-bottom: 90px; }
.writing-reader-controls { border-top: 1px solid var(--line); border-bottom: 0; }
.writing-reader-controls > button:first-child { justify-self: start; }.writing-reader-controls > button:last-child { justify-self: end; }.writing-reader-controls button:disabled { opacity: .25; cursor: default; }
.writing-finished { grid-column: 2 / 4; justify-self: end; display: flex; gap: 28px; }.writing-finished button:last-child { padding: 10px 14px; border: 1px solid var(--line); }
.writing-reader-continue { width: 100%; min-height: 58px; display: block; padding: 0; }
.writing-reader-continue > button { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; padding: 0 var(--pad); text-align: left; }
.writing-reader-continue > button:hover, .writing-reader-continue > button:focus-visible { background: #11110f; outline: 0; }

/* Public output mirrors the editor's authored vertical rhythm. */
.story-body h2 { margin: 1.7em 0 .65em; font-family: inherit; font-size: 1.55em; line-height: 1.25; }
.story-body h3 { margin: 2em 0 .7em; font-family: inherit; font-size: 1.25em; line-height: 1.3; }
.story-body blockquote { margin: 2em; padding-left: 0; border-left: 0; font-family: inherit; font-size: 23px; line-height: inherit; font-style: italic; }
.story-body ul, .story-body ol { padding-left: 1.7em; }

/* Expandable, in-slide photo comments and adjacent-photo previews. */
.deck-stage { position: relative; }
.photo-entry { position: relative; z-index: 2; background: var(--black); }
.photo-peek { position: absolute; z-index: 1; top: 8%; bottom: 8%; width: clamp(62px, 8vw, 118px); padding: 0; overflow: hidden; border: 1px solid #343430; background: #080808; opacity: .42; filter: grayscale(1) brightness(.48); cursor: pointer; transition: opacity .2s, filter .2s, transform .2s; }
.photo-peek-prev { left: 0; transform: translateX(-10%); }.photo-peek-next { right: 0; transform: translateX(10%); }
.photo-peek img { width: 100%; height: 100%; object-fit: contain; }
.photo-peek:hover, .photo-peek:focus-visible { opacity: .72; filter: grayscale(1) brightness(.68); outline: 1px solid var(--white); }
@media (min-width: 901px) { .photos-page .deck-slide { width: calc(100% - clamp(150px, 18vw, 250px)); margin-right: auto; margin-left: auto; } }
@media (min-width: 701px) and (max-width: 900px) { .photos-page .deck-slide { width: calc(100% - 130px); margin-right: auto; margin-left: auto; } }
.inline-comments { display: block; max-height: none; overflow: visible; padding: 0; }
.photos-page .photo-entry .photo-frame { grid-row: 1; }
.photos-page .photo-entry figcaption { grid-column: 2; grid-row: 1; }
.photos-page .photo-entry .inline-comments { grid-column: 1 / -1; grid-row: 2; }
.photo-comments-toggle { width: 100%; display: grid; grid-template-columns: 1fr auto 20px; gap: 10px; align-items: center; padding: 12px 0; border: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: transparent; color: var(--white); text-align: left; cursor: pointer; }
.photo-comments-toggle span { text-transform: uppercase; font-size: 9px; letter-spacing: .11em; }.photo-comments-toggle b { color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; }.photo-comments-toggle i { color: var(--muted); font-style: normal; font-size: 15px; text-align: right; }
.photo-comments-content { max-height: min(31vh, 260px); overflow-y: auto; padding: 13px 0 4px; scrollbar-width: thin; }
.photo-comment-list p { padding: 0 0 10px; color: #aaa9a4; line-height: 1.45; }.photo-comments-empty { font-style: italic; }
.photo-comment-form { display: grid; grid-template-columns: .65fr 1.35fr auto; gap: 10px; align-items: end; padding-top: 10px; border-top: 1px solid #2d2d2a; }
.photo-comment-form label span { display: block; margin-bottom: 5px; color: #777771; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }.photo-comment-form input, .photo-comment-form textarea { width: 100%; min-width: 0; padding: 7px 0; resize: none; border: 0; border-bottom: 1px solid #555550; outline: 0; background: transparent; color: var(--white); }.photo-comment-form button { height: 32px; padding: 0 9px; border: 1px solid #555550; background: transparent; color: var(--white); cursor: pointer; }

/* Chapter controls in the writing studio. */
.chapter-editor { margin: 12px 0 22px; padding: 14px 0 18px; border-top: 1px solid #deded9; border-bottom: 1px solid #deded9; }
.chapter-editor > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; color: #777872; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; }.chapter-editor > header button, .delete-chapter { padding: 5px 0; border: 0; background: transparent; color: #147ce5; font: inherit; cursor: pointer; }
.chapter-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 8px; }.chapter-tabs button { flex: 0 0 auto; padding: 7px 9px; border: 1px solid #d2d2ce; border-radius: 6px; background: #f4f4f1; color: #555650; font-size: 10px; cursor: pointer; }.chapter-tabs button.is-active { border-color: #147ce5; background: #e8f2fd; color: #075eaf; }.chapter-tabs span { margin-right: 6px; color: #92938d; }
.chapter-editor > label { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; margin-top: 8px; color: #777872; font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }.chapter-editor > label input { min-width: 0; padding: 9px 0; border: 0; border-bottom: 1px solid #c9c9c4; outline: 0; background: transparent; color: #292a27; font: 500 13px/1.2 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: none; letter-spacing: 0; }.delete-chapter { margin-top: 8px; color: #aa3f34; font-size: 9px; }

@media (min-width: 601px) {
  .book-support-banner:not(.is-collapsed) { right: 0; bottom: 0; left: 0; width: 100%; max-width: none; border-right: 0; border-bottom: 0; border-left: 0; }
}

@media (max-width: 700px) {
  .photo-peek { display: none; }
  .photos-page .photo-entry .photo-frame, .photos-page .photo-entry figcaption, .photos-page .photo-entry .inline-comments { grid-column: auto; grid-row: auto; }
  .photo-comment-form { grid-template-columns: 1fr 1fr; }.photo-comment-form button { grid-column: 1 / -1; }
  .writing-toc { display: block; overflow-y: auto; }.writing-toc > header { padding: 44px 18px 35px; border-right: 0; border-bottom: 1px solid var(--line); }.writing-toc > header h1 { font-size: 72px; }.story-buckets { overflow: visible; padding: 0 18px; }.story-bucket { min-height: 0; grid-template-columns: 1fr; gap: 22px; padding: 38px 0; }.writing-reader { grid-template-rows: 42px minmax(0, 1fr); }.writing-reader-header, .writing-reader-controls { padding: 0 14px; }.writing-reader-continue { padding: 0; }.writing-reader-continue > button { min-height: 54px; padding: 0 14px; }.writing-reader-header p { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.writing-reader-page > header { width: calc(100% - 74px); padding-top: 45px; }.writing-reader-page .story-body { width: calc(100% - 74px); }.writing-finished { gap: 8px; }.writing-finished button { font-size: 8px; }.writing-finished button:last-child { max-width: 155px; }
}

/* Friends directory — compact two-column portrait index inspired by the supplied reference. */
.friends-page { grid-template-rows: clamp(132px, 18vh, 190px) minmax(0, 1fr); font-family: Georgia, "Times New Roman", serif; }
.friends-page .page-intro { justify-content: center; align-items: center; padding: 24px var(--pad) 10px; text-align: center; border-bottom: 0; }
.friends-page .page-intro h1 { font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.035em; }
.friends-page .page-intro p { margin: 16px 0 0; color: #d0cfca; font-size: clamp(14px, 1.25vw, 19px); }
.friends-page .friends-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(54px, 7vw, 110px); row-gap: clamp(48px, 6vh, 68px); align-content: start; padding: 22px clamp(34px, 6.5vw, 104px) 70px; overflow-y: auto; scrollbar-width: thin; }
.friends-page .friend-card { width: auto; height: auto; min-height: 0; margin: 0; padding: 0; display: grid; grid-template-columns: clamp(118px, 12vw, 176px) minmax(0, 1fr); grid-template-rows: auto; gap: clamp(24px, 3.8vw, 54px); align-items: start; border: 0; }
.friends-page .friend-card figure { width: 100%; height: auto; aspect-ratio: 1 / 1.08; margin: 0; justify-self: stretch; overflow: hidden; background: #141413; }
.friends-page .friend-card figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.friends-page .friend-card-copy { max-height: none; overflow: visible; padding: 0 0 clamp(18px, 2.5vh, 28px); text-align: left; }
.friends-page .friend-card h2 { margin: -4px 0 12px; font: 400 clamp(22px, 2.15vw, 32px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -.025em; }
.friends-page .friend-description p { max-width: 390px; margin: 0; color: #deddd8; font: 400 clamp(13px, 1.2vw, 18px)/1.28 Georgia, "Times New Roman", serif; white-space: normal; }
.friends-page .friend-description p + p { margin-top: 3px; }
.friends-page .friend-card ul { margin: 14px 0 0; padding-left: 1.55em; color: #deddd8; font-size: clamp(12px, 1.08vw, 16px); line-height: 1.45; }
.friends-page .friend-card li { padding-left: .3em; }
.friends-page .friend-card a { display: inline-flex; gap: 8px; margin-top: 14px; padding-bottom: 1px; border-bottom: 1px solid #8c8b86; color: #deddd8; font-size: clamp(13px, 1.12vw, 17px); line-height: 1.2; }
.friends-page .friend-position { display: block; margin-bottom: 7px; color: var(--stats-accent, #d9bd45); font: 600 9px/1 Aptos, "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; }
.friends-page .friend-card a b { font: inherit; text-decoration: none; }.friends-page .friend-card a:hover, .friends-page .friend-card a:focus-visible { color: var(--white); border-color: var(--white); }
.friends-page .friends-empty { grid-column: 1 / -1; align-self: center; justify-self: center; color: var(--muted); font-size: 18px; }

@media (max-width: 1180px) {
  .friends-page .friends-grid { width: min(720px, 100%); display: flex; flex-direction: column; gap: 38px; margin: 0 auto; }
  .friends-page .friend-card { width: 100%; display: flex; flex: 0 0 auto; align-items: flex-start; gap: clamp(24px, 3.8vw, 54px); }
  .friends-page .friend-card figure { width: clamp(125px, 24vw, 180px); flex: 0 0 clamp(125px, 24vw, 180px); }
  .friends-page .friend-card-copy { min-width: 0; height: auto; flex: 1 1 auto; }
}

@media (max-width: 700px) {
  .friends-page { grid-template-rows: 112px minmax(0, 1fr); }
  .friends-page .page-intro { padding: 17px 18px 6px; }.friends-page .page-intro h1 { font-size: 38px; }.friends-page .page-intro p { margin-top: 8px; font-size: 13px; }
  .friends-page .friends-grid { display: grid; padding: 18px 18px 48px; row-gap: 34px; }
  .friends-page .friend-card { padding: 0; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto; gap: 20px; align-items: start; }
  .friends-page .friend-card figure { width: 104px; height: auto; }.friends-page .friend-card-copy { text-align: left; }
  .friends-page .friend-card h2 { margin: -3px 0 8px; font-size: 22px; }.friends-page .friend-description p { margin: 0 0 6px; font-size: 12px; line-height: 1.4; }.friends-page .friend-card ul { margin-top: 9px; font-size: 11px; }.friends-page .friend-card a { margin-top: 10px; font-size: 12px; }
}

@media (max-width: 430px) {
  .friends-page .friend-card { grid-template-columns: 86px minmax(0, 1fr); gap: 16px; }.friends-page .friend-card figure { width: 86px; }
}

/* Keep the expanded comment drawer unconstrained by the legacy inline-comment rules below. */
.photos-page .inline-comments { max-height: none; overflow: visible; padding-bottom: 0; }
.photos-page .inline-comments p { flex: none; }

/* Carry the compact, side-by-side portrait treatment across portrait phones. */
@media (max-width: 520px) and (orientation: portrait) {
  .hero,
  body.has-book-support-banner .hero {
    height: auto;
    min-height: 100svh;
    padding: calc(var(--header-height) + 20px) 24px 104px;
    grid-template-columns: minmax(0, 1fr) clamp(118px, 36vw, 168px);
    grid-template-rows: auto auto auto auto;
    column-gap: clamp(14px, 4vw, 22px);
    row-gap: 0;
    align-content: start;
    overflow: visible;
  }

  .hero-copy { display: contents; }
  .hero-copy h1 {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
    margin: 0;
    align-self: start;
    font-size: clamp(40px, 12vw, 58px);
    line-height: .88;
  }
  .hero .role {
    grid-column: 1;
    grid-row: 2;
    margin-top: 14px;
  }
  .hero-location {
    grid-column: 1;
    grid-row: 3;
    margin-top: 5px;
  }
  .hero-bio {
    grid-column: 1 / -1;
    grid-row: 4;
    max-width: none;
    margin-top: 20px;
  }
  .portrait-wrap {
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    height: auto;
    max-width: none;
    max-height: none;
    aspect-ratio: auto;
    justify-self: stretch;
    align-self: start;
    transform: translateX(-8px);
  }
  .portrait-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
}

/* Public Audio, Friends, and Game expansion */
.mobile-menu-toggle { display: none; }

.friends-page .page-intro { min-height: 46vh; padding-top: 130px; padding-bottom: 55px; }
.friends-page .page-intro h1 { grid-column: 2; font-size: clamp(68px, 11vw, 168px); }
.friends-grid { min-height: 54vh; padding: 35px var(--pad) 130px; border-top: 1px solid var(--line); }
.friend-card { width: min(1060px, 100%); margin: 0 auto; padding: clamp(34px, 6vw, 78px) 0; display: grid; grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); gap: clamp(35px, 8vw, 110px); align-items: center; border-bottom: 1px solid var(--line); }
.friend-card figure { margin: 0; aspect-ratio: 4 / 5; overflow: hidden; background: #151515; }
.friend-card figure img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.06); }
.friend-card > div > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.friend-card h2 { margin: 10px 0 22px; font-size: clamp(42px, 7vw, 96px); line-height: .9; font-weight: 400; letter-spacing: -.06em; }
.friend-card p { max-width: 630px; color: #c4c4be; font-size: clamp(13px, 1.3vw, 17px); line-height: 1.75; white-space: pre-line; }
.friend-card a { display: inline-flex; gap: 12px; margin-top: 22px; padding-bottom: 4px; border-bottom: 1px solid #64645f; }
.friend-card a:hover, .friend-card a:focus-visible { border-color: var(--white); }
.friends-empty { min-height: 220px; display: grid; place-items: center; margin: 0; color: var(--muted); }

body[data-active-tab="game"] { height: 100svh; overflow: hidden; }
body[data-active-tab="game"] .site-footer,
body[data-active-tab="game"] .book-support-banner { display: none !important; }
.game-page { height: 100svh; overflow: hidden; background: #090a09; }
.game-shell { position: relative; height: calc(100svh - var(--header-height)); margin-top: var(--header-height); overflow: hidden; touch-action: none; user-select: none; background: #090a09; }
body[data-active-tab="game"] .toast { right: calc(var(--pad) + clamp(86px, 10vw, 126px) + 16px); bottom: 40px; left: auto; }
.game-sidebar { position: absolute; z-index: 5; inset: 0 auto 0 0; width: 78px; display: flex; flex-direction: column; padding: 14px 7px 10px; border-right: 1px solid rgba(244,243,239,.19); background: #080908; color: var(--white); }
.game-sidebar-brand { padding: 0 3px 14px; border-bottom: 1px solid #30312d; text-align: center; }
.game-sidebar-brand strong, .game-sidebar-brand span { display: block; }
.game-sidebar-brand strong { font: 400 15px/.9 Georgia, serif; letter-spacing: -.045em; }
.game-sidebar-brand span { margin-top: 5px; color: #8c8d86; font-size: 6px; text-transform: uppercase; letter-spacing: .12em; }
.game-sidebar nav { display: grid; gap: 2px; margin-top: 9px; }
.game-sidebar nav button { position: relative; min-height: 47px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 5px 2px; border: 0; background: transparent; color: #a7a8a2; font-size: 10px; line-height: 1.2; font-weight: 500; letter-spacing: .015em; text-align: center; cursor: pointer; }
.game-sidebar nav button > b { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #f16f84; box-shadow: 0 0 0 2px #080908; }
.game-sidebar nav button > b[hidden] { display: none; }
.game-sidebar nav button:hover, .game-sidebar nav button:focus-visible, .game-sidebar nav button.is-active { outline: 0; background: #f1f0e9; color: #11120f; }
.game-sidebar > p { display: none; }
.game-sidebar kbd { color: #d3d2cc; font: inherit; text-transform: uppercase; letter-spacing: .08em; }
.game-canvas { position: absolute; inset: 0 0 0 78px; width: calc(100% - 78px); height: 100%; transition: left .22s ease, width .22s ease; }
.game-shell.has-open-drawer .game-canvas { left: calc(78px + clamp(290px, 26vw, 360px)); width: calc(100% - 78px - clamp(290px, 26vw, 360px)); }
.game-hud { position: absolute; z-index: 2; top: clamp(14px, 3vh, 28px); right: var(--pad); left: calc(78px + var(--pad)); display: flex; align-items: flex-start; justify-content: space-between; pointer-events: none; transition: left .22s ease; }
.game-shell.has-open-drawer .game-hud { left: calc(78px + clamp(290px, 26vw, 360px) + var(--pad)); }
.game-scoreboard { display: flex; align-items: stretch; gap: 5px; }
.game-score, .game-streak { min-width: 108px; padding: 10px 14px; border: 1px solid rgba(244,243,239,.7); background: rgba(5,5,5,.74); backdrop-filter: blur(8px); }
.game-score span, .game-streak span { display: block; color: #a4a49f; font-size: 8px; text-transform: uppercase; letter-spacing: .16em; }
.game-score strong, .game-streak strong { display: block; margin-top: 2px; font-size: clamp(28px, 4vw, 52px); line-height: 1; font-weight: 400; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.game-streak { min-width: 76px; border-color: #d56524; color: #ffd8bf; animation: streak-in .24s ease-out; }
@keyframes streak-in { from { opacity: 0; transform: translateY(-8px); } }
.active-player-chip { min-height: 39px; padding: 8px 12px; border: 1px solid #777872; background: rgba(5,5,5,.78); color: #a1a19b; font-size: 8px; text-transform: uppercase; letter-spacing: .11em; cursor: pointer; pointer-events: auto; backdrop-filter: blur(8px); }
.active-player-chip strong { display: block; margin-top: 2px; color: var(--white); font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.active-player-chip:hover, .active-player-chip:focus-visible, .active-player-chip.is-active { outline: 0; border-color: var(--white); background: var(--white); color: #666; }
.active-player-chip:hover strong, .active-player-chip:focus-visible strong, .active-player-chip.is-active strong { color: var(--black); }
.game-shot-meter { --shot-charge: 0%; --shot-target-start: 68%; --shot-target-size: 18%; --meter-x: 50%; --meter-y: 50%; position: absolute; z-index: 3; left: var(--meter-x); top: var(--meter-y); width: clamp(116px, 12vw, 154px); padding: 7px 8px 8px; border: 1px solid #696963; border-radius: 5px; background: rgba(5,5,5,.9); color: var(--white); backdrop-filter: blur(8px); pointer-events: none; transform: translate(-50%, -100%); transition: border-color .16s; }
.game-shot-meter::after { content: ''; position: absolute; top: 100%; left: 50%; border: 5px solid transparent; border-top-color: #696963; transform: translateX(-50%); }
.game-shot-meter > span { display: block; min-height: 11px; margin-bottom: 4px; overflow: hidden; color: #c2c1ba; font-size: 6px; line-height: 1.3; text-align: center; text-transform: uppercase; text-overflow: ellipsis; white-space: nowrap; letter-spacing: .07em; }
.game-shot-meter > div { position: relative; height: 10px; overflow: hidden; border: 1px solid #74746e; border-radius: 2px; background: #1a1b19; }
.game-shot-meter i { position: absolute; z-index: 2; top: 0; bottom: 0; left: var(--shot-target-start); width: var(--shot-target-size); background: #4bcd73; box-shadow: 0 0 12px rgba(75,205,115,.5); }
.game-shot-meter b { position: absolute; z-index: 1; inset: 0 auto 0 0; width: var(--shot-charge); background: linear-gradient(90deg, #e5e4dd, #fff); opacity: .4; }
.game-shot-meter em { position: absolute; z-index: 3; top: -3px; bottom: -3px; left: var(--shot-charge); width: 3px; transform: translateX(-1px); background: #fff; box-shadow: 0 0 5px #000; }
.game-shot-meter.is-green { border-color: #66dd8b; }
.game-shot-meter.is-green > div { box-shadow: 0 0 0 2px rgba(75,205,115,.3); }
.game-shot-meter.is-good { border-color: #d9bc58; }
.game-shot-meter.is-miss { border-color: #d36c4f; }
.game-shot-meter.is-early em { background: #e5c15e; }.game-shot-meter.is-late em { background: #da765b; }.game-shot-meter.is-green em { background: #fff; }
.game-shoot { position: absolute; z-index: 3; right: var(--pad); bottom: 24px; width: clamp(86px, 10vw, 126px); aspect-ratio: 1; display: grid; place-items: center; align-content: center; border: 2px solid var(--white); border-radius: 50%; background: rgba(5,5,5,.84); color: var(--white); cursor: pointer; touch-action: none; box-shadow: 0 12px 32px rgba(0,0,0,.34); }
.game-shoot span { margin: 0; color: #aaa9a3; font-size: 8px; text-transform: uppercase; letter-spacing: .13em; }
.game-shoot b { font-size: clamp(15px, 1.6vw, 21px); font-weight: 500; }
.game-shoot:hover, .game-shoot:focus-visible, .game-shell.is-charging .game-shoot { outline: 0; background: var(--white); color: var(--black); transform: scale(.96); }
.game-shell.is-pressured .game-shoot { border-color: #e4773b; box-shadow: 0 0 0 5px rgba(228,119,59,.13), 0 12px 32px rgba(0,0,0,.34); }

.game-drawer { position: fixed; z-index: 4; inset: var(--header-height) auto 0 78px; width: clamp(290px, 26vw, 360px); max-width: none; height: auto; max-height: none; margin: 0; padding: 28px 22px; overflow-y: auto; border: 0; border-right: 1px solid #373733; background: #0b0b0a; color: var(--white); box-shadow: none; }
.milestone-dialog::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(4px); }
.game-drawer-close { position: absolute; top: 15px; right: 18px; padding: 0; border: 0; background: transparent; color: #aaa; font-size: 25px; cursor: pointer; }
.game-drawer h2 { margin: 12px 0 25px; font-size: clamp(34px, 4vw, 48px); line-height: .9; font-weight: 400; letter-spacing: -.055em; }
.game-drawer h2 span { margin-left: 8px; color: #858580; font-size: 9px; font-weight: 500; letter-spacing: .11em; text-transform: uppercase; vertical-align: middle; }
.game-drawer p { color: #b4b4ae; }
.game-drawer .character-picker, .game-drawer .closet-layout { grid-template-columns: 1fr; }
.game-drawer .character-option.is-card { min-height: 210px; }
.game-drawer .catalog-preview-stage { min-height: 300px; }
.game-drawer .preview-character { height: 250px; }
.game-drawer .shop-preview { grid-template-columns: 95px minmax(0, 1fr); }
.game-drawer .shop-preview-art { height: 135px; }
.game-auth-tabs { display: flex; gap: 18px; margin: 25px 0; border-bottom: 1px solid var(--line); }
.game-auth-tabs button { padding: 0 0 9px; border: 0; border-bottom: 1px solid transparent; background: transparent; color: #858580; cursor: pointer; }
.game-auth-tabs button.is-active { border-color: var(--white); color: var(--white); }
.game-auth-form label { display: block; margin: 17px 0; color: #aaa9a3; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }
.game-auth-form input { width: 100%; margin-top: 6px; padding: 12px; border: 1px solid #4a4a46; background: #111; color: var(--white); text-transform: none; letter-spacing: 0; }
.game-auth-form button, [data-player-signed-in] button, .recovery-code-card button { width: 100%; margin-top: 10px; padding: 13px; border: 1px solid var(--white); background: var(--white); color: var(--black); cursor: pointer; }
.game-auth-form small { display: block; margin-top: 9px; color: #777771; }
[data-player-signed-in] strong { color: var(--white); }
[data-player-signed-in] button:last-child { background: transparent; color: var(--white); }
.recovery-security { margin: 24px 0; padding: 18px; border: 1px solid #343430; background: #11110f; }
.recovery-security > strong { display: block; margin-bottom: 8px; font-size: 12px; }
.recovery-code-card { margin-top: 28px; padding: 20px; border: 1px solid #676762; }
.recovery-code-card code { display: block; margin: 16px 0; padding: 14px; overflow-wrap: anywhere; background: #1a1a18; color: #87d8a0; font-size: 17px; letter-spacing: .08em; }
.recovery-confirm { display: flex; align-items: center; gap: 10px; margin: 18px 0 5px; color: #deddd7; cursor: pointer; }
.recovery-confirm input { width: 17px; height: 17px; accent-color: #65b87c; }
.recovery-code-card button:disabled { opacity: .35; cursor: not-allowed; }
.game-story-stream { padding-bottom: 25vh; }
.game-story-stream article { position: relative; padding: 24px 0 26px 30px; border-top: 1px solid #343430; }
.game-story-stream article > span { position: absolute; top: 28px; left: 0; color: #71716b; font-size: 8px; font-variant-numeric: tabular-nums; }
.game-story-stream h3 { margin: 0 0 12px; font: 400 25px/.98 Georgia, serif; letter-spacing: -.04em; }
.game-story-stream p { margin: 0; color: #d0cfc8; line-height: 1.72; white-space: pre-line; }
.game-story-message p { color: #9c9c95; font-size: 12px; font-style: italic; }
.game-writing-admin-heading { margin-top: 64px; padding-top: 40px; border-top: 1px solid var(--admin-line); }
.character-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.character-option { min-width: 0; display: flex; align-items: center; gap: 9px; padding: 7px 10px; border: 1px solid #3f3f3b; background: #11110f; color: var(--white); text-align: left; cursor: pointer; }
.character-option:hover, .character-option:focus-visible, .character-option.is-selected { outline: 0; border-color: #f1f0ea; background: #1b1b18; }
.character-option img { width: 38px; height: 45px; object-fit: contain; }
.character-option span { min-width: 0; display: flex; flex-direction: column; }
.character-option strong { font-size: 11px; font-weight: 500; }
.character-option small { margin-top: 3px; color: #8f8f88; font-size: 9px; line-height: 1.35; }
.character-option b { margin-left: auto; color: #86d39c; font-size: 8px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; }
.character-option.is-card { min-height: 260px; flex-direction: column; justify-content: flex-end; align-items: stretch; padding: 20px; position: relative; overflow: hidden; }
.character-option.is-card img { position: absolute; inset: 8px 0 68px; width: 100%; height: calc(100% - 76px); }
.character-option.is-card span { position: relative; }
.character-option.is-card strong { font-size: 20px; }
.character-option.is-card b { position: absolute; top: 13px; right: 13px; }
.character-option.is-locked { opacity: .46; cursor: not-allowed; }
.character-option.is-locked img { filter: grayscale(1); }
.character-option.is-locked:hover { border-color: #3f3f3b; background: #11110f; }
.closet-character-switch, .shop-character-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-bottom: 20px; }
.shop-character-switch { margin-top: -8px; }
.closet-layout { display: grid; grid-template-columns: minmax(260px, .9fr) minmax(240px, 1.1fr); gap: 24px; align-items: start; }
.closet-controls h3 { margin: 24px 0 10px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: .11em; }
.closet-slots { display: grid; gap: 6px; }
.closet-slots article { min-height: 54px; display: grid; grid-template-columns: 78px 1fr auto; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid #30302d; background: #10100f; }
.closet-slots article > span { color: #777771; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.closet-slots article strong { font-size: 11px; font-weight: 500; }
.closet-slots article em { color: #777771; font-size: 10px; font-style: normal; }
.closet-slots article button { padding: 5px 0; border: 0; border-bottom: 1px solid #555; background: transparent; color: #aaa; font-size: 8px; cursor: pointer; }
.closet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.closet-actions button, .closet-shop-link, .shop-preview button { padding: 11px; border: 1px solid #5b5b56; background: transparent; color: var(--white); cursor: pointer; }
.closet-actions [data-wear-preview], .shop-preview [data-wear-preview] { border-color: var(--white); background: var(--white); color: var(--black); }
.closet-shop-link { width: 100%; margin-top: 7px; text-align: left; }
.closet-shop-link span { float: right; }
.catalog-filters { display: flex; gap: 6px; margin: 18px 0; overflow-x: auto; scrollbar-width: none; }
.catalog-filters button { padding: 7px 10px; border: 1px solid #3e3e3a; background: transparent; color: #888881; cursor: pointer; text-transform: capitalize; }
.catalog-filters button.is-active { border-color: var(--white); background: var(--white); color: var(--black); }
.shop-preview { display: grid; grid-template-columns: 180px 1fr; gap: 20px; align-items: center; margin: 5px 0 22px; padding: 16px; border: 1px solid #66665f; background: #131311; }
.shop-preview-art { position: relative; height: 210px; overflow: hidden; background: radial-gradient(circle, #3a3a36, #111); }
.shop-preview-art > img { width: 100%; height: 100%; object-fit: contain; }
.shop-preview h3 { margin: 4px 0; font-size: 26px; font-weight: 400; }
.shop-preview p { margin: 0 0 12px; }
.shop-preview button { margin: 4px 6px 0 0; }
.catalog-grid { display: grid; gap: 12px; }
.catalog-grid article { display: grid; grid-template-columns: 105px minmax(0, 1fr); gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.catalog-grid article.is-worn { border-color: #78b98b; }
.catalog-art { position: relative; min-height: 105px; display: grid; place-items: center; overflow: hidden; border: 1px solid #393936; background: repeating-linear-gradient(45deg, #111 0 8px, #151515 8px 16px); }
.catalog-art img { width: 100%; height: 100%; object-fit: contain; }
.catalog-art span { color: #8d8d87; text-transform: uppercase; font-size: 8px; letter-spacing: .1em; }
.catalog-art::after { content: ''; position: absolute; width: 48%; height: 38%; border: 2px dashed #deddd6; opacity: .72; }
.catalog-art.hat::after { height: 20%; border-radius: 50% 50% 8px 8px; }
.catalog-art.pants::after { height: 55%; clip-path: polygon(10% 0,90% 0,75% 100%,52% 100%,50% 45%,48% 100%,25% 100%); background: rgba(255,255,255,.12); }
.catalog-art.accessory::after { width: 50%; height: 50%; border-radius: 50%; border-style: solid; border-bottom-color: transparent; }
.catalog-grid article > div:last-child > span { color: #777771; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.catalog-grid h3 { margin: 4px 0; font-size: 17px; font-weight: 500; }
.catalog-grid p { margin: 0 0 10px; font-size: 10px; }
.catalog-grid article button { margin: 3px 5px 3px 0; padding: 7px 9px; border: 1px solid #666660; background: transparent; color: var(--white); cursor: pointer; font-size: 9px; }
.catalog-preview-stage { position: relative; min-height: 430px; display: grid; place-items: center; padding: 16px 16px 46px; overflow: hidden; border: 1px solid #33332f; background: radial-gradient(circle at 50% 42%, #3a3a36, #080808 68%); }
.preview-character { position: relative; width: 100%; height: 360px; display: grid; place-items: center; }
.preview-character > img { width: 100%; height: 100%; object-fit: contain; }
.preview-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.preview-badge { position: absolute; left: 50%; z-index: 2; transform: translateX(-50%); padding: 5px 8px; border: 1px dashed #fff; background: rgba(10,10,10,.78); color: #fff; font-size: 8px; white-space: nowrap; }
.preview-badge.hat { top: 9%; }.preview-badge.accessory { top: 24%; }.preview-badge.shirt { top: 39%; }.preview-badge.pants { top: 62%; }
.catalog-preview-stage > strong { position: absolute; right: 12px; bottom: 16px; left: 12px; text-align: center; font-size: 11px; font-weight: 500; }
.milestone-dialog { width: min(560px, calc(100% - 30px)); padding: clamp(35px, 6vw, 65px); border: 1px solid var(--white); background: var(--white); color: var(--black); text-align: center; }
.milestone-dialog .eyebrow { color: #61615d; }
.milestone-dialog strong { display: block; margin: 18px 0; font-size: clamp(42px, 8vw, 76px); line-height: .9; font-weight: 400; letter-spacing: -.06em; }
.milestone-dialog p:not(.eyebrow) { font-size: 16px; }
.milestone-dialog button { margin-top: 22px; padding: 13px 24px; border: 1px solid var(--black); background: var(--black); color: var(--white); cursor: pointer; }

.admin-collection-list { display: grid; gap: 18px; }
.admin-sidebar nav { min-height: 0; overflow-y: auto; }
.admin-sidebar-collapsed [data-admin-section="friends"]::before { content: 'F'; }
.admin-sidebar-collapsed [data-admin-section="game-story"]::before { content: 'G'; }
.admin-sidebar-collapsed [data-admin-section="game-catalog"]::before { content: 'C'; }
.admin-sidebar-collapsed [data-admin-section="chatbot"]::before { content: 'M'; }
.admin-collection-card { display: grid; grid-template-columns: 60px minmax(0, 1fr); border: 1px solid #c5c3bb; background: #eeece6; }

.chatbot-settings { max-width: 900px; margin-top: 0; padding: clamp(24px, 4vw, 46px); background: #fff; }
.chatbot-settings textarea { min-height: 480px; resize: vertical; font: 14px/1.65 Aptos, "Segoe UI", Helvetica, Arial, sans-serif; }
.chatbot-guide-meta { display: flex; justify-content: space-between; gap: 18px; margin-top: 8px; color: #777871; font-size: 9px; }
.chatbot-guide-note { margin-top: 24px; padding: 18px; border-left: 3px solid #2b579a; background: #eceff4; }
.chatbot-guide-note strong { font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.chatbot-guide-note p { margin: 6px 0 0; color: #62635d; font-size: 11px; line-height: 1.55; }
.chatbot-guide-actions { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-top: 24px; }
.collection-order { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 8px; border-right: 1px solid #cfcdc5; color: #777871; }
.collection-order button { width: 30px; height: 30px; border: 1px solid #bbb9b1; background: transparent; color: #333; cursor: pointer; }
.collection-order button:disabled { opacity: .3; }
.collection-fields { min-width: 0; padding: clamp(22px, 4vw, 40px); }
.collection-fields > .field { display: block; margin: 16px 0; }
.collection-preview { width: min(220px, 100%); aspect-ratio: 4 / 5; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; border: 1px solid #cfcdc5; background: #dedcd5; color: #777; }
.collection-preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
.collection-two { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.collection-two .field { margin: 10px 0; }
.collection-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 24px; }
.catalog-admin-preview { width: 170px; height: 130px; display: grid; place-items: center; margin-bottom: 12px; overflow: hidden; border: 1px solid #cfcdc5; background: repeating-linear-gradient(45deg, #ddd 0 8px, #eee 8px 16px); color: #777; }
.catalog-admin-preview img { width: 100%; height: 100%; object-fit: contain; }

@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr auto; }
  .mobile-menu-toggle { z-index: 3; justify-self: end; width: 48px; height: 42px; display: grid; grid-template-columns: 16px auto; grid-template-rows: repeat(3, 4px); align-content: center; align-items: center; gap: 2px 7px; padding: 0; border: 0; background: transparent; color: var(--white); cursor: pointer; }
  .mobile-menu-toggle span { grid-column: 1; width: 16px; height: 1px; margin: 0; background: currentColor; }
  .mobile-menu-toggle b { grid-column: 2; grid-row: 1 / 4; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .09em; }
  .tab-list { position: fixed; z-index: 2; inset: var(--header-height) 0 auto; height: calc(100svh - var(--header-height)); display: none; padding: 25px var(--pad) 45px; flex-direction: column; align-items: stretch; gap: 0; overflow-y: auto; background: rgba(5,5,5,.98); }
  .mobile-menu-open .tab-list { display: flex; }
  .tab-list .tab { min-height: 58px; border-bottom: 1px solid var(--line); text-align: left; font-size: clamp(22px, 5vw, 38px); font-weight: 400; }
  .tab-list .tab::after { display: none; }
  .tab-list .admin-nav-tab { position: static; height: 58px; padding-left: 0; border-left: 0; }
}

@media (max-width: 850px) {
  .friends-page .page-intro { min-height: 40vh; padding-top: 110px; padding-bottom: 45px; }
  .friends-page .page-intro h1 { grid-column: auto; }
  .game-shoot { right: 18px; bottom: 16px; }
  .closet-layout { grid-template-columns: 1fr; }
  .catalog-preview-stage { min-height: 390px; }
}

@media (max-width: 520px) {
  .friends-page .page-intro { min-height: 300px; padding: 105px 24px 38px; }
  .friends-page .page-intro h1 { font-size: 21vw; }
  .friends-grid { padding: 20px 24px 80px; }
  .friend-card { grid-template-columns: 1fr; gap: 26px; }
  .friend-card figure { width: min(78vw, 360px); }
  .game-sidebar { inset: auto 0 0; width: 100%; height: 58px; padding: 0 6px; border-top: 1px solid rgba(244,243,239,.2); border-right: 0; }
  body[data-active-tab="game"] .toast { right: 102px; bottom: 84px; left: auto; }
  .game-sidebar-brand, .game-sidebar > p { display: none; }
  .game-sidebar nav { height: 100%; grid-template-columns: repeat(5, 1fr); gap: 0; margin: 0; }
  .game-sidebar nav button { min-width: 0; min-height: 58px; display: flex; flex-direction: column; justify-content: center; gap: 3px; padding: 4px 2px; text-align: center; font-size: 9px; }
  .game-sidebar nav button > b { top: 8px; right: 9px; }
  .game-canvas { inset: 0 0 58px; width: 100%; height: calc(100% - 58px); }
  .game-shell.has-open-drawer .game-canvas { left: 0; width: 100%; }
  .game-hud { top: 10px; right: 12px; left: 12px; bottom: 58px; }
  .game-shell.has-open-drawer .game-hud { left: 12px; }
  .game-score, .game-streak { min-width: 66px; padding: 8px 9px; }
  .game-streak { min-width: 52px; }
  .active-player-chip { max-width: 92px; min-height: 34px; padding: 6px 8px; }
  .game-shot-meter { width: 116px; padding: 6px; }
  .game-shot-meter > span { font-size: 6px; }
  .game-shoot { bottom: 70px; width: 72px; }
  .game-drawer { inset: calc(var(--header-height) + 4px) 4px 62px; width: auto; height: auto; margin: 0; padding: 36px 22px; }
  .character-picker { grid-template-columns: 1fr; }
  .character-option.is-card { min-height: 220px; }
  .shop-preview { grid-template-columns: 120px 1fr; }
  .shop-preview-art { height: 170px; }
  .closet-slots article { grid-template-columns: 65px 1fr auto; }
  .catalog-grid article { grid-template-columns: 84px 1fr; }
  .collection-two { grid-template-columns: 1fr; }
  .admin-collection-card { grid-template-columns: 44px minmax(0, 1fr); }
  .collection-order { padding: 18px 5px; }
}

@media (min-width: 521px) and (max-height: 520px) and (orientation: landscape) {
  .game-shoot { width: 72px; }
  .game-score strong { font-size: 25px; }
  .game-sidebar { width: 62px; padding-top: 8px; }
  .game-sidebar-brand { padding-bottom: 10px; }
  .game-sidebar nav { margin-top: 8px; }
  .game-sidebar nav button { min-height: 31px; }
  .game-canvas { left: 62px; width: calc(100% - 62px); }
  .game-shell.has-open-drawer .game-canvas { left: 342px; width: calc(100% - 342px); }
  .game-hud { left: calc(62px + var(--pad)); }
  .game-shell.has-open-drawer .game-hud { left: calc(342px + var(--pad)); }
  .game-drawer { left: 62px; width: 280px; padding: 18px; }
}

/* Full-screen public collections */
body[data-active-tab="photos"],
body[data-active-tab="audio"],
body[data-active-tab="friends"] { height: 100svh; overflow: hidden; }
body[data-active-tab="photos"] .site-footer,
body[data-active-tab="audio"] .site-footer,
body[data-active-tab="friends"] .site-footer,
body[data-active-tab="photos"] .book-support-banner,
body[data-active-tab="audio"] .book-support-banner,
body[data-active-tab="friends"] .book-support-banner { display: none !important; }

.photos-page, .audio-page, .friends-page {
  height: 100svh;
  padding-top: calc(var(--header-height) + var(--playlist-height));
  overflow: hidden;
  display: grid;
  grid-template-rows: clamp(62px, 9vh, 92px) minmax(0, 1fr);
}
.photos-page .page-intro, .audio-page .page-intro, .friends-page .page-intro {
  min-height: 0;
  padding: 12px var(--pad) 10px;
  display: flex;
  align-items: end;
  justify-content: flex-end;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.photos-page .page-intro h1, .audio-page .page-intro h1, .friends-page .page-intro h1 {
  grid-column: auto;
  margin: 0;
  font-size: clamp(34px, 5.2vw, 66px);
  line-height: .78;
  letter-spacing: -.065em;
}
.photo-journal, .audio-journal, .friends-grid {
  min-height: 0;
  padding: 0 var(--pad) clamp(12px, 2vh, 22px);
  border-top: 0;
  overflow: hidden;
}
.immersive-deck { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) 48px 18px; }
.deck-stage { min-height: 0; overflow: hidden; cursor: e-resize; touch-action: pan-y; }
.deck-slide[hidden] { display: none !important; }
.deck-slide:not([hidden]) { animation: deck-reveal .32s ease both; }
@keyframes deck-reveal { from { opacity: 0; transform: translateX(12px); } }
.deck-controls { height: 48px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid var(--line); }
.deck-controls button { width: max-content; display: flex; align-items: center; gap: 12px; padding: 8px 0; border: 0; background: transparent; color: var(--white); cursor: pointer; text-transform: uppercase; font-size: 9px; letter-spacing: .11em; }
.deck-controls button:last-child { justify-self: end; }
.deck-controls button span { margin: 0; font-size: 17px; line-height: 1; transition: transform .2s; }
.deck-controls button b { font-weight: 500; }
.deck-controls button:first-child:hover span, .deck-controls button:first-child:focus-visible span { transform: translateX(-4px); }
.deck-controls button:last-child:hover span, .deck-controls button:last-child:focus-visible span { transform: translateX(4px); }
.deck-controls button:focus-visible { outline: 1px solid var(--white); outline-offset: 4px; }
.deck-controls p { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-variant-numeric: tabular-nums; }
.deck-controls p strong { color: var(--white); font-size: 12px; font-weight: 500; }
.deck-controls p i { width: clamp(36px, 6vw, 82px); height: 1px; background: #555550; }
.deck-hint { margin: 0; color: #686864; font-size: 8px; line-height: 18px; text-align: center; text-transform: uppercase; letter-spacing: .1em; }

.photo-entry { height: 100%; min-height: 0; margin: 0; padding: clamp(14px, 2.5vh, 28px) 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(260px, 27vw, 390px); grid-template-rows: minmax(0, 1fr) auto; gap: 0 clamp(28px, 5vw, 74px); }
.photo-entry .photo-frame, .photo-entry-wide .photo-frame, .photo-entry-wide:first-child .photo-frame, .photo-entry-offset .photo-frame { position: relative; width: 100%; height: 100%; min-width: 0; min-height: 0; grid-row: 1 / 3; margin: 0; overflow: hidden; }
.photo-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; }
.photo-entry figcaption { align-self: end; grid-template-columns: 34px minmax(0, 1fr); padding: 18px 0; }
.photo-entry figcaption time { grid-column: 2; margin-top: 5px; }
.photo-entry figcaption strong { font-size: clamp(18px, 2.1vw, 30px); line-height: 1.08; font-weight: 400; letter-spacing: -.035em; }
.photo-entry figcaption p { margin-top: 10px; line-height: 1.65; }
.inline-comments { max-height: 112px; overflow-y: auto; flex-wrap: wrap; padding-bottom: 4px; scrollbar-width: thin; }
.inline-comments p { flex: 1 1 100%; color: #aaa9a4; }

.audio-entry { width: min(1120px, 100%); height: 100%; min-height: 0; margin: auto; padding: clamp(18px, 4vh, 48px) 0; border: 0; align-items: center; }
.audio-entry.has-cover .audio-entry-main { height: 100%; min-height: 0; grid-template-columns: minmax(220px, .78fr) minmax(0, 1.22fr); }
.audio-entry-cover { width: auto; height: min(48vw, 100%); max-width: 100%; max-height: min(56vh, 530px); justify-self: center; }
.audio-entry-copy { align-self: center; }

.friend-card { width: min(1100px, 100%); height: 100%; min-height: 0; margin: auto; padding: clamp(16px, 3vh, 36px) 0; border: 0; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); }
.friend-card figure { width: auto; height: min(100%, 58vh); justify-self: center; }
.friend-card > div { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
.friend-card h2 { font-size: clamp(42px, 6vw, 84px); }

@media (max-width: 700px) {
  .photos-page, .audio-page, .friends-page { grid-template-rows: 58px minmax(0, 1fr); }
  .photos-page .page-intro, .audio-page .page-intro, .friends-page .page-intro { padding: 9px 18px; }
  .photos-page .page-intro h1, .audio-page .page-intro h1, .friends-page .page-intro h1 { font-size: 35px; }
  .photo-journal, .audio-journal, .friends-grid { padding: 0 18px 8px; }
  .immersive-deck { grid-template-rows: minmax(0, 1fr) 44px 14px; }
  .deck-controls { height: 44px; }
  .deck-controls button b { display: none; }
  .deck-hint { line-height: 14px; }
  .photo-entry { padding: 10px 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto auto; }
  .photo-entry .photo-frame, .photo-entry-wide .photo-frame, .photo-entry-wide:first-child .photo-frame, .photo-entry-offset .photo-frame { position: static; grid-row: auto; min-height: 0; }
  .photo-frame img { position: static; width: auto; height: auto; max-width: 100%; max-height: 100%; margin: auto; }
  .photo-entry figcaption { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 10px 0; }
  .photo-entry figcaption time { grid-column: auto; margin: 0; font-size: 9px; }
  .photo-entry figcaption strong { font-size: 16px; }
  .photo-entry figcaption p { margin-top: 3px; font-size: 10px; line-height: 1.4; }
  .inline-comments { max-height: 54px; padding: 7px 0 0; font-size: 9px; }
  .audio-entry { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 12px 0; }
  .audio-entry.has-cover .audio-entry-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 14px; }
  .audio-entry-cover { width: min(100%, 34vh); height: auto; max-height: 34vh; }
  .audio-entry h2 { font-size: clamp(25px, 8vw, 38px); }
  .audio-entry h2 + p { margin-top: 7px; font-size: 10px; }
  .audio-entry-main header { grid-template-columns: 1fr; gap: 7px; }
  .audio-player { margin-top: 14px; }
  .friend-card { padding: 10px 0; grid-template-columns: 1fr; grid-template-rows: minmax(0, 42%) minmax(0, 1fr); gap: 16px; align-items: stretch; }
  .friend-card figure { width: min(62vw, 260px); height: 100%; }
  .friend-card > div { text-align: center; }
  .friend-card h2 { margin: 4px 0 8px; font-size: clamp(36px, 12vw, 58px); }
  .friend-card p { margin: 0 auto; font-size: 11px; line-height: 1.5; }
  .friend-card a { margin-top: 9px; }
}

/* Final public Friends layout overrides the former one-card carousel rules. */
body[data-active-tab="friends"] .friends-page { grid-template-rows: clamp(132px, 18vh, 190px) minmax(0, 1fr); }
body[data-active-tab="friends"] .friends-page .page-intro { min-height: 0; justify-content: center; align-items: center; padding: 24px var(--pad) 10px; text-align: center; border-bottom: 0; }
body[data-active-tab="friends"] .friends-page .page-intro h1 { font-size: clamp(38px, 4vw, 58px); line-height: 1; letter-spacing: -.035em; }
body[data-active-tab="friends"] .friends-page .page-intro p { margin: 16px 0 0; color: #d0cfca; font-size: clamp(14px, 1.25vw, 19px); }
body[data-active-tab="friends"] .friends-page .friends-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: max-content; column-gap: clamp(48px, 5vw, 88px); row-gap: clamp(58px, 7vh, 88px); align-content: start; padding: 22px clamp(32px, 5vw, 82px) 70px; overflow-y: auto; }
body[data-active-tab="friends"] .friends-page .friend-card { width: auto; height: max-content; min-width: 0; margin: 0; padding: 0; display: grid; grid-template-columns: 48px clamp(118px, 10vw, 176px) minmax(0, 1fr); grid-template-rows: max-content; column-gap: clamp(16px, 2vw, 30px); align-items: start; align-self: start; overflow: visible; }
body[data-active-tab="friends"] .friends-page .friend-card figure { width: 100%; height: auto; aspect-ratio: 1 / 1.08; }
body[data-active-tab="friends"] .friends-page .friend-card-copy { min-width: 0; max-height: none; overflow: visible; padding-bottom: 0; text-align: left; }
body[data-active-tab="friends"] .friends-page .friend-position { min-height: 48px; display: flex; align-items: flex-start; justify-content: flex-end; padding: 2px 13px 0 0; border-right: 1px solid var(--stats-accent, #d9bd45); color: var(--stats-accent, #d9bd45); font: 600 clamp(14px, 1vw, 17px)/1 Aptos, "Segoe UI", sans-serif; letter-spacing: .08em; }
body[data-active-tab="friends"] .friends-page .friend-card:last-child:nth-child(odd) { width: calc((100% - clamp(48px, 5vw, 88px)) / 2); grid-column: 1 / -1; justify-self: center; }

@media (min-width: 901px) {
  body[data-active-tab="friends"] .friends-page { grid-template-rows: clamp(86px, 12vh, 132px) minmax(0, 1fr); }
  body[data-active-tab="friends"] .friends-page .friends-grid { height: 100%; grid-template-rows: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); row-gap: clamp(10px, 1.8vh, 24px); padding-top: clamp(8px, 1.2vh, 14px); padding-bottom: clamp(10px, 1.5vh, 18px); overflow: hidden; }
  body[data-active-tab="friends"] .friends-page .friend-card { height: 100%; grid-template-columns: 48px clamp(88px, min(10vw, 18vh), 176px) minmax(0, 1fr); overflow: hidden; }
  body[data-active-tab="friends"] .friends-page .friend-card figure { width: 100%; max-height: 100%; }
  body[data-active-tab="friends"] .friends-page .friend-card-copy { max-height: 100%; overflow-y: auto; scrollbar-width: thin; }
  body[data-active-tab="friends"] .friends-page .friend-card h2 { margin-bottom: clamp(6px, 1vh, 12px); font-size: clamp(16px, min(2.15vw, 2.7vh), 32px); }
  body[data-active-tab="friends"] .friends-page .friend-description p { font-size: clamp(9px, min(1.2vw, 1.55vh), 18px); line-height: 1.25; }
  body[data-active-tab="friends"] .friends-page .friend-card ul { margin-top: clamp(6px, 1vh, 14px); font-size: clamp(8px, min(1.08vw, 1.4vh), 16px); line-height: 1.3; }
  body[data-active-tab="friends"] .friends-page .friend-card a { margin-top: clamp(6px, 1vh, 14px); font-size: clamp(9px, min(1.12vw, 1.5vh), 17px); }
}

/* The enlarged support banner remains visible on every public tab. */
body:not([data-active-tab="admin"]) .book-support-banner:not([hidden]) { display: block !important; }
body:not([data-active-tab="admin"]) .book-support-banner:not(.is-collapsed):not([hidden]) { min-height: 128px; padding-top: 22px; padding-bottom: 24px; }
body:not([data-active-tab="admin"]) .book-support-banner:not(.is-collapsed) .book-support-copy strong { font-size: 16px; }
body:not([data-active-tab="admin"]) .book-support-banner:not(.is-collapsed) .book-support-copy span { margin-top: 5px; font-size: 11px; line-height: 1.45; }
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #photos,
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #audio,
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #friends,
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #writing,
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #bio { height: calc(100svh - 128px); }
body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) .game-shell { height: calc(100svh - var(--header-height) - 128px); }

@media (min-width: 901px) and (max-width: 1500px) {
  body[data-active-tab="friends"] .friends-page .friends-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(24px, 3vw, 46px); row-gap: clamp(42px, 5vh, 62px); padding-right: clamp(22px, 3vw, 46px); padding-left: clamp(22px, 3vw, 46px); }
  body[data-active-tab="friends"] .friends-page .friend-card { grid-template-columns: clamp(34px, 3.2vw, 44px) clamp(88px, min(9vw, 18vh), 138px) minmax(0, 1fr); column-gap: clamp(11px, 1.35vw, 20px); }
  body[data-active-tab="friends"] .friends-page .friend-card:last-child:nth-child(odd) { width: calc((100% - clamp(24px, 3vw, 46px)) / 2); }
  body[data-active-tab="friends"] .friends-page .friend-position { min-height: 40px; padding-right: clamp(8px, .8vw, 11px); font-size: clamp(11px, 1vw, 14px); }
  body[data-active-tab="friends"] .friends-page .friend-card h2 { margin-bottom: clamp(6px, 1vh, 11px); font-size: clamp(15px, min(1.9vw, 2.5vh), 27px); }
  body[data-active-tab="friends"] .friends-page .friend-description p { font-size: clamp(8.5px, min(1.05vw, 1.45vh), 15px); line-height: 1.25; }
  body[data-active-tab="friends"] .friends-page .friend-card ul { margin-top: clamp(6px, 1vh, 12px); font-size: clamp(8px, min(.95vw, 1.3vh), 14px); }
  body[data-active-tab="friends"] .friends-page .friend-card a { margin-top: clamp(6px, 1vh, 12px); font-size: clamp(9px, min(1vw, 1.4vh), 15px); }
}

@media (max-width: 900px) {
  body[data-active-tab="friends"] .friends-page .friends-grid { width: min(760px, 100%); grid-template-columns: 1fr; gap: 42px; margin: 0 auto; }
  body[data-active-tab="friends"] .friends-page .friend-card, body[data-active-tab="friends"] .friends-page .friend-card:last-child:nth-child(odd) { width: 100%; grid-column: auto; grid-template-columns: 48px clamp(130px, 21vw, 180px) minmax(0, 1fr); column-gap: clamp(18px, 3vw, 34px); justify-self: stretch; }
}

@media (max-width: 700px) {
  body[data-active-tab="friends"] .friends-page { grid-template-rows: 112px minmax(0, 1fr); }
  body[data-active-tab="friends"] .friends-page .page-intro { min-height: 0; padding: 17px 18px 6px; }
  body[data-active-tab="friends"] .friends-page .page-intro h1 { font-size: 38px; }
  body[data-active-tab="friends"] .friends-page .page-intro p { margin-top: 8px; font-size: 13px; }
  body[data-active-tab="friends"] .friends-page .friends-grid { gap: 34px; padding: 18px 18px 48px; }
  body[data-active-tab="friends"] .friends-page .friend-card, body[data-active-tab="friends"] .friends-page .friend-card:last-child:nth-child(odd) { grid-template-columns: 38px 104px minmax(0, 1fr); column-gap: 14px; }
  body[data-active-tab="friends"] .friends-page .friend-card figure { width: 104px; height: auto; }
  body[data-active-tab="friends"] .friends-page .friend-position { min-height: 40px; padding-right: 9px; font-size: 12px; }
  body:not([data-active-tab="admin"]) .book-support-banner:not(.is-collapsed):not([hidden]) { min-height: 0; padding-top: 18px; padding-bottom: 20px; }
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #photos,
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #audio,
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #friends,
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #writing,
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) #bio { height: 100svh; }
  body:not([data-active-tab="admin"]):has(.book-support-banner:not(.is-collapsed):not([hidden])) .game-shell { height: calc(100svh - var(--header-height)); }
}

@media (max-width: 430px) {
  body[data-active-tab="friends"] .friends-page .friend-card, body[data-active-tab="friends"] .friends-page .friend-card:last-child:nth-child(odd) { grid-template-columns: 34px 86px minmax(0, 1fr); column-gap: 11px; }
  body[data-active-tab="friends"] .friends-page .friend-card figure { width: 86px; }
}

/* Flat writing index: story details and chapter titles without split panes. */
body[data-active-tab="writing"] .writing-toc { height: 100%; display: block; overflow-y: auto; padding: clamp(42px, 7vh, 82px) var(--pad) 100px; scrollbar-width: thin; }
body[data-active-tab="writing"] .writing-toc > header { width: min(1080px, 100%); margin: 0 auto; padding: 0 0 clamp(30px, 5vh, 56px); border: 0; }
body[data-active-tab="writing"] .writing-toc > header h1 { margin: 10px 0 0; font-size: clamp(58px, 8vw, 112px); line-height: .86; }
body[data-active-tab="writing"] .story-buckets { width: min(1080px, 100%); margin: 0 auto; padding: 0; overflow: visible; border-top: 1px solid var(--line); }
body[data-active-tab="writing"] .story-bucket { min-height: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(290px, 1.1fr); gap: clamp(48px, 9vw, 130px); align-items: start; padding: clamp(42px, 7vh, 76px) 0; border-bottom: 1px solid var(--line); }
body[data-active-tab="writing"] .story-bucket-copy h2 { margin: 0 0 18px; font: italic 400 clamp(38px, 5vw, 68px)/.94 Georgia, "Times New Roman", serif; letter-spacing: -.05em; }
body[data-active-tab="writing"] .story-bucket-copy p { max-width: 520px; margin: 0; color: #b0afa9; font-size: clamp(12px, 1.2vw, 16px); line-height: 1.7; }
body[data-active-tab="writing"] .story-bucket ol { margin: 3px 0 0; padding: 0; border-top: 1px solid var(--line); }
body[data-active-tab="writing"] .story-bucket button { padding: 17px 0; }

/* Story overview and dedicated chapter document modes in the editor. */
.story-overview-sheet { min-height: 720px; }
.story-editor-kicker { margin: 0 0 18px; color: #898a84; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .13em; }
.story-overview-sheet .story-introduction { margin: 26px 0 42px; }
.story-overview-sheet .story-introduction > span { display: block; margin-bottom: 8px; color: #898a84; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .1em; }
.story-overview-sheet .story-introduction textarea { min-height: 105px; padding: 15px 0; border: 0; border-top: 1px solid #deded9; border-bottom: 1px solid #deded9; background: transparent; color: #555650; font: italic 15px/1.65 Aptos, "Segoe UI", sans-serif; resize: vertical; }
.story-chapter-outline { margin-top: 10px; }
.story-chapter-outline > header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 12px; }
.story-chapter-outline > header div span, .story-chapter-outline > header div strong { display: block; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.story-chapter-outline > header div span { color: #555650; font-size: 12px; font-weight: 600; }.story-chapter-outline > header div strong { margin-top: 4px; color: #92938d; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.story-chapter-outline > header > button { padding: 8px 10px; border: 1px solid #c8c8c3; border-radius: 6px; background: #f5f5f2; color: #147ce5; font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; cursor: pointer; }
.story-chapter-outline ol { margin: 0; padding: 0; list-style: none; border-top: 1px solid #d2d2cd; }
.story-chapter-outline li { border-bottom: 1px solid #d2d2cd; }
.story-chapter-outline li button { width: 100%; display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 18px 4px; border: 0; background: transparent; color: #282925; text-align: left; cursor: pointer; }
.story-chapter-outline li button > span { color: #999a94; font-variant-numeric: tabular-nums; }.story-chapter-outline li button b { font: 400 20px/1.2 Georgia, "Times New Roman", serif; }.story-chapter-outline li button i { color: #777872; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-style: normal; text-transform: uppercase; letter-spacing: .08em; transition: transform .2s; }.story-chapter-outline li button:hover i, .story-chapter-outline li button:focus-visible i { color: #147ce5; transform: translateX(4px); }
.chapter-document-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin: 0 0 28px; padding-bottom: 12px; border-bottom: 1px solid #deded9; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; }
.chapter-document-heading button { padding: 0; border: 0; background: transparent; color: #147ce5; cursor: pointer; }.chapter-document-heading p { margin: 0; color: #898a84; text-align: right; }.chapter-document-heading p span { margin: 0 5px; }
.document-sheet .chapter-title-field { margin-bottom: 34px; }
.document-sheet > .delete-chapter { margin-top: 55px; padding: 8px 0; border: 0; border-bottom: 1px solid #c97a72; background: transparent; color: #a84439; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-transform: uppercase; letter-spacing: .08em; cursor: pointer; }

@media (max-width: 760px) {
  body[data-active-tab="writing"] .writing-toc { padding: 38px 22px 80px; }
  body[data-active-tab="writing"] .story-bucket { grid-template-columns: 1fr; gap: 30px; padding: 40px 0; }
  body[data-active-tab="writing"] .story-bucket-copy h2 { font-size: clamp(36px, 12vw, 56px); }
  .story-chapter-outline li button { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 9px; }.story-chapter-outline li button b { font-size: 17px; }.story-chapter-outline li button i { font-size: 0; }.story-chapter-outline li button i::after { content: '→'; font-size: 14px; }
  .chapter-document-heading { align-items: flex-start; }.chapter-document-heading p { max-width: 155px; line-height: 1.4; }
}

/* On media/game tabs, minimizing dismisses the banner instead of leaving a badge. */
body[data-active-tab="photos"] .book-support-banner.is-collapsed:not([hidden]),
body[data-active-tab="audio"] .book-support-banner.is-collapsed:not([hidden]),
body[data-active-tab="game"] .book-support-banner.is-collapsed:not([hidden]) { display: none !important; }

/* Self-contained writing studio */
body.admin-writing-open { height: 100svh; overflow: hidden; }
body.admin-writing-open .admin-page { height: 100svh; min-height: 0; overflow: hidden; }
body[data-active-tab="admin"] .admin-page { animation: none; transform: none; }
body.admin-writing-open .admin-shell { height: calc(100svh - var(--header-height)); min-height: 0; }
body.admin-writing-open .admin-workspace { height: 100%; min-height: 0; display: grid; grid-template-rows: 92px minmax(0, 1fr); padding-bottom: 18px; }
body.admin-writing-open .admin-topbar { height: 92px; }
body.admin-writing-open [data-section-panel="stories"] { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); padding-top: 22px; }
body.admin-writing-open [data-section-panel="stories"] > .admin-toolbar { margin-bottom: 14px; }
body.admin-writing-open .story-manager { width: 100%; height: 100%; min-height: 0; }
body.admin-writing-open .story-library, body.admin-writing-open .story-editor-empty { height: 100%; min-height: 0; }
.story-editor:not([hidden]) { height: 100%; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr); overflow: hidden; }
.story-editor[data-editor-mode="chapter"]:not([hidden]) { grid-template-rows: auto auto auto minmax(0, 1fr); }
.editor-scroll { min-width: 0; min-height: 0; overflow: auto; overscroll-behavior: contain; scrollbar-gutter: stable; background: #d8d8d5; }
.editor-scroll .document-sheet { zoom: var(--editor-zoom, 1); }

.story-editor .editor-actions { position: relative; z-index: 8; display: grid; grid-template-columns: minmax(160px, 1fr) auto minmax(230px, 1fr); gap: 14px; flex: none; padding: 9px 12px; }
.story-editor .editor-actions > div { width: auto; margin: 0; }
.editor-status, .editor-view-actions, .editor-publish-actions { display: flex; align-items: center; gap: 8px; }
.editor-view-actions { justify-content: center; }
.editor-publish-actions { justify-content: flex-end; }
.editor-save-state { color: #777872; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; white-space: nowrap; }
.editor-save-state.is-dirty { color: #9a6b32; }
.editor-zoom { height: 30px; display: inline-flex; align-items: center; overflow: hidden; border: 1px solid rgba(0,0,0,.13); border-radius: 7px; background: rgba(255,255,255,.65); }
.editor-zoom button { height: 100%; min-width: 29px; padding: 0 7px; border: 0; border-right: 1px solid rgba(0,0,0,.09); background: transparent; color: #53544f; cursor: pointer; }
.editor-zoom button:last-child { border-right: 0; border-left: 1px solid rgba(0,0,0,.09); font-size: 9px; }
.editor-zoom button:hover, .editor-zoom button:focus-visible { outline: 0; background: #fff; color: #0a68c7; }
.editor-zoom output { min-width: 42px; color: #6c6d67; font: 600 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; text-align: center; font-variant-numeric: tabular-nums; }
.story-editor .focus-button[aria-pressed="true"] { border-color: #147ce5; background: #e2f0ff; color: #075eae !important; }

.story-editor .format-toolbar { position: relative; top: auto; z-index: 7; max-height: 142px; overflow: visible; flex: none; scrollbar-width: thin; }
.story-editor .overview-toolbar { min-height: 48px; align-items: center; justify-content: flex-end; padding-block: 8px; }
.format-toolbar .rich-style-controls { flex: 1 0 100%; grid-template-columns: 112px 72px 104px 82px 92px; justify-content: start; }
.editor-inspector { position: relative; order: 1; font: 600 10px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.editor-inspector + .editor-inspector { margin-left: 2px; }
.editor-inspector summary { min-height: 30px; display: flex; align-items: center; gap: 7px; padding: 7px 9px; border: 1px solid rgba(0,0,0,.14); border-radius: 6px; background: #fff; color: #4c4d49; cursor: pointer; list-style: none; white-space: nowrap; }
.editor-inspector summary::-webkit-details-marker { display: none; }
.editor-inspector[open] summary { border-color: rgba(10,132,255,.45); box-shadow: 0 0 0 2px rgba(10,132,255,.08); }
.editor-inspector .typography-controls { position: absolute; z-index: 110; top: calc(100% + 8px); right: 0; width: min(620px, calc(100vw - 48px)); margin: 0; padding: 16px; grid-template-columns: repeat(4, minmax(100px, 1fr)); border: 1px solid rgba(0,0,0,.18); border-radius: 11px; background: rgba(250,250,248,.99); box-shadow: 0 18px 45px rgba(0,0,0,.2); backdrop-filter: blur(20px); }
.editor-inspector .body-inspector-panel { grid-template-columns: repeat(3, minmax(110px, 1fr)); }
.editor-inspector .typography-controls legend { display: none; }
.editor-inspector .typography-controls label:first-of-type { grid-column: auto; }

.document-sheet { width: min(calc(var(--story-page-measure, 588px) + 172px), calc(100% - 72px)); }
.document-sheet .story-title-field { width: min(100%, var(--story-title-measure, 588px)); margin-right: auto; margin-left: auto; }
.document-sheet .title-input { width: 100%; min-height: 0; overflow: hidden; font-size: var(--story-title-size, 96px); white-space: pre-wrap; }
.document-sheet .story-introduction, .document-sheet .editor-info, .document-sheet .story-content-editor, .document-sheet .story-chapter-outline { width: min(100%, var(--story-body-measure, 588px)); margin-right: auto; margin-left: auto; }
.document-sheet .story-content-editor { min-height: 55vh; }
.document-sheet .story-content-editor:empty::before { content: 'Begin here…'; color: #aaa9a4; }
.editor-info { align-items: center; justify-content: space-between; gap: 16px; }
.editor-shortcuts { color: #a0a19b; font: 500 9px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }

/* The public reader uses the same title breaks, type settings, and line measures. */
.writing-reader-page > header { width: min(var(--story-title-measure, 588px), calc(100% - 48px)); }
.writing-reader-page > header h1 { font-size: var(--story-title-size, 96px); white-space: pre-line; }
.writing-reader-page .story-body { width: min(var(--story-body-measure, 588px), calc(100% - 48px)); }
body[data-active-tab="writing"] .story-bucket-copy h2 { width: min(100%, var(--story-title-measure, 588px)); font-family: var(--story-title-font, Georgia, serif); font-size: var(--story-title-size, 68px); line-height: var(--story-title-leading, .94); font-style: var(--story-title-style, italic); font-weight: var(--story-title-weight, 400); letter-spacing: var(--story-title-tracking, -.05em); text-align: var(--story-title-align, left); white-space: pre-line; }

/* Focus mode keeps every writing control inside a viewport-sized editor. */
body.writing-focus-mode { height: 100svh; overflow: hidden; }
body.writing-focus-mode .story-manager { position: fixed; z-index: 100; inset: 0; width: 100vw; height: 100svh; min-height: 0; grid-template-columns: 1fr; border: 0; border-radius: 0; box-shadow: none; }
body.writing-focus-mode .story-library { display: none; }
body.writing-focus-mode .story-editor { grid-column: 1; }
body.writing-focus-mode .editor-inspector .typography-controls { right: 18px; }

@media (max-width: 980px) {
  .story-editor .editor-actions { grid-template-columns: 1fr auto; }
  .editor-view-actions { justify-content: flex-end; }
  .editor-publish-actions { grid-column: 1 / -1; justify-content: flex-end; }
}

@media (max-width: 760px) {
  body.admin-writing-open .admin-shell { height: calc(100svh - 68px); }
  body.admin-writing-open .admin-workspace { grid-template-rows: 70px minmax(0, 1fr); padding: 0 12px 12px; }
  body.admin-writing-open .admin-topbar { height: 70px; }
  body.admin-writing-open [data-section-panel="stories"] { padding-top: 12px; }
  body.admin-writing-open [data-section-panel="stories"] > .admin-toolbar { display: none; }
  body.admin-writing-open .story-manager { display: grid; grid-template-columns: 1fr; grid-template-rows: minmax(54px, 130px) minmax(0, 1fr); }
  body.admin-writing-open .story-library { grid-column: 1; grid-row: 1; max-height: 130px; }
  body.admin-writing-open .story-editor, body.admin-writing-open .story-editor-empty { grid-column: 1; grid-row: 2; }
  .story-editor .editor-actions { display: flex; flex-wrap: wrap; gap: 7px; }
  .editor-status { order: 1; }
  .editor-view-actions { order: 2; margin-left: auto !important; }
  .editor-publish-actions { order: 3; width: 100% !important; }
  .editor-save-state, .editor-shortcuts { display: none; }
  .story-editor .format-toolbar { max-height: 126px; flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; }
  .format-toolbar .rich-style-controls { flex: 0 0 auto; grid-template-columns: 86px 58px 82px 62px 72px; order: 1; padding-top: 0; border-top: 0; }
  .editor-inspector { flex: 0 0 auto; order: 2; }
  .editor-inspector .typography-controls { position: fixed; top: 110px; right: 12px; left: 12px; width: auto; max-height: calc(100svh - 130px); overflow-y: auto; grid-template-columns: 1fr 1fr; }
  .editor-inspector .body-inspector-panel { grid-template-columns: 1fr 1fr; }
  .document-sheet { width: calc(100% - 24px); margin: 18px auto 32px; padding: 38px 25px 55px; }
  .document-sheet .title-input { font-size: min(var(--story-title-size, 58px), 15vw); }
  .writing-reader-page > header h1, body[data-active-tab="writing"] .story-bucket-copy h2 { font-size: min(var(--story-title-size, 58px), 15vw); }
  body.writing-focus-mode .story-manager { display: grid; grid-template-rows: minmax(0, 1fr); }
  body.writing-focus-mode .story-editor { grid-row: 1; }
}

@media (max-width: 520px) {
  .editor-zoom button:last-child { display: none; }
  .editor-publish-actions .danger-button { margin-right: auto; }
}

/* Compact, single-screen Writing directory */
body[data-active-tab="writing"] .writing-toc { height: 100%; display: grid; grid-template-columns: minmax(260px, .72fr) minmax(480px, 1.28fr); padding: 0; overflow: hidden; }
body[data-active-tab="writing"] .writing-toc > header { width: auto; min-width: 0; height: 100%; margin: 0; padding: clamp(42px, 7vh, 76px) var(--pad) clamp(34px, 5vh, 58px); display: flex; flex-direction: column; justify-content: space-between; border-right: 1px solid var(--line); }
body[data-active-tab="writing"] .writing-toc > header h1 { margin: 13px 0 0; font-size: clamp(64px, 8vw, 126px); line-height: .86; letter-spacing: -.07em; }
.writing-index-note { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.writing-index-note p { max-width: 230px; margin: 0; color: #b3b2ad; font-size: clamp(11px, 1vw, 14px); line-height: 1.55; }
.writing-index-note span { color: #666661; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; white-space: nowrap; }
.writing-directory-scroll { min-width: 0; min-height: 0; height: 100%; display: grid; align-content: center; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
body[data-active-tab="writing"] .story-buckets { width: 100%; margin: 0; padding: clamp(22px, 3.5vh, 42px) var(--pad); overflow: visible; border: 0; }
body[data-active-tab="writing"] .story-bucket { min-height: 0; display: block; padding: 0; border-top: 1px solid var(--line); border-bottom: 0; }
body[data-active-tab="writing"] .story-bucket:last-child { border-bottom: 1px solid var(--line); }
body[data-active-tab="writing"] .story-bucket-toggle { width: 100%; min-height: clamp(76px, 10vh, 108px); display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: clamp(14px, 2vw, 28px); align-items: center; padding: 16px 0; border: 0; background: transparent; color: var(--white); text-align: left; cursor: pointer; }
body[data-active-tab="writing"] .story-bucket-toggle > span:first-child { align-self: start; padding-top: 7px; color: #5e5e5a; font-size: 9px; font-variant-numeric: tabular-nums; }
.story-bucket-heading { min-width: 0; display: block; }
body[data-active-tab="writing"] .story-bucket-heading b { width: min(100%, var(--story-title-measure, 588px)); display: block; overflow: hidden; color: #d8d7d2; font-family: var(--story-title-font, Georgia, serif); font-size: min(var(--story-title-size, 48px), clamp(30px, 4vw, 56px)); line-height: var(--story-title-leading, .94); font-style: var(--story-title-style, italic); font-weight: var(--story-title-weight, 400); letter-spacing: var(--story-title-tracking, -.045em); text-align: var(--story-title-align, left); white-space: pre-line; text-overflow: ellipsis; transition: color .2s, transform .25s ease; }
.story-bucket-heading small { display: block; margin-top: 8px; color: #6d6d68; font-size: 8px; font-style: normal; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; }
.story-bucket-toggle > i { min-width: 68px; display: flex; align-items: center; justify-content: flex-end; gap: 13px; color: #777772; font-style: normal; }
.story-bucket-toggle > i > span { font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.story-bucket-toggle > i > b { position: relative; width: 28px; height: 28px; display: block; border: 1px solid #393936; border-radius: 50%; color: #aaa9a4; font-size: 0; font-weight: 300; transition: transform .3s ease, border-color .2s, background .2s, color .2s; }
.story-bucket-toggle > i > b::before, .story-bucket-toggle > i > b::after { content: ''; position: absolute; top: 50%; left: 50%; width: 9px; border-top: 1px solid currentColor; transform: translate(-50%, -50%); }
.story-bucket-toggle > i > b::after { transform: translate(-50%, -50%) rotate(90deg); }
.story-bucket-toggle:hover .story-bucket-heading b, .story-bucket-toggle:focus-visible .story-bucket-heading b, .story-bucket.is-open .story-bucket-heading b { color: var(--white); transform: translateX(5px); }
.story-bucket-toggle:focus-visible { outline: 0; }
.story-bucket-toggle:hover > i > b, .story-bucket-toggle:focus-visible > i > b { border-color: #777772; color: var(--white); }
.story-bucket.is-open .story-bucket-toggle > i > b { border-color: var(--white); background: var(--white); color: var(--black); transform: rotate(45deg); }
.story-bucket-panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s cubic-bezier(.2,.8,.2,1), opacity .22s ease; }
.story-bucket.is-open .story-bucket-panel { grid-template-rows: 1fr; opacity: 1; }
.story-bucket-panel-inner { min-height: 0; overflow: hidden; }
.story-bucket-panel-inner { display: grid; grid-template-columns: minmax(160px, .75fr) minmax(230px, 1.25fr); gap: clamp(28px, 4vw, 64px); padding: 0 0 0 62px; transition: padding .35s cubic-bezier(.2,.8,.2,1); }
.story-bucket.is-open .story-bucket-panel-inner { padding-top: 2px; padding-bottom: clamp(24px, 4vh, 40px); }
.story-bucket-details { align-self: start; }
.story-bucket-details p { display: -webkit-box; margin: 0 0 17px; overflow: hidden; color: #a9a8a3; font-size: clamp(10px, .9vw, 13px); line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.story-bucket-details > span { color: #5f5f5b; font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
body[data-active-tab="writing"] .story-bucket-panel ol { max-height: min(28vh, 230px); margin: 0; padding: 0; overflow-y: auto; border-top: 1px solid var(--line); list-style: none; scrollbar-width: thin; }
body[data-active-tab="writing"] .story-bucket-panel li { border-bottom: 1px solid var(--line); }
body[data-active-tab="writing"] .story-bucket-panel li button { width: 100%; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 13px 0; border: 0; background: transparent; color: var(--white); text-align: left; cursor: pointer; }
body[data-active-tab="writing"] .story-bucket-panel li button > span { color: #62625e; font-size: 9px; font-variant-numeric: tabular-nums; }
body[data-active-tab="writing"] .story-bucket-panel li button > b { overflow: hidden; font-family: var(--story-title-font, Aptos, "Segoe UI", sans-serif); font-size: 11px; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
body[data-active-tab="writing"] .story-bucket-panel li button > i { color: #777772; font-style: normal; transition: transform .2s, color .2s; }
body[data-active-tab="writing"] .story-bucket-panel li button:hover > i, body[data-active-tab="writing"] .story-bucket-panel li button:focus-visible > i { color: var(--white); transform: translateX(5px); }
body[data-active-tab="writing"] .story-bucket-panel li button:focus-visible { outline: 1px solid #555550; outline-offset: 3px; }

@media (max-width: 820px) {
  body[data-active-tab="writing"] .writing-toc { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); }
  body[data-active-tab="writing"] .writing-toc > header { height: auto; padding: 25px 22px 20px; display: grid; grid-template-columns: 1fr auto; align-items: end; gap: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  body[data-active-tab="writing"] .writing-toc > header h1 { font-size: clamp(48px, 15vw, 72px); }
  .writing-index-note { display: block; padding: 0; border: 0; text-align: right; }
  .writing-index-note p { display: none; }
  .writing-index-note span { display: block; padding-bottom: 4px; }
  .writing-directory-scroll { align-content: start; }
  body[data-active-tab="writing"] .story-buckets { padding: 10px 22px 28px; }
  body[data-active-tab="writing"] .story-bucket-toggle { min-height: 78px; grid-template-columns: 25px minmax(0, 1fr) auto; gap: 10px; }
  body[data-active-tab="writing"] .story-bucket-heading b { font-size: min(var(--story-title-size, 42px), 10vw); }
  .story-bucket-toggle > i { min-width: 28px; }
  .story-bucket-toggle > i > span { display: none; }
  .story-bucket-panel-inner { grid-template-columns: 1fr; gap: 19px; padding: 0 0 0 35px; }
  .story-bucket.is-open .story-bucket-panel-inner { padding-bottom: 25px; }
  .story-bucket-details p { margin-bottom: 9px; -webkit-line-clamp: 2; }
  body[data-active-tab="writing"] .story-bucket-panel ol { max-height: min(31vh, 215px); }
}

@media (max-height: 650px) and (min-width: 821px) {
  body[data-active-tab="writing"] .writing-toc > header { padding-top: 30px; padding-bottom: 30px; }
  body[data-active-tab="writing"] .writing-toc > header h1 { font-size: 72px; }
  body[data-active-tab="writing"] .story-buckets { padding-top: 16px; padding-bottom: 16px; }
  body[data-active-tab="writing"] .story-bucket-toggle { min-height: 66px; }
  .story-bucket.is-open .story-bucket-panel-inner { padding-bottom: 20px; }
  body[data-active-tab="writing"] .story-bucket-panel ol { max-height: 25vh; }
}

/* Stats and support — a compact editorial scoreboard. */
.stats-page { min-height: 100svh; padding-top: var(--header-height); background: #070707; }
body[data-active-tab="stats"][data-active-tab="stats"][data-active-tab="stats"] .book-support-banner:not([hidden]) { display: none !important; }
.stats-shell { width: min(1500px, 100%); margin: 0 auto; padding: clamp(42px, 6vw, 84px) var(--pad) 110px; }
.career-earnings { display: grid; grid-template-columns: minmax(320px, .95fr) minmax(520px, 1.05fr); gap: clamp(54px, 8vw, 130px); padding-bottom: clamp(48px, 6vw, 78px); border-bottom: 1px solid var(--line); }
.stats-earnings-panel h1, .hall-progress h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(31px, 3.5vw, 54px); line-height: 1; font-weight: 400; letter-spacing: -.035em; }
.career-total-row { min-height: 48px; display: flex; align-items: end; justify-content: space-between; margin-top: 22px; }
.career-total-row > span { font-family: Georgia, "Times New Roman", serif; font-size: clamp(30px, 4vw, 56px); font-variant-numeric: tabular-nums; }
.career-total-row small { padding-bottom: 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.career-progress { height: 13px; margin: 10px 0 18px; padding: 2px; border: 1px solid #77776f; }
.career-progress i { width: 0; height: 100%; display: block; background: var(--stats-accent, #d9bd45); transition: width .65s ease; }
.stats-support-button { width: min(370px, 100%); height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 0 28px; border: 1px solid var(--stats-accent, #d9bd45); background: var(--stats-accent, #d9bd45); color: #080808; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; letter-spacing: 0; cursor: pointer; }
.stats-support-button span { font-size: 23px; }
.stats-support-button:hover, .stats-support-button:focus-visible { outline: 0; background: transparent; color: var(--stats-accent, #d9bd45); }
.recent-supporters { margin-top: 32px; }
.recent-supporters > p { margin: 0; padding-bottom: 11px; border-bottom: 1px solid var(--line); color: #878780; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.recent-supporters ol { max-height: 180px; margin: 0; padding: 0; overflow-y: auto; scrollbar-gutter: stable; list-style: none; }
.recent-supporters li { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; min-height: 48px; padding-right: 14px; border-bottom: 1px solid #20201e; }
.recent-supporters .donor-copy { min-width: 0; display: flex; flex-direction: row; justify-content: space-between; gap: 18px; }
.recent-supporters .donor-copy strong { overflow: hidden; font-family: Georgia, "Times New Roman", serif; font-weight: 400; text-overflow: ellipsis; white-space: nowrap; }
.recent-supporters .donor-copy span { overflow: hidden; color: #777771; text-overflow: ellipsis; white-space: nowrap; }
.recent-supporters li > b { color: #dddcd6; font-weight: 400; font-variant-numeric: tabular-nums; }
.stats-profile-panel { align-self: start; padding-top: 3px; }
.stats-profile-card { display: grid; grid-template-columns: 135px 1fr; gap: 24px; }
.stats-profile-card img { width: 135px; aspect-ratio: 1; object-fit: cover; object-position: center 20%; filter: grayscale(1) contrast(1.05); }
.stats-profile-card h2 { margin: 0 0 13px; font-family: Georgia, "Times New Roman", serif; font-size: 22px; font-weight: 400; }
.stats-profile-card dl { display: grid; grid-template-columns: 76px 1fr; margin: 0; font-size: 10px; line-height: 1.45; }
.stats-profile-card dt { color: #85857f; }.stats-profile-card dd { margin: 0; }
.career-table { width: 100%; margin-top: 30px; border-collapse: collapse; font-family: Georgia, "Times New Roman", serif; font-size: 11px; text-align: center; }
.career-table th, .career-table td { padding: 8px 9px; border-bottom: 1px solid #20201e; font-weight: 400; }
.career-table thead th { color: #d8d7d2; font-family: Georgia, "Times New Roman", serif; font-size: 10px; text-transform: uppercase; letter-spacing: .09em; }
.career-table thead abbr { text-decoration: underline dotted; text-underline-offset: 3px; cursor: help; }
.career-table thead small { display: block; margin-top: 3px; color: #aaa9a4; font-size: 9px; font-weight: 400; letter-spacing: 0; text-transform: none; }
.career-table th:first-child { text-align: left; }.career-table tfoot { color: var(--stats-accent, #d9bd45); }
.hall-progress { padding: clamp(38px, 5vw, 62px) 0 clamp(48px, 6vw, 76px); border-bottom: 1px solid var(--line); }
.hall-progress h2 { font-size: clamp(28px, 3vw, 43px); }
.hall-progress-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 30px; }
.hall-progress-grid > div { padding: 0 26px; border-left: 1px solid var(--line); text-align: center; }
.hall-progress-grid > div:first-child { padding-left: 0; border-left: 0; }.hall-progress-grid > div:last-child { padding-right: 0; }
.hall-progress-grid span { display: block; min-height: 28px; color: #d8d7d2; font-family: Georgia, "Times New Roman", serif; font-size: 10px; text-transform: uppercase; letter-spacing: .11em; }
.hall-progress-grid strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: clamp(18px, 2vw, 27px); font-weight: 400; }
.hall-progress-grid strong b { font-weight: 400; }
.hall-progress-grid > div > i { height: 7px; display: block; margin-top: 18px; padding: 1px; border: 1px solid #4c4c48; }
.hall-progress-grid em { width: 0; height: 100%; display: block; background: var(--stats-accent, #d9bd45); transition: width .65s ease; }
.hall-progress-grid em.is-started { min-width: 4px; }
.membership-section { padding-top: clamp(50px, 7vw, 88px); }
.membership-heading { display: grid; grid-template-columns: .55fr 1.15fr 1fr; gap: 40px; align-items: start; }
.membership-heading > p { margin: 6px 0 0; color: #d9bd45; text-transform: uppercase; letter-spacing: .14em; font-size: 9px; }
.membership-heading h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(34px, 4vw, 58px); line-height: .98; font-weight: 400; letter-spacing: -.04em; }
.membership-heading > span { color: #92928c; line-height: 1.7; }
.membership-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 43px; }
.membership-grid article { min-height: 280px; display: flex; flex-direction: column; padding: 27px; border: 1px solid #2e2e2b; background: #0b0b0a; }
.membership-grid article > p { margin: 0; color: #d9bd45; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.membership-grid h3 { margin: 18px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: 32px; font-weight: 400; }.membership-grid h3 small { color: #80807a; font-family: Aptos, "Segoe UI", sans-serif; font-size: 10px; }
.membership-grid article > span { color: #989892; line-height: 1.65; }
.membership-grid button { height: 44px; display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding: 0 15px; border: 1px solid #4b4b46; background: transparent; color: var(--white); cursor: pointer; }.membership-grid button b { color: #d9bd45; font-weight: 400; }
.membership-grid button:hover, .membership-grid button:focus-visible, .membership-featured button { outline: 0; border-color: #d9bd45; background: #d9bd45; color: #080808; }.membership-featured button b { color: inherit; }

.support-amounts { display: grid; grid-template-columns: repeat(4, 1fr) 1.35fr; gap: 7px; margin: 28px 0 3px; padding: 0; border: 0; }
.support-amounts[hidden] { display: none; }.support-amounts legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.support-amounts label { min-height: 44px; display: grid; place-items: center; border: 1px solid var(--line); cursor: pointer; }
.support-amounts label:has(input:checked) { border-color: var(--white); background: var(--white); color: var(--black); }
.support-amounts input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.support-amounts .custom-amount { display: flex; padding: 0 11px; }.support-amounts .custom-amount:focus-within { border-color: var(--white); background: transparent; color: var(--white); }
.donate-confirm > span { margin: 0; }.donate-confirm > b { font-weight: 400; }
.book-support-thanks { grid-template-columns: 1fr auto; gap: 24px; place-items: center stretch; font-size: inherit; }
.book-support-thanks > div:first-child { align-self: center; }.book-support-thanks strong, .book-support-thanks span { display: block; }.book-support-thanks strong { font-size: 15px; }.book-support-thanks span { margin-top: 3px; color: #64645f; font-size: 10px; }
.book-membership-options { display: flex; align-items: center; gap: 7px; }.book-membership-options button { height: 44px; display: flex; gap: 10px; align-items: center; }.book-membership-options small { color: inherit; opacity: .62; font-size: 8px; }

@media (max-width: 900px) {
  .career-earnings { grid-template-columns: 1fr; }.stats-profile-panel { border-top: 1px solid var(--line); padding-top: 36px; }
  .hall-progress-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; }.hall-progress-grid > div:nth-child(3) { border-left: 1px solid var(--line); padding-left: 26px; }.hall-progress-grid > div:nth-child(2) { padding-right: 26px; }
  .membership-heading { grid-template-columns: 1fr; gap: 14px; }.membership-heading > span { max-width: 520px; }.membership-grid { grid-template-columns: 1fr; }.membership-grid article { min-height: 220px; }
  .book-support-thanks { grid-template-columns: 1fr; }.book-membership-options { flex-wrap: wrap; }
}
@media (max-width: 560px) {
  .stats-shell { padding-right: 20px; padding-left: 20px; }.career-earnings { gap: 40px; }.stats-profile-card { grid-template-columns: 90px 1fr; gap: 16px; }.stats-profile-card img { width: 90px; }
  .career-table { display: block; overflow-x: auto; }.hall-progress-grid { grid-template-columns: 1fr; }.hall-progress-grid > div { padding: 0 0 25px; border-left: 0; border-bottom: 1px solid var(--line); }.hall-progress-grid > div:last-child { border-bottom: 0; }
  .support-amounts { grid-template-columns: repeat(4, 1fr); }.support-amounts .custom-amount { grid-column: 1 / -1; }.recent-supporters .donor-copy { flex-direction: column; gap: 0; }
  .book-membership-options button { flex: 1 1 42%; justify-content: space-between; }
}

/* Stats is one viewport; membership lives on its own Support page. */
.support-nav-tab { position: fixed; top: 0; right: var(--pad); height: var(--header-height); padding-left: 26px; border-left: 1px solid var(--line); color: #d9bd45; }
.support-nav-tab::after { left: 26px; background: #d9bd45; }
.tab-list:has(.admin-nav-tab:not([hidden])) .support-nav-tab { right: calc(var(--pad) + 118px); }
body[data-active-tab="stats"], body[data-active-tab="support"] { min-height: 100svh; }
body[data-active-tab="stats"] { height: 100svh; overflow: hidden; }
body[data-active-tab="stats"] .site-footer { display: none !important; }
body[data-active-tab="support"][data-active-tab="support"][data-active-tab="support"] .book-support-banner:not([hidden]) { display: none !important; }
body[data-active-tab="stats"] .stats-page {
  height: 100svh;
  min-height: 0;
  display: grid;
  grid-template-rows: clamp(62px, 9vh, 92px) minmax(0, 1fr);
  padding-top: var(--header-height);
  overflow: hidden;
}
body[data-active-tab="stats"] .stats-shell { min-height: 0; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; padding: clamp(22px, 3.2vh, 38px) var(--pad) clamp(18px, 2.8vh, 32px); overflow: hidden; }
body[data-active-tab="stats"] .career-earnings { min-height: 0; gap: clamp(38px, 6vw, 92px); padding-bottom: clamp(18px, 2.8vh, 30px); }
body[data-active-tab="stats"] .stats-earnings-panel h1 { font-size: clamp(30px, 3.2vw, 48px); }
body[data-active-tab="stats"] .career-total-row { min-height: 38px; margin-top: 12px; }
body[data-active-tab="stats"] .career-total-row > span { font-size: clamp(28px, 3.4vw, 48px); }
body[data-active-tab="stats"] .career-progress { margin: 7px 0 12px; }
body[data-active-tab="stats"] .stats-support-button { height: 56px; }
body[data-active-tab="stats"] .recent-supporters { margin-top: 18px; }
body[data-active-tab="stats"] .recent-supporters ol { max-height: clamp(92px, 15vh, 140px); }
body[data-active-tab="stats"] .recent-supporters li { min-height: 42px; }
body[data-active-tab="stats"] .stats-profile-card { grid-template-columns: clamp(92px, 10vw, 125px) 1fr; gap: 20px; }
body[data-active-tab="stats"] .stats-profile-card img { width: clamp(92px, 10vw, 125px); }
body[data-active-tab="stats"] .career-table { margin-top: clamp(13px, 2vh, 24px); }
body[data-active-tab="stats"] .hall-progress { padding: clamp(16px, 2.8vh, 28px) 0 0; border-bottom: 0; }
body[data-active-tab="stats"] .hall-progress h2 { font-size: clamp(25px, 2.7vw, 38px); }
body[data-active-tab="stats"] .hall-progress-grid { margin-top: clamp(14px, 2.2vh, 24px); }
body[data-active-tab="stats"] .hall-progress-grid > div > i { margin-top: 10px; }

.support-page { min-height: 100svh; padding-top: var(--header-height); background: #070707; }
.support-shell { width: min(1500px, 100%); min-height: calc(100svh - var(--header-height)); margin: 0 auto; padding: clamp(48px, 7vh, 82px) var(--pad) clamp(50px, 7vh, 80px); display: grid; align-content: center; }
.support-page-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(50px, 9vw, 150px); align-items: end; }
.support-page-heading p { margin: 0 0 15px; color: #d9bd45; font-size: 9px; text-transform: uppercase; letter-spacing: .14em; }
.support-page-heading h1 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(52px, 7vw, 104px); line-height: .87; font-weight: 400; letter-spacing: -.055em; }
.support-page-heading > div:last-child { display: grid; gap: 24px; justify-items: start; padding-bottom: 5px; }
.support-page-heading > div:last-child > span { max-width: 440px; color: #a2a29c; line-height: 1.7; }
.support-page .membership-section { padding-top: 0; }
.support-page .membership-grid { margin-top: 0; }
.support-page .membership-grid article { min-height: clamp(220px, 31vh, 300px); }

.stats-appearance-settings { display: grid; grid-template-columns: minmax(180px, .55fr) minmax(360px, 1.45fr); gap: 34px; align-items: start; }
.stats-appearance-settings h3 { margin: 0 0 7px; font-size: 22px; font-weight: 500; }.stats-appearance-settings p { margin: 0; color: #777871; }
.stats-color-controls { display: grid; grid-template-columns: 108px minmax(160px, 1fr); gap: 16px; align-items: end; }
.stats-color-swatch > span { display: block; margin-bottom: 7px; color: #777871; font-size: 9px; text-transform: uppercase; letter-spacing: .12em; }
.stats-color-swatch input { width: 100%; height: 46px; padding: 3px; border: 1px solid #bbb9b1; background: #f7f5ef; cursor: pointer; }
.stats-color-controls .field { margin: 0; }.stats-color-controls .field input { height: 46px; padding: 10px 12px; border: 1px solid #bbb9b1; background: #f7f5ef; }
.stats-accent-preview { --preview-accent: #d9bd45; grid-column: 1 / -1; min-height: 72px; display: grid; grid-template-columns: 1fr auto auto; gap: 18px; align-items: center; padding: 15px; border: 1px solid #bbb9b1; background: #11120f; color: #f4f3ef; }
.stats-accent-preview i { height: 8px; border: 1px solid #666; }.stats-accent-preview i::after { content: ''; width: 44%; height: 100%; display: block; background: var(--preview-accent); }
.stats-accent-preview strong { color: var(--preview-accent); font-family: Georgia, "Times New Roman", serif; font-weight: 400; }.stats-accent-preview button { padding: 10px 13px; border: 1px solid var(--preview-accent); background: var(--preview-accent); color: #080808; }
.stats-appearance-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; gap: 10px; }
.stats-content-settings { margin-top: 22px; display: grid; gap: 30px; }.stats-content-settings > section { padding-bottom: 28px; border-bottom: 1px solid #cfcdc5; }.stats-content-settings h3 { margin: 0 0 7px; font-size: 22px; font-weight: 500; }.stats-content-settings section > p { margin: 0 0 20px; color: #777871; }
.stats-profile-editor { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 24px; align-items: start; }.stats-profile-preview { width: 190px; aspect-ratio: 1; margin-bottom: 10px; overflow: hidden; border: 1px solid #bbb9b1; background: #dedcd5; }.stats-profile-preview img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }.stats-editor-fields, .stats-number-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }.stats-editor-fields .field, .stats-number-grid .field { margin: 0; }
.stats-hall-editor { display: grid; grid-template-columns: repeat(5, minmax(130px, 1fr)); gap: 10px; overflow-x: auto; }.stats-hall-editor fieldset { min-width: 0; padding: 14px; border: 1px solid #c8c7c1; }.stats-hall-editor legend { padding: 0 5px; color: #777871; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }.stats-hall-editor .field { margin: 10px 0 0; }.stats-content-actions { display: flex; justify-content: flex-end; }
.admin-sidebar-collapsed [data-admin-section="stats-page"]::before { content: 'T'; }

@media (max-width: 1180px) {
  .tab-list .support-nav-tab { position: static; height: auto; margin-top: 26px; padding: 18px 0 0; border-top: 1px solid #555550; border-left: 0; color: #d9bd45; }
}

@media (max-width: 900px) {
  body[data-active-tab="stats"] .career-earnings { grid-template-columns: minmax(0, 1fr) minmax(280px, .9fr); gap: 28px; }
  body[data-active-tab="stats"] .stats-profile-panel { padding-top: 0; border-top: 0; }
  .support-page-heading { grid-template-columns: 1fr; gap: 24px; }.support-page-heading h1 { font-size: clamp(52px, 12vw, 82px); }
  .support-shell { align-content: start; }.support-page .membership-grid { grid-template-columns: 1fr; }.support-page .membership-grid article { min-height: 205px; }
  .stats-appearance-settings { grid-template-columns: 1fr; }.stats-appearance-actions { grid-column: 1; }
  .stats-profile-editor { grid-template-columns: 130px minmax(0, 1fr); }.stats-profile-preview { width: 130px; }.stats-hall-editor { grid-template-columns: repeat(2, minmax(150px, 1fr)); }
}

@media (max-width: 700px) {
  body[data-active-tab="stats"] .stats-page { grid-template-rows: 58px minmax(0, 1fr); }
  body[data-active-tab="stats"] .stats-shell { padding: 13px 14px 12px; grid-template-rows: minmax(0, 1fr) auto; }
  body[data-active-tab="stats"] .career-earnings { grid-template-columns: minmax(0, 1.08fr) minmax(125px, .92fr); gap: 14px; padding-bottom: 11px; }
  body[data-active-tab="stats"] .stats-earnings-panel h1 { font-size: clamp(20px, 6.2vw, 29px); }
  body[data-active-tab="stats"] .career-total-row { min-height: 28px; margin-top: 5px; }
  body[data-active-tab="stats"] .career-total-row > span { font-size: 25px; }
  body[data-active-tab="stats"] .career-total-row small { padding-bottom: 3px; font-size: 6px; }
  body[data-active-tab="stats"] .career-progress { height: 9px; margin: 4px 0 8px; }
  body[data-active-tab="stats"] .stats-support-button { width: 100%; height: 42px; padding: 0 13px; font-size: 15px; }
  body[data-active-tab="stats"] .stats-support-button span { font-size: 16px; }
  body[data-active-tab="stats"] .recent-supporters { margin-top: 10px; }
  body[data-active-tab="stats"] .recent-supporters > p { padding-bottom: 5px; font-size: 6px; }
  body[data-active-tab="stats"] .recent-supporters ol { max-height: 76px; }
  body[data-active-tab="stats"] .recent-supporters li { min-height: 34px; gap: 8px; font-size: 8px; }
  body[data-active-tab="stats"] .recent-supporters li:nth-child(n+3) { display: none; }
  body[data-active-tab="stats"] .recent-supporters .donor-copy { gap: 0; }
  body[data-active-tab="stats"] .stats-profile-card { grid-template-columns: 54px 1fr; gap: 9px; }
  body[data-active-tab="stats"] .stats-profile-card img { width: 54px; }
  body[data-active-tab="stats"] .stats-profile-card h2 { margin-bottom: 5px; font-size: 14px; line-height: 1.05; }
  body[data-active-tab="stats"] .stats-profile-card dl { grid-template-columns: 39px 1fr; font-size: 6px; line-height: 1.25; }
  body[data-active-tab="stats"] .career-table { width: 100%; display: table; margin-top: 8px; overflow: visible; font-size: 7px; }
  body[data-active-tab="stats"] .career-table th, body[data-active-tab="stats"] .career-table td { padding: 4px 2px; }
  body[data-active-tab="stats"] .career-table thead th { font-size: 8px; }
  body[data-active-tab="stats"] .career-table thead small { font-size: 5px; }
  body[data-active-tab="stats"] .hall-progress { padding-top: 10px; }
  body[data-active-tab="stats"] .hall-progress h2 { font-size: clamp(20px, 6vw, 27px); }
  body[data-active-tab="stats"] .hall-progress-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-top: 9px; }
  body[data-active-tab="stats"] .hall-progress-grid > div, body[data-active-tab="stats"] .hall-progress-grid > div:nth-child(3) { padding: 0 6px; border-left: 1px solid var(--line); border-bottom: 0; }
  body[data-active-tab="stats"] .hall-progress-grid > div:first-child { padding-left: 0; border-left: 0; }
  body[data-active-tab="stats"] .hall-progress-grid > div:last-child { padding-right: 0; }
  body[data-active-tab="stats"] .hall-progress-grid span { min-height: 18px; font-size: 5px; line-height: 1.25; }
  body[data-active-tab="stats"] .hall-progress-grid strong { font-size: clamp(10px, 3vw, 14px); white-space: nowrap; }
  body[data-active-tab="stats"] .hall-progress-grid > div > i { height: 5px; margin-top: 6px; }
  .support-shell { padding: 34px 20px 70px; }.support-page-heading { gap: 18px; }.support-page-heading h1 { font-size: 15vw; }
  .support-page-heading > div:last-child { gap: 17px; }.support-page .membership-section { padding-top: 30px; }
  .stats-profile-editor { grid-template-columns: 1fr; }.stats-profile-preview { width: min(190px, 100%); }.stats-editor-fields, .stats-number-grid, .stats-hall-editor { grid-template-columns: 1fr; }
}

@media (max-height: 680px) and (min-width: 701px) {
  body[data-active-tab="stats"] .stats-shell { padding-top: 14px; padding-bottom: 12px; }
  body[data-active-tab="stats"] .recent-supporters li:nth-child(n+3) { display: none; }
  body[data-active-tab="stats"] .hall-progress { padding-top: 12px; }
}
