#scratchpadModule.sp-editor-open{padding:0!important;max-width:none!important}
.sp-import-notice{padding:10px 18px;background:#fff6e5;color:#6b4c25;font-size:12px;line-height:1.6;border-bottom:1px solid #ead4ac;max-height:140px;overflow:auto;flex-shrink:0}.sp-import-notice details{margin-top:7px}.sp-import-notice li{margin:5px 0}
.scratchpad-auto-settings{width:min(520px,calc(100vw - 32px));max-height:80vh;overflow:auto;padding:26px;border:1px solid #dec9d7;border-radius:20px;background:#fffafc;color:#4b2642;box-shadow:0 25px 100px #30112844}.scratchpad-auto-settings::backdrop{background:#25122277;backdrop-filter:blur(4px)}.scratchpad-auto-settings header{display:flex;align-items:center;justify-content:space-between;gap:15px}.scratchpad-auto-settings h2{font-size:23px}.scratchpad-auto-settings p{font-size:13px;line-height:1.75;color:#755a6c}.scratchpad-auto-settings button{border:1px solid #d7c1d0;border-radius:10px;background:#f8edf4;color:#613653;padding:10px 14px;cursor:pointer}.scratchpad-auto-switch{display:flex;align-items:center;gap:12px;padding:17px;background:#f6eaf3;border-radius:12px;font-weight:650}.scratchpad-auto-switch input{width:20px;height:20px;accent-color:#9d4675}.scratchpad-auto-settings [data-drafts]{display:grid;gap:8px}.scratchpad-auto-settings [data-drafts] button{text-align:left;overflow-wrap:anywhere}
@media(max-width:700px){.sp-word-nav{flex-wrap:wrap}.sp-word-nav nav{flex-wrap:wrap}.sp-word-nav-bottom{margin-left:0}}
#scratchpadModule.sp-editor-open>.scratchpad-shell{display:none!important}
:is(#scratchpadModule,.sp-word-shell) .sp-document{--sp-ink:#24364b;--sp-accent:#246c70;color-scheme:light;color:var(--sp-ink);background:#eef1f4;border:1px solid #dce2e7;border-radius:18px;overflow:hidden;display:flex;flex-direction:column;height:calc(100dvh - 120px);min-height:620px;font-family:Arial,sans-serif}
:is(#scratchpadModule,.sp-word-shell) .sp-document button{font:inherit;cursor:pointer;border:1px solid transparent;box-shadow:none;letter-spacing:0;text-transform:none;transition:background .15s;color:var(--sp-ink);background:transparent;border-radius:7px;min-height:34px;line-height:1.3;padding:6px 10px}
:is(#scratchpadModule,.sp-word-shell) .sp-document button:hover{background:#e5eeee}
:is(#scratchpadModule,.sp-word-shell) .sp-document button:focus-visible,:is(#scratchpadModule,.sp-word-shell) .sp-document :is(input,select):focus-visible{outline:2px solid #2c858c;outline-offset:2px}
:is(#scratchpadModule,.sp-word-shell) .sp-document button[aria-pressed=true]{background:#d8eae8;color:#164f54}
:is(#scratchpadModule,.sp-word-shell) .sp-document button:disabled{opacity:.5;cursor:wait}
.sp-document-header{display:flex;align-items:center;gap:20px;padding:18px 24px;background:#fff;border-bottom:1px solid #e3e7eb}
.sp-document-title{flex:1;min-width:140px}.sp-document-title small{display:block;font-size:10px;letter-spacing:.16em;color:#6c828b;margin-bottom:7px}
:is(#scratchpadModule,.sp-word-shell) .sp-document-title input{display:block;border:0;box-shadow:none;background:transparent;border-radius:0;padding:0;color:#24364b;font-size:22px;font-weight:600;width:100%;min-height:28px}
:is(#scratchpadModule,.sp-word-shell) .sp-document .sp-save{background:#246c70;color:#fff;padding:11px 22px;border:1px solid #246c70;font-weight:600}
:is(#scratchpadModule,.sp-word-shell) .sp-document .sp-save:hover{background:#19565b}.sp-document [data-sp-status]{font-size:12px;color:#647e83;max-width:300px;line-height:1.5}
.sp-ribbon{display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;background:#fafbfc;padding:12px 18px;border-bottom:1px solid #dce3e8}
.sp-toolgroup{display:flex;align-items:center;flex-wrap:wrap;gap:3px;border-right:1px solid #dde3e8;padding:0 12px 20px 0;position:relative}
.sp-toolgroup>small{position:absolute;bottom:0;left:0;right:12px;text-align:center;font-size:10px;color:#7b8797;letter-spacing:.04em}
:is(#scratchpadModule,.sp-word-shell) .sp-document select{width:auto;min-width:0;min-height:32px;border:1px solid #dbe1e6;background:#fff;border-radius:6px;padding:4px 22px 4px 8px;font-size:12px;color:#34455a}
.sp-toolgroup label{position:relative;display:flex;justify-content:center;width:32px;font-size:15px;font-weight:bold;cursor:pointer}.sp-toolgroup input[type=color]{position:absolute;bottom:-5px;width:24px;height:7px;padding:0;border:0;background:transparent;cursor:pointer}
:is(#scratchpadModule,.sp-word-shell) .sp-toolgroup input[type=color]{height:7px!important;min-height:0!important;width:24px!important;padding:0!important}
.sp-document-body{display:grid;grid-template-columns:210px minmax(0,1fr);flex:1;min-height:0}
.sp-outline{padding:28px 20px;background:#f5f7f9;border-right:1px solid #dce3e8;color:#8a96a2;font-size:12px;line-height:1.6;overflow:auto}
.sp-outline [data-sp-relations]{margin-top:20px}.sp-outline [data-sp-relations]>span,.sp-outline .is-pending{display:block;margin:6px 0;overflow-wrap:anywhere}.sp-outline [data-sp-relations]>span{padding:5px 8px;border-radius:6px;background:#e4eeee;color:#246c70}
.sp-outline p{font-size:10px;letter-spacing:.12em;color:#6e7e90;margin:0 0 14px}
.sp-outline nav{display:flex;flex-direction:column;align-items:stretch;gap:4px}
:is(#scratchpadModule,.sp-word-shell) .sp-outline button{text-align:left;font-size:12px;overflow-wrap:anywhere}.sp-outline-level-3{padding-left:20px!important}
.sp-outline [data-sp-files]{margin-top:30px}.sp-outline a{display:block;overflow-wrap:anywhere;color:#246c70;margin:8px 0}
.sp-paper-scroll{overflow:auto;padding:28px;min-height:0}
.sp-paper{background:#fff;min-height:750px;max-width:1050px;margin:0 auto;box-shadow:0 8px 35px #152c4210;border:1px solid #e0e6eb;padding:52px 60px;color:#223447;font-size:16px;line-height:1.65;cursor:text}
.sp-paper .tiptap{outline:none;min-height:650px;white-space:pre-wrap;overflow-wrap:anywhere;font-family:Arial,sans-serif;color:#223447;line-height:1.65}
.sp-paper .tiptap p{margin:0 0 12px;font:inherit;color:inherit;line-height:inherit}
.sp-paper .tiptap :is(h1,h2,h3,h4,h5,h6){color:#21384d;line-height:1.3;margin:28px 0 12px;font-weight:650;letter-spacing:-.02em}
.sp-paper .tiptap h1{font-size:32px}.sp-paper .tiptap h2{font-size:25px}.sp-paper .tiptap h3{font-size:20px}
.sp-paper .tiptap :is(ul,ol){margin:8px 0 16px;padding-left:26px}.sp-paper .tiptap li{margin:4px 0}.sp-paper .tiptap li p{margin:0}
.sp-paper .tiptap ul[data-type=taskList]{list-style:none;padding:0}.sp-paper .tiptap li[data-type=taskItem]{display:flex;gap:10px}.sp-paper .tiptap li[data-type=taskItem]>div{flex:1}
.sp-paper .tiptap blockquote{border-left:3px solid #76a4a5;padding:12px 20px;margin:20px 0;color:#55717c;background:#f4f8f8}
.sp-paper .tiptap pre{padding:16px;background:#edf2f5;white-space:pre-wrap;border-radius:7px;font-family:monospace}
.sp-paper .tiptap img{max-width:100%;height:auto}.sp-paper .tiptap .ProseMirror-selectednode{outline:2px solid #43888c}
.sp-paper .tiptap table{border-collapse:collapse;table-layout:fixed;width:100%;margin:20px 0;overflow:hidden}.sp-paper .tiptap :is(td,th){border:1px solid #bbc9d2;padding:10px;min-width:30px;position:relative;vertical-align:top}.sp-paper .tiptap th{background:#edf4f5;font-weight:bold}.sp-paper .tiptap .selectedCell:after{background:#509a9928;content:'';inset:0;position:absolute;pointer-events:none}.sp-paper .tiptap .column-resize-handle{position:absolute;right:-2px;top:0;bottom:0;width:4px;background:#3b8a8e}.sp-paper .resize-cursor{cursor:col-resize}
.sp-paper .tiptap hr{border:0;border-top:1px solid #d4dce3;margin:24px 0}
.sp-document footer{display:flex;gap:20px;align-items:center;justify-content:space-between;padding:10px 22px;border-top:1px solid #dce3e8;background:#fafbfc;font-size:11px;color:#7a8896}.sp-document footer label{display:flex;gap:8px;align-items:center}
.sp-table-tools,.sp-find{display:flex;align-items:center;gap:8px;background:#fff;padding:8px 20px;border-bottom:1px solid #dce3e8;font-size:12px}.sp-document [hidden]{display:none!important}
:is(#scratchpadModule,.sp-word-shell) .sp-find input{width:180px;min-height:32px;font-size:12px;border:1px solid #dce3e8;background:white;color:#24364b;padding:6px 10px}
@media(max-width:1100px){.sp-document-body{grid-template-columns:150px minmax(0,1fr)}.sp-outline{padding:20px 12px}.sp-paper{padding:32px}.sp-ribbon{padding:10px}.sp-document-header{gap:12px;padding:16px}.sp-document [data-sp-status]{max-width:180px}}
@media(max-width:800px){.sp-outline{display:none}.sp-document-body{display:block}.sp-paper-scroll{padding:12px}.sp-paper{padding:25px 20px}.sp-document-header{flex-wrap:wrap}.sp-document-header [data-sp-status]{order:2;max-width:none;flex-basis:100%}.sp-document footer>span:nth-child(2){display:none}.sp-ribbon{gap:10px}.sp-toolgroup{border-right:0}.sp-find{flex-wrap:wrap}.sp-table-tools{flex-wrap:wrap}}
@media print{body.sp-printing *{visibility:hidden!important}body.sp-printing .sp-paper,body.sp-printing .sp-paper *{visibility:visible!important}body.sp-printing .sp-paper{position:absolute!important;inset:0!important;max-width:none!important;width:100%!important;min-height:0!important;padding:0!important;box-shadow:none!important;border:0!important;zoom:1!important}body.sp-printing .sp-paper-scroll{overflow:visible!important;max-height:none!important}body.sp-printing .sp-paper .tiptap{min-height:0!important}}

/* Word keeps the familiar rose/plum scratchpad palette in its own workspace. */
#scratchpadModule .scratchpad-hero-actions{flex-wrap:wrap;justify-content:flex-end}
#scratchpadModule .scratchpad-document-button{background:linear-gradient(130deg,#7f3d72,#ad557f);border:1px solid #eebed2}
#scratchpadModule .scratchpad-toolbar{grid-template-columns:minmax(220px,1fr) minmax(160px,240px) minmax(140px,180px) auto}
.scratchpad-card-kind{display:flex;gap:8px;align-items:center;color:#87506e;font-size:11px;font-weight:700;letter-spacing:.07em;text-transform:uppercase}
.scratchpad-card-kind>span{display:grid;place-items:center;width:26px;height:26px;border-radius:8px;background:#fae9ef;font-size:18px}
#scratchpadModule .scratchpad-card--document{background:linear-gradient(145deg,#fff,#f5e9f4);border-color:#cfa5c4;box-shadow:inset 4px 0 #87486e,0 7px 20px #71345f0a}
.scratchpad-card--document .scratchpad-card-kind>span{background:#71345f;color:#fff}
:is(#scratchpadModule,.sp-word-shell) .sp-document{--sp-ink:#35152f;--sp-accent:#9d4675;background:#f6edf4;border-color:#dbc4d4;font-family:inherit}
.sp-document-header{background:radial-gradient(at top right,#c8787666,transparent 50%),linear-gradient(120deg,#35152f,#71345f 70%,#9a4664);border-bottom-color:#71345f}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header button,:is(#scratchpadModule,.sp-word-shell) .sp-document-title input{color:#fff}
.sp-document-title small,.sp-document-header [data-sp-status]{color:#f1cfe5}
:is(#scratchpadModule,.sp-word-shell) .sp-document-title input::placeholder{color:#e1bcd3}
:is(#scratchpadModule,.sp-word-shell) .sp-document .sp-save{background:linear-gradient(120deg,#b25385,#e06968);border-color:#e99cb5;color:#fff}
:is(#scratchpadModule,.sp-word-shell) .sp-document .sp-save:hover{background:#c65c83}
:is(#scratchpadModule,.sp-word-shell) .sp-document button:hover{background:#eed7e7}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header button:hover{background:#ffffff20}
:is(#scratchpadModule,.sp-word-shell) .sp-document button[aria-pressed=true]{background:#ead2e2;color:#572344}
:is(#scratchpadModule,.sp-word-shell) .sp-document button:focus-visible,:is(#scratchpadModule,.sp-word-shell) .sp-document :is(input,select):focus-visible{outline-color:#c26496}
.sp-ribbon,.sp-document footer{background:#fff9fc;border-color:#e7d5e1}
.sp-toolgroup{border-color:#e5cede}.sp-toolgroup>small,.sp-outline p,.sp-document footer{color:#76566f}
.sp-outline{background:#f9f0f6;color:#85617d;border-color:#e5cede}
.sp-outline [data-sp-relations]>span{background:#f1dfea;color:#71345f}
.sp-outline a{color:#873e72}.sp-paper{border-color:#e5d5df;box-shadow:0 12px 38px #35152f0d}
.sp-paper .tiptap :is(h1,h2,h3,h4,h5,h6){color:#35152f}.sp-paper .tiptap blockquote{border-color:#a0608f;background:#fcf6fa;color:#704d68}
.sp-paper .tiptap .ProseMirror-selectednode{outline-color:#a0608f}.sp-paper .tiptap .column-resize-handle{background:#a0608f}
.sp-paper .tiptap th{background:#f2e7ee}.sp-paper .tiptap .selectedCell:after{background:#a0608f25}
:is(#scratchpadModule,.sp-word-shell) .sp-toolgroup .sp-download-label{display:grid;width:auto;min-width:155px;gap:3px;font-size:10px;font-weight:400;color:#76566f}.sp-download-label select{font-size:12px!important}
.sp-extra-tools{background:#f9edf5;max-height:220px;overflow:auto}
.sp-toolgroup .sp-checkbox{width:auto;font-size:11px;font-weight:400;gap:6px;align-items:center}
:is(#scratchpadModule,.sp-word-shell) .sp-checkbox input{appearance:auto;width:16px!important;min-width:16px!important;max-width:16px!important;min-height:16px!important;max-height:16px!important;height:16px!important;padding:0!important;margin:0!important;flex:0 0 16px;accent-color:#9d4675}
.sp-image-tools{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:#fff9fc;padding:10px 20px;border-bottom:1px solid #e5cede;font-size:12px}
.sp-image-tools label{display:flex;align-items:center;gap:6px}
:is(#scratchpadModule,.sp-word-shell) .sp-image-tools input{width:150px;min-height:30px;padding:5px 8px;border:1px solid #d8bed0;background:#fff;color:#35152f}
:is(#scratchpadModule,.sp-word-shell) .sp-image-tools input[type=number]{width:80px}
.sp-table-tools label{display:flex;align-items:center;gap:5px}.sp-table-tools input[type=color]{width:30px;min-height:25px;height:25px;padding:0}
.sp-outline-hidden .sp-outline,.sp-focus .sp-outline{display:none}.sp-outline-hidden .sp-document-body,.sp-focus .sp-document-body{grid-template-columns:minmax(0,1fr)}
:is(#scratchpadModule,.sp-word-shell) .sp-document.sp-focus{position:fixed;inset:12px;z-index:1200;height:auto;min-height:0}
.sp-focus .sp-ribbon:not(.sp-extra-tools){display:none}
.sp-page-break{margin:24px 0;border-top:1px dashed #b38ca7;padding-top:8px;color:#956783;font:11px Arial;text-align:center;break-before:page;user-select:none}
.sp-document[data-orientation=landscape] .sp-paper{max-width:1200px;min-height:600px}
.sp-document[data-margins=narrow] .sp-paper{padding:28px}.sp-document[data-margins=wide] .sp-paper{padding:72px}
@media(max-width:900px){#scratchpadModule .scratchpad-toolbar{grid-template-columns:1fr 1fr}.sp-table-tools{flex-wrap:wrap}.sp-document[data-margins=wide] .sp-paper{padding:40px}.sp-download-label{min-width:140px}}
@media(max-width:600px){#scratchpadModule .scratchpad-toolbar{grid-template-columns:1fr}.sp-document-header{padding:12px;gap:8px}.sp-document-title{flex-basis:100%}.sp-document footer{flex-wrap:wrap}.sp-find{max-height:170px;overflow:auto}}
@media print{.sp-page-break{visibility:hidden!important;border:0;padding:0;height:0;margin:0;break-before:page}.sp-document[data-margins] .sp-paper{padding:0!important}}

/* Independent Word environment; archive and editor share one owner-scoped store. */
.sp-word-open{overflow:hidden!important}
body.sp-word-open :is(#projectHome,#studioApp){display:none!important}
/* Keep the sidebar background flush with the top edge; reserve caption space only where needed. */
html.xri-desktop-window-controls-overlay body.sp-word-open::before{content:"";position:fixed;top:0;right:0;width:var(--xri-native-window-controls-width,138px);height:38px;background:#3f1c36;z-index:1201;pointer-events:none}
html.xri-desktop-window-controls-overlay body.sp-word-open .xri-desktop-window-drag-strip{display:block}
html.xri-desktop-window-controls-overlay .sp-document>.sp-document-header{padding-right:calc(var(--xri-native-window-controls-width,138px) + 14px);-webkit-app-region:drag;app-region:drag}
.sp-document-header :is(button,input,select){-webkit-app-region:no-drag;app-region:no-drag}
.sp-word-shell{position:fixed;inset:0;z-index:1000;display:grid;grid-template-columns:218px minmax(0,1fr);background:#f8f2f6;color:#35152f;color-scheme:light;font-family:Arial,sans-serif}
.sp-word-shell *{box-sizing:border-box}.sp-word-shell [hidden]{display:none!important}
.sp-word-shell button{cursor:pointer;font:inherit;letter-spacing:0;text-transform:none;border-radius:10px;min-height:38px;box-shadow:none}
.sp-word-shell button:focus-visible,.sp-word-shell :is(input,select):focus-visible{outline:3px solid #c26496;outline-offset:2px}
.sp-word-nav{display:flex;flex-direction:column;padding:32px 20px 22px;background:radial-gradient(at top left,#91496888,transparent 55%),linear-gradient(160deg,#48213e,#281624);color:#fff}
.sp-word-brand{display:flex;align-items:center;gap:12px}.sp-word-brand>span{display:grid;place-items:center;background:#ffffff12;border:1px solid #cda0bf66;width:45px;height:49px;border-radius:12px;font:bold 26px Georgia;color:#f9d6e9}
.sp-word-brand small{font-size:9px;letter-spacing:.15em;color:#dcaacb}.sp-word-brand h1{font-size:28px;margin:3px 0 0;color:#fff;letter-spacing:-.04em}.sp-word-brand h1 span{color:#e5a1ae}
.sp-word-nav>p{font-size:12px;color:#dcbcd2;line-height:1.6;margin:24px 0 28px}.sp-word-nav nav{display:grid;gap:8px}
.sp-word-nav button{border:1px solid transparent;background:transparent;color:#ecdce7;padding:12px;text-align:left;font-size:13px}
.sp-word-nav button:hover,.sp-word-nav button[aria-current]{background:#ffffff12;border-color:#ffffff15;color:#fff}
.sp-word-nav-bottom{margin-top:auto;border-top:1px solid #ffffff1c;padding-top:20px}.sp-word-nav-bottom p{font-size:11px;line-height:1.7;color:#c4a5bb}.sp-word-nav-bottom button{width:100%}
.sp-word-main{min-width:0;min-height:0;overflow:auto}.sp-word-archive{max-width:1500px;margin:auto;padding:48px clamp(24px,4vw,64px)}
.sp-word-hero{display:flex;justify-content:space-between;align-items:center;gap:24px;margin-bottom:34px}.sp-word-hero small{font-size:10px;letter-spacing:.16em;color:#985778}.sp-word-hero h2{font-size:clamp(28px,3vw,42px);letter-spacing:-.045em;line-height:1.1;margin:14px 0;color:#35152f}.sp-word-hero p{color:#88667e;line-height:1.7;font-size:14px;margin:0}
.sp-word-hero>button,.sp-word-empty>button{background:linear-gradient(125deg,#843b6e,#b25680);border:1px solid #a45581;color:#fff;padding:13px 20px;white-space:nowrap}
.sp-word-filters{display:grid;grid-template-columns:minmax(180px,1fr) 180px 170px 40px;gap:18px;align-items:end;padding:20px 22px;border:1px solid #e9d9e3;background:#fffafc;border-radius:16px}
.sp-word-filters label{display:grid;gap:8px;font-size:11px;font-weight:600;color:#89667b}.sp-word-filters :is(input,select){background:#fff;border:1px solid #e3d1dd;border-radius:8px;color:#492c40;width:100%;padding:10px 12px;font:13px Arial;min-height:39px}.sp-word-filters button{background:#f7edf3;border:1px solid #e3d1dd;color:#71345f;font-size:20px}
.sp-word-results-head{display:flex;align-items:center;justify-content:space-between;margin:26px 0 18px}.sp-word-results-head h3{font-size:15px;margin:0;color:#35152f}.sp-word-results-head span{font-size:12px;color:#927084}
.sp-word-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:20px}.sp-word-card{position:relative;background:linear-gradient(145deg,#fff,#fff9fc);border:1px solid #e5d1df;border-radius:16px;box-shadow:0 8px 24px #5b254407;overflow:hidden;transition:box-shadow .18s,transform .18s}.sp-word-card:hover{box-shadow:0 12px 30px #5b254417;transform:translateY(-2px)}
.sp-word-card>button:first-child{display:block;text-align:left;width:100%;height:100%;border:0;background:transparent;padding:25px;color:#35152f}.sp-word-paper-icon{display:grid;place-items:center;width:48px;height:61px;background:#f6e8f1;border:1px solid #e1c4d9;border-radius:5px 14px 5px 5px;color:#874770;font:bold 24px Georgia}.sp-word-paper-icon span{font:6px Arial;letter-spacing:.08em}.sp-word-card-date{display:block;color:#a58297;font-size:10px;margin:20px 0 10px}.sp-word-card h3{font-size:18px;margin:0 0 10px;line-height:1.35;overflow-wrap:anywhere;color:#47203d}.sp-word-card p{font-size:12px;line-height:1.75;color:#947487;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:63px;margin:0 0 22px;overflow-wrap:anywhere}.sp-word-card-foot{border-top:1px solid #ecdfe7;padding-top:15px;display:flex;gap:8px;flex-wrap:wrap;align-items:center;justify-content:space-between;font-size:10px;color:#a08293}.sp-word-card-foot strong{color:#934d76;font-size:11px}
.sp-word-card .sp-word-delete{position:absolute;right:12px;top:12px;background:transparent;color:#99748b;border:0;min-height:30px;width:30px;font-size:22px}.sp-word-card .sp-word-delete:hover{background:#f8e7ef;color:#8e3454}
.sp-word-empty{grid-column:1/-1;text-align:center;background:#fffbfd;border:1px dashed #dec5d6;border-radius:18px;padding:50px 24px;color:#967487}.sp-word-empty>span{font-size:38px;color:#aa7093}.sp-word-empty h3{color:#60334f;font-size:21px}.sp-word-empty p{font-size:13px;margin-bottom:25px}.sp-word-archive [data-word-error]{padding:14px;border-radius:10px;background:#fff0ef;color:#9c3b4e}
.sp-word-editor-host{height:100%;min-height:0}.sp-word-shell.is-editing{grid-template-columns:minmax(0,1fr)}.sp-word-shell.is-editing>.sp-word-nav{display:none}
:is(#scratchpadModule,.sp-word-shell) .sp-document{position:relative;min-height:0;height:100%;border:0;border-radius:0}
.sp-document>.sp-document-header{padding:9px 18px;gap:14px;min-height:65px}.sp-document-title{min-width:100px}.sp-document-title small{font-size:8px;letter-spacing:.15em;margin-bottom:4px}.sp-document-title strong{display:block;max-width:40vw;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-size:15px;color:#fff}.sp-document-header [data-sp-count]{font-size:10px;color:#e9c6df;white-space:nowrap}.sp-document-header [data-sp-status]{font-size:10px;max-width:220px}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header :is([data-sp-save],[data-sp-settings]){width:36px;height:36px;min-height:36px;display:grid;place-items:center;padding:0;flex:0 0 36px;border-radius:9px}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header [data-sp-settings]{width:40px;height:40px;min-height:40px;flex-basis:40px;border-radius:50%;background:#f4e7f0;border:1px solid #c9a6bd;color:#683652;box-shadow:0 2px 5px #5528400a}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header [data-sp-settings]:hover{background:#e9d4e2;border-color:#a97596}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header [data-sp-settings][aria-expanded=true]{background:#703955;border-color:#703955;color:#fff}
:is(#scratchpadModule,.sp-word-shell) .sp-document-header [data-sp-settings]:focus-visible{outline:3px solid #b17d9d;outline-offset:3px}
.sp-document>.sp-ribbon{padding:6px 12px;gap:6px}.sp-document .sp-toolgroup{padding:0 9px 14px 0;gap:2px}.sp-document .sp-toolgroup>small{font-size:8px}.sp-document .sp-toolgroup:last-child{border-right:0;margin-left:auto}
:is(#scratchpadModule,.sp-word-shell) .sp-document .sp-ribbon button{min-height:28px;padding:4px 7px;font-size:12px}.sp-document .sp-ribbon select{min-height:28px!important;font-size:11px!important}.sp-document .sp-document-body{display:flex;min-height:0}.sp-document .sp-paper-scroll{width:100%;padding:22px;flex:1}.sp-document .sp-paper{max-width:794px;min-height:1123px}.sp-document[data-orientation=landscape] .sp-paper{max-width:1123px;min-height:794px}
.sp-settings{position:absolute;z-index:12;top:62px;right:16px;width:min(360px,calc(100% - 32px));max-height:calc(100% - 78px);overflow:auto;background:#fffbfd;border:1px solid #dbbfd2;border-radius:16px;box-shadow:0 20px 70px #35152f30;padding:22px;color:#47203d;font-size:12px}
.sp-settings>header{display:flex;justify-content:space-between;align-items:center;margin-bottom:18px}.sp-settings h2{margin:4px 0 0;font-size:21px;color:#47203d}.sp-settings small{font-size:8px;letter-spacing:.14em;color:#9d6989}.sp-settings label{display:grid;gap:8px;margin-bottom:16px;font-size:11px;color:#865d78}
:is(#scratchpadModule,.sp-word-shell) .sp-settings input{width:100%;background:#fff;border:1px solid #d9bfd0;border-radius:7px;padding:10px;color:#47203d;font:14px Arial;min-height:38px}.sp-settings select{width:100%!important}.sp-settings-actions{display:grid;grid-template-columns:1fr 1.6fr;gap:10px;align-items:center;border-bottom:1px solid #ebdbe5;margin-bottom:16px}.sp-settings-links{display:grid;gap:7px;margin-bottom:12px}.sp-settings [data-sp-relations]>span{display:block;background:#f1dfea;color:#71345f;padding:5px 8px;border-radius:6px;margin-bottom:4px}.sp-settings [data-sp-files]>*{display:block;overflow-wrap:anywhere;margin:8px 0}.sp-settings details{border-top:1px solid #eadce5;padding:13px 0}.sp-settings summary{cursor:pointer;font-size:12px}.sp-settings details p{line-height:2;color:#8d6780}.sp-settings nav{display:grid;padding-top:10px}.sp-settings [data-sp-danger]{border-top:1px solid #eadce5;padding-top:10px}.sp-settings [data-sp-delete]{color:#a33f60!important}
#scratchpadModule .scratchpad-toolbar{grid-template-columns:minmax(220px,1fr) minmax(160px,240px) auto}
#scratchpadModule.sp-wide-open>.scratchpad-shell{display:none!important}.scratchpad-wide-page[hidden]{display:none!important}
/* The same panel moves between the modal and the page. Keep its palette and
   typography local, including after the design system enhances its controls. */
.scratchpad-detail-panel{--scratchpad-ink:#35152f;--scratchpad-note-ink:#693057}
.scratchpad-detail-panel #scratchpadDetailContent{color:var(--scratchpad-note-ink);font-family:inherit;font-size:16px;font-weight:400;line-height:1.7}
#scratchpadModule.sp-wide-open{border-radius:22px}
.scratchpad-wide-page .scratchpad-detail-panel{width:100%;max-width:none;max-height:none;height:auto;border-radius:18px;box-shadow:0 10px 45px #35152f0c;background:#f5edf3;overflow:visible}.scratchpad-wide-page .scratchpad-detail-panel>header{border-radius:18px 18px 0 0;padding:15px 24px}.scratchpad-wide-page .scratchpad-detail-panel>header h2{font-size:20px}.scratchpad-wide-page form{max-width:none;width:100%;margin:0;box-sizing:border-box;padding:20px}.scratchpad-wide-page #scratchpadDetailContent{width:100%;min-height:calc(100dvh - 360px);padding:30px;border-radius:12px;background:#fff;box-shadow:0 7px 30px #35152f0a;resize:vertical}
#scratchpadModule.sp-wide-open{max-width:none;width:100%;padding:12px!important;box-sizing:border-box}.scratchpad-edit-bar{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap}.scratchpad-edit-bar>label{flex:1 1 180px;max-width:360px;min-width:0}.scratchpad-edit-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.scratchpad-edit-actions>button,.scratchpad-edit-actions>.scratchpad-file-picker{min-height:40px;margin:0;box-sizing:border-box;font-size:12px!important;padding:10px 13px!important;border-radius:11px!important;display:inline-flex;align-items:center;justify-content:center}.scratchpad-attachments[hidden]{display:none!important}
.scratchpad-detail-panel .scratchpad-header-actions button{width:40px;height:40px;min-width:40px;display:inline-grid;place-items:center;padding:0!important;border:1px solid #ffffff48!important;border-radius:12px!important;background:#ffffff14!important;color:#fff!important;box-shadow:none;font-size:23px!important}.scratchpad-detail-panel .scratchpad-header-actions button:hover{background:#ffffff28!important}.scratchpad-detail-panel .scratchpad-header-actions button:focus-visible{outline:2px solid #ffd5e7;outline-offset:3px}
@media(max-width:700px){.scratchpad-edit-bar{gap:12px}.scratchpad-edit-bar>label{max-width:none;flex-basis:100%}.scratchpad-edit-actions{width:100%;gap:6px}.scratchpad-edit-actions>button{flex:1}.scratchpad-detail-panel>header{gap:10px}.scratchpad-detail-panel .scratchpad-header-actions{gap:6px}.scratchpad-wide-page form{padding:14px}.scratchpad-wide-page #scratchpadDetailContent{padding:18px!important;min-height:55vh!important}}
@media(max-width:1100px){.sp-word-shell{grid-template-columns:185px minmax(0,1fr)}.sp-word-archive{padding:32px 24px}.sp-word-filters{grid-template-columns:1fr 150px}.sp-document>.sp-document-header{gap:9px}.sp-document-header [data-sp-status]{max-width:145px}.sp-document .sp-toolgroup:last-child{margin-left:0}}
@media(max-width:700px){.sp-word-shell{grid-template-columns:1fr}.sp-word-nav{padding:14px;flex-direction:row;gap:12px;align-items:center}.sp-word-brand small,.sp-word-nav>p,.sp-word-nav-bottom p{display:none}.sp-word-nav nav{display:flex}.sp-word-brand h1{font-size:20px}.sp-word-brand>span{display:none}.sp-word-nav-bottom{margin:0 0 0 auto;border:0;padding:0}.sp-word-nav button{font-size:11px;padding:8px}.sp-word-shell:not(.is-editing){grid-template-rows:auto minmax(0,1fr)}.sp-word-hero{align-items:flex-start;flex-direction:column}.sp-word-filters{grid-template-columns:1fr 1fr;gap:10px;padding:14px}.sp-word-filters label:first-child{grid-column:1/-1}.sp-document>.sp-document-header{flex-wrap:wrap;min-height:62px;padding:8px}.sp-document-title{flex:1;flex-basis:auto}.sp-document-title strong{max-width:35vw}.sp-document-header [data-sp-count]{order:3}.sp-document-header [data-sp-status]{flex-basis:auto;order:4;max-width:55vw;margin-left:auto}.sp-document .sp-paper-scroll{padding:10px}.sp-document .sp-paper{padding:28px 20px}.sp-settings{top:90px;max-height:calc(100% - 105px)}#scratchpadModule .scratchpad-toolbar{grid-template-columns:1fr}.scratchpad-wide-page #scratchpadDetailContent{padding:25px;min-height:700px}}
@media(max-width:700px){html.xri-desktop-window-controls-overlay .sp-word-nav{padding-top:46px}}
@media print{.sp-word-shell,.sp-word-main,.sp-word-editor-host,.sp-document,.sp-document-body{position:static!important;display:block!important;overflow:visible!important;height:auto!important;min-height:0!important}.sp-document> :not(.sp-document-body){display:none!important}.sp-word-nav{display:none!important}.sp-word-open{overflow:visible!important}}
.sp-word-nav [data-word-import-error]{font-size:12px;line-height:1.6;color:#f6dfe9;white-space:normal;max-width:260px;overflow-wrap:anywhere}
