:root {
  --bg: #f4f8f7;
  --surface: #ffffff;
  --surface-muted: #e8f1ef;
  --text: #202327;
  --muted: #697078;
  --line: #d7e2df;
  --primary: #e4572e;
  --primary-dark: #b93c1d;
  --accent: #0f766e;
  --accent-dark: #0b5954;
  --warning: #a06a00;
  --danger: #ad343e;
  --shadow: 0 16px 40px rgba(25, 31, 35, 0.11);
  --shadow-hover: 0 22px 58px rgba(25, 31, 35, 0.17);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  min-height: 100%;
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .08), transparent 28rem),
    radial-gradient(circle at top left, rgba(228, 87, 46, .12), transparent 32rem),
    radial-gradient(circle at bottom right, rgba(15, 118, 110, .12), transparent 30rem),
    var(--bg);
  background-repeat: no-repeat;
  background-size: cover;
  color: var(--text);
  line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(244, 248, 247, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.brand {
  color: var(--text);
  font-weight: 800;
  display: grid;
  gap: 1px;
  line-height: 1.05;
}
.brand:hover { text-decoration: none; }
.brand-name {
  color: var(--text);
  font-size: 1.24rem;
  font-weight: 900;
}
.brand-name span { color: var(--primary); }
.brand-inline {
  color: var(--text);
  font-weight: 950;
  letter-spacing: 0;
}
.brand-inline span {
  color: var(--primary);
}
.brand-claim {
  color: var(--muted);
  font-size: .73rem;
  font-style: italic;
  font-weight: 700;
}
.site-nav { display: flex; align-items: center; gap: 10px; }
.site-nav a:not(.button) {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 700;
}
.site-nav a:not(.button):hover {
  background: rgba(15, 118, 110, .09);
  text-decoration: none;
}
.nav-alert-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-alert {
  position: absolute;
  top: -7px;
  right: -8px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #d9545d;
  color: white;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 6px 14px rgba(217, 84, 93, .28);
}
.site-nav .button-small {
  min-height: 38px;
  padding-inline: 14px;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #ff784f);
  color: white;
  font-weight: 850;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(228, 87, 46, .24);
  cursor: pointer;
}

main {
  min-height: 75vh;
  flex: 1 0 auto;
  padding-bottom: 52px;
}
.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) 0;
  background:
    linear-gradient(90deg, rgba(244,248,247,.98), rgba(244,248,247,.78), rgba(244,248,247,.46)),
    url("https://images.unsplash.com/photo-1519682337058-a94d519337bc?auto=format&fit=crop&w=1800&q=80") center/cover;
}
.reader-hero {
  min-height: clamp(540px, 64vh, 700px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(244,248,247,.98), rgba(244,248,247,.86), rgba(244,248,247,.52)),
    url("../img/backgrounds/start-hero.jpg") right center/cover;
}
.author-hero {
  min-height: clamp(540px, 64vh, 700px);
  align-items: center;
  padding-block: clamp(36px, 5vw, 76px);
  background:
    linear-gradient(90deg, rgba(244,248,247,.98), rgba(244,248,247,.86), rgba(244,248,247,.52)),
    url("../img/backgrounds/start-hero.jpg") right center/cover;
}
.hero-content {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.5rem, 6vw, 5.3rem);
  line-height: 1;
  letter-spacing: 0;
}
.hero-subline {
  margin: -4px 0 14px;
  color: var(--primary-dark);
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  font-weight: 800;
}
.lead { font-size: 1.25rem; color: #4b433b; max-width: 650px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 520px;
  margin: 6px 0 22px;
  padding: 9px 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #fff1e9);
  border: 1px solid rgba(228, 87, 46, .28);
  color: var(--primary-dark);
  font-weight: 900;
  text-align: center;
  line-height: 1.35;
  box-shadow: 0 10px 28px rgba(228, 87, 46, .13);
}
.hero-cta-card {
  position: relative;
  width: fit-content;
  max-width: min(100%, 520px);
  margin-top: 10px;
  padding: 22px;
  border: 1px solid rgba(228, 87, 46, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 16px 38px rgba(56, 44, 32, .12);
}
.hero-cta-card .hero-actions {
  justify-content: center;
}
.hero-badge-reader {
  margin: 24px 0 10px;
  min-width: min(100%, 330px);
  line-height: 1.22;
}
.hero-cta-card .author-teaser-link {
  display: block;
  margin-top: 13px;
  text-align: center;
  font-weight: 800;
}

.section, .page-head, .filter-bar, .book-grid, .book-list, .participant-list, .stats-row, .table-card, .form-card, .detail-layout {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.section { padding: 72px 0; }
.section.muted {
  width: 100%;
  margin-bottom: 0;
  padding-inline: max(18px, calc((100% - 1180px) / 2));
  padding-bottom: 88px;
  background: var(--surface-muted);
}
.two-column { display: grid; grid-template-columns: 1.4fr .8fr; gap: 34px; align-items: start; }
.section-heading { max-width: 720px; margin-bottom: 28px; }
.eyebrow {
  margin: 0 0 8px;
  color: var(--primary-dark);
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
}
h1, h2 { line-height: 1.15; letter-spacing: 0; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; }
h2 { font-size: clamp(1.35rem, 2.2vw, 2rem); margin: 0 0 10px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.2;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { text-decoration: none; }
.button:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(47, 111, 107, 0.14); }
.button-primary { background: linear-gradient(135deg, var(--primary), #ff784f); color: white; box-shadow: 0 10px 24px rgba(228, 87, 46, .26); }
.button-primary:hover { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); }
.button-secondary { background: linear-gradient(135deg, var(--accent), #18a093); color: white; box-shadow: 0 10px 22px rgba(15, 118, 110, .22); }
.button-secondary:hover { background: linear-gradient(135deg, var(--accent-dark), var(--accent)); }
.button-full {
  width: 100%;
  justify-content: center;
}
.button-ghost { background: rgba(255,255,255,.68); border-color: var(--line); color: var(--text); }
.button-small { min-height: 36px; padding: 7px 12px; font-size: .92rem; }
.button-amazon { background: linear-gradient(135deg, #c8511c, #ff9900); color: white; box-shadow: 0 10px 22px rgba(255, 153, 0, .26); }
.button-amazon:hover { background: linear-gradient(135deg, #a84214, #e88900); }
.button-danger { background: linear-gradient(135deg, var(--danger), #d9545d); color: white; box-shadow: 0 10px 22px rgba(173, 52, 62, .2); }
.button-success { background: linear-gradient(135deg, var(--accent), #18a093); color: white; box-shadow: 0 10px 22px rgba(15, 118, 110, .22); }
.button-muted { background: linear-gradient(135deg, #eef2f1, #dce6e4); color: var(--text); border-color: var(--line); box-shadow: 0 8px 18px rgba(25, 31, 35, .08); }

.steps-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; }
.step-card, .notice-box, .book-card, .list-card, .participant-card, .form-card, .table-card, .stat, .sensitive-box, .feedback-box, .feature-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(56, 44, 32, 0.08);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.step-card:hover, .book-card:hover, .list-card:hover, .participant-card:hover, .feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(180, 95, 59, .28);
}
.step-card {
  position: relative;
  padding: 52px 18px 18px;
  min-height: 196px;
}
.step-icon {
  display: block;
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: #fffaf5;
  box-shadow: 0 8px 18px rgba(56, 44, 32, .08);
}
.step-card span {
  display: inline-grid;
  position: absolute;
  top: 16px;
  left: 16px;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ead8c7;
  color: var(--primary-dark);
  font-weight: 800;
}
.step-card p {
  margin: 0;
  text-align: center;
  font-weight: 750;
}
.flow-section {
  padding-top: 0;
  padding-bottom: 18px;
}
.compact-heading {
  margin-bottom: 16px;
}
.compact-heading h2 {
  margin-bottom: 0;
  font-size: 1.35rem;
}
.reader-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(94px, 1fr));
  gap: 9px;
  width: 100%;
}
.reader-flow-step {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-height: 116px;
  padding: 28px 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.78);
  color: var(--muted);
  text-align: center;
  box-shadow: 0 8px 18px rgba(56, 44, 32, .05);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
a.reader-flow-step {
  text-decoration: none;
}
a.reader-flow-step:hover {
  color: var(--text);
}
.reader-flow-step img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 10px;
}
.reader-flow-number {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ead8c7;
  color: var(--primary-dark);
  font-size: .78rem;
  font-weight: 900;
}
.reader-flow-step strong {
  font-size: .78rem;
  line-height: 1.22;
}
.reader-flow-step.is-muted {
  opacity: .38;
  filter: grayscale(.35);
}
.reader-flow-step.is-active {
  opacity: 1;
  transform: translateY(-2px);
  border-color: rgba(228, 87, 46, .55);
  background: linear-gradient(145deg, #ffffff, #fff4ef);
  color: var(--text);
  box-shadow: 0 14px 28px rgba(228, 87, 46, .13);
}
.reader-flow-step.is-active .reader-flow-number {
  background: linear-gradient(135deg, var(--primary), #ff784f);
  color: #fff;
}
.reader-flow-step.is-complete {
  opacity: .82;
  filter: none;
}
.reader-flow-check {
  position: absolute;
  right: 7px;
  bottom: 7px;
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  font-size: .72rem;
  font-weight: 950;
}
.reader-flow-compact {
  margin: 22px 0 20px;
}
.reader-flow-wrap {
  margin: 24px 0 22px;
  padding-top: 4px;
}
.book-detail-actions {
  margin-top: 20px;
  gap: 10px;
}
.book-detail-actions form {
  display: inline-flex;
}
.book-detail-actions .button,
.book-detail-actions .status-pill {
  flex: 0 1 auto;
}
.book-detail-actions .book-amazon-action {
  margin-left: 0;
}
.flow-book-card {
  height: 760px;
  background: linear-gradient(145deg, #ffffff, #f3faf8);
  border-color: rgba(15, 118, 110, .18);
}
.flow-book-card .book-card-body {
  height: 100%;
  padding: 22px;
}
.flow-book-card .reader-flow {
  align-self: start;
  grid-template-columns: 1fr;
  gap: 8px;
}
.flow-book-card .reader-flow-step {
  min-height: 50px;
  grid-template-columns: 24px 36px 1fr;
  align-items: center;
  justify-items: start;
  padding: 8px 10px;
  text-align: left;
}
.flow-book-card .reader-flow-step img {
  width: 30px;
  height: 30px;
}
.flow-book-card .reader-flow-number {
  position: static;
  width: 24px;
  height: 24px;
}
.flow-book-card .reader-flow-step strong {
  font-size: .86rem;
}
.reader-flow-mini {
  grid-template-columns: repeat(3, 40px);
  gap: 8px;
  width: fit-content;
  margin: 10px 0 0;
}
.reader-flow-mini .reader-flow-step {
  min-height: 40px;
  width: 40px;
  padding: 0;
  place-items: center;
  border-radius: 999px;
  overflow: visible;
}
.reader-flow-mini .reader-flow-step img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  transform: translateY(4px);
}
.reader-flow-mini .reader-flow-number,
.reader-flow-mini .reader-flow-step strong {
  display: none;
}
.reader-flow-mini .reader-flow-check {
  right: -4px;
  bottom: -4px;
  width: 16px;
  height: 16px;
  font-size: .68rem;
  box-shadow: 0 0 0 2px #fff;
}
.notice-box { padding: 22px; }
.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
}
.beta-filter-tabs {
  width: min(100%, 980px);
  margin-left: auto;
  margin-right: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.filter-tabs a {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 800;
}
.filter-tabs a.is-active {
  border-color: rgba(29, 111, 99, .28);
  background: #eef8f5;
  color: #1d6f63;
}
.beta-dashboard-panel {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 22px;
}
.beta-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}
.beta-dashboard-head h2 {
  margin: 0;
}
.beta-news-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.beta-news-teaser-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.beta-news-teaser-grid time {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: .84rem;
  font-weight: 800;
}
.beta-news-teaser-grid strong {
  display: block;
  margin-bottom: 6px;
}
.beta-news-teaser-grid p,
.beta-news-card p {
  margin-bottom: 0;
}
.beta-detail-card {
  align-self: start;
}
.beta-publish-toggle {
  margin-top: 14px;
  margin-bottom: 14px;
  padding-top: 4px;
}
.invite-token-box {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.invite-token-box input[readonly] {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: .86rem;
}
.beta-admin-list-card {
  overflow: hidden;
}
.beta-admin-list {
  display: grid;
  gap: 12px;
}
.beta-admin-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.beta-admin-row-main {
  min-width: 0;
}
.beta-admin-row-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 800;
}
.beta-admin-row h3 {
  margin: 0 0 6px;
  font-size: 1rem;
}
.beta-admin-row p {
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}
.legal-content {
  white-space: normal;
  line-height: 1.72;
}
.legal-content h2 {
  margin: 30px 0 10px;
  font-size: 1.12rem;
  line-height: 1.35;
  font-weight: 900;
  color: var(--text);
}
.legal-content h2:first-child {
  margin-top: 0;
}
.legal-content p {
  margin: 0 0 14px;
}
.legal-content .legal-lead {
  font-size: 1.04rem;
  font-weight: 850;
}
.legal-content .legal-stand {
  color: var(--muted);
  font-weight: 850;
}
.notice-box-warning {
  border-color: rgba(173, 52, 62, .26);
  background: linear-gradient(145deg, #fff, #fff3f1);
  box-shadow: 0 16px 36px rgba(173, 52, 62, .10);
}
.author-profile-required-notice {
  width: min(760px, calc(100% - 36px));
  margin-left: auto;
  margin-right: auto;
}
.trust-box { background: linear-gradient(145deg, #ffffff, #eaf7f4); }
.author-teaser-link {
  display: inline-flex;
  margin-top: 22px;
  font-weight: 800;
  color: var(--primary-dark);
}
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card { padding: 22px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.reader-feedback-section,
.reader-faq-section,
.landing-faq-section {
  padding-top: 24px;
}
.reader-faq-section .section-heading,
.landing-faq-section .section-heading {
  width: min(920px, 100%);
  margin: 0 auto 28px;
}
.reader-feedback-box {
  width: min(920px, 100%);
  margin: 0 auto;
}
.reader-feedback-box h2 {
  margin-bottom: 12px;
}
.faq-list {
  display: grid;
  gap: 12px;
  width: min(920px, 100%);
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(56, 44, 32, .07);
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  padding: 16px 18px;
  font-weight: 850;
  color: var(--text);
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--primary-dark);
  font-weight: 950;
}
.faq-item[open] summary::after {
  content: "-";
}
.faq-item p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
}
.reader-final-cta-section,
.landing-final-cta-section {
  padding-top: 28px;
}
.reader-final-cta,
.landing-final-cta {
  display: grid;
  justify-items: center;
  gap: 18px;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 28px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #eef9f7);
  box-shadow: 0 14px 32px rgba(56, 44, 32, .08);
  text-align: center;
}
.reader-final-cta h2,
.landing-final-cta h2 {
  margin: 0;
}
.reader-final-cta .actions,
.landing-final-cta .actions {
  justify-content: center;
}
.reader-final-cta .author-teaser-link,
.landing-final-cta .author-teaser-link {
  margin-top: 0;
}

.page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 46px 0 24px;
}
.filter-bar {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
}
input, select, textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--text);
  font: inherit;
}
textarea { resize: vertical; }
label { display: grid; gap: 7px; font-weight: 700; }
label small {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 650;
}
label > span small {
  display: inline;
}
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 14px; }
legend { font-weight: 800; }
.checkbox-inline { display: flex; align-items: center; gap: 8px; font-weight: 650; }
input[type="checkbox"], input[type="radio"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--accent);
  flex: 0 0 auto;
}
.checkbox-inline input { width: 16px; min-height: 0; }
fieldset label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 650;
}
input[type="file"] {
  padding: 8px;
  background: #fbfaf7;
}
input[type="file"]::file-selector-button {
  min-height: 34px;
  margin-right: 12px;
  padding: 7px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--accent);
  color: white;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.field-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173, 52, 62, .12);
}
.fieldset-invalid {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(173, 52, 62, .10);
}
.fieldset-invalid legend {
  color: var(--danger);
}
.field-label-invalid {
  color: var(--danger);
}
.field-error {
  color: var(--danger);
  font-weight: 800;
}

.book-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding-bottom: 60px; align-items: stretch; }
.book-card { overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; height: 760px; }
.clickable-card { cursor: pointer; }
.book-card-preview {
  cursor: default;
}
.book-login-hint {
  cursor: default;
  opacity: .82;
  box-shadow: none;
}
.book-login-hint:hover {
  transform: none;
  box-shadow: none;
}
.cover { position: relative; width: 100%; height: 360px; flex: 0 0 360px; background: #fff; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; display: block; }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.book-card-body { flex: 1 1 auto; min-height: 0; padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.book-card-body h2, .book-card-body h3 {
  margin: 0;
  line-height: 1.24;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  min-width: 0;
}
.book-card-body p:not(.muted-text) {
  line-height: 1.42;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  max-height: calc(3em * 1.42 + 6px);
}
.book-card-body .muted-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 1px 0 6px;
}
.book-card-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin-top: auto;
  padding-top: 8px;
}
.book-meta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 29px;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef4f2;
  color: #294e4a;
  font-size: .82rem;
  font-weight: 850;
  line-height: 1.15;
  text-align: center;
}
.book-meta-badge.price {
  grid-column: 1 / -1;
  gap: 6px;
  background: #e2f6ee;
  color: #126345;
}
.book-meta-badge.reimbursement,
.book-meta-badge.reimbursement-50 {
  background: #f4d8ce;
  color: #6f2f17;
}
.book-meta-badge.reimbursement-75 {
  background: #e7ecef;
  color: #46515c;
}
.book-meta-badge.reimbursement-100 {
  background: #fff0dc;
  color: #8a4b0f;
}
.book-meta-badge.slots {
  background: #eef2f1;
  color: #3f4a4a;
}
.book-meta-badge.slots.is-low {
  background: #ffe4e4;
  color: #9c1c28;
}
.book-card-body > .button {
  margin-top: 4px;
  align-self: stretch;
  width: 100%;
  min-height: 42px;
}
.pill, .status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f1ef;
  color: #23514e;
  font-size: .82rem;
  font-weight: 800;
  text-align: center;
}
.status-pill { background: #f2e5d7; color: #70411f; }
.warning-pill { background: #ffe4e4; color: #9c1c28; }
.limit-pill {
  display: block;
  max-width: 560px;
  padding: 12px 14px;
  border-radius: 10px;
  white-space: normal;
  text-align: left;
  line-height: 1.45;
  justify-content: flex-start;
  align-items: flex-start;
}
.status-neutral { background: #eef2f1; color: #3f4a4a; }
.status-application { background: #fff0dc; color: #8a4b0f; }
.status-waiting { background: #fff7d7; color: #776012; }
.status-proof,
.status-info { background: #e8f1ff; color: #24518f; }
.status-reimbursed { background: #dff5ef; color: #176052; }
.status-feedback { background: #f0e9ff; color: #59408f; }
.status-success,
.status-done { background: #e1f5e9; color: #14532d; }
.status-danger { background: #ffe4e4; color: #9c1c28; }
.status-strong {
  padding: 7px 12px;
  box-shadow: 0 8px 18px rgba(25, 31, 35, .09);
}
.dialog-highlight {
  display: inline;
  margin-top: 0;
  font-weight: inherit;
  color: #8f1d2c;
}
.dialog-highlight.secondary {
  color: #8f1d2c;
}
.meta-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .93rem; min-width: 0; }
.price-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px;
}
.price-original {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(112, 65, 31, .45);
}
.price-arrow {
  color: var(--muted);
  font-weight: 800;
}
.price-after {
  color: #126345;
  font-weight: 900;
}
.muted-text, .small-note { color: var(--muted); }
.small-note { font-size: .93rem; }
.warning-note {
  display: inline-flex;
  max-width: 360px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ffe4e4;
  color: #8f1d2c;
  font-weight: 800;
  line-height: 1.35;
}
.action-note {
  display: inline-flex;
  max-width: 380px;
  padding: 9px 11px;
  border: 1px solid rgba(15, 118, 110, .18);
  border-radius: 8px;
  background: #f2faf8;
  color: #23514e;
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.35;
}
.empty-state { grid-column: 1 / -1; padding: 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: 8px; }

.detail-layout { display: grid; grid-template-columns: minmax(220px, 360px) 1fr; gap: 38px; padding: 48px 0 70px; }
.detail-cover { aspect-ratio: 2 / 3; background: #e8e0d5; border-radius: 8px; overflow: hidden; display: grid; place-items: center; box-shadow: var(--shadow); }
.detail-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.facts div { padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.facts dt { color: var(--muted); font-weight: 800; font-size: .82rem; }
.facts dd { margin: 2px 0 0; font-weight: 750; }

.auth-panel { min-height: 70vh; display: grid; place-items: start center; padding: 48px 18px; }
.form-card { max-width: 720px; padding: 28px; margin-top: 36px; box-shadow: var(--shadow); }
.form-card.narrow { max-width: 620px; }
.form-card.wide { max-width: 1040px; }
.form-card form { display: grid; gap: 16px; }
.auth-help { margin: 16px 0 0; }
.access-denied-card {
  text-align: center;
}
.access-denied-card p {
  color: var(--muted);
  margin-bottom: 22px;
}
.feedback-card { max-width: 760px; }
.feedback-book-context {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbfa;
}
.feedback-book-context .book-thumb {
  width: 52px;
}
.feedback-book-context strong,
.feedback-book-context span {
  display: block;
}
.review-panel {
  display: grid;
  gap: 18px;
  padding-top: 6px;
}
.review-action-row,
.review-submit-row {
  display: flex;
  justify-content: center;
}
.review-amazon-followup {
  display: grid;
  gap: 14px;
}
.review-confirm {
  margin-top: 2px;
}
.review-submit-row .button:disabled {
  opacity: .48;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.review-no-panel .notice-box {
  border-color: rgba(160, 106, 0, .24);
  background: linear-gradient(145deg, #ffffff, #fff7e8);
}
.review-no-panel .notice-box strong + p + strong {
  display: block;
  margin-top: 14px;
}
.two-col-form { grid-template-columns: repeat(2, 1fr); }
.full { grid-column: 1 / -1; }
.form-title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.form-title-row h1 {
  margin-bottom: 0;
}
.form-cover-thumb {
  width: 58px;
}
.form-section {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f7fbfa);
}
.form-section-heading {
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.reimbursement-section-heading {
  margin-top: 18px;
}
.form-section-heading h2 {
  margin: 0 0 4px;
  font-size: 1.18rem;
}
.form-section-heading p {
  margin: 0;
  color: var(--muted);
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.form-lock-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 750;
}
.approval-check {
  align-self: stretch;
  padding: 13px 14px;
  border: 1px solid rgba(15, 118, 110, .24);
  border-radius: 8px;
  background: #eef9f7;
}
.temporary-settings {
  border-color: rgba(173, 52, 62, .28);
  background: linear-gradient(145deg, #fff, #fff4f3);
}
.temporary-settings .form-section-heading {
  border-bottom-color: rgba(173, 52, 62, .18);
}
.admin-payment-section {
  margin-top: 12px;
  border-color: rgba(173, 52, 62, .30);
  background: linear-gradient(145deg, #fffafa, #fff1ef);
  box-shadow: 0 14px 32px rgba(173, 52, 62, .08);
}
.admin-payment-section .form-section-heading {
  border-bottom-color: rgba(173, 52, 62, .18);
}
.package-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.package-status-grid div {
  padding: 14px;
  border: 1px solid rgba(173, 52, 62, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}
.package-status-grid span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
  text-transform: uppercase;
}
.package-status-grid strong {
  color: var(--text);
}
.segmented { display: flex; flex-wrap: wrap; gap: 18px; }
.genre-checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 18px; }

.stats-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 24px; }
.stats-row.compact { width: 100%; margin: 0; }
.stat { padding: 18px; }
.stat strong { display: block; font-size: 1.7rem; }
.stat span { color: var(--muted); }
.rank-card {
  display: grid;
  gap: 12px;
  align-content: center;
}
.rank-card-inline {
  min-width: 260px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(56, 44, 32, 0.08);
}
.rank-label {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 850;
  text-transform: uppercase;
}
.rank-badge {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: 0;
}
.rank-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.rank-badge.rank-new {
  background: #e1f5e9;
  color: #17633a;
}
.rank-badge.rank-pioneer {
  background: linear-gradient(135deg, #1f2937, #b86a2f);
  color: #fff8ed;
  box-shadow: 0 8px 18px rgba(184, 106, 47, .22);
}
.rank-badge.rank-bronze {
  background: #f4d8ce;
  color: #6f2f17;
}
.rank-badge.rank-silber {
  background: #e7ecef;
  color: #46515c;
}
.rank-badge.rank-gold {
  background: #ffe8a8;
  color: #775300;
}
.rank-badge.rank-platin {
  background: #dcf3ef;
  color: #0a5550;
}
.rank-progress {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8eeec;
}
.rank-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #c93b4a 0%, #dc553c 18%, #efa13f 42%, #f2c94c 60%, #198754 76%, #198754 100%);
  background-size: var(--progress-bg, 100%) 100%;
  background-position: left center;
}
.rank-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

.table-card { overflow-x: auto; padding: 0; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-size: .86rem; text-transform: uppercase; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.table-action-end { margin-left: auto; }
.reader-projects-mobile-title {
  display: none;
}
.reader-dashboard-table {
  table-layout: fixed;
}
.reader-dashboard-table th:nth-child(1),
.reader-dashboard-table td:nth-child(1) {
  width: 28%;
}
.reader-dashboard-table th:nth-child(2),
.reader-dashboard-table td:nth-child(2) {
  width: 24%;
}
.reader-dashboard-table th:nth-child(3),
.reader-dashboard-table td:nth-child(3) {
  width: 30%;
}
.reader-dashboard-table th:nth-child(4),
.reader-dashboard-table td:nth-child(4) {
  width: 18%;
}
.reader-dashboard-actions {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 100%;
  max-width: 100%;
}
.reader-dashboard-actions .button {
  width: 100%;
  min-width: 0;
  justify-content: center;
}
.reader-dashboard-actions .action-note,
.reader-dashboard-actions .warning-note {
  width: 100%;
  max-width: none;
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}
.reader-dashboard-actions .table-action-end {
  margin-left: 0;
}
.reader-dashboard-amazon {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}
.reader-dashboard-amazon .button {
  width: 100%;
  max-width: 190px;
  min-width: 0;
  justify-content: center;
  text-align: center;
}

.book-list, .participant-list { display: grid; gap: 16px; padding-bottom: 70px; }
.list-card, .participant-card { padding: 20px; display: grid; grid-template-columns: auto 1fr auto auto; gap: 18px; align-items: center; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; color: var(--muted); }
.metric-grid strong { color: var(--text); }
.participant-card { grid-template-columns: 1fr 220px; align-items: start; }
.participant-card.participant-collapsible {
  display: block;
  padding: 0;
  overflow: hidden;
}
.participant-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, auto);
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}
.participant-summary::-webkit-details-marker {
  display: none;
}
.participant-summary:hover {
  background: #f8fbfa;
}
.participant-toggle-label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 230px;
  padding: 11px 14px;
  border-radius: 8px;
  border: 1px solid rgba(15, 118, 110, .22);
  background: linear-gradient(135deg, #e4f6f1, #cdece4);
  color: #145a4d;
  font-size: .9rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 20px rgba(15, 118, 110, .14);
}
.participant-toggle-label::before,
.participant-toggle-label::after {
  content: "↓";
  font-size: 1rem;
  line-height: 1;
}
.participant-collapsible[open] .participant-toggle-label {
  background: linear-gradient(135deg, #fff4e5, #f2dfc4);
  border-color: rgba(112, 65, 31, .18);
  color: #70411f;
  font-size: 0;
}
.participant-collapsible[open] .participant-toggle-label::after {
  content: "↑";
  font-size: 1rem;
}
.participant-collapsible[open] .participant-toggle-label::before {
  content: "Projektdetails ausblenden";
  font-size: .9rem;
}
.participant-card-body {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 18px;
  align-items: start;
  padding: 0 20px 20px;
}
.sensitive-box, .feedback-box { margin-top: 12px; padding: 14px; background: #f7fbfa; }
.box-heading-center {
  display: block;
  text-align: center;
  margin-bottom: 12px;
}
.sensitive-subbox,
.feedback-subbox,
.timeline {
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.76);
}
.sensitive-subbox p,
.feedback-subbox p {
  margin: 8px 0 0;
}
.refund-amount {
  margin: 0 0 12px !important;
  padding: 10px 11px;
  border-radius: 8px;
  background: #eef9f7;
  color: var(--text);
  font-weight: 800;
}
.refund-amount small {
  color: var(--muted);
  font-weight: 750;
}
.reimbursement-lines {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  font-weight: 700;
}
.participant-actions { display: grid; gap: 10px; }
.address-lines {
  margin: 10px 0;
  padding: 10px;
  border-radius: 8px;
  background: white;
  border: 1px solid var(--line);
  font-weight: 700;
}
.timeline {
  background: #f4f7f6;
}
.timeline ol {
  display: grid;
  gap: 7px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}
.timeline li {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 12px;
  color: var(--muted);
  font-size: .92rem;
}
.timeline span { color: var(--text); font-weight: 700; }

.profile-hero {
  width: min(1020px, calc(100% - 36px));
  margin: 42px auto 20px;
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 28px;
  align-items: center;
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.profile-avatar {
  width: 150px;
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: #ead8c7;
  color: var(--primary-dark);
  font-size: 3rem;
  font-weight: 900;
}
.profile-avatar.small {
  width: 86px;
  font-size: 2rem;
}
.profile-avatar.mini {
  width: 42px;
  font-size: 1rem;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 14px; }
.profile-edit-head {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: center;
  margin: 12px 0 18px;
  padding: 14px;
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.profile-edit-head h3 {
  margin: 0 0 4px;
}
.pseudonym-list {
  display: grid;
  gap: 18px;
}
.pseudonym-card {
  padding: 18px;
}
.pseudonym-editor {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.pseudonym-editor summary {
  cursor: pointer;
  font-weight: 850;
  color: var(--primary-dark);
}
.pseudonym-editor form {
  margin-top: 16px;
}
.pseudonym-edit-form {
  align-items: start;
}
.pseudonym-edit-form textarea {
  min-height: 132px;
}
.manager-profile-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.manager-profile-title h1 {
  margin-bottom: 6px;
}
.reader-profile-title {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}
.reader-profile-title h1 {
  margin-bottom: 6px;
}
.manager-action-row .button,
.manager-danger-button {
  width: 100%;
}
.affiliate-note {
  align-self: end;
  margin-top: auto;
  padding: 12px 13px;
  border: 1px solid rgba(160, 106, 0, .18);
  border-radius: 8px;
  background: rgba(255, 247, 232, .72);
  color: #72501b;
  font-size: .88rem;
  line-height: 1.45;
}
.address-fieldset, .payment-fieldset {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.payment-fieldset {
  grid-template-columns: 1fr;
}
.payment-fieldset select,
.payment-fieldset input {
  width: 100%;
}
.info-box {
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(15, 118, 110, .22);
  background: linear-gradient(145deg, #ffffff, #eef9f7);
}
.info-box p {
  margin: 6px 0 0;
  color: var(--muted);
}
.danger-zone {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.admin-table {
  margin-bottom: 28px;
  padding: 18px;
}
.admin-user-row {
  background: linear-gradient(90deg, rgba(173, 52, 62, .12), rgba(255, 244, 243, .52));
}
.admin-user-row td:first-child {
  border-left: 4px solid rgba(173, 52, 62, .55);
}
.admin-role-pill {
  border-color: rgba(173, 52, 62, .24);
  background: #ffe9e6;
  color: #8f2530;
}
.admin-profile-section {
  margin-top: 4px;
}
.admin-body {
  background:
    linear-gradient(135deg, rgba(32, 35, 39, .04), transparent 26rem),
    radial-gradient(circle at top right, rgba(228, 87, 46, .11), transparent 28rem),
    var(--bg);
}
.admin-shell-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-nav a:not(.button) {
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--text);
  font-weight: 800;
}
.admin-nav a:not(.button):hover {
  background: rgba(15, 118, 110, .09);
  text-decoration: none;
}
.admin-main {
  min-height: 78vh;
  padding-bottom: 70px;
}
.admin-footer {
  padding: 26px clamp(18px, 4vw, 52px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.admin-auth-card {
  margin-top: 62px;
}
.admin-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1240px, calc(100% - 36px));
}
.admin-grid {
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.admin-grid .table-card,
.admin-grid .notice-box {
  padding: 20px;
}
.admin-settings-wide {
  grid-column: 1 / -1;
}
.admin-settings-wide h3 {
  margin: 20px 0 10px;
}
.admin-balancing-table {
  margin-bottom: 12px;
}
.admin-grid .table-card table {
  min-width: 100%;
}
.admin-number-input {
  max-width: 120px;
}
.admin-spaced-inline-form,
.admin-add-genre-form {
  display: flex;
  align-items: end;
  gap: 14px;
  flex-wrap: wrap;
}
.admin-spaced-inline-form label,
.admin-add-genre-form label {
  flex: 1 1 260px;
  margin-bottom: 0;
}
.admin-stack-form {
  display: grid;
  gap: 12px;
}
.admin-genre-update-form input {
  width: 100%;
}
.admin-genre-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.admin-genre-actions form {
  margin: 0;
}
.admin-filter {
  grid-template-columns: 1.5fr 1fr auto;
}
.admin-inline-form,
.admin-inline-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.admin-inline-form select {
  min-width: 220px;
}
.admin-score-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-score-form input[type="number"] {
  width: 92px;
  min-height: 36px;
}
.admin-pioneer-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.admin-pioneer-toggle {
  display: inline-flex;
  width: auto;
  margin: 0;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  font-weight: 850;
}
.admin-pioneer-toggle input {
  width: 16px;
  height: 16px;
}
.admin-book-primary-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.admin-book-primary-actions .button {
  width: 100%;
}
.admin-danger-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}
.admin-danger-actions form,
.admin-delete-action {
  margin: 0;
}
.admin-danger-actions .button,
.admin-delete-action .button {
  width: 100%;
}
.admin-delete-action {
  margin-top: 14px;
}
.admin-affiliate-section {
  border-color: rgba(15, 118, 110, .18);
  background: linear-gradient(145deg, #ffffff, #edf8f5);
}
.admin-affiliate-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: end;
}
.password-field {
  position: relative;
}
.password-field input {
  padding-right: 98px;
}
.password-toggle {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 86px;
  height: 34px;
  border: 0;
  border-radius: 8px;
  background: #edf3f2;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
}
.confirm-dialog {
  width: min(640px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 28px 70px rgba(25, 31, 35, .28);
}
.confirm-dialog::backdrop {
  background: rgba(25, 31, 35, .34);
  backdrop-filter: blur(3px);
}
.confirm-dialog-inner {
  padding: 24px;
  background: white;
}
.confirm-dialog h2 {
  margin-top: 0;
  font-size: 1.25rem;
}
.confirm-dialog p {
  color: var(--muted);
}
.confirm-dialog .actions {
  display: grid;
  grid-template-columns: minmax(150px, .8fr) minmax(220px, 1.2fr);
  align-items: stretch;
}
.confirm-dialog .actions .button {
  min-height: 48px;
  white-space: normal;
}
.book-mini {
  display: flex;
  align-items: center;
  gap: 12px;
}
.book-thumb {
  width: 46px;
  aspect-ratio: 2 / 3;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 6px;
  background: #e8e0d5;
  box-shadow: 0 8px 18px rgba(25, 31, 35, .12);
}
.book-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.book-list-title h2 {
  margin-top: 10px;
}
.participant-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.participant-title h2 {
  margin: 0;
}
.participant-status-line {
  flex-basis: 100%;
  margin: 2px 0 0 54px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: .93rem;
}
.participant-status-line strong {
  color: var(--text);
}

.flash {
  width: min(1180px, calc(100% - 36px));
  margin: 14px auto;
  padding: 12px 14px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: white;
}
.flash-success { border-color: #8bb39c; color: #275d40; }
.flash-warning { border-color: #d1aa57; color: var(--warning); }
.flash-error { border-color: #d79a9a; color: var(--danger); }

.site-footer {
  flex-shrink: 0;
  margin-top: 0;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  background: rgba(244, 248, 247, .96);
  color: var(--muted);
}
.footer-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.footer-inner p {
  margin: 0;
}
.footer-inner strong {
  color: var(--text);
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-weight: 750;
}

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 18px; right: 18px; top: 64px; padding: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; flex-direction: column; align-items: stretch; }
  .site-nav.is-open { display: flex; }
  .two-column, .detail-layout, .two-col-form, .section-grid, .package-status-grid, .participant-card, .participant-card-body, .participant-summary, .list-card, .admin-affiliate-row, .admin-book-primary-actions, .admin-danger-actions, .reader-profile-title { grid-template-columns: 1fr; }
  .steps-grid, .book-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .book-card { height: 740px; }
  .cover { height: 330px; flex-basis: 330px; }
  .participant-status-line { margin-left: 0; }
  .participant-toggle-label { width: 100%; min-width: 0; }
  .filter-bar { grid-template-columns: 1fr; }
  .page-head { align-items: start; flex-direction: column; }
  .profile-hero { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
  .admin-shell-header { align-items: flex-start; flex-direction: column; }
  .admin-stats, .admin-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-filter { grid-template-columns: 1fr; }
  .beta-dashboard-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .beta-news-teaser-grid {
    grid-template-columns: 1fr;
  }
  .beta-admin-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .beta-admin-row .button {
    width: 100%;
    justify-content: center;
  }
  .reader-projects-mobile-title {
    display: block;
    margin: 0;
    padding: 18px 16px 4px;
    text-align: center;
    font-size: 1.05rem;
  }
  .reader-dashboard-table,
  .reader-dashboard-table thead,
  .reader-dashboard-table tbody,
  .reader-dashboard-table tr,
  .reader-dashboard-table td {
    display: block;
    width: 100%;
  }
  .reader-dashboard-table {
    table-layout: auto;
  }
  .reader-dashboard-table thead {
    display: none;
  }
  .reader-dashboard-table tr {
    padding: 14px 16px 18px;
    border-bottom: 1px solid var(--line);
  }
  .reader-dashboard-table td {
    padding: 10px 0;
    border-bottom: 0;
  }
  .reader-dashboard-table th:nth-child(1),
  .reader-dashboard-table td:nth-child(1),
  .reader-dashboard-table th:nth-child(2),
  .reader-dashboard-table td:nth-child(2),
  .reader-dashboard-table th:nth-child(3),
  .reader-dashboard-table td:nth-child(3),
  .reader-dashboard-table th:nth-child(4),
  .reader-dashboard-table td:nth-child(4) {
    width: 100%;
  }
  .reader-dashboard-actions,
  .reader-dashboard-amazon {
    align-items: stretch;
    justify-content: flex-start;
    max-width: none;
  }
  .reader-dashboard-amazon .button {
    max-width: none;
  }
}

@media (max-width: 560px) {
  .hero { min-height: 66vh; }
  .reader-hero,
  .author-hero {
    height: auto;
    min-height: auto;
    padding-block: 44px;
    background-position: 62% center;
  }
  .steps-grid, .book-grid, .benefit-grid, .stats-row, .facts, .genre-checks, .admin-stats, .admin-grid { grid-template-columns: 1fr; }
  .book-card { height: auto; min-height: 690px; }
  .cover { height: 320px; flex-basis: 320px; }
  .address-fieldset, .payment-fieldset { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .hero-actions .button, .actions .button { width: 100%; }
  .book-detail-actions .button { width: auto; }
}
