/* SPEC-058 «Desarrollar al autor» in the author's studio: the editorial note in the book's space
   (js/espacio.js), «Mi plan» (js/author-plan.js) and «Mis lectores» (js/author-readers.js).
   Mobile first: one column, 44 px touch targets, no sideways scroll at 390 px. Site tokens only
   (style.css); buttons reuse the studio's .btn-* (css/estudio.css). No emoji: icons come from
   the studio's sprite. */

/* ── Nota de tu editor (RF1) ─────────────────────────────────────────────── */
.editor-note { margin: 0 0 1.25rem; padding: 1rem 1.1rem; border: 1px solid color-mix(in srgb, var(--gold) 45%, var(--line)); border-radius: .7rem; background: var(--surface); overflow-wrap: anywhere; }
.editor-note-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; }
.editor-note-head h2 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.15rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--ink); }
.editor-note-download { min-height: 44px; }
.editor-note-meta { margin: .1rem 0 .6rem; color: var(--muted); font-size: .85rem; }
.editor-note-body { max-width: 42rem; line-height: 1.55; }
.editor-note-heading { margin: 1rem 0 .35rem; font-size: 1rem; font-weight: 600; }
.editor-note-body > :first-child { margin-top: 0; }
.editor-note-text { margin: 0 0 .6rem; }
.editor-note-list { margin: 0 0 .6rem; padding-left: 1.25rem; }
.editor-note-list li { margin: .2rem 0; }
.editor-note-status { margin: 0; color: var(--muted); font-size: .9rem; }

/* ── Mi plan: «Lo que te proponemos» (RF2) ───────────────────────────────── */
.author-plan { max-width: 46rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-wrap: anywhere; }
.plan-title { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.plan-lede, .plan-date, .plan-status, .plan-count { margin: 0; color: var(--muted); font-size: .92rem; }
.plan-empty { padding: 1.1rem; border: 1px dashed var(--line-2); border-radius: .7rem; }
.plan-empty-text { margin: 0 0 .4rem; font-weight: 500; }
.plan-subtitle { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.plan-goal-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: .3rem; }
.plan-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; counter-reset: plan; }
.plan-step { counter-increment: plan; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.plan-step[data-status="accepted"] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.plan-step[data-status="ignored"] { opacity: .78; }
.plan-step-title { margin: 0 0 .25rem; font-family: Fraunces, Georgia, serif; font-size: 1.08rem; font-weight: 500; }
.plan-step-title::before { content: counter(plan) ". "; color: var(--gold); }
.plan-step-meta { margin: 0 0 .35rem; color: var(--muted); font-size: .85rem; }
.plan-step-why { margin: 0 0 .5rem; line-height: 1.5; }
.plan-step-answer { margin: 0 0 .5rem; font-size: .88rem; color: var(--muted); }
.plan-step[data-status="accepted"] .plan-step-answer { color: var(--ink); }
.plan-step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; }
.plan-step-actions button { min-height: 44px; }
.plan-step-actions button[aria-pressed="true"] { outline: 2px solid var(--gold); outline-offset: 1px; }
.plan-step-message { margin: .35rem 0 0; min-height: 1.2em; font-size: .88rem; color: var(--muted); }
.plan-step-message:empty { display: none; }
.plan-step-message[data-kind="error"], .plan-error { color: #c0392b; }
:root[data-theme="dark"] .plan-step-message[data-kind="error"], :root[data-theme="dark"] .plan-error { color: #f0a0a0; }
.plan-change-form, .plan-another { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.plan-field { display: flex; flex-direction: column; gap: .35rem; font-size: .92rem; }
.plan-input { font: inherit; color: inherit; background: transparent; width: 100%; box-sizing: border-box; min-height: 44px;
              padding: .55rem .75rem; border: 1px solid var(--line-2); border-radius: .5rem; resize: vertical; }
.plan-input:focus-visible, .author-plan button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.plan-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .35rem 1rem; margin: 0; }
.plan-details dt { color: var(--muted); font-size: .85rem; }
.plan-details dd { margin: 0; }
.plan-another { border-top: 1px solid var(--line); padding-top: 1.1rem; margin-top: .25rem; }
.plan-another .btn-tenue, .plan-another .btn-secundario, .plan-retry { align-self: flex-start; min-height: 44px; }
.plan-another-done { margin: 0; }
@media (max-width: 480px) { .plan-details { grid-template-columns: 1fr; } .plan-details dd { margin-bottom: .4rem; } }

/* ── Mis lectores (RF3) ───────────────────────────────────────────────────── */
.author-readers { max-width: 56rem; display: flex; flex-direction: column; gap: 1.25rem; overflow-wrap: anywhere; }
.readers-title { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 1.6rem; font-weight: 500; }
.readers-lede, .readers-none, .readers-status, .readers-updated { margin: 0; color: var(--muted); font-size: .92rem; }
.readers-updated { margin-top: .5rem; font-size: .8rem; }
.readers-pending { margin: 0; padding: .6rem .8rem; border-left: 2px solid var(--gold); color: var(--ink); font-size: .9rem; }
.readers-hint { margin: .35rem 0 0; color: var(--muted); font-size: .8rem; }
.readers-month-title { margin: 0 0 .6rem; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.readers-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-items: start; }
.estudio .readers-source, .readers-source { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: .7rem; background: var(--surface); }
.readers-source-title { margin: 0 0 .5rem; font-family: Fraunces, Georgia, serif; font-size: 1.05rem; font-weight: 500; }
.readers-metrics { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem .75rem; margin: 0; }
.readers-metrics dt { color: var(--muted); font-size: .88rem; }
.readers-metrics dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.readers-metrics dd.readers-quiet, .readers-empty { color: var(--muted); font-weight: 400; font-size: .85rem; }
.readers-empty { margin: 0; }
.readers-retry { align-self: flex-start; min-height: 44px; }
@media (max-width: 760px) { .readers-grid { grid-template-columns: 1fr; } }
