/* Desktop receives only compact account/refresh context in existing utility space. Layout overrides are touch/narrow-only. */
.desk-mobile-shell[hidden],.desk-desktop-context[hidden]{display:none!important}.desk-mobile-shell{display:none}.desk-desktop-context{font:600 12px/1.4 system-ui,sans-serif;display:flex;flex-wrap:wrap;align-items:center;gap:6px 10px;margin-top:10px}.desk-desktop-context .desk-desktop-section{display:none}.desk-desktop-context .desk-desktop-status{font-size:11px;font-weight:400}.desk-desktop-refresh{font:inherit;padding:6px 9px;cursor:pointer;border:1px solid currentColor;border-radius:8px;background:transparent;color:inherit}.desk-desktop-refresh[hidden]{display:none!important}.desk-table-scroll{max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}.desk-table-scroll:focus-visible{outline:3px solid #bc8b22;outline-offset:3px}.desk-section-menu{width:min(430px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;padding:20px;border:1px solid #cbd8d0;border-radius:16px;background:#fff;color:#183b30;font:16px/1.4 system-ui,sans-serif}.desk-section-menu::backdrop{background:#13241db3}.desk-section-menu>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}.desk-section-menu h2{font-size:20px;margin:0}.desk-section-menu nav{display:grid;gap:8px}.desk-section-menu button{font:600 15px/1.4 system-ui,sans-serif;min-height:44px;padding:10px 13px;border:1px solid #ccd9d1;border-radius:10px;background:#f8faf9;color:#183b30;text-align:left;cursor:pointer}.desk-section-menu [aria-current=page]{background:#173c32;color:white}.desk-section-menu button:focus-visible{outline:3px solid #bc8b22;outline-offset:2px}
@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){
 body[data-desk]{--desk-ink:#173c32;--desk-surface:#f6f9f7;--desk-line:#cddbd2}body[data-desk=trustee],body[data-desk=media]{--desk-ink:#604277;--desk-surface:#f8f5fc;--desk-line:#d9cde4}body[data-desk=treasurer]{--desk-ink:#76520d;--desk-surface:#fcf9f0;--desk-line:#e5d7b9}body[data-desk=pastor]{--desk-ink:#35375d;--desk-surface:#f6f7fc;--desk-line:#d5d9eb}body[data-desk=simple]{--desk-ink:#e6eef8;--desk-surface:#222f40;--desk-line:#52677f}
 .desk-desktop-context{display:none!important}.desk-mobile-shell{display:block;position:sticky;top:0;z-index:30;padding:calc(8px + env(safe-area-inset-top,0px)) 0 8px;margin:0 0 16px;background:var(--desk-surface);color:var(--desk-ink);border-bottom:1px solid var(--desk-line);font:14px/1.4 system-ui,sans-serif;isolation:isolate}.desk-mobile-actions{display:flex;align-items:center;justify-content:space-between;gap:8px}.desk-mobile-actions button,.desk-mobile-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px!important;min-width:44px;padding:9px 13px!important;border:1px solid var(--desk-line);border-radius:10px;font:700 14px/1.3 system-ui,sans-serif!important;background:var(--desk-surface);color:var(--desk-ink);text-decoration:none;white-space:nowrap;cursor:pointer}.desk-mobile-actions button:disabled{opacity:.65;cursor:wait}.desk-context-line{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 12px;padding-top:9px;font-size:13px;font-weight:650}.desk-current-section{font-size:12px;opacity:.8}.desk-refresh-feedback{font-size:12px;margin:4px 0 0;min-height:0}.desk-refresh-feedback:empty{display:none}.desk-refresh-error{color:#ab2e24}body[data-desk=simple] .desk-refresh-error{color:#ffb4ab}
 body[data-desk] button:not(.desk-live-output *),body[data-desk] .button,body[data-desk] .btn,body[data-desk] input:not([type=checkbox]):not([type=radio]):not([type=hidden]),body[data-desk] select{min-height:44px!important}body[data-desk] input,body[data-desk] textarea,body[data-desk] select{font-size:16px!important;max-width:100%;box-sizing:border-box}body[data-desk] button{touch-action:manipulation}body[data-desk] button:focus-visible,body[data-desk] a:focus-visible{outline:3px solid #bc8b22;outline-offset:3px}body[data-desk] summary{min-height:44px;align-content:center}body[data-desk] main,body[data-desk] .pane,body[data-desk] .card{min-width:0}body[data-desk] .page-head,body[data-desk] .page-title{gap:12px;flex-wrap:wrap}body[data-desk] .utility-actions,body[data-desk] .admin-utility-actions{flex-wrap:wrap;gap:8px}body[data-desk] dialog{max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain}body[data-desk] .modal-backdrop{padding:12px;align-items:flex-start;overflow:auto;overscroll-behavior:contain}body[data-desk] .modal{max-width:100%;max-height:calc(100dvh - 24px);overflow:auto}body[data-desk] [data-desk-refresh=true]{display:none!important}
 body[data-desk=secretary] #mobile-nav,body[data-desk=deacon] #mobile-nav,body[data-desk=treasurer] .mobile-fin-nav{display:none!important}body[data-desk=secretary] .admin-main{padding-top:12px}body[data-desk=secretary] .admin-utility-actions #back-admin-home{display:none}body[data-desk=secretary] #admin-trustee-work>summary,body[data-desk=secretary] #admin-deacon-overview>summary{gap:9px}body[data-desk=secretary] #deacon-overview-count{font-size:12px}body[data-desk=secretary] .admin-overview-fold>summary{flex-wrap:wrap}body[data-desk=secretary] .admin-table,body[data-desk=secretary] .member-book-table{max-width:none}
 body[data-desk=treasurer] .grid3{grid-template-columns:repeat(3,minmax(0,1fr))}body[data-desk=treasurer] .metric strong{overflow-wrap:anywhere}body[data-desk=trustee] .trustee-phone-entry{flex-wrap:wrap}body[data-desk=trustee] .trustee-phone-entry #trustee-greeting{display:none}body[data-desk=trustee] .tabs{flex-wrap:wrap}body[data-desk=trustee] .trustee-name-form{max-width:100%}body[data-desk=trustee] .trustee-name-form label{min-width:0}
 body[data-desk=pastor] .topbar{flex-wrap:wrap;gap:12px}body[data-desk=pastor] .header-actions{flex-wrap:wrap}body[data-desk=pastor] #planner-refresh-note{white-space:normal}body[data-desk=pastor] #finance-month{min-width:0}
 body[data-desk=media] .hero .hero-right{flex-wrap:wrap}body[data-desk=media] .date-controls{flex-wrap:wrap}body[data-desk=media] .date-controls label{min-width:0}body[data-desk=media] #keynote-text-dialog .template-editor{grid-template-columns:minmax(0,1fr)}body[data-desk=media] .hero-welcome{display:none!important}
 body[data-desk=simple] #editor>.desk-mobile-shell{flex:0 0 auto;margin:0;padding-left:12px;padding-right:12px}body[data-desk=simple] .panehead{flex-wrap:wrap;gap:8px;min-height:54px!important}body[data-desk=simple] .panehead>span{display:flex;gap:8px;flex-wrap:wrap}body[data-desk=simple] .scripture-table th,body[data-desk=simple] .scripture-table td{white-space:normal}body[data-desk=simple] #goLive{margin-left:14px}body[data-desk=simple] .slidebar{flex-wrap:wrap;gap:8px}body[data-desk=simple] #scheduleDropHint{font-size:0}body[data-desk=simple] #scheduleDropHint::after{content:'Choose a library item, then tap Add to Schedule.';font-size:13px}body[data-desk=simple] .sw-column-handle{min-width:12px}
}
@media(max-width:900px){
 body[data-desk=secretary] .admin-app:not(.home-mode),body[data-desk=treasurer] .app,body[data-desk=deacon] .app{display:block}body[data-desk=secretary] .admin-sidebar,body[data-desk=treasurer] #finance-app>aside,body[data-desk=deacon] #app>aside{display:none!important}body[data-desk=secretary] .admin-main,body[data-desk=treasurer] main,body[data-desk=deacon] main{padding:14px}body[data-desk=treasurer] .grid3,body[data-desk=treasurer] .grid4{grid-template-columns:repeat(2,minmax(0,1fr))}body[data-desk=treasurer] .two-col{grid-template-columns:minmax(0,1fr)}body[data-desk=treasurer] .mobile-top{display:none}body[data-desk=secretary] .page-head h1,body[data-desk=deacon] .page-head h1,body[data-desk=treasurer] .page-head h1{font-size:30px}body[data-desk=secretary] #admin-trustee-work>summary,body[data-desk=secretary] #admin-deacon-overview>summary{font-size:19px}
 body[data-desk=pastor] .sidebar{display:none!important}body[data-desk=pastor] .main{margin:0;padding:14px}body[data-desk=pastor] .planner-app{display:block!important}body[data-desk=pastor] .planner-shell{display:block}body[data-desk=pastor] main{padding:14px;min-width:0}body[data-desk=pastor] .sidebar nav{display:none}
 body[data-desk=simple] html,body[data-desk=simple]{overflow:auto}body[data-desk=simple] #editor{height:auto!important;max-height:none!important;overflow:visible!important}body[data-desk=simple] #editor>.layout{display:flex!important;flex-direction:column;height:auto!important;overflow:visible!important;min-height:0!important}body[data-desk=simple] #editor .layout>.pane{min-height:400px;width:100%!important}body[data-desk=simple] .sw-column-handle{display:none}body[data-desk=simple] .layout>.pane{display:none!important}body[data-desk=simple][data-desk-pane=schedule] .layout>.pane:first-of-type,body[data-desk=simple][data-desk-pane=library] .layout>.pane:first-of-type,body[data-desk=simple][data-desk-pane=preview] .layout>.pane:nth-of-type(2),body[data-desk=simple][data-desk-pane=live] .layout>.pane:nth-of-type(3){display:flex!important}body[data-desk=simple][data-desk-pane=schedule] .layout>.pane:first-of-type>.library{display:none!important}body[data-desk=simple][data-desk-pane=library] .layout>.pane:first-of-type>.panehead,body[data-desk=simple][data-desk-pane=library] #scheduleDropZone{display:none!important}body[data-desk=simple][data-desk-pane=library] .layout>.pane:first-of-type>.library{height:auto!important;max-height:none!important;min-height:60dvh;flex:1;overflow:visible}body[data-desk=simple] #editor .top{padding:12px;gap:12px}body[data-desk=simple] #editor .library{width:100%}body[data-desk=simple] #editor #library{min-width:0}
}
@media(max-width:600px){
 body[data-desk=secretary] .page-head{display:flex;flex-wrap:wrap}body[data-desk=secretary] .page-head>div:first-child{flex-basis:100%}body[data-desk=secretary] .member-book-table,body[data-desk=secretary] .member-book-table tbody{display:block!important;min-width:0!important;width:100%!important}body[data-desk=secretary] .member-book-table thead,body[data-desk=secretary] .member-book-table colgroup{display:none!important}body[data-desk=secretary] .member-book-table tbody tr{display:grid!important;grid-template-columns:minmax(0,1fr) auto;padding:16px;gap:9px 12px;border-bottom:1px solid #e1e8e3}body[data-desk=secretary] .member-book-table tbody td{display:block!important;padding:0!important;border:0!important;width:auto!important}body[data-desk=secretary] .member-book-table tbody td:nth-child(n+3){grid-column:1/-1}body[data-desk=secretary] .member-book-table tbody td:nth-child(n+3)::before{content:attr(data-label) ': ';font-size:12px;font-weight:700;color:#617569}body[data-desk=secretary] #deacon-overview-count{flex-basis:100%;margin-left:20px}body[data-desk=secretary] #admin-trustee-work>summary{flex-wrap:wrap}body[data-desk=secretary] .admin-section-head{flex-wrap:wrap}
 body[data-desk=treasurer] .grid3,body[data-desk=treasurer] .grid4,body[data-desk=treasurer] .detail-grid{grid-template-columns:minmax(0,1fr)}body[data-desk] .page-head h1{overflow-wrap:anywhere}body[data-desk] .desk-mobile-actions{gap:7px}body[data-desk] .desk-mobile-actions a,body[data-desk] .desk-mobile-actions button{padding:9px 11px!important}body[data-desk=trustee] .tp-data-table{min-width:560px}body[data-desk=trustee] .tp-input-card{padding:16px}body[data-desk=media] .date-controls{width:100%}body[data-desk=media] .date-controls label{flex:1 1 130px}body[data-desk=simple] .tabs{flex-wrap:wrap;gap:6px}body[data-desk=simple] #editor .top>.toolbar{width:100%}body[data-desk=simple] #editor .top>.toolbar>button{flex:1 1 auto}body[data-desk=simple] #editor .slidebox{font-size:18px}
}

body[data-desk=trustee] .heading .desk-desktop-context{display:inline-flex;margin:0 0 0 10px;vertical-align:middle}body[data-desk=worship] .top-actions .desk-desktop-context{margin:0}
@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){body[data-desk=worship] .topbar{position:static}body[data-desk=media] .header-subtitle{display:none}body[data-desk=trustee] .heading .desk-desktop-context{display:none!important}}

@media(min-width:901px) and (max-width:1366px) and (hover:none) and (pointer:coarse){
 body[data-desk=secretary] .desk-mobile-shell,body[data-desk=treasurer] .desk-mobile-shell,body[data-desk=deacon] .desk-mobile-shell,body[data-desk=pastor] .desk-mobile-shell{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:4px 16px}
 body[data-desk=secretary] .desk-mobile-actions,body[data-desk=treasurer] .desk-mobile-actions,body[data-desk=deacon] .desk-mobile-actions,body[data-desk=pastor] .desk-mobile-actions{order:2}
 body[data-desk=secretary] .desk-context-line,body[data-desk=treasurer] .desk-context-line,body[data-desk=deacon] .desk-context-line,body[data-desk=pastor] .desk-context-line{order:1;padding:0;display:flex;gap:14px}
 body[data-desk=secretary] .desk-sections-button,body[data-desk=secretary] .desk-main-link,body[data-desk=treasurer] .desk-sections-button,body[data-desk=treasurer] .desk-main-link,body[data-desk=deacon] .desk-sections-button,body[data-desk=deacon] .desk-main-link,body[data-desk=pastor] .desk-sections-button,body[data-desk=pastor] .desk-main-link{display:none!important}
 body[data-desk=secretary] .desk-refresh-feedback,body[data-desk=treasurer] .desk-refresh-feedback,body[data-desk=deacon] .desk-refresh-feedback,body[data-desk=pastor] .desk-refresh-feedback{order:3;flex-basis:100%}
}
@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){
 body[data-desk=simple] #editor .brand small{display:none}body[data-desk=pastor][data-desk-view=calendar] #section-title{font-size:0!important}body[data-desk=pastor][data-desk-view=calendar] #section-title::after{content:'Pastor’s Desk';font-size:28px}
 body[data-desk] .actions>.danger,body[data-desk] .actions>.trustee-delete-button,body[data-desk] .item-actions>.danger{margin-inline-start:8px}
}

@media(max-width:900px){body[data-desk=trustee]:not([data-desk-view=work]) .trustee-phone-entry{display:none!important}}

@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){
 body[data-desk] dialog,body[data-desk] .modal{max-height:calc(var(--desk-viewport-height,100dvh) - 24px)!important}
 body[data-desk] .modal-backdrop{height:var(--desk-viewport-height,100dvh);bottom:auto}
 body[data-desk=trustee] #task-dialog,body[data-desk=trustee] #detail-dialog{height:var(--desk-viewport-height,100dvh);max-height:var(--desk-viewport-height,100dvh)!important}
 body[data-desk] dialog .dialogactions,body[data-desk] dialog .dialog-actions,body[data-desk] .modal .modal-actions{position:sticky;bottom:0;z-index:3;background:var(--desk-surface);padding-top:12px;padding-bottom:max(12px,env(safe-area-inset-bottom));flex-wrap:wrap;gap:8px;border-top:1px solid var(--desk-line)}
 body[data-desk] dialog form>.page-title:first-child{position:sticky;top:0;z-index:3;background:var(--desk-surface);padding-top:8px;padding-bottom:8px}
}
@media(max-width:600px){body[data-desk=secretary] .desk-phone-cards .smart-email-link{display:inline-flex;align-items:center;min-height:44px}}

