/* The library manages documents; the editor provides a dedicated writing workspace. */
.library-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:30px}
.library-heading h2{font-size:32px;letter-spacing:-1px;margin:8px 0 12px}
.library-heading p{color:#9fb3cf;font-size:15px;line-height:1.7;max-width:680px}
.library-heading>a{white-space:nowrap;text-decoration:none}
.library-controls{display:flex;align-items:flex-end;gap:16px;margin-bottom:18px}
.library-controls label{font-size:13px;display:block;color:#b0c4df}
.library-controls label:first-child{flex:1}.library-controls input,.library-controls select{display:block;width:100%;height:44px;min-height:44px;margin-top:7px;padding:10px 12px;border:1px solid #34445e;background:#0d1727;color:#e2edff;border-radius:9px;font-size:14px}
.library-controls>button{height:44px;margin:0}
#library-status{font-size:13px;color:#9fb3cf;margin:18px 0}
.library-results{display:flex;flex-direction:column;gap:12px}
.library-analysis{display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:18px;padding:24px;border:1px solid #293951;border-radius:16px;background:#101a2b}
.library-analysis-icon{display:grid;place-items:center;width:44px;height:48px;color:#81b2ff;background:#192e4e;border-radius:10px;font-size:30px}
.library-analysis-info h3{margin:0 0 8px;font-size:19px;font-weight:600;line-height:1.5}
.library-analysis-info a{color:#e0ebfc;text-decoration:none}.library-analysis-info a:hover{text-decoration:underline;text-underline-offset:4px}
.library-analysis-info p{margin:0;color:#9fb3cf;font-size:13px;line-height:1.7}
.library-analysis-actions{display:flex;gap:14px;align-items:center}.library-analysis-actions>a{white-space:nowrap;text-decoration:none;font-size:14px}
.library-menu,.editor-more{position:relative}.library-menu>summary,.editor-more>summary{cursor:pointer;font-size:13px;color:#a6bfdf;padding:10px;list-style:none}.library-menu>summary::-webkit-details-marker,.editor-more>summary::-webkit-details-marker{display:none}
.library-menu>div,.editor-more>div{position:absolute;right:0;top:100%;min-width:185px;background:#17263d;border:1px solid #3a5274;border-radius:12px;padding:8px;z-index:20;box-shadow:0 8px 28px #0005}
.library-menu button,.editor-more button{display:block;text-align:left;width:100%;margin:0;padding:12px;font-size:14px}
.library-rename{grid-column:2/-1;display:flex;gap:12px;align-items:center}.library-rename input{min-width:0;flex:1;min-height:42px;border:1px solid #3a5274;border-radius:8px;padding:10px;font-size:15px;background:#0d1727;color:#e1ecff}
.library-empty{border:1px dashed #3c5679;border-radius:18px;text-align:center;padding:70px 24px;color:#adc1dd}.library-empty h3{font-size:24px;color:#dfeaff}.library-empty p{margin:16px 0 28px;font-size:15px;line-height:1.7}.library-empty a{display:inline-flex;text-decoration:none}
.editor-back{display:inline-block;color:#91b9ed;margin:0 0 22px;text-decoration:none;font-size:14px}
.alchemy-editor-page .wallet-header{padding-top:24px;padding-bottom:24px}
.alchemy-editor-page .wallet-header h1{font-size:32px}
.alchemy-editor-page .wallet-content{padding-top:30px}
.alchemy-editor-page .notebook-manager{padding:22px;margin-bottom:24px;box-shadow:none}
.alchemy-editor-page .notebook-title-row{display:grid;grid-template-columns:minmax(200px,1fr) auto;gap:24px;align-items:center}
.alchemy-editor-page .notebook-title-row label{font-size:13px;display:block}
.alchemy-editor-page #notebook-title{display:block;width:100%;min-height:44px;margin-top:8px;font-size:20px;font-weight:600;padding:10px 12px}
.alchemy-editor-page #notebook-save-state{font-size:13px;max-width:300px;line-height:1.7;color:#97b6df}
.alchemy-editor-page .notebook-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:16px}
.alchemy-editor-page .notebook-actions>[hidden]{display:none!important}
.alchemy-editor-page .notebook-sync{margin:16px 0 0;font-size:13px}
.alchemy-editor-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.alchemy-editor-tools{position:sticky;top:20px;border:1px solid #2c3c54;border-radius:16px;background:#101b2d;padding:20px;max-height:calc(100vh - 40px);overflow:auto}
.alchemy-editor-tools h2{font-size:18px;margin:0 0 10px}.alchemy-editor-tools>p{color:#9fb5d3;font-size:13px;line-height:1.7;margin:0 0 20px}
.alchemy-editor-tools .alchemy-toolbar{display:block;margin:0;padding:0;border:0;background:none}
.alchemy-editor-tools .alchemy-search{width:100%;min-width:0}.alchemy-editor-tools .alchemy-search label{font-size:13px;line-height:1.6}.alchemy-editor-tools .alchemy-search input{width:100%;min-height:42px;margin-top:8px;font-size:13px;padding:10px}
.alchemy-editor-tools .alchemy-search-results{position:static;max-height:260px;margin-top:10px}.alchemy-editor-tools .alchemy-search-results:empty{display:none}
.alchemy-editor-tools .alchemy-search-results{display:flex;flex-direction:column;gap:4px;min-width:0;max-width:100%;max-height:280px;padding:4px;overflow-x:hidden;overflow-y:auto;box-sizing:border-box;border-radius:10px;scrollbar-width:thin}
.alchemy-editor-tools .alchemy-search-result{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'ticker action' 'name name';align-items:center;gap:4px 10px;min-width:0;min-height:64px;padding:10px;box-sizing:border-box;border:1px solid transparent;line-height:1.4;box-shadow:none;transform:none}
.alchemy-editor-tools .alchemy-search-result strong{grid-area:ticker;min-width:0;color:var(--wa-text);font-family:inherit;font-size:14px;font-weight:650;white-space:nowrap}
.alchemy-editor-tools .alchemy-search-result span{grid-area:name;min-width:0;color:var(--wa-muted);font-size:12px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.alchemy-editor-tools .alchemy-search-result b{grid-area:action;display:inline-flex;align-items:center;justify-content:flex-end;color:var(--wa-accent);font-size:12px;font-weight:600;line-height:20px;white-space:nowrap}
.alchemy-editor-tools .alchemy-search-result:is(:hover,:focus-visible){background:var(--wa-raised);border-color:var(--wa-border);box-shadow:none;transform:none}
.alchemy-editor-tools .alchemy-search-result:focus-visible{outline:2px solid var(--wa-accent);outline-offset:-2px}
html[data-theme=light] .alchemy-editor-tools .alchemy-search-result:is(:hover,:focus-visible){background:#eaf2ff!important}
.alchemy-editor-tools #alchemy-status{font-size:12px;line-height:1.6;margin:12px 0}
.alchemy-editor-tools .alchemy-selected-row{display:flex;flex-direction:column;gap:14px;align-items:stretch;margin:16px 0 20px}
.alchemy-editor-tools .alchemy-selected-assets{gap:7px}.alchemy-editor-tools .alchemy-selected-assets button{font-size:12px}
.alchemy-editor-tools .alchemy-builder{display:block;border:0;border-top:1px solid #2b3b54;border-radius:0;background:transparent;padding:20px 0 0;margin:0}
.alchemy-editor-tools .alchemy-builder h3{font-size:14px;margin:0 0 14px}.alchemy-editor-tools .alchemy-builder-actions{display:flex;flex-direction:column;align-items:stretch;gap:10px;width:100%;max-width:none}
.alchemy-editor-tools .alchemy-builder-actions button{width:100%;text-align:left;justify-content:flex-start;font-size:13px;margin:0;padding:12px;white-space:normal;line-height:1.5}
.editor-guide{margin-top:24px;border-top:1px solid #2b3b54;padding-top:18px;font-size:13px;color:#a8c0e0}.editor-guide summary{cursor:pointer}.editor-guide p{line-height:1.8}
.alchemy-editor-canvas{min-width:0}.alchemy-editor-page .alchemy-document{margin:0;min-height:550px}
.alchemy-editor-page .alchemy-document-heading{flex-direction:column;align-items:flex-start;gap:18px}.alchemy-editor-page .document-view-actions{justify-content:flex-start;flex-wrap:wrap}
.alchemy-editor-page .alchemy-blocks{padding:24px}.alchemy-editor-page .alchemy-document-heading,.alchemy-editor-page .alchemy-document-footer{padding:24px}
.alchemy-editor-page .alchemy-document-title{font-size:24px}
.document-reading .alchemy-editor-layout{display:block}.document-reading .alchemy-editor-tools{display:none}
html[data-theme=light] :is(.library-analysis,.alchemy-editor-tools){background:#fff;border-color:#c9d8eb}
html[data-theme=light] :is(.library-heading p,.library-controls label,#library-status,.library-analysis-info p,.alchemy-editor-tools>p,.editor-guide,.editor-more>summary,.library-menu>summary){color:#526d90}
html[data-theme=light] :is(.library-analysis-info a,.library-empty h3){color:#213f67}
html[data-theme=light] .library-analysis-icon{background:#eaf2ff;color:#3478d5}
html[data-theme=light] :is(.library-menu>div,.editor-more>div){background:#fff;border-color:#c1d2e9;box-shadow:0 8px 28px #31527c25}
html[data-theme=light] :is(.library-rename input,.library-controls input,.library-controls select){background:#f8faff;border-color:#becfe6;color:#213f67}
html[data-theme=light] .editor-back{color:#2867b8}
html[data-theme=light] .library-empty{border-color:#b1c9e8;color:#526d90}
@media(max-width:1200px){.alchemy-editor-layout{grid-template-columns:220px minmax(0,1fr);gap:16px}.alchemy-editor-tools{padding:16px}.alchemy-editor-page .alchemy-blocks{padding:18px}.alchemy-editor-page .alchemy-document .alchemy-blocks>section[data-width=half]{grid-column:span 12}}
@media(max-width:950px){.alchemy-editor-layout{grid-template-columns:1fr}.alchemy-editor-tools{position:static;max-height:none}.alchemy-editor-tools .alchemy-builder-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}.alchemy-editor-page .notebook-title-row{grid-template-columns:1fr;gap:12px}.library-analysis{grid-template-columns:38px minmax(0,1fr)}.library-analysis-actions{grid-column:2}.library-rename{grid-column:1/-1}.library-heading{align-items:flex-start}}
@media(max-width:600px){.library-heading{flex-direction:column;gap:16px}.library-controls{display:grid;grid-template-columns:1fr 1fr}.library-controls label:first-child{grid-column:1/-1}.library-analysis{padding:18px;gap:12px}.library-analysis-info h3{font-size:17px}.library-rename{flex-wrap:wrap}.library-rename input{flex-basis:100%}.alchemy-editor-page .wallet-header h1{font-size:26px}.alchemy-editor-page .notebook-manager{padding:16px}.alchemy-editor-page #notebook-title{font-size:17px}.alchemy-editor-tools .alchemy-builder-actions{grid-template-columns:1fr}.alchemy-editor-page .alchemy-document-heading,.alchemy-editor-page .alchemy-document-footer{padding:18px}}
@media print{.alchemy-editor-tools,.editor-back,.notebook-manager{display:none!important}.alchemy-editor-layout{display:block}}
.alchemy-editor-page .notebook-manager{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px 24px}
.alchemy-editor-page .notebook-title-row{display:flex;flex-direction:column;align-items:stretch;gap:8px;min-width:0}
.alchemy-editor-page .notebook-title-row label{margin:0}
.alchemy-editor-page .notebook-actions{margin:0;align-self:center}
.alchemy-editor-page #notebook-save-state{max-width:none;font-size:12px}
.alchemy-editor-page .notebook-versions{grid-column:1/-1}
.alchemy-editor-page .editor-more>div{width:270px}
.alchemy-editor-page .editor-more .notebook-sync{display:flex;align-items:flex-start;gap:8px;margin:8px;padding:10px 0;border-top:1px solid #334b6b;line-height:1.6;font-size:12px;white-space:normal}
.alchemy-editor-page .editor-more .notebook-sync input{flex:0 0 16px;width:16px;height:16px;min-height:16px;margin:2px 0 0}
.alchemy-editor-page .editor-more #notebook-import-legacy{white-space:normal;font-size:12px}
@media(max-width:1100px){.alchemy-editor-page .notebook-manager{grid-template-columns:1fr}.alchemy-editor-page .notebook-actions{justify-content:flex-start}}
/* Document-first workspace with a writing ribbon and optional research rail. */
.alchemy-editor-page .wallet-content{padding:22px 30px 50px}
.alchemy-editor-page .wallet-header{padding:18px 30px}
.alchemy-editor-page .wallet-header h1{font-size:22px;letter-spacing:-.5px}
.alchemy-editor-page .wallet-header .eyebrow{display:none}
.alchemy-editor-page .editor-back{margin:0 0 16px;font-size:13px}
.alchemy-editor-page .notebook-manager{border:0;border-radius:0;box-shadow:none;background:transparent;padding:0 0 18px;margin:0;gap:14px 20px}
.alchemy-editor-page .notebook-title-row label{font-size:12px;color:#95adcc}
.alchemy-editor-page #notebook-title{margin:6px 0 0;font-size:21px;min-height:42px;background:transparent;border:1px solid transparent;padding:6px 8px;box-shadow:none}
.alchemy-editor-page #notebook-title:hover,.alchemy-editor-page #notebook-title:focus{border-color:#395779;background:#102039}
.alchemy-editor-page .notebook-actions button{min-height:36px;font-size:13px;padding:8px 12px}
.document-ribbon{position:sticky;top:0;z-index:25;display:flex;align-items:center;gap:12px;flex-wrap:wrap;border:1px solid #2d425e;border-radius:12px;padding:9px 12px;background:#132137;box-shadow:0 3px 12px #0002;margin-bottom:10px}
.document-format-controls{display:flex;align-items:center;gap:3px;border-right:1px solid #344863;padding-right:12px}
.document-ribbon button,.document-ribbon select{font-size:13px;min-height:34px;margin:0;padding:6px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#c8daf3;box-shadow:none;width:auto}
.document-ribbon select{background:#0d192b;border-color:#314966;min-width:125px}
.document-format-controls button{font-size:16px;min-width:32px}
.document-ribbon button:hover,.document-insert-menu>summary:hover{background:#233a59;color:#fff}
.document-ribbon label{margin:0}.document-style-label>span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
.document-insert-menu{position:relative}.document-insert-menu>summary{list-style:none;padding:8px 10px;border-radius:6px;color:#c8daf3;font-size:13px;cursor:pointer;white-space:nowrap}.document-insert-menu>summary::-webkit-details-marker{display:none}
.document-insert-menu>.alchemy-builder-actions{position:absolute;left:0;top:calc(100% + 12px);display:flex;flex-direction:column;align-items:stretch;gap:4px;width:260px;max-width:75vw;padding:10px;border:1px solid #405e85;border-radius:12px;background:#132137;box-shadow:0 10px 30px #0005;z-index:40}
.document-insert-menu button{width:100%;text-align:left;justify-content:flex-start;padding:12px;font-size:14px;white-space:normal;background:transparent;color:#c8daf3}
.document-insert-menu .primary-action{border:0;background:transparent;box-shadow:none}
.document-ribbon .document-view-actions{margin-left:auto;gap:6px;align-items:center}
.document-ribbon .document-view-actions .document-save-badge{display:none}
.document-ribbon .document-view-actions button{padding:6px 8px;min-height:34px;font-size:12px;border-color:#344c6c}
.document-ribbon .document-export-status{font-size:12px;margin:0;flex-basis:auto}
.document-writing-hint{font-size:12px;line-height:1.7;color:#90a8c9;margin:10px 4px 20px}
.alchemy-editor-layout{grid-template-columns:minmax(0,1fr) 250px;gap:24px}
.alchemy-editor-layout.fund-panel-hidden{grid-template-columns:1fr}
.alchemy-editor-canvas{grid-column:1;grid-row:1;min-width:0;display:flex;justify-content:center}
.alchemy-editor-tools{grid-column:2;grid-row:1;top:75px;padding:18px;max-height:calc(100vh - 95px);border-radius:12px;background:#0e1929;box-shadow:none}
.alchemy-editor-tools[hidden]{display:none!important}
.alchemy-editor-tools h2{font-size:16px}.alchemy-editor-tools .editor-guide{font-size:12px}
.alchemy-editor-page .alchemy-document{width:min(100%,900px);min-height:1050px;background:#101b2b;box-shadow:0 4px 24px #0002;border-radius:3px;border:1px solid #2a3c55}
.alchemy-editor-page:not(.document-reading) .alchemy-document-heading{display:none}
.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:56px 52px;gap:28px 24px}
.alchemy-editor-page .alchemy-document .alchemy-rich-editor{font-size:16px;line-height:1.9;min-height:100px!important;outline:none}
.alchemy-editor-page .alchemy-document .alchemy-note-block[data-width=full]{min-height:0}
.alchemy-editor-page .alchemy-document .alchemy-note-block .alchemy-format-toolbar{display:none}
.alchemy-editor-page .alchemy-document .alchemy-blocks>section{outline-offset:8px}
.alchemy-editor-page .alchemy-document-footer{background:transparent;border-color:#263b55;font-size:12px;padding:18px;margin-top:auto}
.document-reading .document-format-controls,.document-reading .document-insert-menu,.document-reading #document-funds-toggle,.document-reading .document-writing-hint{display:none}
.document-reading .document-ribbon{max-width:1000px;margin:0 auto 20px;justify-content:flex-end}
.document-reading .alchemy-editor-canvas{display:block}
.document-reading .alchemy-editor-layout{display:block}
html[data-theme=light] .alchemy-editor-page .notebook-manager{background:transparent!important;border:0}
html[data-theme=light] :is(.document-ribbon,.document-insert-menu>.alchemy-builder-actions){background:#eef4fc;border-color:#bfcfe5}
html[data-theme=light] .document-ribbon :is(button,select),html[data-theme=light] .document-insert-menu>summary{color:#294d7b}
html[data-theme=light] .document-ribbon select{background:#fff;border-color:#c8d7eb}
html[data-theme=light] .document-ribbon button:hover{background:#dceaff}
html[data-theme=light] .document-format-controls{border-color:#c3d4e9}
html[data-theme=light] .document-writing-hint{color:#536e92}
html[data-theme=light] .alchemy-editor-tools{background:#f8faff}
html[data-theme=light] .alchemy-editor-page .alchemy-document{background:#fff;box-shadow:0 4px 24px #31527c15}
@media(max-width:1400px){.document-ribbon .document-view-actions{margin-left:0}.alchemy-editor-layout{grid-template-columns:minmax(0,1fr) 220px;gap:18px}.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:40px 32px}}
@media(max-width:1000px){.alchemy-editor-layout{grid-template-columns:1fr}.alchemy-editor-tools{grid-column:1;grid-row:2;position:static;max-height:none}.alchemy-editor-canvas{grid-row:1}.document-ribbon{gap:6px}.alchemy-editor-page .alchemy-document{min-height:850px}.document-format-controls{padding-right:8px}.alchemy-editor-page .wallet-content{padding:18px}.alchemy-editor-page .notebook-manager{padding-bottom:16px}}
@media(max-width:600px){.document-format-controls{flex-wrap:wrap;border-right:0}.document-ribbon{border-radius:8px;padding:8px}.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:28px 20px}.document-ribbon .document-view-actions{width:100%;margin-left:0}.document-writing-hint{font-size:12px}.alchemy-editor-page #notebook-title{font-size:18px}}
@media print{.document-ribbon,.document-writing-hint{display:none!important}.alchemy-editor-page .alchemy-document{min-height:0;box-shadow:none;border:0;width:100%}}
.alchemy-editor-page .alchemy-document{display:flex;flex-direction:column}
.alchemy-editor-page .alchemy-document .alchemy-blocks{width:100%;box-sizing:border-box}
.alchemy-editor-page .alchemy-document-footer{margin-top:auto}
/* A continuous writing surface, with room for text and investment comparisons. */
.alchemy-editor-page .alchemy-editor-canvas{justify-content:center}
.alchemy-editor-page .alchemy-document{width:100%;max-width:1250px;min-height:780px;background:transparent!important;border:0!important;border-radius:0;box-shadow:none!important}
.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:44px 56px;gap:34px 30px}
.alchemy-editor-page .alchemy-document .alchemy-blocks>section{border:0!important;background:transparent!important;box-shadow:none!important;outline:0!important}
.alchemy-editor-page .alchemy-document .alchemy-rich-editor{background:transparent!important;border:0!important;box-shadow:none!important}
.alchemy-editor-page .alchemy-document .analysis-chart{background:transparent!important}
.alchemy-editor-page .alchemy-document-footer{background:transparent!important;border:0!important;padding:26px 20px;margin-top:24px}
html[data-theme=light] .alchemy-editor-page .alchemy-document,html[data-theme=light] .alchemy-editor-page .alchemy-document .alchemy-rich-editor[contenteditable]{background:transparent!important;border:0!important;box-shadow:none!important}
@media(max-width:1200px){.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:34px 30px}}
@media(max-width:600px){.alchemy-editor-page .alchemy-document .alchemy-blocks{padding:28px 8px;gap:30px 20px}}
/* Compact charts keep analysis in the foreground; period controls open on demand. */
.alchemy-editor-page .alchemy-document .analysis-chart-compact{padding:0;margin:0}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;flex-wrap:nowrap;gap:12px;margin:0 0 6px}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading>div:first-child{flex:1;min-width:0;min-height:0}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading h4{font-size:17px;line-height:1.45;margin:0}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading p{font-size:12px;line-height:1.5;margin:3px 0 0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-summary{min-height:0;margin:0 0 8px;font-size:12px;line-height:1.5;color:#93accd}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-values{display:flex;flex-wrap:wrap;gap:6px 16px;margin:0 0 5px}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-value{display:inline-flex;align-items:baseline;flex:0 1 auto;flex-wrap:wrap;gap:6px;padding:0 0 0 8px;margin:0;border:0;border-left:2px solid var(--series-color);background:transparent;min-width:0;border-radius:0}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-value>span{font-size:12px;font-weight:500}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-value>strong{font-size:15px;line-height:1.5;font-weight:600;white-space:nowrap}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-value>small{display:none}
.analysis-chart-compact .analysis-chart-settings{position:relative;flex:0 0 auto}
.analysis-chart-compact .analysis-chart-settings>summary{list-style:none;cursor:pointer;display:flex;align-items:center;gap:10px;font-size:12px;line-height:1.5;padding:5px 9px;border:1px solid #2c4463;border-radius:7px;color:#b1cff4;background:transparent;white-space:nowrap}
.analysis-chart-settings>summary::-webkit-details-marker{display:none}
.analysis-chart-settings>summary::after{content:'⌄';font-size:13px;color:#85a7d3}
.analysis-chart-settings[open]>summary{background:#1a3150;border-color:#5076a7}
.analysis-chart-settings-panel{position:absolute;right:0;top:calc(100% + 8px);z-index:22;width:305px;max-width:calc(100vw - 65px);padding:16px;border:1px solid #405f87;border-radius:12px;background:#102037;box-shadow:0 10px 36px #0006}
.analysis-chart-settings-panel>strong{display:block;font-size:13px;margin-bottom:12px;color:#d2e3fb}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-periods{display:flex;flex-wrap:wrap;gap:4px;margin:0;width:100%;padding:3px}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-periods button{flex:1 0 30px;padding:7px 5px;font-size:12px;min-height:32px}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-custom{margin:12px 0 0;padding:10px;gap:10px}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-custom label{width:100%;display:flex;justify-content:space-between}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-custom input{max-width:180px;min-width:0}
.analysis-chart-settings-description{font-size:12px;line-height:1.7;color:#a8bfdf;margin:12px 0 0}
.alchemy-editor-page .analysis-chart-settings-panel .analysis-chart-footnote{display:flex;flex-direction:column;gap:5px;margin-top:12px;padding-top:10px;border-top:1px solid #2c4260;font-size:12px;line-height:1.6;color:#a8bfdf}
.alchemy-editor-page .analysis-chart-compact .analysis-chart-empty{min-height:120px;border:0;padding:18px;font-size:13px}
.alchemy-editor-page .alchemy-document .alchemy-chart-block{padding-top:4px;padding-bottom:6px}
html[data-theme=light] .analysis-chart-settings-panel{background:#fff;border-color:#bed0e9;box-shadow:0 10px 30px #294d7d25}
html[data-theme=light] .analysis-chart-settings-panel>strong{color:#25466f}
html[data-theme=light] .analysis-chart-compact .analysis-chart-settings>summary{color:#315f99;border-color:#c0d3eb}
html[data-theme=light] .analysis-chart-settings[open]>summary{background:#e8f1ff}
html[data-theme=light] :is(.analysis-chart-settings-description,.analysis-chart-settings-panel .analysis-chart-footnote){color:#526e93}
html[data-theme=light] .alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-summary{color:#526e93}
@media(max-width:600px){.analysis-chart-settings-panel{width:270px;padding:14px}.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading h4{font-size:16px}.analysis-chart-compact .analysis-chart-settings>summary{gap:6px;padding:4px 7px}}
.document-reading .analysis-chart-settings{display:none!important}
@media print{.analysis-chart-settings{display:none!important}}

/* The section menu owns all chart settings, leaving only the plot and its values. */
.document-block-tool-panel .analysis-chart-settings-panel{position:static;width:auto;max-width:none;border:0;background:transparent;box-shadow:none;padding:14px 0 0;margin-top:14px;border-top:1px solid #314966}
.alchemy-editor-page .document-block-tool-panel .analysis-chart-summary{margin:10px 0;font-size:12px}
.alchemy-editor-page .document-block-tool-panel .analysis-chart-custom{display:flex;flex-direction:column}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading{margin-bottom:4px;padding-right:38px}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-heading h4{font-size:16px;line-height:1.5}
.alchemy-editor-page .alchemy-document .analysis-chart-compact .analysis-chart-values{margin-bottom:0;gap:4px 14px}
.alchemy-editor-page .alchemy-document .alchemy-blocks{gap:22px 26px}
.alchemy-chart-block>.document-block-tools>summary,.alchemy-table-block>.document-block-tools>summary{font-size:0!important;width:28px;height:28px;padding:4px!important;display:flex;align-items:center;justify-content:center}
.alchemy-chart-block>.document-block-tools>summary::after,.alchemy-table-block>.document-block-tools>summary::after{content:'⚙';font-size:17px;line-height:1}
.alchemy-editor-page .alchemy-table-block .document-section-title{font-size:16px;margin:0 35px 10px 0}
.alchemy-editor-page .alchemy-table-block .comparison-table :is(td,th){padding:9px 12px;font-size:13px;line-height:1.5}
.alchemy-editor-page .alchemy-table-block .comparison-table td strong{font-size:14px;font-weight:550;white-space:nowrap}
.alchemy-editor-page .alchemy-table-block .comparison-table thead th{background:transparent!important;padding-top:7px;padding-bottom:7px}
.alchemy-editor-page .alchemy-table-block .comparison-table tbody th{font-weight:400;color:#9fb3cf}
.alchemy-editor-page .alchemy-table-block .comparison-table tr:last-child :is(th,td){border-bottom:0}
.table-bars-option{display:flex;align-items:center;gap:8px;font-size:13px;margin:12px 0}.table-bars-option input{width:16px;min-height:16px;margin:0}
html[data-theme=light] .alchemy-editor-page .alchemy-table-block .comparison-table tbody th{color:#536a8c}
html[data-theme=light] .document-block-tool-panel .analysis-chart-settings-panel{background:transparent;border-color:#c4d2e6;box-shadow:none}

/* Small writing affordances connect charts without changing their column layout. */
.alchemy-document .alchemy-blocks>section{position:relative}.document-text-gap{position:absolute;left:0;top:100%;height:22px;min-height:22px;width:calc(100% - 35px);padding:2px 0;margin:0;border:0;border-radius:4px;background:transparent;box-shadow:none;color:transparent;font-size:12px;line-height:18px;text-align:left;justify-content:flex-start;z-index:2;transform:none}.document-text-gap.gap-before{top:auto;bottom:100%}.document-text-gap:is(:hover,:focus-visible){color:#a9c9f3;background:#14263e;box-shadow:none;transform:none;outline-offset:2px}.alchemy-rich-editor{user-select:text;-webkit-user-select:text}.document-block-tools,.block-resize-handle{user-select:none}.document-reading .document-text-gap{display:none!important}html[data-theme=light] .document-text-gap:is(:hover,:focus-visible){background:#eaf2ff;color:#386395}
@media print{.document-text-gap{display:none!important}}

/* Section settings are a real modal with a stable header, content scroll and footer. */
.alchemy-editor-page dialog.section-editor-dialog{position:fixed;inset:0;margin:auto;width:min(680px,calc(100vw - 32px));height:min(760px,calc(100dvh - 48px));max-height:calc(100dvh - 48px);max-width:none;padding:0;overflow:hidden;border:1px solid var(--wa-border);border-radius:18px;background:var(--wa-surface);color:var(--wa-text);box-shadow:0 28px 100px #0006;transform:none;text-align:left}
.section-editor-dialog:not([open]){display:none!important}.alchemy-editor-page dialog.section-editor-dialog[open]{display:grid;grid-template-rows:auto minmax(0,1fr) auto;pointer-events:auto}.section-editor-dialog::backdrop{background:#04102091;backdrop-filter:blur(5px)}
.section-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:22px 26px 18px;border-bottom:1px solid var(--wa-border);background:var(--wa-surface)}.section-editor-heading h2{font-size:23px;letter-spacing:-.6px;margin:0;line-height:1.35;color:var(--wa-text)}.section-editor-heading p{font-size:13px;line-height:1.6;color:var(--wa-muted);margin:6px 0 0}.section-editor-heading .section-editor-close{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;min-height:0;margin:0;padding:0;font-size:25px;background:var(--wa-raised);color:var(--wa-text);box-shadow:none;border-radius:8px;transform:none}
.section-editor-content{padding:20px 26px 24px;overflow:auto;overscroll-behavior:contain;min-height:0;scrollbar-width:thin}.section-editor-content .alchemy-block-header{margin:0 0 16px;padding:0 0 14px;border-bottom:1px solid var(--wa-border)}.section-editor-content .alchemy-block-header>:is(h4,.block-type-label){display:none}.section-editor-content .alchemy-block-actions{display:flex;flex-wrap:wrap;gap:8px;justify-content:flex-start}.section-editor-content .alchemy-block-actions button{font-size:13px;padding:6px 9px;margin:0;min-height:32px}.section-editor-content :is(.alchemy-control,label){font-size:14px;line-height:1.5}.section-editor-content .alchemy-control select,.section-editor-content .alchemy-chart-title input{min-height:42px;padding:9px 12px;font-size:15px;background:var(--wa-inset);border:1px solid var(--wa-border);color:var(--wa-text);border-radius:9px}.section-editor-content .block-size-controls{padding:0 0 18px;margin:0 0 18px;border-bottom:1px solid var(--wa-border)}.section-position-control{display:block;margin:0 0 18px}.section-position-control select{width:100%}.section-editor-content .alchemy-chart-title{margin:0 0 18px}.section-editor-content .metric-options{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 18px}.section-editor-content .metric-options label{font-size:14px}.section-editor-content input[type=checkbox]{width:16px;height:16px;min-height:16px;accent-color:#387de0}.section-move-hint{color:var(--wa-muted);font-size:13px;line-height:1.7;margin:22px 0 0}.section-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 26px;border-top:1px solid var(--wa-border);background:var(--wa-surface)}.section-editor-footer>span{font-size:12px;color:var(--wa-muted);line-height:1.6}.section-editor-footer .primary-action{width:auto;margin:0;min-height:40px;padding:10px 20px}
.alchemy-editor-page .alchemy-document .section-move-handle{position:absolute;left:-32px;top:2px;display:grid;place-items:center;z-index:3;width:26px;height:30px;padding:0;margin:0;font-size:23px;color:var(--wa-muted);background:transparent;border:1px solid transparent;box-shadow:none;opacity:.65;cursor:grab}.section-move-handle:active{cursor:grabbing}.alchemy-editor-page .alchemy-document .section-move-handle:is(:hover,:focus-visible){opacity:1;background:var(--wa-raised);border-color:var(--wa-border);transform:none}.block-drop-before:before,.block-drop-after:after{content:'';position:absolute;left:0;right:0;height:3px;border-radius:4px;background:#4c93f1;box-shadow:0 0 0 3px #4c93f124;pointer-events:none;z-index:8}.block-drop-before:before{top:-11px}.block-drop-after:after{bottom:-11px}.alchemy-document .block-dragging{opacity:.4}
.document-reading .section-move-handle{display:none!important}@media print{.section-move-handle,.section-editor-dialog{display:none!important}}
@media(max-width:650px){.alchemy-editor-page dialog.section-editor-dialog{width:calc(100vw - 20px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);border-radius:14px}.section-editor-heading{padding:18px}.section-editor-content{padding:18px}.section-editor-footer{padding:14px 18px}.section-editor-footer>span{max-width:180px}.section-editor-content .metric-options{grid-template-columns:1fr}.alchemy-editor-page .alchemy-document .section-move-handle{left:-18px;width:20px;font-size:20px}.section-editor-content .block-size-controls .alchemy-control:first-child{display:block}}

.section-move-handle{touch-action:none;user-select:none;-webkit-user-select:none}

/* Main data controls first; document layout stays available without dominating the editor. */
.section-editor-content .metric-options{max-height:none;overflow:visible;padding:0;margin:18px 0}.section-layout-settings{border-top:1px solid var(--wa-border);margin-top:24px;padding-top:16px}.section-layout-settings>summary{cursor:pointer;font-size:14px;font-weight:550;color:var(--wa-accent);padding:5px 0}.section-layout-settings[open]>summary{margin-bottom:18px}.section-editor-content .section-layout-settings .block-size-controls{margin-bottom:0;padding-top:18px;padding-bottom:0;border-top:1px solid var(--wa-border);border-bottom:0}.section-editor-content .section-layout-settings .alchemy-block-header{border-bottom:0;padding-bottom:0}.section-editor-content .section-layout-settings .section-move-hint{margin-top:16px}.section-editor-content .alchemy-series-picker{margin-top:18px}

.section-editor-content .alchemy-format-toolbar{display:none}

/* Quiet section actions and motion keep the notebook feeling like a document. */
.alchemy-editor-page .section-quick-delete{position:absolute;right:34px;top:-18px;z-index:11;display:grid;place-items:center;width:28px;height:28px;min-height:0;padding:4px;margin:0;border:1px solid var(--wa-border);border-radius:7px;background:var(--wa-surface);color:var(--wa-muted);box-shadow:none;opacity:0;transition:opacity .15s,background .15s;transform:none}
.alchemy-editor-page .alchemy-blocks>section:is(:hover,:focus-within)>.section-quick-delete,.alchemy-editor-page .section-quick-delete:focus-visible{opacity:1}
.alchemy-editor-page .section-quick-delete:hover{color:#f18f9e;background:#432333;border-color:#ae5469;transform:none}
.alchemy-editor-page .section-delete-button{width:auto;min-height:40px;margin:0;padding:8px 12px;border:1px solid transparent;background:transparent;color:#f18f9e;font-size:14px;box-shadow:none;transform:none}
.alchemy-editor-page .section-delete-button:hover{background:#432333;border-color:#ae5469;transform:none}
.section-delete-feedback{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:1000;display:flex;align-items:center;gap:20px;max-width:calc(100vw - 28px);padding:12px 16px;border:1px solid var(--wa-border);border-radius:12px;background:var(--wa-surface);color:var(--wa-text);box-shadow:0 12px 40px #0004;font-size:14px}
.section-delete-feedback button{width:auto;min-height:32px;margin:0;padding:6px 10px;background:var(--wa-raised);color:var(--wa-accent);box-shadow:none;transform:none;font-size:14px;white-space:nowrap}.section-delete-feedback .section-feedback-dismiss{padding:4px;font-size:20px;background:transparent;color:var(--wa-muted)}
.section-drag-preview{position:fixed;z-index:1001;pointer-events:none;display:grid;grid-template-columns:20px minmax(0,1fr);gap:3px 8px;width:260px;padding:12px 14px;background:var(--wa-surface);color:var(--wa-text);border:1px solid var(--wa-accent);border-radius:12px;box-shadow:0 12px 36px #0004;overflow:hidden}.section-drag-preview>span{grid-row:span 2;font-size:24px;color:var(--wa-accent)}.section-drag-preview strong{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.section-drag-preview small{font-size:12px;color:var(--wa-muted)}
.section-reordering,.section-reordering *{cursor:grabbing!important;user-select:none!important}.alchemy-document .block-dragging{outline:1px dashed var(--wa-accent);outline-offset:5px;opacity:.4}.section-reordering .document-text-gap{pointer-events:none}
html[data-theme=light] .alchemy-editor-page :is(.section-delete-button,.section-quick-delete:hover){color:#a12f46}html[data-theme=light] .alchemy-editor-page :is(.section-delete-button:hover,.section-quick-delete:hover){background:#fff0f2;border-color:#e7b8c2}
.document-reading .section-quick-delete{display:none!important}
@media(max-width:850px){.alchemy-editor-page .section-quick-delete{opacity:1;top:-10px}.section-delete-feedback{gap:12px;bottom:14px}}
@media(prefers-reduced-motion:reduce){.section-quick-delete{transition:none!important}}
@media print{.section-quick-delete,.section-delete-feedback,.section-drag-preview{display:none!important}}

/* Text grows with its content; column layouts have a direct, explicit action. */
.alchemy-editor-page .alchemy-document .alchemy-note-block{padding-top:2px;padding-bottom:6px;min-height:0}
.alchemy-editor-page .alchemy-document .alchemy-rich-editor[data-auto-height]{height:auto;min-height:1.9em!important;max-height:none;overflow:visible;overflow-wrap:anywhere}
.alchemy-editor-page .section-side-note{position:absolute;right:70px;top:-18px;z-index:11;width:auto;min-height:28px;margin:0;padding:4px 8px;border:1px solid var(--wa-border);border-radius:7px;background:var(--wa-surface);color:var(--wa-accent);font-size:12px;box-shadow:none;opacity:0;transform:none;transition:opacity .15s}
.alchemy-editor-page .alchemy-blocks>section:is(:hover,:focus-within)>.section-side-note,.alchemy-editor-page .section-side-note:focus-visible{opacity:1}
.section-beside-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding-bottom:18px;margin-bottom:18px;border-bottom:1px solid var(--wa-border)}.section-beside-controls>span{width:100%;font-size:14px;color:var(--wa-muted)}.section-beside-controls .secondary-button{width:auto;margin:0;padding:8px 14px;font-size:14px;min-height:36px}
.alchemy-editor-page .alchemy-note-block>.block-resize-handle{cursor:ew-resize}
.alchemy-editor-page .alchemy-document .block-resizing{outline:1px solid var(--wa-accent);outline-offset:5px}
.section-resizing,.section-resizing *{user-select:none!important;cursor:nwse-resize!important}.section-resize-feedback{position:absolute;right:0;bottom:-27px;z-index:25;white-space:nowrap;padding:5px 9px;border:1px solid var(--wa-border);border-radius:7px;background:var(--wa-surface);color:var(--wa-text);box-shadow:0 4px 16px #0003;font-size:12px;pointer-events:none}
@media screen and (min-width:900px){
 .alchemy-editor-page .alchemy-document .alchemy-blocks{grid-template-columns:repeat(120,minmax(0,1fr));column-gap:0}
 .alchemy-editor-page .alchemy-document .alchemy-blocks>section[data-width]{grid-column:span var(--section-span,120);margin-right:15px;margin-left:15px}
 .alchemy-editor-page .alchemy-document .alchemy-blocks>section[data-row-start=true]{grid-column:1 / span var(--section-span,60)}
 .alchemy-editor-page .alchemy-document .alchemy-blocks-empty{grid-column:1/-1}
}
@media screen and (max-width:899px){.alchemy-editor-page .alchemy-document .alchemy-blocks>section[data-width]{grid-column:1/-1}.alchemy-editor-page .section-side-note{opacity:1;top:-10px}}
.document-reading .section-side-note{display:none!important}
@media(prefers-reduced-motion:reduce){.section-side-note{transition:none!important}}
@media print{.section-side-note,.section-resize-feedback{display:none!important}}
.benchmark-comparison-note{font-size:12px;line-height:1.6;color:var(--wa-muted);margin:8px 0 0}.benchmark-picker label{font-size:14px}.benchmark-picker input{accent-color:var(--wa-accent)}
.benchmark-comparison-note>strong{font-weight:600;color:var(--wa-text)}
.benchmark-return-action{display:block;width:fit-content;margin-top:7px;padding:3px 0;min-height:28px;border:0;background:transparent;color:var(--wa-accent);font:inherit;font-weight:600;cursor:pointer;text-align:left}
.benchmark-return-action:hover{text-decoration:underline;background:transparent}
.alchemy-editor-page .alchemy-document .analysis-chart-comparison.analysis-chart-compact .analysis-chart-value>small{display:block;font-size:11px}
@media print{.benchmark-return-action{display:none}}
/* All section controls reserve distinct hit areas, including text sections. */
.alchemy-editor-page .alchemy-document .document-block-tools{width:28px;max-width:28px}
.alchemy-editor-page .alchemy-document .document-block-tools>summary{font-size:0!important;width:28px;height:28px;min-height:28px;box-sizing:border-box;padding:4px!important;display:grid;place-items:center}
.alchemy-editor-page .alchemy-document .document-block-tools>summary:after{content:'⚙';font-size:17px;line-height:1}
.alchemy-editor-page .alchemy-document .alchemy-note-block>.document-block-tools>summary:after{content:'✎'}
.alchemy-editor-canvas{container-type:inline-size}
@container (max-width:680px){.alchemy-editor-page .alchemy-document .alchemy-blocks>section[data-width]{grid-column:1/-1;margin-inline:0}}
/* One flex row owns every quick action; labels cannot cover adjacent buttons. */
.alchemy-editor-page .section-quick-actions{position:absolute;right:0;top:-28px;z-index:12;display:flex;align-items:center;justify-content:flex-end;gap:6px;max-width:100%;height:28px;opacity:0;transition:opacity .15s}
.alchemy-editor-page .alchemy-blocks>section:is(:hover,:focus-within)>.section-quick-actions,.alchemy-editor-page .section-quick-actions:focus-within{opacity:1}
.alchemy-editor-page .section-quick-actions>.document-block-tools{position:static;inset:auto;flex:0 0 28px;width:28px;max-width:28px;opacity:1}
.alchemy-editor-page .section-quick-actions>:is(.section-quick-delete,.section-side-note){position:static;inset:auto;flex-shrink:0;opacity:1}
.alchemy-editor-page .section-quick-actions .section-quick-delete{width:28px;height:28px}
.alchemy-editor-page .alchemy-note-block>.section-quick-actions .document-block-tools>summary:after{content:'✎'}
.alchemy-editor-page .alchemy-document .section-move-handle{left:-28px;width:24px}
.document-reading .section-quick-actions{display:none!important}
@media(max-width:850px){.alchemy-editor-page .section-quick-actions{opacity:1}.alchemy-editor-page .alchemy-document .section-move-handle{left:-24px;width:22px}}
@media(prefers-reduced-motion:reduce){.section-quick-actions{transition:none!important}}
@media print{.section-quick-actions{display:none!important}}

/* Figures are configured against their real, interactive document preview. */
.alchemy-editor-page dialog.section-editor-dialog{width:min(1120px,calc(100vw - 48px));height:min(760px,calc(100dvh - 48px))}
.section-editor-body{display:grid;grid-template-columns:minmax(0,1fr) 360px;min-height:0;overflow:hidden}
.section-editor-body>.section-editor-content{padding:22px;border-left:1px solid var(--wa-border);background:var(--wa-surface)}
.section-preview-pane{min-width:0;overflow:auto;padding:26px;background:var(--wa-inset);overscroll-behavior:contain}
.section-preview-label{display:block;color:var(--wa-muted);font-size:12px;letter-spacing:.08em;text-transform:uppercase;font-weight:600;margin-bottom:22px}
.section-preview-content{min-width:0;padding:22px;border:1px solid var(--wa-border);border-radius:12px;background:var(--wa-surface)}
.alchemy-editor-page .section-preview-content .analysis-chart{width:100%;min-width:0;margin:0}
.section-preview-content .document-section-title{margin:0 0 18px!important;font-size:18px!important;color:var(--wa-text)}
.section-preview-content .block-table-viewport{max-height:none!important;overflow:auto}
.section-preview-content .comparison-table :is(th,td){font-size:13px;padding:10px 12px}
.section-preview-content .comparison-table td strong{font-size:14px;white-space:nowrap}
.section-preview-content .metric-comparison-cards{grid-template-columns:1fr}
.section-editor-body .alchemy-chart-setup{display:flex;flex-direction:column;gap:16px}
.section-editor-body .alchemy-control{width:100%;min-width:0}
.section-editor-body .alchemy-control select{width:100%}
.section-editor-body .metric-options{grid-template-columns:1fr!important;gap:8px}
.section-editor-footer .secondary-button{width:auto;margin:0;padding:10px 18px;min-height:40px}
.alchemy-editor-page .alchemy-document .section-draft{position:fixed!important;left:0;top:0;width:1px;height:1px;visibility:hidden;pointer-events:none;margin:0!important;padding:0!important;grid-column:auto!important}
.alchemy-editor-page .section-draft dialog.section-editor-dialog{visibility:visible;pointer-events:auto}
.alchemy-editor-page .alchemy-document .section-move-handle{opacity:0;transition:opacity .15s,background .15s}
.alchemy-editor-page .alchemy-document section:is(:hover,:focus-within,.block-dragging)>.section-move-handle,.alchemy-editor-page .alchemy-document .section-move-handle:focus-visible{opacity:1}
.alchemy-editor-page .section-quick-duplicate{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;min-height:0;margin:0;padding:4px;border:1px solid var(--wa-border);border-radius:7px;background:var(--wa-surface);color:var(--wa-muted);font-size:19px;box-shadow:none;transform:none}
.alchemy-editor-page .section-quick-duplicate:hover{background:var(--wa-raised);color:var(--wa-accent);transform:none}
@media(max-width:900px){
 .alchemy-editor-page dialog.section-editor-dialog{width:calc(100vw - 24px);height:calc(100dvh - 24px);max-height:calc(100dvh - 24px)}
 .section-editor-body{display:flex;flex-direction:column;overflow:auto;overscroll-behavior:contain}
 .section-preview-pane{flex:0 0 auto;padding:18px;overflow:visible}
 .section-preview-label{margin-bottom:12px}
 .section-preview-content{padding:14px}
 .section-editor-body>.section-editor-content{overflow:visible;flex:0 0 auto;border-left:0;border-top:1px solid var(--wa-border);padding:18px}
 .section-editor-heading p{font-size:12px}.section-editor-heading h2{font-size:21px}
}
@media(prefers-reduced-motion:reduce){.section-move-handle{transition:none!important}}
@media print{.section-draft{display:none!important}}

/* Moving is a contextual toolbar action; typing never reveals persistent handles. */
.alchemy-editor-page .alchemy-blocks>section>.section-quick-actions{opacity:0}
.alchemy-editor-page .alchemy-blocks>section:hover>.section-quick-actions,.alchemy-editor-page .section-quick-actions:focus-within,.alchemy-editor-page .block-dragging>.section-quick-actions{opacity:1}
.alchemy-editor-page .alchemy-document .section-quick-actions>.section-move-handle{position:static;inset:auto;flex:0 0 28px;width:28px;height:28px;min-height:28px;margin:0;padding:5px;opacity:1;border:1px solid var(--wa-border);border-radius:7px;background:var(--wa-surface);color:var(--wa-muted);box-sizing:border-box}
.section-move-handle svg{display:block;width:16px;height:16px;pointer-events:none}
.alchemy-editor-page .section-quick-actions{pointer-events:none}
.alchemy-editor-page .alchemy-blocks>section:hover>.section-quick-actions,.alchemy-editor-page .section-quick-actions:focus-within{pointer-events:auto}
.alchemy-blocks>section:is(.block-drop-left,.block-drop-right){outline:1px solid var(--wa-accent);outline-offset:5px}
.block-drop-left:before,.block-drop-right:after{content:'';position:absolute;top:0;bottom:0;width:44%;border:2px solid var(--wa-accent);border-radius:10px;background:color-mix(in srgb,var(--wa-accent) 13%,transparent);pointer-events:none;z-index:15}
.block-drop-left:before{left:0}.block-drop-right:after{right:0}
.section-reordering .alchemy-blocks>section{transition:outline-color .15s}
@media(hover:none){.alchemy-editor-page .alchemy-blocks>section:focus-within>.section-quick-actions{opacity:1;pointer-events:auto}}

/* A recoverable document deletion gets one clear, accessible confirmation. */
/* Action menus must remain above the sticky document toolbar. */
.alchemy-editor-page .editor-more[open]{z-index:40}.alchemy-editor-page .editor-more[open]>div{z-index:41}.alchemy-editor-page .editor-more>div>button{width:100%;text-align:left}.alchemy-editor-page .editor-more [hidden]{display:none!important}
