/* LexiDrill's host layout only. EdenText owns all document formatting and page geometry. */
:root {color-scheme: light}
.site-header {gap:20px}
.header-focus {white-space:nowrap}
body.is-note .main {min-height:0}
body.is-note #note-view {min-height:0;flex:1}
.resource-strip {position:relative;z-index:2}
.resource-actions {display:flex;align-items:center;gap:7px;margin-left:auto;flex-wrap:wrap}
.resource-actions .button {padding:7px 10px;font-size:11px}
.main-editor-status{height:39px;min-height:39px;padding:0 21px}
.editor-workspace{display:grid;grid-template-columns:minmax(0,1fr);min-width:0;align-items:stretch;min-height:510px;height:max(530px, calc(100dvh - 294px));background:#eaecf3;flex:1}
.editor-workspace.pdf-open{grid-template-columns:minmax(340px, 1fr) minmax(320px, 42%)}
.editor-container{position:relative;min-width:0!important;height:100%!important;min-height:0!important;overflow:hidden!important;background:#edf0f7}
.editor-container>iframe{width:100%!important;height:100%!important;min-height:0!important;border:0!important;display:block}
.editor-container.busy-saving::after{content:'Saving Word document…';pointer-events:none;inset:auto 14px 14px auto;padding:8px 12px;border-radius:8px;background:#eeedff;color:#3e35a6;box-shadow:0 2px 10px #0001;font-size:12px;z-index:10}
.pdf-panel{min-width:0;min-height:0;border-left:1px solid #d9ddec;background:#fff;display:flex;flex-direction:column}
.pdf-panel-head{padding:11px 13px 8px;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e8e9f2}
.pdf-panel-title{display:flex;flex-direction:column;gap:2px}.pdf-panel-title small{letter-spacing:1px;font-weight:800;font-size:9px;color:#868ca2}.pdf-panel-title strong{font-size:13px;color:#262b49}
.pdf-panel-head .icon-button{font-size:18px;line-height:20px;padding:3px 10px}
.pdf-source-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 12px;border-bottom:1px solid #ebedf5}
.pdf-source-controls label{font-size:10px;font-weight:750;color:#7b8199}
.pdf-source-controls select{flex:1;min-width:135px;border:1px solid #dfe2ee;border-radius:7px;padding:8px;background:#fff;color:#363d62;font-size:12px}
.pdf-open-tab{padding:7px 9px;border-radius:7px;background:#f1efff;color:#5146bd;font-size:11px;font-weight:700}
.pdf-frame{width:100%;flex:1;min-height:0;border:0;background:#e8ebf2}
.focus-toolbar{position:fixed;top:0;left:0;right:0;height:48px;display:flex;align-items:center;justify-content:flex-end;gap:10px;padding:5px 14px;background:#fff;border-bottom:1px solid #e4e6ef;z-index:150;box-shadow:0 2px 8px #00000014}
.focus-toolbar #focus-document{margin-right:auto;font-size:12px;font-weight:700;color:#555d77;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body.focus-mode {overflow:hidden}
body.focus-mode .site-header,body.focus-mode .sidebar,body.focus-mode .sidebar-scrim,body.focus-mode .section-top,body.focus-mode .resource-strip,body.focus-mode .editor-status,body.focus-mode .footer{display:none!important}
body.focus-mode .shell{height:100dvh;min-height:0}
body.focus-mode .layout{display:block;flex:1;height:100dvh;min-height:0}
body.focus-mode .main{height:100dvh;min-height:0}
body.focus-mode .note-view{height:100dvh;min-height:0}
body.focus-mode .editor-workspace{display:grid;grid-template-columns:minmax(0,1fr)!important;margin-top:48px;height:calc(100dvh - 48px);min-height:0}
body.focus-mode .pdf-panel{display:none!important}
body.focus-mode .editor-container{height:100%}
body.focus-mode .focus-toolbar{display:flex!important}
@media(max-width:1180px){.site-header{gap:8px}.header-link{padding:9px 7px}.header-focus{display:none}.editor-workspace.pdf-open{grid-template-columns:minmax(300px,1fr) minmax(300px,43%)}.resource-actions{margin-left:0}}
@media(max-width:950px){.editor-workspace.pdf-open{display:flex;flex-direction:column;height:auto;min-height:0}.editor-workspace.pdf-open .editor-container{flex:none;height:65dvh!important;min-height:430px!important}.editor-workspace.pdf-open .pdf-panel{flex:none;height:65dvh;min-height:430px;border-left:0;border-top:1px solid #d9ddec}.editor-workspace:not(.pdf-open){height:max(540px,calc(100dvh - 274px))}.header-focus{display:none}.resource-actions .button{white-space:normal}body.focus-mode .editor-workspace{height:calc(100dvh - 48px)!important}body.focus-mode .editor-container{height:100%!important;min-height:0!important}}
@media(max-width:760px){.editor-workspace:not(.pdf-open){height:max(490px,calc(100dvh - 250px))}.main-editor-status{padding:0 12px;font-size:10px}.main-editor-status #editor-detail{display:none}.editor-workspace.pdf-open .editor-container{height:62dvh!important;min-height:380px!important}.resource-actions{width:100%}.resource-actions .button{flex:1}.focus-toolbar{height:44px;padding:5px 8px}.focus-toolbar .button{padding:6px 10px;font-size:11px}body.focus-mode .editor-workspace{margin-top:44px;height:calc(100dvh - 44px)!important}}
@media(prefers-reduced-motion:reduce){.button{transition:none}}