.desk-header-actions{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.page-head .desk-desktop-context,.top .toolbar .desk-desktop-context{margin:0}.admin-home-head{position:relative}.admin-home-head>.desk-desktop-context{position:absolute;right:0;top:16px;margin:0}body[data-desk=simple] .desk-desktop-context .desk-greeting{display:none}
@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){.desk-header-actions:empty{display:none}.desk-header-actions{justify-content:flex-start}}

@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){body[data-desk] button,body[data-desk] a.button,body[data-desk] a.btn{min-width:44px!important}}

@media print{.desk-mobile-shell,.desk-desktop-context,.desk-section-menu{display:none!important}.desk-table-scroll{overflow:visible!important;max-width:none}}

.desk-in-header .desk-greeting{display:none}.desk-account-welcome{font:600 12px/1.4 system-ui,sans-serif}.desk-account-welcome[hidden]{display:none!important}
@media(max-width:900px), (max-width:1366px) and (hover:none) and (pointer:coarse){.desk-account-welcome{display:none!important}}

@media(max-width:900px){html.desk-simple-page{overflow:auto;height:auto;min-height:100%}}

.desk-desktop-status:empty{display:none}
@media(min-width:901px) and (max-width:1180px) and (hover:hover) and (pointer:fine){.desk-in-header .desk-desktop-refresh{font-size:0;width:36px;height:32px;padding:5px}.desk-in-header .desk-desktop-refresh::before{content:'↻';font-size:17px}}

.page-head h1>.desk-desktop-context{display:inline-flex;vertical-align:middle;margin:0 0 0 10px}.page-head h1>.desk-desktop-context .desk-desktop-status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.desk-desktop-context.desk-refresh-error button{color:#b42318}

/* User-controlled release label: keep Version 1 until explicitly requested. */
.desk-release{display:block;flex:0 0 auto;grid-column:1/-1;width:100%;margin:12px 0 0;padding:4px 0;text-align:center;font:10px/1.4 Arial,sans-serif;color:#737d78}
body[data-desk=simple] .desk-release{margin:0;padding:2px 0;color:#a6b0ba}
@media print{.desk-release{display:none!important}}

/* Keep the signed-in identity visible without enlarging the admin header. */
body[data-desk="secretary"] .desk-greeting{font:500 12px/1.4 system-ui,sans-serif;overflow-wrap:anywhere}
body[data-desk="secretary"] .desk-context-line{gap:12px;align-items:center}
