
#profile-word { --pw-bg:light-dark(#f0f2f5,#121a2a); --pw-paper:light-dark(#fff,#202b3c); --pw-ink:light-dark(#182338,#eef3fb); --pw-muted:light-dark(#59677c,#b9c6d8); --pw-line:light-dark(#d7dee8,#3b4860); --pw-blue:light-dark(#185abd,#163a70); --pw-white:light-dark(#fff,#f2f5ff); --pw-toolbar:light-dark(#fafbfd,#263247); --pw-accent:light-dark(#174c68,#85f4e7); --pw-label:light-dark(#8b4513,#ffbf8a); font-family:'Segoe UI',Arial,sans-serif; background:var(--pw-bg); color:var(--pw-ink); border:1px solid var(--pw-line); border-radius:10px; overflow:hidden; }
#profile-word * { box-sizing:border-box; }
#profile-word [hidden] { display:none; }
#profile-word .pw-titlebar { background:var(--pw-blue); color:var(--pw-white); display:flex; align-items:center; flex-wrap:wrap; gap:14px; padding:13px 22px; }
#profile-word .pw-app { font-size:22px; font-weight:500; }
#profile-word .pw-filename { flex:1; overflow-wrap:anywhere; font-size:14px; }
#profile-word .pw-demo { font-size:12px; }
#profile-word .pw-tabs { padding:12px 24px 0; display:flex; flex-wrap:wrap; gap:24px; background:var(--pw-toolbar); font-size:13px; color:var(--pw-muted); }
#profile-word .pw-tabs span { padding-bottom:9px; }
#profile-word .pw-tabs .pw-current { color:var(--pw-accent); border-bottom:3px solid var(--pw-accent); }
#profile-word .pw-ribbon { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:14px 24px; background:var(--pw-toolbar); border-bottom:1px solid var(--pw-line); }
#profile-word .pw-type { display:flex; align-items:center; flex-wrap:wrap; gap:8px; color:var(--pw-muted); font-size:13px; }
#profile-word .pw-type span { padding:8px 12px; border:1px solid var(--pw-line); border-radius:3px; }
#profile-word .pw-sensitivity { display:grid; gap:5px; font-size:12px; color:var(--pw-muted); }
#profile-word .pw-sensitivity > span { display:flex; align-items:center; gap:6px; }
#profile-word select { font:16px 'Segoe UI',Arial,sans-serif; color:var(--pw-ink); background:var(--pw-paper); padding:9px 34px 9px 12px; border:1px solid var(--pw-accent); border-radius:4px; max-width:100%; min-width:195px; cursor:pointer; }
#profile-word .pw-message { padding:10px 24px; font-size:13px; border-bottom:1px solid var(--pw-line); color:var(--pw-accent); background:var(--pw-paper); display:flex; gap:9px; align-items:center; }
#profile-word .pw-desk { padding:24px clamp(12px,5vw,52px); }
#profile-word .pw-paper { max-width:710px; margin:0 auto; padding:32px clamp(20px,5vw,54px); min-height:410px; background:var(--pw-paper); border:1px solid var(--pw-line); }
#profile-word .pw-paper-label { text-align:right; letter-spacing:.09em; text-transform:uppercase; color:var(--pw-label); font-size:11px; margin-bottom:28px; }
#profile-word .pw-protected-heading { display:flex; align-items:center; gap:8px; font-size:20px; margin:0 0 8px; font-weight:500; }
#profile-word .pw-locked-note { color:var(--pw-muted); font-size:13px; margin:0 0 25px; }
#profile-word .pw-code { font:13px/2 monospace; overflow-wrap:anywhere; margin:0; color:var(--pw-muted); white-space:pre-wrap; user-select:none; }
#profile-word .pw-editor { font-family:Aptos,'Segoe UI',sans-serif; font-size:15px; line-height:1.65; overflow-wrap:anywhere; min-height:295px; }
#profile-word .pw-editor h2 { font-size:28px; line-height:1.2; font-weight:500; color:var(--pw-accent); margin:0 0 8px; }
#profile-word .pw-editor h3 { font-size:16px; font-weight:500; margin:20px 0 4px; }
#profile-word .pw-editor p { margin:0 0 12px; }
#profile-word .pw-statusbar { padding:10px 20px; display:flex; flex-wrap:wrap; justify-content:space-between; gap:8px; font-size:12px; color:var(--pw-muted); border-top:1px solid var(--pw-line); background:var(--pw-toolbar); }
#profile-word .pw-blocks span { display:block; height:13px; background:var(--pw-muted); opacity:.6; margin:17px 0; }
#profile-word .pw-blocks span:nth-child(2n) { width:78%; } #profile-word .pw-blocks span:nth-child(3n) { width:90%; }
#profile-word[data-public="true"] { --pw-label:var(--pw-accent); }
@media(max-width:500px) { #profile-word .pw-type { display:none; } #profile-word .pw-ribbon { padding:12px 18px; } #profile-word .pw-sensitivity {width:100%;} #profile-word .pw-paper {padding:24px 20px;} #profile-word .pw-tabs {gap:18px;} }
@media(prefers-reduced-motion:no-preference) { #profile-word[data-public="true"] .pw-editor {animation:pw-reveal var(--pw-speed,900ms) ease-out;} @keyframes pw-reveal {from{filter:blur(7px);opacity:.15;}to{filter:blur(0);opacity:1;}} }


/* Classic light Word chrome, matching the supplied desktop reference. */
#profile-word { color-scheme:light; --pw-bg:#e5e5e5; --pw-paper:#fff; --pw-ink:#262626; --pw-muted:#616161; --pw-line:#ccc; --pw-blue:#2b579a; --pw-white:#fff; --pw-toolbar:#f3f3f3; --pw-accent:#2b579a; --pw-label:#96531c; border-radius:0; font-size:13px; }
#profile-word .pw-titlebar {padding:9px 14px; gap:18px; min-height:38px;}
#profile-word .pw-app {font-size:15px;}
#profile-word .pw-filename {text-align:center;font-size:12px;}
#profile-word .pw-quick,#profile-word .pw-window {display:flex;gap:17px;align-items:center;}
#profile-word .pw-quick svg,#profile-word .pw-window svg {width:14px;height:14px;}
#profile-word .pw-tabs {background:var(--pw-blue);color:white;padding:0 12px;gap:0;}
#profile-word .pw-tabs span {padding:8px 15px;}
#profile-word .pw-tabs .pw-current {background:var(--pw-toolbar);color:var(--pw-ink);border:0;}
#profile-word .pw-ribbon {padding:6px 10px 3px;gap:0;align-items:stretch;justify-content:flex-start;}
#profile-word .pw-group {padding:3px 12px 0;border-right:1px solid #d0d0d0;display:flex;flex-direction:column;justify-content:space-between;gap:6px;min-height:99px;}
#profile-word .pw-group-caption {color:#666;text-align:center;font-size:11px;margin-top:3px;}
#profile-word .pw-tools {display:flex;gap:9px;align-items:center;min-height:25px;}
#profile-word .pw-tools svg {width:17px;height:17px;}
#profile-word .pw-fontbox {background:white;border:1px solid #b8b8b8;padding:3px 7px;min-width:110px;}
#profile-word .pw-fontsize {background:white;border:1px solid #b8b8b8;padding:3px 7px;}
#profile-word .pw-paste {display:grid;justify-items:center;gap:4px;color:#6c5426;}
#profile-word .pw-paste svg {width:29px;height:29px;}
#profile-word .pw-style-previews {display:flex;gap:3px;}
#profile-word .pw-style-preview {background:white;border:1px solid #d3d3d3;padding:8px 7px;text-align:center;min-width:68px;}
#profile-word .pw-style-preview:first-child {border:2px solid #aabbd2;padding:7px 6px;}
#profile-word .pw-style-preview span {display:block;margin-top:9px;font-size:11px;}
#profile-word .pw-style-preview:last-child {color:#2b579a;}
#profile-word .pw-sensitivity {align-content:start;justify-items:center;gap:3px;max-width:180px;color:var(--pw-ink);}
#profile-word .pw-sensitivity > svg {height:29px;width:29px;color:#97631c;}
#profile-word select {min-width:0;width:165px;font-size:12px;border:1px solid transparent;background:transparent;padding:4px;}
#profile-word select:hover {background:#e1ebf7;border-color:#a9bfdc;}
#profile-word .pw-message {background:#fff3cf;color:#514321;font-size:12px;padding:7px 17px;}
#profile-word .pw-message svg {width:15px;height:15px;flex-shrink:0;}
#profile-word[data-public="true"] .pw-message {background:#edf3fa;color:#2b579a;}
#profile-word .pw-desk {padding:0 28px 32px 40px;position:relative;}
#profile-word .pw-ruler {height:24px;max-width:760px;margin:8px auto 15px;background:repeating-linear-gradient(90deg,transparent 0 8px,#969696 8px 9px,transparent 9px 16px) bottom/100% 5px no-repeat,#f7f7f7;border:1px solid #d0d0d0;display:flex;justify-content:space-around;align-items:flex-start;font-size:10px;color:#555;}
#profile-word .pw-vruler {position:absolute;left:9px;top:47px;bottom:32px;width:16px;background:repeating-linear-gradient(0deg,transparent 0 8px,#999 8px 9px,transparent 9px 16px) right/6px 100% no-repeat,#f7f7f7;border:1px solid #d0d0d0;}
#profile-word .pw-paper {max-width:760px;min-height:670px;padding:45px clamp(24px,7vw,88px) 70px;box-shadow:0 1px 5px #0002;}
#profile-word .pw-paper-label {margin-bottom:45px;}
#profile-word .pw-protected-heading {font-family:Calibri,Arial,sans-serif;font-size:22px;}
#profile-word .pw-code {line-height:2.1;color:#7a7a7a;font-size:14px;}
#profile-word .pw-editor {font-family:Calibri,Arial,sans-serif;font-size:16px;}
#profile-word .pw-editor h2 {font-family:Calibri,Arial,sans-serif;color:#2b579a;font-size:28px;}
#profile-word .pw-statusbar {padding:5px 12px;font-size:11px;gap:10px;}
#profile-word .pw-bottom-right {display:flex;gap:12px;align-items:center;}
#profile-word .pw-bottom-right svg {width:15px;height:15px;}
#profile-word .pw-zoom {width:70px;height:2px;background:#777;position:relative;}
#profile-word .pw-zoom:after {content:'';position:absolute;left:45%;top:-4px;width:4px;height:10px;background:#777;}
#profile-word .pw-title-document {flex:1;display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;min-width:0;}
#profile-word .pw-title-document .pw-filename {flex:0 1 auto;}
#profile-word .pw-titlebar .pw-sensitivity {display:flex;align-items:center;flex-wrap:wrap;justify-content:center;max-width:100%;width:auto;gap:7px;color:white;}
#profile-word .pw-titlebar .pw-sensitivity > svg {width:17px;height:17px;color:white;}
#profile-word .pw-titlebar select {width:165px;background:#23497f;color:white;border:1px solid #7294c3;border-radius:3px;}
#profile-word .pw-titlebar select:hover {background:#1d406f;}
#profile-word .pw-titlebar option {background:white;color:#262626;}
@media(max-width:850px) {#profile-word .pw-styles-group {display:none;} #profile-word .pw-tabs span {padding:8px 10px;} }
@media(max-width:600px) {#profile-word .pw-paragraph-group,#profile-word .pw-clipboard-group,#profile-word .pw-extra-tab,#profile-word .pw-window {display:none;} #profile-word .pw-group {padding:3px 7px;min-height:96px;} #profile-word .pw-ribbon {padding:5px;gap:4px;} #profile-word .pw-fontbox {min-width:85px;} #profile-word .pw-tools {gap:6px;} #profile-word select {width:145px;} #profile-word .pw-desk {padding:0 12px 20px 26px;} #profile-word .pw-vruler {left:5px;width:12px;} #profile-word .pw-paper {padding:27px 22px;min-height:560px;} #profile-word .pw-quick {display:none;} #profile-word .pw-tabs {padding:0;} #profile-word .pw-tabs span {padding:9px;} #profile-word .pw-bottom-right {display:none;} }
@media(pointer:coarse) {#profile-word select {min-height:44px;font-size:16px;} }

#profile-word .word-icon {display:inline-block; font-size:17px; line-height:1;}
#profile-word h2,#profile-word h3 {text-transform:none;letter-spacing:normal;}
#profile-word .pw-editor p {color:var(--pw-ink);}
#profile-word .pw-code {background:transparent;padding:0;border:0;border-radius:0;}
#profile-word .pw-editor h3 {font-family:Calibri,Arial,sans-serif;}
#profile-word .pw-paper [contenteditable] {outline-offset:8px;}
html:not(.motion-enabled) #profile-word .pw-editor {animation:none;}
