: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;
  min-height: 38px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), #ff784f);
  color: white;
  font-weight: 850;
  box-shadow: 0 10px 22px rgba(228, 87, 46, .24);
  cursor: pointer;
}

main {
  min-height: 75vh;
  flex: 1 0 auto;
}
.hero {
  min-height: 72vh;
  display: grid;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) clamp(20px, 6vw, 90px);
  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 {
  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") center/cover;
}
.author-hero {
  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") center/cover;
}
.hero-content { max-width: 720px; }
.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;
  width: fit-content;
  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;
  box-shadow: 0 10px 28px rgba(228, 87, 46, .13);
}

.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;
  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-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;
}
.notice-box { padding: 22px; }
.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; }

.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;
}
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);
}
.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: grid; grid-template-rows: auto 1fr; min-height: 650px; }
.clickable-card { cursor: pointer; }
.cover { width: 100%; aspect-ratio: 2 / 3; background: #e8e0d5; display: grid; place-items: center; color: var(--muted); overflow: hidden; }
.cover img, .detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.book-card-body { padding: 18px; display: grid; gap: 10px; grid-template-rows: auto auto auto 1fr auto auto; }
.book-card-body h2, .book-card-body h3 {
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.book-card-body p:not(.muted-text) {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pill, .status-pill {
  display: inline-flex;
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f1ef;
  color: #23514e;
  font-size: .82rem;
  font-weight: 800;
}
.status-pill { background: #f2e5d7; color: #70411f; }
.warning-pill { background: #ffe4e4; color: #9c1c28; }
.status-neutral { background: #eef2f1; color: #3f4a4a; }
.status-waiting { background: #fff1d6; color: #8a5400; }
.status-info { background: #e8f1ff; color: #24518f; }
.status-success { background: #ddf6e9; color: #17633a; }
.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);
}
.meta-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); font-size: .93rem; }
.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;
}
.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; }
.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-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);
}
.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;
}
.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);
}
.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: 6px 12px;
  border-radius: 999px;
  font-weight: 900;
  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, #d9545d 0%, #f0b84a 48%, #198754 100%);
}
.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; }

.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; }
.sensitive-box, .feedback-box { margin-top: 12px; padding: 14px; background: #f7fbfa; }
.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 {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.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;
}
.address-fieldset, .payment-fieldset {
  display: grid;
  grid-template-columns: 1fr .55fr;
  gap: 14px;
}
.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-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;
}
.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(520px, 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);
}
.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;
  align-items: center;
  gap: 12px;
}
.participant-title h2 {
  margin: 0;
}

.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, .participant-card, .list-card { grid-template-columns: 1fr; }
  .steps-grid, .book-grid, .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .book-card { min-height: 600px; }
  .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; }
}

@media (max-width: 560px) {
  .hero { min-height: 66vh; }
  .steps-grid, .book-grid, .benefit-grid, .stats-row, .facts, .genre-checks { grid-template-columns: 1fr; }
  .book-card { min-height: auto; grid-template-rows: auto 1fr; }
  .address-fieldset, .payment-fieldset { grid-template-columns: 1fr; }
  .timeline li { grid-template-columns: 1fr; }
  .hero-actions .button, .actions .button { width: 100%; }
}
