:is(#red-writing-workspace,body) .red-show-draft-editor{box-sizing:border-box;position:fixed;inset:auto;top:calc(var(--show-draft-top,0px) + 14px);left:50%;transform:translateX(-50%);width:min(1240px,calc(100vw - 28px));max-width:calc(100vw - 28px);height:calc(var(--show-draft-height,100dvh) - 28px);max-height:calc(var(--show-draft-height,100dvh) - 28px);margin:0;padding:0;overflow:hidden;display:grid;grid-template-rows:auto auto auto minmax(0,1fr) auto auto;border:1px solid var(--red-line,#ded7ce);border-radius:23px;background:var(--red-panel,#f4f0e9);color:var(--red-ink,#302c29);box-shadow:0 30px 110px #17121f50;font:15px/1.55 RedDeskSans,system-ui,sans-serif}
:is(#red-writing-workspace,body) .red-show-draft-editor:not([open]){display:none}:is(#red-writing-workspace,body) .red-show-draft-editor::backdrop{background:#17121f75;backdrop-filter:blur(5px)}
:is(#red-writing-workspace,body) .red-show-draft-editor *{box-sizing:border-box}:is(#red-writing-workspace,body) .red-show-draft-editor [hidden]{display:none!important}
:is(#red-writing-workspace,body) .red-show-draft-editor button{min-height:44px;min-width:44px;padding:10px 17px;border:1px solid var(--red-line,#ded7ce);border-radius:12px;background:var(--red-paper,#fffdf8);color:inherit;font:600 14px/1.4 RedDeskSans,system-ui,sans-serif;cursor:pointer;touch-action:manipulation}:is(#red-writing-workspace,body) .red-show-draft-editor button:disabled{opacity:.45;cursor:default}:is(#red-writing-workspace,body) .red-show-draft-editor button:focus-visible,:is(#red-writing-workspace,body) .red-show-draft-editor textarea:focus-visible{outline:3px solid var(--red-accent,#a83c49);outline-offset:3px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-head{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 25px 8px}:is(#red-writing-workspace,body) .red-show-draft-editor h1{margin:3px 0 0;font:600 clamp(21px,2.5vw,28px)/1.2 RedDeskSans,system-ui,sans-serif;letter-spacing:-.035em}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-eyebrow{color:var(--red-accent,#a83c49);font-size:10px;font-weight:750;letter-spacing:.13em}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-close{background:transparent;border-color:transparent;color:var(--red-muted,#6c655f)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-status{min-height:24px;margin:0;padding:3px 25px 14px;color:var(--red-muted,#6c655f);font-size:13px;line-height:1.5}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-status.is-error{color:var(--red-accent,#a83c49);font-weight:600}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(270px,30%);border-top:1px solid var(--red-line,#ded7ce);border-bottom:1px solid var(--red-line,#ded7ce)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page{min-width:0;min-height:0;padding:32px clamp(24px,5vw,72px) 64px;overflow:auto;overscroll-behavior:contain;background:var(--red-paper,#fffdf8);scroll-padding:24px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page-head{margin:0 0 32px;padding-bottom:20px;border-bottom:1px solid var(--red-line,#ded7ce)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page h2{margin:0 0 7px;font:600 clamp(25px,3vw,35px)/1.2 var(--red-doc-font,Georgia,serif);overflow-wrap:anywhere}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-version{color:var(--red-muted,#6c655f);font-size:12px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-writing{display:grid;align-content:start;gap:12px}:is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-words,.show-draft-highlight){display:block;resize:none;width:100%;min-width:0;min-height:92px;padding:8px 3px;border:1px solid transparent;border-radius:5px;background:transparent;color:inherit;font:400 var(--desk-font-size,19px)/var(--desk-line-height,1.8) var(--desk-font,var(--red-doc-font,Georgia,serif));overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;caret-color:var(--red-accent,#a83c49);transition:border-color .15s}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-words:hover{border-color:var(--red-line,#ded7ce)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-words:focus{border-color:var(--red-line,#ded7ce);outline:2px solid color-mix(in srgb,var(--red-accent,#a83c49) 20%,transparent);outline-offset:5px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-words.is-drop-target{border-color:var(--red-accent,#a83c49);background:color-mix(in srgb,var(--red-accent,#a83c49) 5%,transparent)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source{min-width:0;min-height:0;padding:25px 22px;overflow:auto;overscroll-behavior:contain;border-left:1px solid var(--red-line,#ded7ce)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source h2{margin:4px 0 16px;font-size:18px;font-weight:600}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-show{margin:-5px 0 17px;color:var(--red-muted,#6c655f);font-size:12px;overflow-wrap:anywhere}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-passage{display:block;text-align:left;width:100%;padding:18px;border-radius:14px;font:400 17px/1.7 var(--red-doc-font,Georgia,serif);white-space:pre-wrap;overflow-wrap:anywhere;cursor:grab;user-select:text;-webkit-user-select:text}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-passage.is-selected{border-color:var(--red-accent,#a83c49);box-shadow:0 0 0 2px color-mix(in srgb,var(--red-accent,#a83c49) 15%,transparent)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-hint,:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-already{font-size:12px;line-height:1.65;color:var(--red-muted,#6c655f);margin:16px 0}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-insert{width:100%;background:var(--red-paper,#fffdf8)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-footer{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:14px 24px calc(14px + env(safe-area-inset-bottom,0px));background:var(--red-panel,#f4f0e9)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-footer>button:first-child{margin-right:auto}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-save{min-width:104px;background:var(--red-accent,#a83c49);border-color:var(--red-accent,#a83c49);color:#fff}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-discard{display:flex;align-items:center;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:14px 24px;border-bottom:1px solid var(--red-line,#ded7ce);background:var(--red-paper,#fffdf8)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-discard p{margin:0 auto 0 0;font-size:13px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-discard-confirm{color:var(--red-accent,#a83c49)}
@media(min-width:700px) and (max-width:1000px){:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{grid-template-columns:minmax(0,1fr) 265px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page{padding:26px 28px 48px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source{padding:23px 18px}}
@media(max-width:699px){:is(#red-writing-workspace,body) .red-show-draft-editor{top:var(--show-draft-top,0px);width:100vw;max-width:100vw;height:var(--show-draft-height,100dvh);max-height:var(--show-draft-height,100dvh);border-radius:0}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-head{padding:15px 17px 8px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-status{padding:3px 17px 10px;font-size:12px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{grid-template-columns:minmax(0,1fr) minmax(150px,36%)}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page{padding:22px 15px 36px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page h2{font-size:25px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page-head{margin-bottom:17px}:is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-words,.show-draft-highlight){font-size:17px;line-height:1.75}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source{padding:20px 12px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source h2{font-size:15px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-passage{padding:12px 10px;font-size:15px;line-height:1.6}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-hint{font-size:11px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-footer{padding:12px 15px calc(12px + env(safe-area-inset-bottom,0px));gap:8px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-discard{padding:12px 15px}:is(#red-writing-workspace,body) .red-show-draft-editor button{padding:10px 12px;font-size:13px}}
@media(prefers-reduced-motion:reduce){:is(#red-writing-workspace,body) .red-show-draft-editor *{transition:none!important}}

/* Paragraphs stay readable while their move controls stay close at hand. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block{position:relative;min-width:0;padding:0 10px 10px;border:1px solid var(--red-line,#ded7ce);border-radius:13px;background:var(--red-paper,#fffdf8);transition:border-color .15s ease,box-shadow .15s ease,opacity .15s ease}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{display:flex;align-items:center;gap:2px;min-height:44px;margin:0 -4px;color:var(--red-muted,#6c655f)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-number{min-width:0;flex:1;font-size:11px;line-height:1.35;letter-spacing:.025em}
:is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-block-grip,.show-draft-block-move){display:grid;place-items:center;flex:none;width:44px;height:44px;min-width:44px;min-height:44px;padding:0;border-color:transparent;border-radius:9px;background:transparent;color:var(--red-muted,#6c655f);font-size:17px;font-weight:500;line-height:1}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-grip{cursor:grab;font-size:20px;touch-action:pan-y}
:is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-block-grip,.show-draft-block-move):hover:not(:disabled){background:var(--red-panel,#f4f0e9);color:var(--red-ink,#302c29)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-protected{display:inline-block;margin:0 0 4px;color:var(--red-muted,#6c655f);font-size:11px;line-height:1.4}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block.is-dragging{opacity:.42}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block.is-drop-before{border-top-color:var(--red-accent,#a83c49);box-shadow:0 -3px 0 -1px var(--red-accent,#a83c49)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block.is-drop-after{border-bottom-color:var(--red-accent,#a83c49);box-shadow:0 3px 0 -1px var(--red-accent,#a83c49)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-new{justify-self:start;min-height:44px;padding:9px 11px;border-color:transparent;background:transparent;color:var(--red-accent,#a83c49);font-size:13px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-new:hover{background:var(--red-panel,#f4f0e9)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-paragraph-hint{margin:13px 0 0;color:var(--red-muted,#6c655f);font-size:12px;line-height:1.55}
/* The acknowledgement remains visible only after the server confirms the save. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-confirmation{display:grid;grid-template-columns:32px minmax(0,1fr);align-items:center;gap:11px;margin:0 24px 14px;padding:12px 15px;border:1px solid color-mix(in srgb,#28735e 32%,var(--red-line,#ded7ce));border-radius:14px;background:color-mix(in srgb,#28735e 8%,var(--red-paper,#fffdf8));color:var(--red-ink,#302c29)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-icon{display:grid;place-items:center;width:32px;height:32px;border-radius:50%;background:color-mix(in srgb,#28735e 12%,var(--red-paper,#fffdf8));color:var(--red-ink,#302c29);font-size:21px;font-weight:650}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-confirmation strong{display:block;font-size:15px;line-height:1.4}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-confirmation p{margin:2px 0 0;color:var(--red-muted,#6c655f);font-size:12px;line-height:1.5}
@media(max-width:699px){:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block{padding:0 7px 7px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{gap:0;margin:0 -6px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-number{font-size:10px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-confirmation{margin:0 17px 10px;padding:10px 11px;gap:9px}}
@media(max-width:699px){:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{display:grid;grid-template-columns:44px minmax(0,1fr) 44px 44px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools .show-draft-block-new{grid-column:1/-1;justify-self:start;width:auto;margin:0 0 2px;padding:8px 10px;font-size:12px}}
@media(max-width:399px){:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page{padding-left:10px;padding-right:10px}}
/* Hidden acknowledgement/discard rows must not move the scrollable page row. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-head{grid-row:1}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-status{grid-row:2}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-saved-confirmation{grid-row:3}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{grid-row:4}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-discard{grid-row:5}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-footer{grid-row:6}
@media(max-width:399px){
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{grid-template-columns:repeat(3,44px)}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-number{grid-column:1/-1;grid-row:1;padding:6px 8px 0;font-size:11px}
 :is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-block-grip,.show-draft-block-move){grid-row:2}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools .show-draft-block-new{grid-row:3}
}

/* Placement uses the space between paragraphs, without opening the keyboard. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{grid-template-columns:minmax(0,1fr) minmax(300px,35%)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source{display:grid;grid-template-rows:auto minmax(0,1fr);padding:0;overflow:hidden}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-head{padding:18px 20px 13px;border-bottom:1px solid var(--red-line,#ded7ce);background:var(--red-panel,#f4f0e9)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-head h2{margin:2px 0 5px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-show{margin:0 0 12px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-actions{display:flex;gap:8px;align-items:center}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-actions>button{flex:1;white-space:nowrap;padding:9px 12px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-drag{cursor:grab;touch-action:none;user-select:none;-webkit-user-select:none}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-hint{margin:10px 0 0;font-size:11px;line-height:1.5}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:15px 18px 22px;-webkit-overflow-scrolling:touch}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-scroll .show-draft-passage{font-size:17px;line-height:1.65;padding:17px;touch-action:pan-y}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-writing{gap:0}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-gap{position:relative;width:100%;min-height:14px;height:14px;margin:0;padding:0;border:0;border-radius:10px;background:transparent;color:transparent;font-size:12px;line-height:1.2;opacity:1;transition:height .16s ease,background .16s ease,color .16s ease}
:is(#red-writing-workspace,body) .red-show-draft-editor.is-placing .show-draft-gap{height:44px;min-height:44px;color:var(--red-accent,#a83c49);background:color-mix(in srgb,var(--red-accent,#a83c49) 5%,transparent);margin:5px 0}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-gap.is-drop-target{height:44px;min-height:44px;color:var(--red-accent,#a83c49);background:color-mix(in srgb,var(--red-accent,#a83c49) 14%,var(--red-paper,#fffdf8));box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--red-accent,#a83c49) 45%,transparent)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-drag-preview{position:fixed;left:0;top:0;z-index:10;pointer-events:none;max-width:180px;padding:12px 18px;border:1px solid var(--red-accent,#a83c49);border-radius:13px;background:var(--red-paper,#fffdf8);color:var(--red-ink,#302c29);box-shadow:0 8px 26px #17121f35;font:600 14px/1.4 RedDeskSans,system-ui,sans-serif}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-done-typing{margin-right:auto;color:var(--red-accent,#a83c49)}
/* Layout viewport orientation stays fixed while the software keyboard opens. */
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-layout{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(155px,35%) minmax(0,1fr)}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source{grid-column:1;grid-row:1;border-left:0;border-bottom:1px solid var(--red-line,#ded7ce)}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-head{padding:12px 20px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-head h2{font-size:16px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-show{display:none}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-hint{margin-top:7px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-scroll{padding:10px 20px 15px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-page{grid-column:1;grid-row:2;padding:20px 24px 32px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-page-head{margin-bottom:14px;padding-bottom:14px}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"].is-typing .show-draft-layout{grid-template-rows:auto minmax(0,1fr)}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"].is-typing .show-draft-source-scroll,
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"].is-typing .show-draft-source-head :is(.show-draft-eyebrow,h2,.show-draft-source-hint){display:none}
@media(max-width:699px){
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-head{gap:8px}
 :is(#red-writing-workspace,body) .red-show-draft-editor h1{font-size:20px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-close{padding:8px;font-size:12px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-status{font-size:12px;padding-bottom:7px}
 :is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-head{padding:8px 13px}
 :is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-head :is(h2,.show-draft-eyebrow,.show-draft-source-hint){display:none}
 :is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source-scroll{padding:8px 12px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-scroll .show-draft-passage{font-size:16px;line-height:1.6;padding:13px}
 :is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-page{padding:16px 12px 28px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-done-typing{font-size:12px;padding:8px}
}
/* Two connected surfaces: words from the stage and the working draft. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{gap:12px;padding:12px;background:var(--red-panel,#f4f0e9)}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page{border:1px solid var(--red-line,#ded7ce);border-radius:16px;box-shadow:0 2px 8px #17121f06}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source{border:1px solid color-mix(in srgb,var(--red-accent,#a83c49) 25%,var(--red-line,#ded7ce));border-radius:16px;background:color-mix(in srgb,var(--red-accent,#a83c49) 4%,var(--red-paper,#fffdf8));box-shadow:0 2px 8px #17121f06}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-head{background:color-mix(in srgb,var(--red-accent,#a83c49) 7%,var(--red-paper,#fffdf8))}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-page-head>.show-draft-eyebrow{display:block;margin-bottom:9px}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-notice{position:absolute;z-index:15;bottom:calc(88px + env(safe-area-inset-bottom,0px));left:50%;transform:translateX(-50%);display:flex;flex-wrap:wrap;gap:10px;width:min(480px,calc(100% - 32px));padding:18px;border:1px solid color-mix(in srgb,var(--red-accent,#a83c49) 25%,var(--red-line,#ded7ce));border-radius:18px;background:var(--red-paper,#fffdf8);color:var(--red-ink,#302c29);box-shadow:0 14px 55px #17121f30}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-notice>div{flex-basis:100%}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-notice strong{font-size:16px;line-height:1.4}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-notice p{margin:5px 0 3px;color:var(--red-muted,#6c655f);font-size:14px;line-height:1.55}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-notice>button:last-child{margin-left:auto}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block.is-source-found{border-color:var(--red-accent,#a83c49);box-shadow:0 0 0 3px color-mix(in srgb,var(--red-accent,#a83c49) 14%,transparent)}
:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"] .show-draft-source{border:1px solid color-mix(in srgb,var(--red-accent,#a83c49) 25%,var(--red-line,#ded7ce))}
@media(max-width:699px){:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-layout{gap:8px;padding:8px}:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-source-head h2{display:block;font-size:14px}:is(#red-writing-workspace,body) .red-show-draft-editor[data-layout="portrait"].is-typing .show-draft-source-head h2{display:none}}

/* Search marks sit behind the editable words, so finding text never opens the keyboard. */
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-word-surface{position:relative;min-width:0}
:is(#red-writing-workspace,body) .red-show-draft-editor textarea.show-draft-words{position:relative;z-index:1}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-highlight{position:absolute;inset:0;z-index:0;height:100%;margin:0;pointer-events:none;user-select:none;color:transparent}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-found-words{padding:0;border:0;border-radius:3px;background:color-mix(in srgb,#edba38 42%,transparent);color:transparent;box-shadow:0 1px 0 color-mix(in srgb,#d29a19 55%,transparent);font:inherit}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-delete{min-width:64px;min-height:44px;margin-left:8px;padding:9px 10px;border-color:transparent;border-left:1px solid var(--red-line,#ded7ce);border-radius:0 9px 9px 0;background:transparent;color:var(--red-accent,#a83c49);font-size:12px;font-weight:600}
:is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-delete:hover:not(:disabled){background:color-mix(in srgb,var(--red-accent,#a83c49) 8%,transparent)}
@media(max-width:699px){
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{grid-template-columns:44px minmax(0,1fr) 44px 44px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools .show-draft-block-new{grid-column:1/3;grid-row:2}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-delete{grid-column:3/5;grid-row:2;justify-self:end}
}
@media(max-width:399px){
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools{grid-template-columns:44px minmax(0,1fr) 44px 44px}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-number{grid-column:1/-1;grid-row:1}
 :is(#red-writing-workspace,body) .red-show-draft-editor :is(.show-draft-block-grip,.show-draft-block-move){grid-row:2}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-tools .show-draft-block-new{grid-row:3}
 :is(#red-writing-workspace,body) .red-show-draft-editor .show-draft-block-delete{grid-row:3}
}
