/* Monteio Workspace v6.9 — wider portal pages and private notepads */
:root{--mw69-wide:min(1560px,calc(100vw - 310px));}
.workspace-body .view-container{width:100%!important;max-width:none!important;padding-left:clamp(18px,2.7vw,54px)!important;padding-right:clamp(18px,2.7vw,54px)!important}
.workspace-body .view-container>section,.workspace-body .view-container>.page-heading,.workspace-body .view-container>.metric-grid,.workspace-body .view-container>.staff-dashboard-grid,.workspace-body .view-container>.client-dashboard-section,.workspace-body .view-container>.premium-client-section{max-width:none!important;width:100%!important}
.workspace-body .modal-backdrop,.workspace-body .strategy-viewer-backdrop,.workspace-body .media-lightbox-wrap,.workspace-body .mw68-book-backdrop,.workspace-body .mw68-history-backdrop,.workspace-body .mw68-version-preview-backdrop{padding:clamp(10px,1.5vw,24px)!important}
.workspace-body .modal-card{width:min(1080px,calc(100vw - 48px))!important;max-width:1080px!important;max-height:94vh!important}
.workspace-body .modal-card.content-modal,.workspace-body .strategy-editor-modal,.workspace-body .report-editor-modal{width:min(1320px,calc(100vw - 48px))!important;max-width:1320px!important}
.workspace-body :is(.strategy-viewer,.report-viewer,.production-job-view,.partner-job-view,.media-lightbox-card){width:min(1540px,calc(100vw - 42px))!important;max-width:1540px!important;max-height:95vh!important}
.workspace-body .strategy-viewer iframe,.workspace-body .report-viewer iframe{min-height:76vh!important}
.mw68-book{width:min(1560px,calc(100vw - 30px))!important;height:min(96vh,1100px)!important}
.mw68-book-page{width:min(1180px,100%)!important}
.mw68-history,.mw68-version-preview{width:min(1080px,calc(100vw - 42px))!important;max-width:1080px!important}

