/* Shared Pipbuk violet theme, layered over existing application components. */
:root {
    --violet: #784dfe;
    --violet-dark: #5f34e0;
    --violet-tint: #f2edff;
    --navy: #5f34e0;
    --navy-light: #9673ff;
    --orange: #e4daff;
    --orange-dark: #bba6ff;
    --blue: #784dfe;
    --blue-dark: #5f34e0;
    --bg: #fcfcfc;
    --ink: #0a0a0a;
    --muted: #6b6b6b;
    --line: #e2dfee;
}
body { line-height: 1.6; }
h1, h2, h3 { letter-spacing: -0.035em; }
::selection { background: #d7caff; color: #32245a; }
:where(a, button, input, select, textarea):focus-visible { outline: 3px solid #9673ff; outline-offset: 4px; }
button, input, select, textarea { accent-color: var(--violet); }
.brand { color: var(--ink); font-size: 1.65rem; letter-spacing: -0.07em; }
.brand-accent { color: var(--violet); }
.app-header { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 3px 18px #32245a04; }
.app-header-inner { max-width: 1240px; padding: 1rem 2rem; }
.app-header-left { gap: 2.75rem; }
.app-nav { gap: 0.5rem; }
.app-nav > a, .nav-dropdown-toggle { color: var(--muted); padding: 0.55rem 0.85rem; border-radius: 9px; }
.app-nav > a:hover, .app-nav > a[aria-current="page"], .nav-dropdown-toggle:hover, .nav-dropdown-toggle[aria-expanded="true"] { background: var(--violet-tint); color: var(--violet-dark); }
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after { background: var(--navy); }
.user-menu-chevron { color: var(--muted); }
.avatar { border-color: var(--line); }
.user-menu-toggle:hover, .user-menu-toggle[aria-expanded="true"] { background: var(--violet-tint); }
.user-menu-dropdown, .nav-dropdown-menu { border: 1px solid var(--line); box-shadow: 0 12px 40px #32245a12; border-radius: 14px; }
.page { margin: 2.5rem auto; border: 1px solid var(--line); box-shadow: 0 8px 32px #32245a04; border-radius: 22px; width: calc(100% - 3rem); }
.page-wide { max-width: 1200px; border: 0; padding: 0; }
.page-header { align-items: center; margin-bottom: 2rem; }
.page-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.btn-primary { background: var(--violet); color: #fff; border-radius: 12px; font-weight: 600; box-shadow: 0 4px 10px #784dfe16; }
.btn-primary:hover, .btn-primary:active { background: var(--violet-dark); }
.btn-secondary { color: var(--violet-dark); border: 1px solid #d0bfff; border-radius: 12px; }
.btn-secondary:hover { background: var(--violet-tint); color: var(--violet-dark); }
.btn-danger, .btn-secondary-light { border-radius: 12px; }
.campaign-filter { border: 1px solid var(--line); padding: 1rem; box-shadow: none; gap: 0.8rem; }
.form input, .form textarea, .form select, .campaign-filter select, .campaign-filter input[type="search"] { border-color: #ddd5f0; background: #fdfcff; min-height: 46px; }
.form input[type="checkbox"], .form input[type="radio"] { min-height: auto; }
.form textarea { min-height: 130px; resize: vertical; }
.form label { margin-top: 1rem; }
.book-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1.5rem; }
.book-card { border: 1px solid var(--line); box-shadow: 0 4px 16px #32245a06; }
.book-card-cover-only { border: 0; }
.book-card-cover-only .book-cover { box-shadow: 0 8px 20px #32245a14; }
.book-cover { background: #f2edff; }
.book-cover-fallback { color: #5f34e0; padding: 1rem; text-align: center; }
.book-cover-overlay { background: linear-gradient(transparent 25%, #241747e6); }
.book-caption { display: block; padding-top: 0.8rem; font-size: 0.9rem; font-weight: 500; color: var(--ink); line-height: 1.45; }
.campaign-row, .review-list li { border: 1px solid var(--line); box-shadow: none; padding: 1.1rem 1.25rem; border-radius: 16px; }
.campaign-row:hover { border-color: #bba6ff; box-shadow: 0 8px 24px #32245a09; }
.campaign-row .book-cover-sm { margin-bottom: 0; }
.book-hero { background: #5f34e0; }
.dashboard-hero-active { background: #faf8ff; border: 1px solid #d0bfff; border-left: 4px solid #784dfe; box-shadow: none; padding: 1.75rem; }
.dashboard-hero-countdown strong { color: var(--violet-dark); }
.dashboard-hero-invite { background: #f2edff; animation: none; color: var(--ink); text-align: left; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid #d0bfff; }
.dashboard-hero-invite::before, .dashboard-hero-invite::after { display: none; }
.dashboard-hero-invite h2 { color: var(--navy); max-width: 650px; }
.dashboard-hero-invite p { color: var(--muted); }
.dashboard-hero-invite .dashboard-hero-actions { justify-content: flex-start; }
.dashboard-hero-eyebrow { color: var(--violet-dark); }
.dashboard-hero-invite .btn-secondary-light { color: var(--violet-dark); border-color: #bba6ff; }
.empty-state { padding: 2.5rem 1.5rem; text-align: center; background: #f2edff; border: 1px dashed #bba6ff; border-radius: 16px; }
.landing { background: #fcfcfc; overflow-x: clip; }
.landing-nav, .landing-footer { width: min(1180px, calc(100% - 4rem)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.6rem 0; }
.landing-nav { border-bottom: 1px solid var(--line); }
.landing-publishers { background: var(--violet-tint); border-block: 1px solid var(--line); }
.landing-publishers-inner { width: min(1180px, calc(100% - 4rem)); margin: 0 auto; padding: 2.25rem 0; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.landing-publishers-copy { max-width: 420px; }
.landing .landing-publishers-copy { position: relative; padding-left: 130px; max-width: 550px; }
.landing-publishers-detail { position: absolute; left: 0; top: 50%; transform: translateY(-50%) rotate(-5deg); width: 110px; height: auto; pointer-events: none; }
@media (max-width: 900px) {
    .landing .landing-publishers-copy { padding-left: 0; }
    .landing-publishers-detail { position: static; display: block; width: 86px; margin: 0 auto 1rem; transform: rotate(-5deg); }
}
.landing-publishers-copy h2 { margin: 0.6rem 0 0; color: var(--ink); font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.4; }
.landing-publishers-logos { display: flex; align-items: center; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); list-style: none; margin: 0; padding: 0; }
.landing-publisher { display: flex; align-items: center; justify-content: center; width: 200px; min-height: 80px; }
.landing-publisher img { display: block; width: 100%; height: 80px; object-fit: contain; }
.landing-publisher-link { display: flex; width: 100%; min-height: 80px; align-items: center; justify-content: center; text-decoration: none; border-radius: 8px; }
.landing-publisher-link:hover { opacity: 0.8; }
.landing-publisher-link:focus-visible { outline: 3px solid var(--violet); outline-offset: 6px; }
.landing-publisher-name { color: var(--violet-dark); font-family: 'Poppins', sans-serif; font-size: 1.25rem; font-weight: 600; text-align: center; }
@media (max-width: 760px) {
    .landing-publishers-inner { width: calc(100% - 2rem); flex-direction: column; text-align: center; gap: 1.5rem; }
    .landing-publishers-logos { width: 100%; gap: 1.5rem; }
    .landing-publisher { width: min(200px, calc(50% - 0.75rem)); }
}
.landing-nav-link { color: var(--muted); font-size: 0.85rem; text-decoration: none; }
.landing-nav-link span { margin-left: 0.75rem; }
.landing-nav-link:hover { color: var(--violet-dark); }
.landing-hero { width: min(1180px, calc(100% - 4rem)); margin: 0 auto; display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem; padding: 4.5rem 0 5rem; background: none; animation: none; text-align: left; overflow: visible; color: var(--ink); }
.landing-hero::before, .landing-hero::after { display: none; }
.landing-hero-inner { min-width: 0; max-width: 620px; animation: none; overflow-wrap: anywhere; }
.landing-hero > .reading-art { min-width: 0; }
.landing-eyebrow { display: inline-block; color: var(--violet-dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.landing-eyebrow > span { margin-right: 0.5rem; }
.landing-title { font-size: clamp(2.4rem, 4.2vw, 3.8rem); line-height: 1.16; color: var(--navy); letter-spacing: -0.055em; margin: 1.25rem 0 1.6rem; }
.landing-title em { color: var(--violet); font-family: Georgia, serif; font-weight: 400; }
.landing-tagline { color: var(--ink); font-size: 1rem; font-weight: 500; margin-bottom: 0.7rem; }
.landing-subtitle { color: var(--muted); max-width: 430px; font-size: 0.95rem; line-height: 1.8; margin-bottom: 1.75rem; }
.landing-cta { width: fit-content; background: #fff; border: 1px solid #d0bfff; color: var(--ink); box-shadow: 0 4px 12px #32245a06; border-radius: 12px; padding: 0.95rem 1.25rem; font-size: 0.9rem; }
.landing-cta:hover { background: #f2edff; box-shadow: 0 6px 18px #32245a10; }
.landing-cta > span { margin-left: 1rem; color: var(--violet); }
.landing-auth-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.landing-auth-actions > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 1 1 210px;
    min-height: 50px;
    margin: 0;
    padding: 14px 18px;
    border: 1px solid #d0bfff;
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 4px 12px #32245a06;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: background .2s, box-shadow .2s;
}
.landing-auth-actions > a:hover { background: #f2edff; box-shadow: 0 6px 18px #32245a10; transform: none; }
.landing-auth-actions > a > span { margin-left: auto; color: var(--violet); }
.landing-auth-actions > a:focus-visible { outline: 3px solid #bba6ff; outline-offset: 3px; }
.landing-note { font-size: 0.72rem; color: var(--muted); margin-top: 1rem; }
.reading-art { position: relative; height: 420px; isolation: isolate; }
.reading-art-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.reading-orbit { position: absolute; inset: 15px 0 0; background: #e4daff; border-radius: 50% 50% 45% 45%; transform: rotate(-8deg); }
.reading-orbit::after { content: ""; position: absolute; inset: 18px -10px; border: 1px solid #bba6ff; border-radius: 50%; transform: rotate(25deg); }
.art-book { position: absolute; width: 205px; height: 285px; border-radius: 4px 12px 12px 4px; box-shadow: 12px 22px 30px #32245a20, inset 6px 0 0 #ffffff20; padding: 24px; overflow: hidden; }
.art-book > span { display: block; font-size: 7px; letter-spacing: 0.15em; }
.art-book strong { display: block; font: 36px/1.1 Georgia, serif; margin-top: 25px; }
.art-book-back { background: #784dfe; color: #fff5e9; left: 12%; top: 48px; transform: rotate(-14deg); }
.art-book-back i { display: block; width: 110px; height: 110px; border: 1px solid #c9b8ff; border-radius: 50%; margin-top: 20px; }
.art-book-front { background: #eee3cf; color: #32245a; left: 43%; top: 96px; transform: rotate(10deg); }
.art-book-front strong { margin-top: 18px; }
.art-book-front small { position: absolute; bottom: 19px; font-size: 7px; }
.book-window { position: relative; height: 107px; margin: 15px auto 0; width: 116px; border-radius: 70px 70px 0 0; background: #aa8fff; overflow: hidden; }
.book-window::before { content: ""; position: absolute; width: 30px; height: 30px; background: #f7ecd7; border-radius: 50%; left: 23px; top: 18px; }
.book-window div { position: absolute; width: 150px; height: 100px; border-radius: 50%; background: #5f34e0; transform: rotate(-30deg); top: 70px; left: -20px; }
.reading-spark { position: absolute; z-index: 2; color: #784dfe; }
.reading-spark-one { font-size: 44px; top: 2px; right: 18%; }
.reading-spark-two { font-size: 60px; bottom: 33px; left: 8%; }
.reading-label { position: absolute; bottom: 0; right: 3%; background: #fff; padding: 12px 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--navy); font-size: 0.76rem; box-shadow: 0 8px 25px #32245a08; transform: rotate(-4deg); }
.reading-label span { color: var(--violet); font-size: 1.1rem; margin-right: 8px; }
.landing-steps { max-width: none; padding: 3rem max(2rem, calc((100% - 1180px) / 2)) 4rem; background: #f6f3ff; border-top: 1px solid var(--line); }
.steps-heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.steps-heading h2 { text-align: left; font-size: clamp(1.35rem, 2.5vw, 1.85rem); margin: 0.5rem 0 0; }
.steps-heading > p { color: var(--muted); font-size: 0.8rem; }
.step-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.step-card { text-align: left; padding: 1.4rem; border: 1px solid #e2dfee; border-radius: 16px; box-shadow: none; animation: none; background: #fcfcfc; }
.step-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px #32245a08; }
.step-number { background: #f2edff; color: var(--violet-dark); border-radius: 10px; font-size: 0.8rem; width: 38px; height: 38px; margin-bottom: 1.2rem; }
.step-card h3 { font-size: 0.93rem; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.step-card p { font-size: 0.8rem; line-height: 1.75; }
.landing .step-card { position: relative; background: linear-gradient(150deg, #fffdf8, #fcfbff); box-shadow: 0 8px 24px #32245a06; }
.landing .step-card .step-number { position: absolute; top: 1.25rem; left: 1.25rem; width: 30px; height: 30px; font-size: 0.7rem; background: #eee7f8; }
.landing-step-art { display: block; width: 100%; height: 108px; object-fit: contain; margin: 0.15rem auto 1.2rem; padding: 0 1.25rem; }
@media (max-width: 640px) {
    .landing-step-art { height: 88px; padding: 0 0.25rem; margin-top: 1rem; }
    .landing .step-card .step-number { top: 0.65rem; left: 0.65rem; width: 25px; height: 25px; }
}
.landing-footer { font-size: 0.75rem; color: var(--muted); }
.landing-footer .brand { font-size: 1.2rem; }
.landing-nav .brand, .landing-footer .brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.landing .brand-logo { display: block; height: 34px; width: auto; }
.landing-footer .brand-logo { height: 26px; }
@media (max-width: 900px) {
    .landing-hero { grid-template-columns: 1.1fr 0.9fr; gap: 0.5rem; padding-top: 3rem; }
    .reading-art { transform: scale(0.8); transform-origin: center; margin-left: -2rem; }
    .art-book-back { left: 2%; }
    .art-book-front { left: 35%; }
    .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .app-header { padding: 0; }
    .app-header-inner { padding: 0.8rem 1rem; }
    .app-header-left { gap: 1rem; }
    .app-nav { background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px #32245a0d; }
    .app-nav a, .nav-dropdown-toggle { border-bottom: 0; padding: 0.75rem; }
    .nav-dropdown-menu { background: #f6f3ff; }
    .nav-dropdown-menu a { color: var(--ink); }
    .page { width: calc(100% - 2rem); margin: 1.25rem auto; padding: 1.25rem; }
    .page-wide { padding: 0; }
    .book-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
    .dashboard-hero-body { min-width: 0; flex-basis: 100%; }
    .landing-nav, .landing-footer, .landing-hero { width: calc(100% - 2.5rem); }
    .landing-nav { padding: 1.15rem 0; }
    .landing-nav-link { font-size: 0.75rem; }
    .landing-hero { grid-template-columns: 1fr; padding: 2.75rem 0 2rem; }
    .landing-title { font-size: clamp(2.35rem, 9vw, 3.3rem); }
    .landing-eyebrow { font-size: 0.63rem; }
    .reading-art { width: min(100%, 380px); height: 390px; margin: 0 auto; transform: scale(0.9); }
    .art-book-back { left: 5%; }
    .art-book-front { left: 39%; }
    .landing-steps { padding: 2.5rem 1.25rem; }
    .steps-heading { display: block; }
    .steps-heading > p { margin-top: 1rem; }
    .step-card { padding: 1rem; }
    .landing-footer { align-items: flex-start; }
    .landing-footer > span:last-child { max-width: 190px; text-align: right; }
}
@media (max-width: 360px) {
    .step-grid { grid-template-columns: 1fr; }
    .reading-art { transform: scale(0.75); transform-origin: center; width: min(100%, 355px); margin-bottom: -3rem; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Book details follow the shared Pipbuk violet theme. */
.book-hero { background: var(--violet-tint); border: 1px solid var(--line); border-radius: 18px; }
.book-hero-backdrop, .book-hero-overlay { display: none; }
.book-hero-content { align-items: center; gap: 2rem; }
.book-hero-poster { box-shadow: 0 12px 28px #32245a20; }
.book-hero-info { min-width: 0; color: var(--ink); overflow-wrap: anywhere; }
.book-hero-info h1 { color: var(--ink); font-size: clamp(1.6rem, 4vw, 2.2rem); line-height: 1.25; margin-bottom: .75rem; }
.book-hero-author, .book-hero-pages { color: var(--muted); }
.book-hero-genres .genre-chip { background: #fff; border-color: #d0bfff; color: var(--violet-dark); }
.book-hero-actions .btn-secondary-light { background: #fff; color: var(--violet-dark); border-color: #d0bfff; }
.book-hero-actions .btn-secondary-light:hover { background: #e4daff; }
.book-hero-synopsis { max-width: none; border-top: 1px solid var(--line); padding-top: 1.5rem; }
.book-hero-synopsis h2 { color: var(--ink); }
.book-hero-synopsis .book-synopsis { color: var(--muted); line-height: 1.8; overflow-wrap: anywhere; }
@media (max-width: 560px) {
    .book-hero-content { flex-direction: column; gap: 1.25rem; }
    .book-hero-info { width: 100%; }
    .book-hero-actions > a { white-space: normal; }
}
/* Keep campaign occupancy readable on the light hero. */
.campaign-hero-quota-label { color: var(--ink); font-size: .95rem; font-weight: 600; }
.campaign-hero-quota .quota-bar { background: #d0bfff; height: 8px; }
.campaign-hero-quota .quota-bar-fill { background: var(--violet); }
.campaign-hero-leave button { color: var(--violet-dark); }
.campaign-hero-leave button:hover { color: var(--ink); }

/* Bio y redes del lector (perfil, panel admin) */
.profile-header { flex-wrap: wrap; }
.user-social { flex-basis: 100%; padding-top: 1rem; margin-top: .25rem; border-top: 1px solid var(--line); }
.user-social-bio { margin: 0 0 .75rem; color: var(--ink); font-size: .92rem; line-height: 1.7; overflow-wrap: anywhere; }
.user-social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.user-social-links a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border: 1px solid #d0bfff; border-radius: 999px; color: var(--violet-dark); font-size: .8rem; font-weight: 500; text-decoration: none; }
.user-social-links a:hover { background: var(--violet-tint); }
.user-social-links svg { width: 1rem; height: 1rem; }
.user-social-empty { flex-basis: 100%; margin: .25rem 0 0; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.user-social-empty a { color: var(--violet-dark); }
.review-social a { margin-right: .6rem; }

/* Formulario de perfil */
.profile-edit-intro { color: var(--muted); margin-top: -.25rem; }
.input-prefix { display: flex; align-items: stretch; }
.input-prefix > span { display: flex; align-items: center; padding: 0 .8rem; border: 1px solid #ddd5f0; border-right: 0; border-radius: 10px 0 0 10px; background: var(--violet-tint); color: var(--violet-dark); font-weight: 600; }
.form .input-prefix input { border-radius: 0 10px 10px 0; }
.profile-bonus { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border: 1px dashed #bba6ff; border-radius: 12px; background: #faf8ff; font-size: .85rem; color: var(--ink); }
.profile-bonus .badge { flex-shrink: 0; }

/* Seguimiento de lectores en el detalle de la campaña. */
.cc-readers { margin: 2rem 0; padding: clamp(1rem, 3vw, 2rem); border: 1px solid #e6def5; border-radius: 24px; background: #fff; box-shadow: 0 8px 32px #38216506; }
.cc-readers-heading { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.cc-readers-heading h2 { display: flex; align-items: center; gap: .65rem; margin: .35rem 0; color: var(--ink); font-size: 1.35rem; }
.cc-readers-heading p { margin: .4rem 0 0; color: var(--muted); font-size: .88rem; }
.cc-readers-heading .btn-secondary { flex-shrink: 0; font-size: .85rem; gap: .65rem; }
.cc-readers-count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.8rem; height: 1.8rem; padding: 0 .4rem; border-radius: 9px; background: #f0eaff; color: var(--violet); font-size: .9rem; }
.cc-readers-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1.5rem; }
.cc-readers-stats > div { display: flex; flex-direction: column; gap: .45rem; padding: 1rem 1.2rem; border: 1px solid #eee8f8; border-radius: 14px; background: #faf8ff; }
.cc-readers-stats span { color: #6a607c; font-size: .78rem; font-weight: 500; }
.cc-readers-stats strong { color: var(--violet); font-size: 1.65rem; line-height: 1.2; }
.cc-readers .cc-readers-list { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; }
.cc-readers .cc-readers-list > li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: 0; padding: 1rem .25rem; border: 0; border-bottom: 1px solid #f0ecf6; border-radius: 0; box-shadow: none; background: transparent; }
.cc-readers .cc-readers-list > li:last-child { border-bottom: 0; padding-bottom: .25rem; }
.cc-reader-identity { display: flex; align-items: center; gap: .8rem; min-width: 0; color: var(--ink); text-decoration: none; }
.cc-reader-avatar { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 42px; width: 42px; height: 42px; border-radius: 14px; object-fit: cover; background: #eee7ff; color: var(--violet); font-weight: 700; }
.cc-reader-identity strong { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.cc-reader-identity small { display: block; margin-top: .2rem; font-size: .73rem; color: var(--muted); }
.cc-reader-identity:hover strong { color: var(--violet); }
.cc-reader-identity:focus-visible { outline: 2px solid var(--violet); outline-offset: 5px; border-radius: 8px; }
.cc-readers .enrollment-body { flex: 0 1 auto; min-width: 0; }
.cc-readers .enrollment-meta { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .4rem; margin: 0; }
.cc-readers .badge { white-space: normal; }
@media (max-width: 640px) {
    .cc-readers-heading { align-items: flex-start; flex-direction: column; gap: 1rem; }
    .cc-readers-heading .btn-secondary { width: 100%; justify-content: center; }
    .cc-readers-stats { gap: .4rem; }
    .cc-readers-stats > div { padding: .8rem .6rem; }
    .cc-readers-stats span { font-size: .7rem; }
    .cc-readers-stats strong { font-size: 1.4rem; }
    .cc-readers .cc-readers-list > li { align-items: flex-start; flex-direction: column; gap: .7rem; padding: 1rem 0; }
    .cc-readers .enrollment-body { padding-left: calc(42px + .8rem); }
    .cc-readers .enrollment-meta { justify-content: flex-start; }
}

/* Perfil de colaborante */
.cc-sub .cc-collaborator-link { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.collaborator-public-name { margin: 0; font-size: 1.35rem; }
.collaborator-public-books { margin-top: 1.5rem; }
.collaborator-public-books h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.collaborator-public-books ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.collaborator-public-books a { display: flex; align-items: center; gap: .8rem; padding: .6rem; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); text-decoration: none; }
.collaborator-public-books a:hover { background: var(--violet-tint); }
.collaborator-public-books img { width: 44px; height: 64px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.collaborator-public-books span { display: flex; flex-direction: column; min-width: 0; }
.collaborator-public-books small { color: var(--muted); }
.cb-profile-limit { margin: 0 0 1rem; padding: .8rem 1rem; border: 1px solid #e6dcef; border-radius: 12px; background: #fbf8f4; font-size: .9rem; }
.admin-limit-form { display: flex; flex-wrap: wrap; gap: .5rem .75rem; align-items: flex-end; }
.admin-limit-form label { display: flex; flex-direction: column; gap: .2rem; margin: 0; font-size: .75rem; color: var(--muted); }
.admin-limit-form input { width: 7.5rem; min-height: 2.4rem; padding: .35rem .6rem; border: 1px solid var(--line); border-radius: 8px; }
.admin-limit-form .btn-secondary { padding: .4rem .9rem; }
