@media(max-width:800px){
body:has(.fc-notes-workspace) .main>.content{min-width:0;overflow-y:auto!important;padding:12px!important}
#view:has(.fc-notes-workspace){height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;display:block!important}
#view .fc-notes-workspace.workspace{display:flex!important;flex-direction:column!important;gap:10px!important;height:auto!important;min-height:0!important;overflow:visible!important;padding:0!important}
#view .fc-notes-workspace .notes-pane.card{height:auto!important;min-height:180px!important;max-height:48dvh!important;min-width:0;width:100%;overflow-y:auto!important;box-sizing:border-box}
#view .fc-notes-workspace .notes-pane.notes-right{max-height:68dvh!important}
#view .fc-notes-workspace .notes-title-row>label,#view .fc-notes-workspace .notes-meta-row,#view .fc-notes-workspace .notes-meta-row>label{grid-template-columns:minmax(0,1fr)!important;gap:7px!important}
#view .fc-notes-workspace input,#view .fc-notes-workspace select,#view .fc-notes-workspace textarea{min-width:0;max-width:100%;box-sizing:border-box}
#view .fc-notes-workspace .notes-entry{min-height:44px;touch-action:manipulation}
}
@media(max-width:800px){
#view .fc-notes-workspace[data-mobile-stage="list"] .notes-right,#view .fc-notes-workspace[data-mobile-stage="detail"] .notes-pane:not(.notes-right){display:none!important}
#view .fc-notes-workspace.workspace{height:calc(100dvh - 190px)!important;min-height:260px!important;overflow:hidden!important}
#view .fc-notes-workspace .notes-pane.card{height:100%!important;max-height:none!important;min-height:0!important;overflow-y:auto!important}
#view .fc-notes-workspace .notes-pane.notes-right{max-height:none!important}
#view .fc-mobile-notes-back{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:6px 11px;margin:0 0 8px;border:1px solid #d8e3f1;border-radius:8px;background:#fff;color:#254369;font:inherit;font-size:13px;cursor:pointer}
}
@media(min-width:801px){#view .fc-mobile-notes-back{display:none!important}}
/* Notes: lock the outer screen; only list/editor panel scrolls */
@media(max-width:800px){
body:has(#view .fc-notes-workspace) .main>.content{display:flex!important;flex-direction:column!important;overflow:hidden!important;min-height:0!important;height:calc(100dvh - 62px)!important;box-sizing:border-box}
body:has(#view .fc-notes-workspace) #view{display:flex!important;flex-direction:column!important;flex:1 1 0!important;min-height:0!important;height:auto!important;max-height:none!important;overflow:hidden!important}
#view:has(.fc-notes-workspace) .module-toolbar{flex:0 0 auto!important;min-height:0}
#view .fc-notes-workspace.workspace{flex:1 1 0!important;height:auto!important;min-height:0!important;overflow:hidden!important}
#view .fc-notes-workspace .notes-pane.card{flex:1 1 0!important;height:100%!important;min-height:0!important;max-height:none!important;overflow-y:auto!important;overscroll-behavior:contain}
#view .fc-mobile-notes-back{flex:0 0 auto}
#view .fc-mobile-notes-menu{position:relative;flex:0 0 auto}
#view .fc-mobile-notes-menu-toggle{min-height:40px;border:1px solid #d8e3f1;border-radius:9px;background:#fff;color:#254369;padding:7px 12px;font:inherit;font-size:13px}
#view .fc-mobile-notes-menu-items{position:absolute;top:calc(100% + 4px);left:0;min-width:190px;display:flex;flex-direction:column;gap:3px;padding:6px;border:1px solid #d8e3f1;border-radius:10px;background:white;box-shadow:0 8px 24px #172d4722;z-index:50}
#view .fc-mobile-notes-menu-items[hidden]{display:none!important}
#view .fc-mobile-notes-menu-items .module-action{width:100%;text-align:left;white-space:nowrap;border:0;background:white;padding:10px;border-radius:7px}
#view .fc-mobile-notes-menu-items .module-action:hover{background:#eaf1ff}
}

@media(max-width:800px){
#view:has(.fc-notes-workspace) .module-toolbar{display:flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;flex-wrap:nowrap!important}
#view:has(.fc-notes-workspace) .module-toolbar .module-global-search{display:none!important}
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-menu{margin-right:auto;min-width:0}
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-back{margin:0!important;white-space:nowrap;min-height:40px}
#view:has(.fc-notes-workspace) .module-toolbar>[data-module=home]{white-space:nowrap;min-height:40px}
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-back[hidden]{display:none!important}
}
@media(max-width:800px){
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-menu{margin-right:0!important}
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-back{margin-left:auto!important;margin-right:0!important}
#view:has(.fc-notes-workspace) .module-toolbar .fc-mobile-notes-back[hidden]+[data-module="home"]{margin-left:auto!important}
}
@media(max-width:800px){
#view:has(.fc-notes-workspace) .module-toolbar:has(.fc-mobile-notes-back:not([hidden]))>[data-module="home"]{margin-left:0!important}
#view:has(.fc-notes-workspace) .module-toolbar:has(.fc-mobile-notes-back:not([hidden]))>.fc-mobile-notes-back{margin-left:auto!important}
}