/* Private account notepad */
.mw69-notes-shell{display:grid;grid-template-columns:minmax(250px,320px) minmax(0,1fr);gap:18px;min-height:calc(100vh - 190px);width:100%}
.mw69-notes-sidebar,.mw69-note-editor{background:linear-gradient(145deg,rgba(255,255,255,.94),rgba(228,238,249,.82));border:1px solid rgba(49,95,145,.15);border-radius:24px;box-shadow:0 18px 48px rgba(0,29,59,.09);overflow:hidden;backdrop-filter:blur(18px)}
.mw69-notes-sidebar{padding:14px;display:flex;flex-direction:column;gap:12px}
.mw69-notes-private{display:flex;gap:11px;align-items:center;padding:13px;border-radius:16px;background:linear-gradient(135deg,#001d3b,#315f91);color:#fff}.mw69-notes-private>span{width:34px;height:34px;border-radius:11px;background:rgba(255,255,255,.14);display:grid;place-items:center}.mw69-notes-private strong,.mw69-notes-private small{display:block;color:#fff!important}.mw69-notes-private small{opacity:.74;margin-top:2px}
.mw69-note-list{display:grid;gap:7px;overflow:auto;padding-right:2px}.mw69-note-list-item{width:100%;display:grid;grid-template-columns:25px minmax(0,1fr);gap:8px;text-align:left;padding:12px;border:1px solid transparent;border-radius:15px;background:rgba(255,255,255,.55);color:#001d3b;transition:.22s ease}.mw69-note-list-item:hover{transform:translateX(2px);background:#fff;border-color:rgba(49,95,145,.16)}.mw69-note-list-item.active{background:linear-gradient(135deg,rgba(140,168,213,.33),#fff);border-color:rgba(49,95,145,.24);box-shadow:0 9px 24px rgba(0,29,59,.08)}.mw69-note-list-item>span{color:#315f91;font-size:14px}.mw69-note-list-item strong,.mw69-note-list-item p,.mw69-note-list-item small{display:block;margin:0;color:#001d3b!important}.mw69-note-list-item strong{font-size:12px}.mw69-note-list-item p{font-size:10px!important;line-height:1.35!important;margin-top:4px;color:#526d89!important}.mw69-note-list-item small{font-size:9px!important;margin-top:5px;color:#7690aa!important}
.mw69-notes-empty,.mw69-note-welcome{display:grid;place-items:center;text-align:center;padding:32px 22px;color:#315f91}.mw69-notes-empty span,.mw69-note-welcome>span{width:54px;height:54px;display:grid;place-items:center;border-radius:17px;background:#dce7f6;color:#001d3b;font-size:23px;margin-bottom:11px}.mw69-notes-empty p,.mw69-note-welcome p{max-width:480px;color:#647b94!important}
.mw69-note-editor{display:grid;grid-template-rows:auto auto minmax(0,1fr) auto;min-width:0}.mw69-note-head{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 18px;background:linear-gradient(135deg,#001d3b,#315f91);border-bottom:1px solid rgba(255,255,255,.18)}.mw69-note-head input{flex:1;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;color:#fff!important;font-size:19px!important;font-weight:620!important;padding:7px 3px!important}.mw69-note-head input::placeholder{color:rgba(255,255,255,.65)}.mw69-note-head>div{display:flex;gap:7px}.mw69-note-head .soft-btn{background:rgba(255,255,255,.14)!important;color:#fff!important;border-color:rgba(255,255,255,.22)!important}.mw69-note-head .danger-link{color:#fff!important;background:rgba(255,255,255,.10)!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:11px!important;padding:9px 12px!important}
.mw69-note-toolbar{display:flex;align-items:center;gap:5px;overflow-x:auto;padding:9px 12px;background:linear-gradient(180deg,#f9fbfe,#edf4fb);border-bottom:1px solid rgba(49,95,145,.14)}.mw69-note-toolbar>*{flex:0 0 auto}.mw69-note-toolbar>span{width:1px;height:23px;background:rgba(49,95,145,.15)}.mw69-note-toolbar button,.mw69-note-toolbar select{min-height:34px!important;padding:6px 9px!important;border:1px solid rgba(49,95,145,.14)!important;border-radius:9px!important;background:#fff!important;color:#001d3b!important;font-size:10px!important}
.mw69-note-page{overflow:auto;min-height:520px;padding:48px clamp(34px,6vw,92px) 90px;background:#fff;color:#0a2a4b;outline:0;font-size:14px;line-height:1.72}.mw69-note-page:focus{box-shadow:inset 0 0 0 4px rgba(140,168,213,.13)}.mw69-note-page h1,.mw69-note-page h2,.mw69-note-page h3{color:#001d3b!important}.mw69-note-page h2{font-size:28px!important;margin:12px 0 16px}.mw69-note-page h3{font-size:20px!important;margin:24px 0 10px}.mw69-note-page p,.mw69-note-page li{color:#0a2a4b!important}.mw69-note-page a{color:#315f91!important}.mw69-note-page hr{border:0;height:1px;background:linear-gradient(90deg,transparent,#8ca8d5,transparent);margin:28px 0}
.mw69-note-foot{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:12px 16px;background:rgba(247,250,255,.94);border-top:1px solid rgba(49,95,145,.13)}.mw69-note-foot>div:first-child{flex:1}.mw69-note-foot strong,.mw69-note-foot span{display:block;color:#001d3b}.mw69-note-foot span{font-size:9px;color:#647b94;margin-top:2px}.mw69-note-status{display:flex!important;align-items:center;gap:7px!important;padding:7px 10px;border-radius:999px;background:#eef4fb;color:#315f91}.mw69-note-status i{width:7px;height:7px;border-radius:50%;background:#315f91}.mw69-note-status.saving i{animation:mw69pulse .8s infinite}.mw69-note-status.error{background:#fff0f0;color:#8b2930}.mw69-note-status.error i{background:#b94a54}@keyframes mw69pulse{50%{opacity:.35;transform:scale(.75)}}
html[data-theme="dark"] .mw69-notes-sidebar,html[data-theme="dark"] .mw69-note-editor{background:linear-gradient(145deg,rgba(17,60,100,.94),rgba(28,72,115,.84));border-color:rgba(140,168,213,.22)}html[data-theme="dark"] .mw69-note-list-item{background:rgba(140,168,213,.10)}html[data-theme="dark"] .mw69-note-list-item :is(strong,p,small){color:#eef5fc!important}html[data-theme="dark"] .mw69-note-page{background:#10385f;color:#eef5fc}html[data-theme="dark"] .mw69-note-page :is(h1,h2,h3,p,li){color:#eef5fc!important}
@media(max-width:1100px){.mw69-notes-shell{grid-template-columns:240px minmax(0,1fr)}.workspace-body .modal-card{width:min(94vw,1000px)!important}}
@media(max-width:820px){.workspace-body .modal-backdrop,.workspace-body .strategy-viewer-backdrop,.workspace-body .mw68-book-backdrop{padding:0!important}.workspace-body :is(.modal-card,.strategy-viewer,.report-viewer,.mw68-book){width:100%!important;max-width:none!important;height:100vh!important;max-height:none!important;border-radius:0!important}.mw69-notes-shell{grid-template-columns:1fr;min-height:auto}.mw69-notes-sidebar{max-height:290px}.mw69-note-editor{min-height:68vh}.mw69-note-page{padding:34px 22px 70px}.mw69-note-foot>div:first-child{display:none}}
