/* Shared mobile navigation. Desktop tool layouts remain owned by their styles. */
.menuBackdrop,.menuClose,.workspaceMenuToggle,.workspaceQuickNav{display:none}
.internalShortcuts{display:grid;gap:8px;margin-top:18px}.internalShortcuts a{white-space:normal;justify-content:flex-start;min-height:44px;font-size:14px}
.previewControls:empty{display:none}.drawerExtras{display:grid;gap:8px;margin-top:18px}.drawerExtras a{display:flex;align-items:center;min-height:44px;padding:12px;color:var(--ink);text-decoration:none;border-radius:8px}
.accountIdentity{margin:18px 0 24px;padding-bottom:18px;border-bottom:1px solid var(--line)}.accountIdentityLabel{display:block;color:var(--muted);font-size:12px}.accountPanel .accountIdentity #accountEmail{margin:6px 0 12px;color:var(--ink);font-size:15px;font-weight:600;overflow-wrap:anywhere}.accountRole{display:inline-flex;background:var(--paper);padding:5px 9px;border-radius:5px;font-size:12px;color:var(--muted)}.accountPanel .sessionActions{display:grid;gap:10px!important}.accountPanel .sessionActions a{display:flex;align-items:center;min-height:48px;padding:12px 14px;border:1px solid var(--line);border-radius:8px;text-decoration:none;font-size:15px;color:var(--ink);background:var(--white)}.accountPanel .sessionActions a:hover{background:var(--paper)}.accountPanel .sessionActions #logout{margin-top:10px;text-align:left;background:var(--paper);font-size:15px}.accountHeading strong{font-size:20px}.accountHeading .iconButton{flex:none}
@media(max-width:760px){
 body.mobileMenuOpen,body.accountOpen{overflow:hidden}
 .menuBackdrop:not([hidden]){display:block;position:fixed;inset:0;width:100%;height:100dvh;background:#24262466;border:0;border-radius:0;z-index:100;touch-action:none}
 .menuClose{display:grid;place-items:center;position:absolute;right:12px;top:12px;width:44px;height:44px;min-height:44px;border:1px solid var(--line);background:var(--white);color:var(--ink);font-size:27px;line-height:1;border-radius:9px}
 #sidebar,#workspaceSidebar{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;width:min(340px,88vw);height:100dvh;max-height:100dvh;padding:72px 20px max(24px,env(safe-area-inset-bottom));background:#eee9df;overflow:auto;overscroll-behavior:contain;z-index:110;transform:translateX(-110%);transition:transform .18s ease;box-shadow:8px 0 30px #24262426;border-right:1px solid var(--line);gap:0}
 #sidebar.open,#workspaceSidebar.open{transform:translateX(0)}
 #sidebar .brand,#workspaceSidebar .brand{margin:0 0 20px;font-family:"Avenir Next",Avenir,Arial,sans-serif}
 #workspaceSidebar .brand small{display:block}#workspaceSidebar .workspace{display:none}#workspaceSidebar .navLabel{display:block;font-size:11px;margin:8px 0 12px}
 #workspaceSidebar .workspaceNav{display:grid;gap:6px;overflow:visible;padding:0;width:100%}#workspaceSidebar .workspaceNav .navItem{display:flex;justify-content:flex-start;flex:none;margin:0;min-height:48px;padding:12px 14px;white-space:normal;line-height:1.5;font-size:16px;border:0;border-left:3px solid transparent;border-radius:8px;color:var(--ink)}#workspaceSidebar .workspaceNav .navItem.selected{border-left-color:var(--orange);background:var(--white)}
 #workspaceSidebar .paused{display:block;font-size:13px;margin-top:24px}#workspaceSidebar footer{display:block;margin-top:auto;padding-top:20px}#workspaceSidebar .drawerExtras a{font-size:15px;border:1px solid var(--line);background:var(--white)}
 .application{margin-left:0!important}.topbar{position:sticky;top:0;z-index:70;min-height:64px;height:auto;padding:10px 16px;display:flex;align-items:center;gap:12px;background:var(--paper);border-bottom:1px solid var(--line)}
 .topbar>p{flex:1 1 0;min-width:0;overflow:hidden;white-space:nowrap;margin:0}.topbar #breadcrumb{display:block;font-size:16px;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;overflow-wrap:normal;word-break:normal;writing-mode:horizontal-tb}.topbar>p>.muted,.topbar .breadcrumb-sep{display:none}.topbar-actions{flex:none;gap:8px;min-width:44px}.topbar-actions #identity-label{display:none}.topbar-actions .secondary{min-height:44px;min-width:44px}
 .previewControls{padding:16px 0 0}.previewControls #toggle-client-preview{width:100%;min-height:48px;font-size:14px;white-space:normal}.internalShortcuts{margin-top:14px}
 #mobile-menu,.workspaceMenuToggle{display:grid;place-items:center;flex:none;width:44px;height:44px;min-height:44px;border:1px solid var(--line);border-radius:8px;background:var(--white);color:var(--ink);font-size:23px;line-height:1}
 .workspaceTitle{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;line-height:1.5;font-size:16px;color:var(--ink)}.workspaceContext{display:none}#sectionName{white-space:nowrap;word-break:normal;overflow-wrap:normal}#accountToggle{font-size:14px;padding:10px 12px}
 .workspaceQuickNav{display:flex;align-items:stretch;justify-content:space-around;position:fixed;inset:auto 0 0;z-index:60;background:var(--white);border-top:1px solid var(--line);padding:5px 6px max(5px,env(safe-area-inset-bottom));min-height:68px;box-shadow:0 -4px 18px #24262408}
 .workspaceQuickNav a,.workspaceQuickNav button{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:56px;gap:5px;padding:6px 3px;border:0;border-radius:7px;background:transparent;color:var(--muted);text-decoration:none;font:400 12px/1.3 "Avenir Next",Avenir,Arial,sans-serif}.workspaceQuickNav svg{width:23px;height:23px;flex:none}.workspaceQuickNav .selected{color:#a64e22;background:#f6f0e8;font-weight:700}.workspaceQuickNav button:active,.workspaceQuickNav a:active{background:var(--paper)}
 #home,#crm,#terrain,#noa,#voice{padding-bottom:calc(100px + env(safe-area-inset-bottom))!important}
 .sessionMenu{position:static}.accountBackdrop{z-index:140}#accountToggle{z-index:auto}.accountPanel{z-index:150;position:fixed;inset:auto 12px max(12px,env(safe-area-inset-bottom));width:auto;max-height:calc(100dvh - 40px);padding:18px 20px 22px;border-radius:18px}.accountPanel .sheetHandle{margin-bottom:12px}.accountIdentity{margin:16px 0 20px}.accountPanel .sessionActions a,.accountPanel .sessionActions #logout{width:100%;min-height:48px}
 .mobile-navigation{padding-bottom:max(8px,env(safe-area-inset-bottom));z-index:60}#main{padding-bottom:calc(100px + env(safe-area-inset-bottom))}.app-banner{font-size:13px;line-height:1.5;padding:12px 16px}
}
@media(prefers-reduced-motion:reduce){#sidebar,#workspaceSidebar{transition:none}}
@media(max-width:760px){
 #sidebar,#workspaceSidebar{padding-top:20px;align-items:stretch;justify-content:flex-start}
 #sidebar>.brand,#workspaceSidebar>.brand{min-height:44px;margin:0 0 18px;padding-right:44px;align-self:stretch;justify-content:flex-start}
 #workspaceSidebar .navLabel{margin:14px 0 10px}
 #workspaceSidebar .drawerExtras{align-self:stretch;margin-top:16px}
 .topbar{right:auto;width:100%}.topbar>.workspaceTitle{display:block}
 .accountPanel .sessionActions{width:100%;grid-template-columns:minmax(0,1fr);justify-content:stretch;align-items:stretch}
}

/* The personal workspace has one mobile Menu entry, in its bottom bar. */
@media(max-width:760px){#workspaceMenuToggle{display:none}}

/* Keep every mobile workspace clear of the fixed navigation and the keyboard. */
@media(max-width:760px){
 html{scroll-padding-bottom:calc(104px + env(safe-area-inset-bottom))}
 #home,#crm,#terrain,#noa,#voice,#bibliotheque,#client{padding-bottom:calc(120px + env(safe-area-inset-bottom))!important}
 #client{padding:24px 20px calc(120px + env(safe-area-inset-bottom))!important;min-width:0}
 #client>.heading{display:flex;flex-wrap:wrap;align-items:flex-start;gap:14px}
 .heading .eyebrow{font-size:11px;line-height:1.5;letter-spacing:.12em}
 #client>.heading>div{flex:1 1 100%;min-width:0}
 #client>.heading>.quiet{flex:none;align-self:flex-start;width:auto;min-height:44px}
 #client .clientWork,#client .clientWork>.panel,#client .clientWork form{min-width:0}
 #client .clientWork>.panel{padding:20px 16px;overflow-wrap:anywhere}
 #client .clientWork label,#client .clientWork details{min-width:0;overflow-wrap:anywhere}
 #client .clientWork summary{line-height:1.5;min-height:44px;display:flex;align-items:center}
 #client .clientWork button{min-height:44px;max-width:100%;white-space:normal;overflow-wrap:anywhere}
 #crm>.heading:has(.scopedWorkActions),#terrain>.heading:has(.scopedWorkActions){display:grid;grid-template-columns:minmax(0,1fr);align-items:start}
 .scopedWorkActions{display:flex;flex-wrap:wrap;align-items:stretch;width:100%;gap:10px}
 .scopedWorkActions button{flex:1 1 100%;width:100%;min-width:0;min-height:48px;line-height:1.35;text-align:center;white-space:normal;overflow-wrap:normal;font-size:15px}
 .scopedWork,.scopedWorkList,.scopedWorkDetail,.scopedCrmDay{min-width:0;max-width:100%}
 .scopedWorkTop{flex-wrap:wrap;align-items:flex-start}
 .scopedWorkTop button{flex:none;max-width:100%;white-space:normal}
 .workspaceQuickNav{bottom:0;left:0;right:0;inset:auto 0 0 0;padding-bottom:max(7px,env(safe-area-inset-bottom));transform:none;contain:layout style}
 .resource-grid.list .resource-card{min-width:0}
 .resource-grid.list .resource-cover{width:108px;min-width:108px;min-height:142px;padding:12px}
 .resource-grid.list .resource-card-content{min-width:0;padding:14px}
 .resource-grid.list .resource-card h3,.resource-grid.list .resource-card .meta,.resource-grid.list .resource-card .text-button{overflow-wrap:anywhere;min-width:0}
 .resource-grid.list .resource-cover .cover-type,.resource-grid.list .resource-cover .cover-version{font-size:10px;line-height:1.3;letter-spacing:.02em;overflow-wrap:anywhere;max-width:100%}
 .resource-grid.list .resource-card .dark{min-height:44px;white-space:normal}
 .resource-card [data-open-project],.resource-card [data-approve-version],.resource-card [data-request-diffusion],.resource-card .card-actions .dark{font-size:14px;line-height:1.4;min-height:44px;padding:10px 12px;white-space:normal;text-align:center;overflow-wrap:anywhere}
 .resource-card [data-open-project]{display:inline-flex;align-items:center;text-align:left;padding-inline:0}
}
@media(max-width:360px){
 #client{padding-inline:16px!important}
 .resource-grid.list .resource-card{display:flex;flex-direction:column}
 .resource-grid.list .resource-cover{width:100%;min-height:145px;height:145px}
 .resource-grid.list .resource-card-content{width:100%}
}
@media(max-width:480px){
 .resource-grid:not(.list){grid-template-columns:minmax(0,1fr)}
 .resource-grid:not(.list) .resource-cover{height:180px}
}

/* Profile inbox and editorial calendar: readable controls on narrow screens. */
@media(max-width:760px){
 .profile-top-grid,.profile-section-content{gap:14px}
 .profile-top-grid>.panel,.profile-section-content>.panel{min-width:0}
 .profile-branding-summary{align-items:flex-start}
 .profile-branding-summary img{width:72px;height:72px}
 .profile-branding-summary p,.notification-address,.notification-history-note,.notification-options p{font-size:14px;line-height:1.5}
 .profile-section>summary,.profile-branding-edit>summary,.notification-options>summary{display:flex;align-items:center;min-height:44px;font-size:16px;line-height:1.4}
 .profile-section>summary,.profile-branding-edit>summary,.notification-options>summary{justify-content:space-between;gap:12px;list-style:none}
 .profile-section>summary::-webkit-details-marker,.profile-branding-edit>summary::-webkit-details-marker,.notification-options>summary::-webkit-details-marker{display:none}
 .profile-section>summary::after,.profile-branding-edit>summary::after,.notification-options>summary::after{content:'⌄';color:var(--orange);font-size:20px;line-height:1;flex:none}
 .profile-section[open]>summary::after,.profile-branding-edit[open]>summary::after,.notification-options[open]>summary::after{content:'⌃'}
 .profile-section .segmented{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:100%}
 .profile-section .segmented button{min-width:0;min-height:44px;font-size:14px;padding:9px 6px}
 .profile-section .toggle-row{min-height:44px;gap:12px}
 .profile-section .toggle-row label{font-size:14px;line-height:1.4}
 .profile-section .toggle-row input{flex:none}
 .profile-section button,.profile-branding-edit button,.notification-options button,#notification-save{min-height:44px;font-size:14px;line-height:1.35;white-space:normal}
 .profile-notifications{padding:18px 16px}
 .profile-notifications>p,.notification-service,.notification-choice,#notification-status{font-size:14px;line-height:1.5}
 .notification-matrix-row{grid-template-columns:repeat(3,minmax(0,1fr));padding:10px 4px}
 .notification-matrix-row>strong{font-size:14px;line-height:1.4;padding:4px 8px 8px}
 .notification-matrix-cell{min-width:0;padding:6px 2px;gap:5px}
 .notification-matrix-cell{grid-template-rows:minmax(32px,auto) 44px minmax(18px,auto);gap:0;align-items:center}
 .notification-matrix-cell .mobile-cell-label{font-size:13px;line-height:1.25;overflow-wrap:anywhere;min-height:32px;display:flex;align-items:center;justify-content:center}
 .notification-matrix-cell small,.notification-email-target small{font-size:12px;line-height:1.25;overflow-wrap:anywhere}
 .notification-matrix-cell>input{grid-row:2;margin:0;align-self:center}
 .notification-matrix-cell>small{grid-row:3}
 .notification-email-target{grid-row:2/4;align-self:stretch;grid-template-rows:44px minmax(18px,auto);min-height:62px;padding:0 2px}
 .notification-history>summary{min-height:48px;padding:14px;font-size:16px}
 .notification-history-body{padding:0 14px 14px}
 .notification-filters{gap:8px;flex-wrap:wrap;margin:14px 0}
 .notification-filters button,#notification-more,.notification-item-actions button,.notification-item-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.35;white-space:normal}
 .notification-item{padding-block:15px}
 .notification-item h3{font-size:16px;line-height:1.35}
 .notification-item p,.notification-item .meta{font-size:14px;line-height:1.45}
 .notification-item .notification-state{font-size:12px;line-height:1.2}
 .calendar-toolbar{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;margin-bottom:18px}
 .calendar-toolbar .segmented{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:4px;width:100%;min-width:0}
 .calendar-toolbar .segmented button{min-width:0;min-height:44px;padding:9px 4px;font-size:14px;line-height:1.25}
 .calendar-toolbar input[type=date]{width:100%;max-width:260px;min-height:44px;font-size:16px;padding:8px 10px}
 .calendar-toolbar .subtle{font-size:13px;line-height:1.45}
 .calendar-list,.calendar-month{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
 .calendar-list .day-block{min-width:0;min-height:0}
 .calendar-list .day-label,.calendar-month .day-label{padding:13px 14px;font-size:14px;line-height:1.35}
 .calendar-list .day-label b,.calendar-month .day-label b{font-size:20px}
 .calendar-list .day-row,.calendar-month .day-row{display:grid;grid-template-columns:46px minmax(0,1fr);gap:10px;padding:14px;min-width:0}
 .calendar-list .day-row>div{min-width:0}
 .calendar-list .day-row h3,.calendar-month .day-row h3{font-size:16px;line-height:1.35;overflow-wrap:anywhere}
 .calendar-list .day-row p,.calendar-month .day-row p,.calendar-list .day-time,.calendar-month .day-time{font-size:13px;line-height:1.4}
 .calendar-list .day-row .secondary,.calendar-month .day-row .secondary{grid-column:2;justify-self:start;width:auto;min-height:44px;padding:9px 12px;margin-top:3px;font-size:14px;line-height:1.3}
 .calendar-month .badge{font-size:12px}
 .calendar-month .empty{font-size:14px;padding:14px}
 .calendar-list+.info-strip{font-size:14px;line-height:1.5}
 .mobile-navigation button{flex:1 1 0;min-width:0;min-height:56px;font-size:11.5px;line-height:1.3;overflow-wrap:anywhere}
}
@media(max-width:360px){
 .profile-section .segmented{grid-template-columns:repeat(2,minmax(0,1fr))}
 .profile-section .segmented button:last-child{grid-column:1/-1}
 .calendar-toolbar .segmented{grid-template-columns:repeat(2,minmax(0,1fr))}
}
