/* Shared navigation rail: attached to the heading, outside the teal banner. */
.page-heading{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;overflow:visible!important}
.page-heading>.executive-header{background:var(--header-gradient)!important;border-radius:14px 14px 0 0!important;padding:16px 18px!important;min-height:0!important}
.page-heading>.header-nav{display:flex!important;align-items:center!important;gap:8px!important;flex-wrap:wrap!important;background:#f5fafa!important;border:1px solid #c8dddf!important;border-top:0!important;border-radius:0 0 14px 14px!important;padding:10px 18px!important;margin:0!important}
.page-heading>.executive-header:last-child{border-radius:14px!important}
:is(.head-actions,.view-tools,.bulk-bar,.filter-bar,.form-actions,.chat-start){align-items:center;gap:8px}
:is(a.button,button,.secondary,summary){white-space:nowrap;line-height:1.2}
:is(.row-action-menu,.saved-view-menu)>summary{display:inline-flex!important;align-items:center!important;justify-content:center!important;gap:7px!important;min-height:36px!important;box-sizing:border-box;list-style:none!important;margin:0!important;vertical-align:middle}
:is(.row-action-menu,.saved-view-menu)>summary::-webkit-details-marker{display:none}
:is(.row-action-menu,.saved-view-menu)>summary::before{display:none!important;content:none!important}
:is(.row-action-menu,.saved-view-menu)>summary::after{content:'⌄';display:inline-block;line-height:1}
.view-tools{display:flex;align-items:center!important;flex-wrap:wrap}.view-tools>:is(a,details){margin:0!important}.view-tools>:is(a,details>summary){height:36px!important;padding:8px 12px!important}
.filter-bar{display:flex;align-items:end!important;flex-wrap:wrap}.filter-bar label{display:grid;gap:4px;margin:0}.filter-bar :is(button,.button){min-height:36px;margin:0!important}
.bulk-status-help{font-size:12px;flex-basis:100%;color:#315e66;margin:0}.bulk-bar button:disabled{opacity:.5;cursor:not-allowed}
/* Balanced columns pack whole sections vertically before adding a page. */
.paged-editor .wizard-page{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:start;gap:12px}
.paged-editor .wizard-page.step-hidden{display:none!important}
.wizard-column{display:flex;flex-direction:column;gap:10px;min-width:0}
.paged-editor .wizard-column>.editor-section{margin:0!important;padding:10px!important;min-width:0;width:100%;box-sizing:border-box}
.paged-editor .wizard-page .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px 12px!important}
.paged-editor .wizard-page .section-head{margin-bottom:8px!important;padding:6px 8px!important;min-height:30px}
.paged-editor .wizard-page :is(input:not([type=checkbox]):not([type=radio]),select){min-height:34px;height:36px}
.paged-editor .wizard-page input[type=file]{height:auto;min-height:38px;padding:4px!important}.paged-editor input[type=file]::file-selector-button{padding:6px 9px;min-height:28px;margin-right:8px}
.paged-editor .wizard-page textarea{min-height:54px;height:54px}.paged-editor .wizard-page .form-field{gap:3px}
.paged-editor>.recovery-banner{margin:4px 0 8px!important;padding:4px 8px!important;font-size:11px}
/* Notes keep the writing surface foremost. */
body:has(#notes-app) .executive-header{padding:10px 16px!important}body:has(#notes-app) .executive-header h1{font-size:23px;margin:0!important}body:has(#notes-app) .executive-header :is(p,small){display:none}
body:has(#notes-app) .header-nav{padding:7px 16px!important}.notes-status{padding:4px 0!important;margin:4px 0!important;font-size:12px}
.notes-workspace{gap:10px!important;grid-template-columns:220px minmax(0,1fr)!important}.notes-writing{padding:12px!important}.notes-index{padding:10px!important}.note-heading{padding:0 0 8px!important;margin:0!important;min-height:0!important}.note-heading h2{font-size:21px!important;margin:3px 0!important}.note-actions{gap:5px!important;margin:8px 0!important}.note-actions button,.note-actions a{min-height:30px!important;padding:6px 9px!important;font-size:12px!important}.note-editor-toolbar{gap:4px!important;padding:6px!important;margin:6px 0 10px!important}.note-editor-toolbar button{min-height:28px!important;padding:5px 8px!important}.note-help{font-size:11px!important;margin:6px 0!important}.note-block-head{padding:3px 8px!important}.note-block [contenteditable]{min-height:130px!important}
.note-overflow{position:relative}.note-overflow>summary{padding:7px 10px;cursor:pointer}.note-overflow>div{position:absolute;right:0;top:100%;z-index:30;background:#f5fafa;padding:8px;border:1px solid #c6dddd;border-radius:10px;box-shadow:0 6px 24px #163f4730;display:grid;gap:5px;min-width:165px}
@media(max-width:899px){.notes-workspace{grid-template-columns:1fr!important}.paged-editor .wizard-page{grid-template-columns:1fr!important}}
@media(max-width:600px){.paged-editor .wizard-page .form-grid{grid-template-columns:1fr!important}}
.chat-dock{width:min(390px,calc(100vw - 24px))!important;height:min(590px,calc(100dvh - 110px));max-height:calc(100dvh - 110px)!important;bottom:88px!important;right:24px!important;padding:0!important;overflow:hidden!important;flex-direction:column;background:#f7fbfb!important}.chat-dock.open{display:flex!important}.chat-dock-head{padding:12px 14px!important;min-height:54px;flex:none}.chat-dock-head small{display:none}.chat-dock-head strong{font-size:15px}#chat-dock-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:hidden}.chat-all{padding:7px 12px!important;font-size:12px;border-top:1px solid #cee0e1;flex:none;text-align:center}.dock-start{display:flex;gap:6px;padding:10px}.dock-start select{min-width:0;flex:1}.dock-start :is(select,button){min-height:34px;padding:6px}.dock-conversations{overflow:auto;display:flex;flex-direction:column;gap:6px;padding:0 10px 10px}.dock-conversations button{text-align:left;white-space:normal;padding:10px}.dock-thread-head{display:flex;align-items:center;gap:8px;padding:8px 10px;border-bottom:1px solid #d2e3e4}.dock-thread-head strong{font-size:13px}.dock-thread-head button{min-width:28px;padding:4px 9px;min-height:28px}.chat-dock .messages{flex:1;min-height:0!important;height:auto!important;overflow:auto;padding:12px;display:flex;flex-direction:column;gap:9px;background:#fff}.chat-dock .message{max-width:87%;width:fit-content;padding:9px 11px;border-radius:12px 12px 12px 2px;background:#edf3f5;color:#164854;margin:0;align-self:flex-start}.chat-dock .message.mine{align-self:flex-end;background:#d9efed;border-radius:12px 12px 2px 12px}.chat-dock .message strong{font-size:11px}.chat-dock .message p{font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;margin:4px 0}.chat-dock .message small{font-size:10px;opacity:.8}.dock-composer{display:grid;grid-template-columns:minmax(0,1fr) 30px auto;gap:6px;padding:9px;border-top:1px solid #cee0e1}.dock-composer textarea{min-height:48px;height:48px;resize:none;padding:7px;border:1px solid #bdd3d7;border-radius:8px}.dock-composer button{padding:6px 10px;min-height:34px;align-self:center}.dock-attach{cursor:pointer;align-self:center;font-size:22px;text-align:center}.dock-file{grid-column:1/-1;overflow-wrap:anywhere}.dock-file:empty,.dock-status:empty{display:none}.dock-status{padding:7px 10px;font-size:12px;margin:0}.message-head{padding:10px 12px!important;min-height:0!important}.message-head .eyebrow{display:none}.message-head h2{font-size:17px!important;margin:0!important}.message-composer{align-items:center!important}.message-composer .attachment-button{border-radius:9px!important;display:grid;place-items:center;width:36px;height:36px;padding:0!important}.message-composer .attachment-button input{display:none}.chat-send-error{grid-column:1/-1;font-size:12px}
.sticky-tray{position:fixed;right:26px;bottom:170px;z-index:95}.sticky-toggle{width:42px;height:42px;border-radius:50%!important;font-size:21px;padding:0!important}.sticky-menu{position:absolute;right:50px;bottom:0;padding:10px;background:#f6fafa;border:1px solid #bed7d8;border-radius:10px;box-shadow:0 4px 20px #16485425;width:190px}.sticky-menu:not([hidden]){display:grid;gap:7px}.sticky-menu button{font-size:12px;padding:8px}.desktop-sticky{position:fixed;width:280px;max-width:calc(100vw - 16px);height:260px;max-height:calc(100dvh - 16px);z-index:70;display:flex;flex-direction:column;border:1px solid #9fc6c7;border-radius:12px;background:#eff8f5;box-shadow:0 8px 28px #12343b30;overflow:hidden}.desktop-sticky[hidden]{display:none}.sticky-handle{display:flex;align-items:center;justify-content:space-between;gap:6px;background:var(--header-gradient);color:#fff;padding:7px 10px;cursor:grab;touch-action:none;min-height:36px}.sticky-handle strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sticky-handle button{padding:2px 7px!important;min-height:24px;font-size:17px}.sticky-content{flex:1;min-height:0;overflow:auto;padding:10px;font-size:14px}.sticky-block{outline:none;min-height:50px;overflow-wrap:anywhere}.sticky-block:empty:before{content:'Write your note…';color:#678389;pointer-events:none}.desktop-sticky footer{display:flex;align-items:center;gap:6px;padding:6px 9px;border-top:1px solid #c4dcdc}.desktop-sticky footer small{flex:1;font-size:10px}.desktop-sticky footer button{padding:4px 7px!important;min-height:25px;font-size:11px}.desktop-sticky footer a{font-size:11px}.sticky-conflict{overflow:auto;max-height:160px;background:#fff8df;padding:8px;font-size:12px}.sticky-conflict button{padding:5px;font-size:11px}.sticky-conflict>div{max-height:60px;overflow:auto}.workflow-dialog~.sticky-tray{display:none}body:has(dialog[open]) :is(.sticky-tray,.desktop-sticky){visibility:hidden}

body:has(.chat-dock.open) .sticky-tray{visibility:hidden}.note-overflow>summary{list-style:none!important;display:inline-flex!important;align-items:center;gap:6px}.note-overflow>summary::-webkit-details-marker{display:none}.notes-index summary{white-space:normal;overflow-wrap:anywhere}.note-editor-toolbar{font-size:12px!important}.note-editor-toolbar :is(button,select){font-size:12px!important}
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center!important}.toolbar>label{display:flex!important;align-items:center;gap:8px;margin:0!important;white-space:nowrap}.toolbar>label input{margin:0!important}.toolbar>button{margin:0!important;min-height:36px}.bulk-reconcile{display:inline-flex;align-items:center;gap:5px;white-space:nowrap;font-size:12px}
.ats-editor:not(.paged-editor) .ats-form-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr))!important}.ats-editor:not(.paged-editor) .form-actions{background:none!important;border:0!important;padding:8px 0 0!important;margin-top:8px!important;min-height:0!important}
