/* Single grey application shell. Printable sheets keep their document styles. */
body[data-theme=grey]{--navy:#303638;--gold:#a18b59;--line:#c6cacc;--muted:#5c6468;--surface:#d3d5d6;background:#d3d5d6;color:#252b2e;padding-left:78px;font-family:Arial,sans-serif}
body[data-theme=grey] .app-header{background:#d3d5d6;border:0;min-height:76px;padding:12px 24px;gap:14px}
.app-rail{position:fixed;inset:12px auto 12px 12px;width:56px;background:#2c3032;border-radius:18px;display:flex;flex-direction:column;align-items:center;padding:18px 5px;gap:12px;box-shadow:0 6px 18px #0002;z-index:10}
.app-rail button{width:44px;height:46px;min-height:44px;background:transparent;color:#eceeef;border:0;border-radius:10px;padding:11px}.app-rail button:hover,.app-rail button:focus-visible{background:#4b5154}.app-rail svg{width:24px;height:24px}.app-rail #staffSettings{margin-top:auto;position:relative}.rail-monogram{font-size:15px;letter-spacing:2px;color:#d4bf86;margin-bottom:20px}.update-available:after{content:'';position:absolute;right:5px;top:5px;width:9px;height:9px;background:#d5b865;border-radius:50%;border:2px solid #303638}
body[data-theme=grey] .brand-title{color:#363b3d;font-size:17px;letter-spacing:1px}body[data-theme=grey] .badge{background:#e2e4e5;color:#50585c;border-color:#c6cacc}body[data-theme=grey] .header-settings:not(.settings-icon){background:#e5e7e8;color:#303638;border:1px solid #bdc3c6;border-radius:9px}
body[data-theme=grey] .workspace-toolbar{background:transparent;border:0;padding:8px 24px 18px;gap:10px 20px}body[data-theme=grey] .document-context strong{color:#282e31;font-size:25px}body[data-theme=grey] .main-actions button{background:#e6e8e9;color:#303638;border-color:#b9bfc2;border-radius:8px;min-height:44px}body[data-theme=grey] .main-actions #issue{background:#343c40;color:white;border-color:#343c40}body[data-theme=grey] .main-actions #saveHold{background:#c5cdd0;color:#262d31}body[data-theme=grey] #status{color:#495257}
body[data-theme=grey] main{padding:0 16px 16px 8px;gap:14px;grid-template-columns:minmax(390px,.95fr) minmax(400px,1.05fr);background:transparent}
body[data-theme=grey] .editor-pane{background:#e5e7e8;padding:20px;border:1px solid #bec4c7;border-radius:16px;box-shadow:inset 0 1px 0 #ffffff80;scrollbar-color:#aeb4b7 transparent}body[data-theme=grey] .preview-pane{background:#c9ced1;border:1px solid #b9c0c4;border-radius:16px;padding:16px}body[data-theme=grey] .editor-tabs{margin:0 0 22px;padding:4px;background:#d3d7d9;border-color:#c0c6c9;top:-20px;border-radius:9px}body[data-theme=grey] .editor-tabs button{color:#4b5459}body[data-theme=grey] .editor-tabs button[aria-selected=true]{background:#f0f1f2;color:#252b2f;border-bottom:2px solid #737e85}
body[data-theme=grey] .editor-panel label,body[data-theme=grey] #account label{color:#424b50}body[data-theme=grey] .editor-panel input,body[data-theme=grey] .editor-panel textarea,body[data-theme=grey] .editor-panel select,body[data-theme=grey] #account input,body[data-theme=grey] #account select{background:#f4f5f5;color:#242c31;border:1px solid #b9c1c6;box-shadow:none}body[data-theme=grey] .editor-panel h2{color:#30383d}body[data-theme=grey] .editor-panel details,body[data-theme=grey] .saved-item-picker{background:#dce0e2;border-color:#c0c6ca}body[data-theme=grey] .secondary,body[data-theme=grey] .editor-panel .secondary{background:#e9eced;color:#313b40;border:1px solid #bcc4c8}body[data-theme=grey] button{border-radius:7px}body[data-theme=grey] .section-navigation button{background:#414a4f}body[data-theme=grey] .section-navigation .secondary{background:#e9eced;color:#354046}body[data-theme=grey] .editor-panel #add{background:#dce2e5;color:#343e44;border-color:#9faeb6}
body[data-theme=grey] .preview-tools{background:#c9ced1;top:-16px;align-items:center}body[data-theme=grey] .preview-tools strong{color:#313a40}body[data-theme=grey] .preview-tools select{background:#eff1f2;color:#303940;border-color:#aebbc2}body[data-theme=grey] .preview-controls button{background:#e8ecee;color:#303940;border-color:#adb8be}body[data-theme=grey] .preview-tools .actions button{background:#3c474e;color:white;min-height:40px;font-size:12px;padding:10px 14px}body[data-theme=grey] .paperwrap{background:#bcc4c9}body[data-theme=grey] .preview-tools{flex-wrap:wrap}body[data-theme=grey] #pdfPanel{background:#e5e9eb}body[data-theme=grey] #pdfPanel .previewbar{background:transparent}body[data-theme=grey] .historyentry{background:#eef0f1;border:1px solid #bcc4c9;color:#303940}
#settingsDialog{width:min(620px,calc(100vw - 32px));max-height:88dvh;padding:24px;background:#e4e7e9;color:#293137;border:1px solid #aab4ba;border-radius:18px;box-shadow:0 25px 80px #0004;overflow:auto}#settingsDialog::backdrop{background:#20272c70;backdrop-filter:blur(3px)}.settings-heading{display:flex;align-items:start;justify-content:space-between;gap:12px;border-bottom:1px solid #bfc8cd;padding-bottom:16px}.settings-heading h2{margin:0;font-size:24px}.settings-heading p{font-size:13px;color:#59656c;margin-bottom:0}.settings-heading button{background:#d0d7db;color:#303b42;font-size:25px;width:44px;height:44px;padding:0}#settingsDialog #account{margin:0;padding:18px 0;background:transparent;border:0}#settingsDialog #account>summary{display:none}#settingsDialog #account button,#settingsDialog #updateSettings button{background:#3c484f;color:white;min-height:44px}#settingsDialog #account h2{font-size:18px;border-top:1px solid #c3cbcf;padding-top:20px}#settingsDialog #updateSettings{border-top:1px solid #bcc6cc;padding-top:16px}#updateSettings h3{margin:0}#updateSettings p{font-size:13px;color:#4c5961}.app-update-notice{margin:0 24px 12px;padding:12px 16px;border-radius:8px;background:#ede6d5;color:#49402c;font-size:13px;cursor:pointer}
body[data-theme=grey].preview-focus main{grid-template-columns:1fr}body[data-theme=grey] button:focus-visible{outline:3px solid #758c99;outline-offset:2px}
@media(max-width:1100px){body[data-theme=grey] main{grid-template-columns:minmax(360px,1fr) minmax(320px,1fr)}body[data-theme=grey] .main-actions{width:auto}body[data-theme=grey] .document-context{flex-basis:100%;display:block}.preview-controls{flex-wrap:wrap}}
@media(max-width:850px){body[data-theme=grey]{padding-left:0;padding-bottom:70px}.app-rail{inset:auto 12px 8px 12px;width:auto;height:54px;padding:4px 14px;flex-direction:row;justify-content:space-around;border-radius:14px}.rail-monogram{display:none}.app-rail #staffSettings{margin:0}.app-rail button{height:44px}.app-header .brand-title{font-size:14px}body[data-theme=grey] .app-header{padding:10px 14px;flex-wrap:wrap;min-height:64px;gap:8px}.app-header .badge{font-size:10px;padding:5px 8px}body[data-theme=grey] .workspace-toolbar{padding:4px 14px 10px}body[data-theme=grey] .document-context strong{font-size:21px}body[data-theme=grey] .main-actions{width:100%;display:flex;gap:7px}body[data-theme=grey] .main-actions button{flex:1;font-size:12px;padding:10px 6px}body[data-theme=grey] main{display:block;padding:0 10px 10px;overflow:auto}body[data-theme=grey] .editor-pane,body[data-theme=grey] .preview-pane{height:100%;overflow:auto;padding:16px}body[data-theme=grey] .editor-tabs{top:-16px}.mobile-view{display:flex;width:100%;gap:6px}.mobile-view button{background:#c2cbcf;color:#334047;min-height:40px;flex:1}.mobile-view button[aria-pressed=true]{background:#46535b;color:white}body[data-theme=grey]:not(.mobile-preview):not(.preview-focus) .preview-pane{display:none}body[data-theme=grey].mobile-preview .editor-pane{display:none}body[data-theme=grey].mobile-preview .preview-pane{display:block}.app-update-notice{margin:0 14px 8px}#settingsDialog{padding:18px}}

body[data-theme=grey] .brand-title small,body[data-theme=grey] .document-context span,body[data-theme=grey] .preview-tools label,body[data-theme=grey] .preview-tools small,body[data-theme=grey] .muted,body[data-theme=grey] #stepLabel{color:#58636a}body[data-theme=grey] .main-actions #new{background:#e6e8e9;color:#303638}body[data-theme=grey] .preview-controls .zoom-label{display:none}body[data-theme=grey] #account label:has(input[type=checkbox]){display:flex;align-items:center;gap:10px}body[data-theme=grey] #account input[type=checkbox]{width:20px;min-height:20px}body[data-theme=grey] .history-filters label{color:#424d54}

.search-picker{position:relative;margin-bottom:14px}.picker-results{position:absolute;top:100%;left:0;right:0;z-index:8;max-height:300px;overflow:auto;background:#f2f4f5;border:1px solid #a9b5bc;border-radius:8px;box-shadow:0 8px 24px #0002}.picker-option{display:block;text-align:start;width:100%;border:0;border-bottom:1px solid #d4dadd;border-radius:0!important;padding:12px!important;background:#f2f4f5!important;color:#27343c!important;min-height:48px}.picker-option strong,.picker-option small{display:block;white-space:normal}.picker-option small{font-size:12px;color:#586872;margin-top:4px}.picker-option:hover,.picker-option[aria-selected=true]{background:#dce4e8!important}.picker-results p{padding:12px;font-size:13px;color:#53616a}.search-picker label{margin:0}.picker-option strong{font-size:14px}

#translationSettings{border-top:1px solid #bcc6cc;margin-top:22px;padding-top:18px}#translationSettings p,#translationSettings li{font-size:13px;line-height:1.5;color:#4c5961}#translationSettings input{background:#f4f5f5;color:#242c31;border:1px solid #b9c1c6}#translationSettings button{background:#3c484f;color:white;min-height:44px}.translation-check{display:flex;align-items:center;gap:10px}.translation-check input{width:20px;min-height:20px}


