/* batch5-publishing — the app's Publishing Center (js/publishing-center.js). Dark is the default theme; body.light
   is the light one. Every panel names its own background AND ink (never inherited from the shared header). */
#authorPage {
  --pc-card: var(--bg2, #12121c);
  --pc-ink: var(--text, #fff);
  --pc-ink2: var(--text2, #cbd5e1);
  --pc-ink3: var(--text3, #94a3b8);
  --pc-line: var(--border2, rgba(255,255,255,.1));
  --pc-soft: rgba(var(--accent-rgb, 139, 92, 246), .14);
  --pc-accent-ink: var(--accent-light, #c4b5fd);
  --pc-ok: #34d399;
  --pc-ok-bg: rgba(16, 185, 129, .16);
  --pc-warn: #fbbf24;
  --pc-warn-bg: rgba(251, 191, 36, .14);
  --pc-danger: #f87171;
  --pc-draft-bg: rgba(59, 130, 246, .18);
  --pc-draft: #93c5fd;
}
body.light #authorPage {
  --pc-card: #ffffff;
  --pc-ink: #111827;
  --pc-ink2: #475569;
  --pc-ink3: #576274;
  --pc-line: #e5e7eb;
  --pc-soft: rgba(var(--accent-rgb, 139, 92, 246), .10);
  --pc-accent-ink: var(--accent-strong, #7c3aed);
  --pc-ok: #047857;
  --pc-ok-bg: #dcfce7;
  --pc-warn: #92400e;
  --pc-warn-bg: #fef3c7;
  --pc-danger: #dc2626;
  --pc-draft-bg: #dbeafe;
  --pc-draft: #1d4ed8;
}
.pc-overlay {
  --pc-card: var(--bg2, #12121c); --pc-ink: var(--text, #fff); --pc-ink2: var(--text2, #cbd5e1); --pc-ink3: var(--text3, #94a3b8);
  --pc-line: var(--border2, rgba(255,255,255,.1)); --pc-soft: rgba(var(--accent-rgb, 139, 92, 246), .14); --pc-accent-ink: var(--accent-light, #c4b5fd);
  --pc-ok: #34d399; --pc-ok-bg: rgba(16,185,129,.16); --pc-warn: #fbbf24; --pc-warn-bg: rgba(251,191,36,.14); --pc-danger: #f87171;
  --pc-draft-bg: rgba(59,130,246,.18); --pc-draft: #93c5fd;
}
body.light .pc-overlay {
  --pc-card: #fff; --pc-ink: #111827; --pc-ink2: #475569; --pc-ink3: #576274; --pc-line: #e5e7eb;
  --pc-soft: rgba(var(--accent-rgb, 139, 92, 246), .10); --pc-accent-ink: var(--accent-strong, #7c3aed);
  --pc-ok: #047857; --pc-ok-bg: #dcfce7; --pc-warn: #92400e; --pc-warn-bg: #fef3c7; --pc-danger: #dc2626; --pc-draft-bg: #dbeafe; --pc-draft: #1d4ed8;
}

/* The legacy Author Section steps aside while the Publishing Center is open. */
#authorDashboard.pc-on > :not(#publishingCenter) { display: none !important; }
#authorDashboard:not(.pc-on) > #publishingCenter { display: none; }

.pc, #authorPcView, #authorPcPanels { color: var(--pc-ink); }
.pc { display: flex; flex-direction: column; gap: 14px; max-width: 880px; margin: 0 auto; }
.pc button, #authorPcView button, #authorPcPanels button, .pc-overlay button { font: inherit; cursor: pointer; }
.pc-hero {
  position: relative; border-radius: 0 0 24px 24px; padding: 22px 20px 54px; margin-bottom: -40px;
  background-color: var(--accent-dark, #5b21b6); background-image: linear-gradient(135deg, var(--accent-dark, #5b21b6), var(--accent-primary, #8b5cf6)); color: #fff;
}
.pc-hero-title { font-size: 24px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.pc-hero-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.pc-hero-sub { font-size: 13px; font-weight: 600; color: rgba(255,255,255,.82); min-width: 0; }
.pc-create {
  display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; padding: 10px 14px; border-radius: 14px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.32); color: #fff; font-size: 13px; font-weight: 700;
}
.pc-create:hover { background: rgba(255,255,255,.22); }

.pc-card { position: relative; background: var(--pc-card); color: var(--pc-ink); border: 1px solid var(--pc-line); border-radius: 20px; padding: 16px 18px; box-shadow: 0 6px 22px rgba(15,10,40,.08); }
.pc-card + .pc-card { margin-top: 0; }
.pc-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.pc-card-title { font-size: 16px; font-weight: 800; color: var(--pc-ink); }
.pc-link { background: none; border: 0; color: var(--pc-accent-ink); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; }
.pc-muted { color: var(--pc-ink3); font-size: 12.5px; line-height: 1.5; }
.pc-center { text-align: center; }
.pc-divider { height: 1px; background: var(--pc-line); margin: 12px 0; }
.pc-error { color: var(--pc-danger); font-size: 12.5px; font-weight: 700; margin: 6px 0; }
.pc-warn { color: var(--pc-warn); background: var(--pc-warn-bg); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; }
.pc-ok { color: var(--pc-ok); }

/* Part Activity */
.pc-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pc-day { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 0; background: none; border: 0; color: var(--pc-ink); border-radius: 12px; }
.pc-day-label { font-size: 11px; font-weight: 700; color: var(--pc-ink3); letter-spacing: .4px; }
.pc-day-num { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font-size: 16px; font-weight: 700; border: 2px solid transparent; }
.pc-day.is-today .pc-day-label { color: var(--pc-accent-ink); }
.pc-day.is-selected .pc-day-num { border-color: var(--accent-primary, #8b5cf6); color: var(--pc-accent-ink); }
.pc-day-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--pc-line); }
.pc-day-dot.has-events { background: var(--accent-primary, #8b5cf6); }
.pc-empty-day { text-align: center; color: var(--pc-ink3); font-size: 13px; padding: 14px 0; }
.pc-events { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.pc-event { display: flex; align-items: center; gap: 10px; }
.pc-event-open { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; background: none; border: 0; color: var(--pc-ink); padding: 4px 0; }
.pc-event-title { font-weight: 700; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.pc-event-book, .pc-event-when { font-size: 12px; color: var(--pc-ink3); }

.pc-badge { display: inline-flex; align-items: center; flex-shrink: 0; border-radius: 999px; padding: 3px 10px; font-size: 11.5px; font-weight: 700; background: var(--pc-soft); color: var(--pc-accent-ink); white-space: nowrap; }
.pc-badge-draft { background: var(--pc-draft-bg); color: var(--pc-draft); }
.pc-badge-published, .pc-badge-ready { background: var(--pc-ok-bg); color: var(--pc-ok); }
.pc-badge-scheduled, .pc-badge-rescheduled, .pc-badge-needed { background: var(--pc-warn-bg); color: var(--pc-warn); }
.pc-badge-muted, .pc-badge-unpublished, .pc-badge-unscheduled { background: var(--pc-line); color: var(--pc-ink2); }

/* At a Glance */
.pc-tiles { display: grid; grid-template-columns: repeat(3, 1fr); }
.pc-tile { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 4px 6px; text-align: center; color: var(--pc-accent-ink); }
.pc-tile + .pc-tile { border-left: 1px solid var(--pc-line); }
.pc-tile-value { font-size: 22px; font-weight: 800; color: var(--pc-ink); }
.pc-tile-label { font-size: 12px; color: var(--pc-ink2); }
.pc-ready { display: flex; flex-direction: column; gap: 10px; }
.pc-ready-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.pc-ready-book { background: none; border: 0; padding: 0; color: var(--pc-accent-ink); font-weight: 700; font-size: 13.5px; text-align: left; margin-top: 2px; }
.pc-pill { border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700; background: var(--pc-soft); color: var(--pc-accent-ink); white-space: nowrap; }
.pc-segments { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 5px; }
.pc-segments > span { height: 5px; border-radius: 3px; background: var(--pc-line); }
.pc-segments > span.is-done { background: var(--accent-primary, #8b5cf6); }
.pc-next { display: flex; align-items: center; gap: 10px; }
.pc-next-icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--pc-line); color: var(--pc-ink2); flex-shrink: 0; }
.pc-next-icon.is-done { background: var(--accent-primary, #8b5cf6); color: #fff; }
.pc-next-label { flex: 1; font-size: 14px; color: var(--pc-ink); }
.pc-quality-note { border: 1px solid var(--pc-line); background: var(--pc-soft); color: var(--pc-ink2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; }
.pc-ready-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pc-outline { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--pc-line); background: transparent; color: var(--pc-ink); font-size: 13px; font-weight: 700; }
.pc-outline:hover { border-color: var(--accent-primary, #8b5cf6); }
.pc-outline:disabled { opacity: .55; cursor: default; }
.pc-small { padding: 7px 11px; font-size: 12.5px; }
.pc-primary { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 16px; border-radius: 12px; border: 0; background: var(--accent-primary, #8b5cf6); color: var(--accent-contrast, #fff); font-size: 13.5px; font-weight: 800; }
.pc-primary:disabled { opacity: .6; cursor: default; }
.pc-wide { width: 100%; padding: 13px 16px; margin-top: 4px; }
.pc-danger { padding: 10px 16px; border-radius: 12px; border: 0; background: #dc2626; color: #fff; font-weight: 800; font-size: 13.5px; }
.pc-checklist { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--pc-ink2); }
.pc-checklist li { display: flex; align-items: center; gap: 9px; }
.pc-checklist li.is-done { color: var(--pc-ink); }
.pc-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--pc-line); display: grid; place-items: center; color: #fff; }
.pc-checklist li.is-done .pc-check { background: var(--accent-primary, #8b5cf6); border-color: transparent; }
.pc-quality { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--pc-ink); }
.pc-finding { display: flex; gap: 10px; align-items: flex-start; justify-content: space-between; width: 100%; }
.pc-sub { margin-top: 4px; }

/* Your Manuscripts */
.pc-manuscripts { display: flex; flex-direction: column; gap: 12px; margin-top: 6px; }
.pc-ms-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-ms-title { font-size: 21px; font-weight: 800; color: var(--pc-ink); }
.pc-ms-tools { display: flex; gap: 8px; }
.pc-chip-select, .pc-icon-select { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--pc-line); background: var(--pc-card); color: var(--pc-ink); font-size: 13.5px; font-weight: 600; }
.pc-icon-select { padding: 8px 12px; }
.pc-search { display: flex; align-items: center; gap: 9px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--pc-line); background: var(--pc-card); color: var(--pc-ink3); }
.pc-search-input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--pc-ink); font: inherit; font-size: 14px; padding: 12px 0; }
.pc-search-input::placeholder { color: var(--pc-ink3); }
.pc-search:focus-within { border-color: var(--accent-primary, #8b5cf6); }
.pc-list { display: flex; flex-direction: column; gap: 12px; }
.pc-ms-card { background: var(--pc-card); color: var(--pc-ink); border: 1px solid var(--pc-line); border-radius: 18px; padding: 13px; display: flex; flex-direction: column; gap: 11px; }
.pc-ms-top { display: flex; align-items: flex-start; gap: 10px; }
.pc-ms-open { flex: 1; min-width: 0; display: flex; gap: 12px; align-items: flex-start; background: none; border: 0; text-align: left; color: inherit; padding: 0; }
.pc-cover { width: 64px; height: 96px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: var(--pc-soft); display: grid; place-items: center; }
.pc-cover img, .pc-reader-cover img, .pc-cover-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pc-cover-fallback { font-size: 22px; font-weight: 800; color: var(--pc-accent-ink); }
.pc-ms-copy { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pc-ms-name { font-size: 15.5px; font-weight: 800; color: var(--pc-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.pc-ms-meta { font-size: 12.5px; color: var(--pc-ink2); }
.pc-ms-detail { font-size: 12px; color: var(--pc-ink3); }
.pc-ms-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; max-width: 46%; }
.pc-badge-exclusive { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.pc-more { width: 34px; height: 30px; border-radius: 10px; border: 0; background: transparent; color: var(--pc-ink2); display: grid; place-items: center; }
.pc-more:hover { background: var(--pc-soft); color: var(--pc-ink); }
.pc-card-stats .author-card-stats { margin: 0; }
.pc-card-stats:empty { display: none; }
.pc-card-actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; }
.pc-empty { text-align: center; padding: 28px 16px; background: var(--pc-card); border: 1px dashed var(--pc-line); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; color: var(--pc-ink); }
.pc-empty p { color: var(--pc-ink3); font-size: 13px; }

/* Centred pop-ups (owner: never bottom sheets, also at phone width) */
.pc-overlay { position: fixed; inset: 0; z-index: 11000; display: grid; place-items: center; padding: 16px; background: rgba(5, 3, 15, .62); }
.pc-dialog { width: min(440px, 100%); max-height: min(86dvh, 720px); overflow: auto; background: var(--pc-card); color: var(--pc-ink); border-radius: 22px; padding: 16px 18px 18px; box-shadow: 0 24px 80px rgba(0,0,0,.45); animation: pc-in .18s ease-out; }
@keyframes pc-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .pc-dialog { animation: none; } }
.pc-dialog-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.pc-dialog-title { flex: 1; min-width: 0; font-size: 16px; font-weight: 800; color: var(--pc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-dialog-close { width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--pc-soft); color: var(--pc-ink); font-size: 22px; line-height: 1; }
.pc-options, .pc-menu-items { display: flex; flex-direction: column; }
.pc-option, .pc-menu-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 13px 8px; border: 0; border-bottom: 1px solid var(--pc-line); background: none; color: var(--pc-ink); font-size: 14px; font-weight: 600; text-align: left; }
.pc-option:last-child, .pc-menu-item:last-child { border-bottom: 0; }
.pc-option.is-selected { color: var(--pc-accent-ink); }
.pc-menu-item.is-danger { color: var(--pc-danger); }
.pc-menu-item:hover, .pc-option:hover { background: var(--pc-soft); }
.pc-menu-note { display: flex; flex-direction: column; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--pc-soft); color: var(--pc-ink2); font-size: 12.5px; line-height: 1.5; margin-bottom: 6px; }
.pc-confirm { display: flex; flex-direction: column; gap: 10px; text-align: center; }
.pc-confirm h3 { font-size: 16px; font-weight: 800; }
.pc-confirm p { color: var(--pc-ink2); font-size: 13px; line-height: 1.5; }
.pc-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.pc-cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pc-cal-title { font-size: 15px; font-weight: 800; }
.pc-cal-step { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--pc-line); background: none; color: var(--pc-ink); font-size: 20px; }
.pc-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.pc-cal-head span { text-align: center; font-size: 11px; font-weight: 700; color: var(--pc-ink3); padding: 4px 0; }
.pc-cal-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; color: var(--pc-ink); font-size: 13.5px; font-weight: 600; position: relative; }
.pc-cal-day.has-events::after { content: ''; position: absolute; left: 50%; bottom: 4px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--accent-primary, #8b5cf6); }
.pc-cal-day.is-selected { background: var(--accent-primary, #8b5cf6); color: #fff; }
.pc-cal-day.is-selected::after { background: #fff; }
.pc-reader { display: flex; gap: 14px; align-items: flex-start; }
.pc-reader-cover { width: 92px; height: 138px; border-radius: 12px; overflow: hidden; background: var(--pc-soft); flex-shrink: 0; display: grid; place-items: center; }
.pc-reader-copy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.pc-reader-copy h3 { font-size: 17px; font-weight: 800; overflow-wrap: anywhere; }
.pc-reader-tagline { font-style: italic; color: var(--pc-ink2); font-size: 13px; }
.pc-reader-desc { color: var(--pc-ink2); font-size: 13px; line-height: 1.55; white-space: pre-line; overflow-wrap: anywhere; }
.pc-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pc-chip { display: inline-flex; align-items: center; border-radius: 999px; padding: 5px 11px; font-size: 12px; font-weight: 600; background: var(--pc-soft); color: var(--pc-accent-ink); border: 1px solid transparent; }
.pc-chip-btn { background: transparent; color: var(--pc-ink); border-color: var(--pc-line); }
.pc-chip-btn.is-selected { background: var(--pc-soft); color: var(--pc-accent-ink); border-color: var(--accent-primary, #8b5cf6); }

/* Statistics + wizard pages */
#authorPcView { max-width: 760px; margin: 0 auto; }
.pc-page-head, .pc-wizard-top { display: flex; align-items: center; gap: 12px; }
.pc-back { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--pc-line); background: var(--pc-card); color: var(--pc-ink); display: grid; place-items: center; flex-shrink: 0; }
.pc-page-title { font-size: 22px; font-weight: 800; color: var(--pc-ink); }
.pc-page-sub { font-size: 13px; color: var(--pc-ink2); overflow-wrap: anywhere; }
.pc-stats { display: flex; flex-direction: column; gap: 16px; }
.pc-stats-body { display: flex; flex-direction: column; gap: 14px; }
.pc-stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pc-stat { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 16px; background: var(--pc-card); border: 1px solid var(--pc-line); color: var(--pc-accent-ink); }
.pc-stat strong { font-size: 24px; font-weight: 800; color: var(--pc-ink); }
.pc-stat span { font-size: 13px; color: var(--pc-ink2); }
.pc-top { list-style: none; display: flex; flex-direction: column; }
.pc-top li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--pc-line); }
.pc-top li:last-child { border-bottom: 0; }
.pc-top li > div { display: flex; flex-direction: column; min-width: 0; }
.pc-top li strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pc-top-reads { color: var(--pc-accent-ink); font-weight: 700; font-size: 13px; white-space: nowrap; }
.pc-dashed { border-style: dashed; display: flex; flex-direction: column; gap: 6px; }
.pc-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .6px; color: var(--pc-ink3); }
.pc-wizard-head { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 0 0 22px 22px; background-color: var(--accent-dark, #5b21b6); background-image: linear-gradient(135deg, var(--accent-dark, #5b21b6), var(--accent-primary, #8b5cf6)); margin-bottom: 14px; }
.pc-wizard-head .pc-page-title { color: #fff; }
.pc-wizard-head .pc-page-sub { color: rgba(255,255,255,.82); }
.pc-wizard-head .pc-back { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.3); color: #fff; }
.pc-wizard-titles { flex: 1; min-width: 0; }
.pc-step { padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.16); color: #fff; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pc-wizard-bar > span { background: rgba(255,255,255,.28); }
.pc-wizard-bar > span.is-done { background: #fff; }
.pc-form { display: flex; flex-direction: column; gap: 12px; }
.pc-form-card { display: flex; flex-direction: column; gap: 10px; }
.pc-field { display: flex; flex-direction: column; gap: 6px; }
.pc-field-label { display: flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: var(--pc-ink); }
.pc-count { margin-left: auto; font-weight: 500; font-size: 11.5px; color: var(--pc-ink3); }
.pc-req { color: var(--pc-danger); }
.pc-hint { font-size: 11.5px; color: var(--pc-ink3); }
.pc-input { width: 100%; border: 1px solid var(--pc-line); border-radius: 12px; background: transparent; color: var(--pc-ink); font: inherit; font-size: 14px; padding: 10px 12px; }
body.light .pc-input { background: #fff; }
select.pc-input option { color: #111827; }
.pc-input:focus { outline: 2px solid var(--accent-primary, #8b5cf6); outline-offset: 0; border-color: transparent; }
.pc-input.pc-inline { width: 150px; padding: 6px 12px; border-radius: 999px; border-style: dashed; }
.pc-row-wrap { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pc-toggle { display: flex; align-items: center; gap: 12px; position: relative; cursor: pointer; padding: 4px 0; }
.pc-toggle-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; color: var(--pc-ink); }
.pc-switch-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.pc-switch { width: 46px; height: 26px; border-radius: 13px; background: var(--pc-line); position: relative; flex-shrink: 0; transition: background .15s; }
.pc-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.pc-switch-input:checked + .pc-switch { background: var(--accent-primary, #8b5cf6); }
.pc-switch-input:checked + .pc-switch::after { transform: translateX(20px); }
.pc-switch-input:focus-visible + .pc-switch { outline: 2px solid var(--accent-primary, #8b5cf6); outline-offset: 2px; }
.pc-switch-input:disabled + .pc-switch { opacity: .5; }
.pc-radios { display: flex; flex-direction: column; gap: 8px; }
.pc-radio { display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--pc-line); background: transparent; color: var(--pc-ink); text-align: left; }
.pc-radio > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.pc-radio.is-selected { border-color: var(--accent-primary, #8b5cf6); border-width: 2px; padding: 11px 13px; }
.pc-radio-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--pc-line); flex-shrink: 0; margin-top: 1px; }
.pc-radio.is-selected .pc-radio-dot { border-color: var(--accent-primary, #8b5cf6); box-shadow: inset 0 0 0 4px var(--pc-card), inset 0 0 0 10px var(--accent-primary, #8b5cf6); }
.pc-segmented { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: var(--pc-soft); }
.pc-seg { border: 0; border-radius: 10px; padding: 10px 6px; background: none; color: var(--pc-ink2); font-size: 13.5px; font-weight: 700; }
.pc-seg.is-selected { background: var(--pc-card); color: var(--pc-accent-ink); box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.pc-cover-card { flex-direction: row; align-items: center; gap: 14px; }
.pc-cover-pick { width: 96px; height: 144px; border-radius: 12px; border: 1.5px dashed var(--pc-line); background: var(--pc-soft); color: var(--pc-accent-ink); font-size: 12px; font-weight: 700; overflow: hidden; flex-shrink: 0; display: grid; place-items: center; text-align: center; padding: 0; }
.pc-summary { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.pc-summary h3 { font-size: 17px; font-weight: 800; }
.pc-summary > div:nth-child(2) { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 4px; }
.pc-summary-actions { width: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pc-series { display: flex; flex-direction: column; gap: 10px; }
.pc-series[hidden] { display: none; }
.pc-collabs:empty { display: none; }
.pc-mature-note:empty { display: none; }
.pc-mature-note { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }

/* Panels under the book editor */
#authorPcPanels { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
#authorPcPanels:empty { display: none; }
.pc-panel { display: flex; flex-direction: column; gap: 12px; }
.pc-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pc-panel-title { font-size: 19px; font-weight: 800; color: var(--pc-ink); }
.pc-panel-actions { display: flex; justify-content: flex-end; }

@media (max-width: 560px) {
  .pc-hero { border-radius: 0 0 20px 20px; padding: 18px 16px 50px; }
  .pc-hero-title { font-size: 21px; }
  .pc-card { padding: 14px; border-radius: 18px; }
  .pc-day-num { width: 32px; height: 32px; font-size: 14.5px; }
  .pc-tile-value { font-size: 19px; }
  .pc-tile-label { font-size: 11px; }
  .pc-ready-actions { grid-template-columns: 1fr; }
  .pc-stat-grid { grid-template-columns: repeat(2, 1fr); }
  .pc-cover { width: 56px; height: 84px; }
  .pc-card-actions { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr 1fr; }
  .pc-card-actions > :only-child, .pc-card-actions > :nth-child(3) { grid-column: 1 / -1; }
  .pc-ms-title { font-size: 19px; }
}

/* Make exclusive (Writers' Lounge › Manuscripts ⋯) */
.pc-space-line { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--pc-line); margin: 8px 0; }
.pc-space-line > span:last-child { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.pc-space-symbol { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--pc-soft); color: var(--pc-accent-ink); font-weight: 800; flex-shrink: 0; }
.pc-dialog > .pc-dialog-body > .pc-muted + .pc-muted { margin-top: 6px; }
.pc-dialog .pc-warn { margin: 8px 0; }
.wl-manu-menu-copy { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.wl-manu-menu-sub { font-size: .72rem; font-weight: 400; color: var(--wl-muted, #64748b); }
.wl-manu-menu-item.is-danger .wl-manu-menu-sub { color: inherit; opacity: .8; }
