/* Plan section 4, page 3: the one paper (static/54_paper.js), drawn to D9: the document at full size, Alfred underneath.
   Used by Estudio de redacción and by the Matter's Redacción step 2; tokens only. */
.pp { display: flex; flex-direction: column; gap: 16px; padding-bottom: 24px; }
.pp-head { position: sticky; top: 0; z-index: var(--al-z-sticky); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 12px 0; background: color-mix(in srgb, var(--al-page) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.pp-title h2 { margin: 0; font-size: var(--al-fs-card); font-weight: 600; line-height: 1.25; }
.pp-title p { margin: 2px 0 0; font-size: var(--al-fs-label); color: var(--al-text-2); line-height: 1.4; }
.pp-gaps { color: var(--al-attention); }
.pp-link { background: none; border: 0; padding: 0; font: inherit; color: var(--al-action); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pp-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: flex-end; }
.pp-menuhost { position: relative; display: inline-flex; }
.pp-note { display: flex; align-items: flex-start; gap: 12px; width: min(var(--al-paper-w), 100%); margin: 0 auto; }
.pp-note p { margin: 4px 0 0; font-size: var(--al-fs-ui); line-height: 1.5; color: var(--al-text); }
.pp-a { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--al-brass); font-family: var(--al-font-identity); font-size: 18px; font-weight: 600; color: var(--al-brass); }
.pp-tools { display: flex; align-items: center; gap: 4px; width: min(var(--al-paper-w), 100%); margin: 0 auto; }
.pp-tool { min-width: 32px; height: 32px; padding: 0 8px; border: 0; border-radius: var(--al-r-control); background: transparent; color: var(--al-text); font: inherit; cursor: pointer; }
.pp-tool:hover { background: var(--al-inset); }
.pp-sep { width: 1px; height: 18px; margin: 0 8px; background: var(--al-line); }
.pp-sheetwrap { display: flex; flex-direction: column; align-items: center; }
.pp-sheet { width: min(var(--al-paper-w), 100%); background: var(--al-paper); box-shadow: var(--al-shadow-paper); }
.pp-doc { min-height: 420px; padding: 40px 56px; font-size: 15px; line-height: 1.6; color: var(--al-text); outline: none; }
.pp-doc h2, .pp-doc h3, .pp-doc h4 { margin: 20px 0 8px; font-size: 17px; font-weight: 600; line-height: 1.3; }
.pp-doc p { margin: 0 0 12px; }
.pp-doc ul { margin: 0 0 12px 22px; padding: 0; }
.pp-doc hr { border: 0; border-top: 1px solid var(--al-line); margin: 16px 0; }
.pp-doc .dws-hueco { margin: 14px 0; padding: 10px 14px; border-radius: var(--al-r-control); background: var(--al-attention-wash); }
.pp-doc .dws-hueco-lbl { display: none; }
.pp-doc .dws-hueco-txt { font-size: var(--al-fs-ui); line-height: 1.5; color: var(--al-attention); }
.pp-chg { background: color-mix(in srgb, var(--al-brass) 28%, transparent); border-radius: 3px; }
.pp-frame { display: block; width: 100%; min-height: 420px; border: 0; background: var(--al-paper); }
.pp-wait { margin: 0; padding: 24px 56px; font-size: var(--al-fs-label); color: var(--al-text-2); }
.pp-wait.is-bad { color: var(--al-critical); }
.pp-ask { position: sticky; bottom: 16px; z-index: var(--al-z-sticky); display: flex; align-items: flex-end; gap: 8px; width: min(var(--al-paper-w), 100%); margin: 0 auto; padding: 12px; background: var(--al-card); border-radius: var(--al-r-card); box-shadow: var(--al-shadow-menu); }
.pp-ask textarea { flex: 1; min-height: 44px; max-height: 200px; resize: none; padding: 10px 12px; border: 0; border-radius: var(--al-r-control); box-shadow: inset 0 0 0 1px var(--al-line-strong); background: var(--al-card); color: var(--al-text); font: inherit; line-height: 1.45; }
.pp-ask #pp-ask-mic { display: inline-flex; align-items: center; gap: 6px; }
.pp-touched { width: min(var(--al-paper-w), 100%); margin: 0 auto; font-size: var(--al-fs-label); color: var(--al-text-2); }
.pp-layer { width: min(var(--al-paper-w), 100%); margin: 16px auto 0; }

/* the Matter's step 2 is one column (the old layout kept a 352 px column for the sources card, which is now a layer under the title row) */
#view-matter .dr-step2:not([hidden]) { display: block; height: auto; }
#view-matter .dr-step2 { min-height: 0; }
/* the Studio with a draft: the paper takes the width; the options and findings sit under it */
#view-studio-libre .sl-grid.is-draft { grid-template-columns: minmax(0, 1fr); }
#view-studio-libre .sl-grid.is-draft .sl-side { order: 2; }
#view-studio-libre .sl-reply { padding-bottom: 0; }
.pp-state { font-weight: 500; }
.pp-sheet-wait { aspect-ratio: 1 / 1.414; padding: 56px 48px; display: flex; flex-direction: column; gap: 14px; }
.pp-sheet-wait span { display: block; height: 8px; border-radius: var(--al-r-chip); background: var(--al-divider); }
.pp-sheet-wait span:nth-child(1) { width: 55%; height: 14px; margin: 0 auto 20px; }
.pp-sheet-wait span:nth-child(2) { width: 90%; }
.pp-sheet-wait span:nth-child(3) { width: 82%; }
.pp-sheet-wait span:nth-child(4) { width: 88%; }
.pp-sheet-wait span:nth-child(5) { width: 70%; }
@keyframes ppBreathe { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
.pp-breathe { animation: ppBreathe 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pp-breathe { animation: none; } }
.pp.is-fixed { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; padding-bottom: 0; }
.pp.is-fixed .pp-head { top: 0; }
