@media screen {
  .shell > .sidebar {
    --side-ink:#173e35;
    --side-muted:#a7c4b5;
    flex-direction:column; gap:0; min-height:0; height:100vh; height:100dvh;
    padding:0; color:#f4f7ed; background:#173d34; border:0;
    overflow:visible; box-shadow:inset -1px 0 #12342d;
  }
  .sidebar > .brand {
    flex:none; padding:22px 24px 20px; gap:12px; margin:0;
    color:#fff8e8; border-bottom:1px solid #ffffff20;
    font:400 2.23rem/1 "Instrument Serif",Georgia,serif; letter-spacing:-.02em;
  }
  .sidebar .brand-mark,.mobile-brand .brand-mark {
    color:#193d32; background:#deedca; border:1px solid #e9f2db;
    box-shadow:none; border-radius:9px; font:italic 400 1.65rem/1 "Instrument Serif",Georgia,serif;
    letter-spacing:-.08em; padding-right:3px;
  }
  .sidebar .brand-mark { height:37px; width:36px; }
  .sidebar .sidebar-sections { min-height:0; flex:1; overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#749589 transparent; padding:14px 12px 12px; }
  .sidebar .nav,.sidebar .side-group { display:grid; align-content:start; gap:2px; }
  .sidebar .side-group { margin:10px 0 0; }
  .sidebar .side-group-title { font-family:inherit; font-weight:600; font-size:.71rem; line-height:1.3; letter-spacing:.08em; text-transform:uppercase; color:var(--side-muted); margin:0 12px 3px; }
  .sidebar .nav a,.sidebar .nav-more>summary,.sidebar .nav-tools>summary {
    display:flex; align-items:center; gap:11px; min-width:0; min-height:38px;
    padding:7px 12px; border-radius:8px; background:transparent; color:#edf4ed;
    font-size:.91rem; line-height:1.28; font-weight:500; text-decoration:none; box-shadow:none;
  }
  .sidebar .nav a>span:first-of-type { min-width:0; overflow-wrap:anywhere; }
  .sidebar .nav a[data-section] svg,.sidebar summary svg,.sidebar .nav-tools-panel button svg { flex:none; width:19px; height:19px; padding:0; background:none; color:#c6ded0; stroke:currentColor; }
  .sidebar .nav a:hover,.sidebar summary:hover,.sidebar .nav-tools-panel button:hover,.sidebar .profile:hover { background:#2b5144; color:white; }
  .sidebar .nav a[aria-current=page] { background:#dcebc9; color:#183e31; font-weight:700; }
  .sidebar .nav a[aria-current=page] svg { color:#25553f; }
  .sidebar .nav a .count,.sidebar .nav a[aria-current=page] .count { background:#f3d8b8; color:#623619; font-size:.73rem; min-width:18px; font-weight:700; text-align:center; }
  .sidebar .nav-more { margin:10px 0 0; padding:8px 0 0; border-top:1px solid #ffffff26; }
  .sidebar details>summary { list-style:none; cursor:pointer; }
  .sidebar details>summary::-webkit-details-marker { display:none; }
  .sidebar details>summary::after,.sidebar .profile::after { content:''; flex:none; width:7px; height:7px; border-right:1.5px solid; border-bottom:1.5px solid; transform:rotate(45deg); margin:-3px 3px 0 auto; color:#c2d8ca; }
  .sidebar details[open]>summary::after { transform:rotate(225deg); margin-top:3px; }
  .sidebar .nav-secondary .side-group { margin:8px 0 8px 8px; border-left:1px solid #789888; padding-left:5px; }
  .sidebar .nav-secondary a { font-size:.86rem; }
  .sidebar .sidebar-bottom { position:relative; flex:none; display:grid; gap:2px; min-width:0; margin:0; border-top:1px solid #ffffff28; background:#14362f; padding:6px 12px max(9px,env(safe-area-inset-bottom)); }
  .sidebar .nav-tools { position:relative; }
  .sidebar .nav-tools>summary { min-height:40px; font-size:.85rem; }
  .sidebar .nav-tools>summary::after { transform:rotate(225deg); margin-top:3px; }
  .sidebar .nav-tools[open]>summary::after { transform:rotate(45deg); }
  .sidebar .nav-tools-panel { position:absolute; inset:auto 0 calc(100% + 5px); max-height:min(58dvh,420px); overflow:auto; overscroll-behavior:contain; z-index:4; padding:5px; background:#254c40; border:1px solid #688675; border-radius:12px; box-shadow:0 6px 24px #09231a3b; }
  .sidebar .nav-tools-panel button { width:100%; min-height:37px; padding:7px 10px; font-size:.86rem; color:#edf4ed; }
  .sidebar .profile { width:100%; min-width:0; min-height:48px; padding:7px 8px!important; border:0; border-radius:9px; background:#21463c; color:#eff5ec; gap:10px; }
  .sidebar .profile .avatar { flex:none; display:grid; place-items:center; width:34px; height:34px; background:#d9e6c9; color:#234a37; font-size:.85rem; border-radius:8px; }
  .sidebar .profile .avatar.profile-logo { background:white; }
  .sidebar .profile-copy { min-width:0; flex:1; }
  .sidebar .profile strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#fff9ea; font-size:.87rem; }
  .sidebar .profile small { color:#c9dacc; font-size:.73rem; }
  .sidebar .profile::after { transform:rotate(-45deg); margin:0 4px; }
  .sidebar :is(a,button,summary):focus-visible { outline:2px solid #ffe7aa; outline-offset:-2px; }
  .sidebar .nav a[aria-current=page]:focus-visible { outline-color:#326d54; }
}
@media screen and (max-height:780px) and (min-width:761px) {
  .sidebar > .brand { padding:15px 22px; }
  .sidebar .sidebar-sections { padding-block:9px; }
  .sidebar .nav a,.sidebar .nav-more>summary { min-height:33px; padding-block:5px; }
}
@media screen and (max-width:760px) {
  .shell > .sidebar { width:min(320px,calc(100vw - 40px)); }
  .sidebar > .brand { padding:14px 16px 14px 20px; }
  .sidebar .sidebar-close { background:transparent; color:#f1f6ea; border-color:#769185; width:42px; height:42px; }
  .sidebar .sidebar-sections { padding:10px 12px; }
  .sidebar .nav a,.sidebar .nav-more>summary,.sidebar .nav-tools>summary,.sidebar .nav-tools-panel button { min-height:44px; }
  .sidebar .side-group { margin-top:10px; }
  .shell .menu-backdrop { z-index:35; background:#0f2d2461; }
  .mobile-tabs :is(a,button).active { background:#e2eddb; color:#1d5140; font-weight:650; }
  .mobile-tabs { grid-template-columns:1fr 1fr 1fr 1.22fr .78fr; }
  .mobile-tabs :is(a,button) { min-width:0; font-size:.8rem; }
  .mobile-tabs :is(a,button)>span { white-space:nowrap; text-align:center; }
  .mobile-brand .brand-mark { display:grid; font-size:1.28rem; }
  body:has(.shell > .sidebar.open) { overflow:hidden; }
  html:has(> body > :is(#modal,#document-modal)[open]) { overflow:hidden; }
  :is(#modal,#document-modal)[open] { overscroll-behavior-y:contain; }
}
@media screen and (min-width:761px) {
  :is(.view-intervenants,.view-catalogue,.view-quality,.view-commerce,.view-material,.view-documents,.view-expenses,.view-bpf,.view-satisfaction) .topbar { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:6px 18px; height:auto; min-height:68px; padding-block:10px; }
  :is(.view-intervenants,.view-catalogue,.view-quality,.view-commerce,.view-material,.view-documents,.view-expenses,.view-bpf,.view-satisfaction) .topbar-right { display:flex; flex:0 1 auto; width:auto; flex-wrap:wrap; align-items:center; justify-content:flex-end; margin-left:auto; gap:6px 12px; }
  :is(.view-intervenants,.view-catalogue,.view-quality,.view-commerce,.view-material,.view-documents,.view-expenses,.view-bpf,.view-satisfaction) .topbar-right :is([data-save-state],[data-live-status]) { flex:0 1 auto; max-width:145px; margin:0; white-space:normal; line-height:1.35; }
  :is(.view-intervenants,.view-catalogue,.view-quality,.view-commerce,.view-material,.view-documents,.view-expenses,.view-bpf,.view-satisfaction) .topbar-right>.button { width:auto; flex:none; }
}
@media screen and (min-width:761px) and (max-width:1250px) {
  :is(.view-intervenants,.view-catalogue,.view-quality,.view-commerce,.view-material,.view-documents,.view-expenses,.view-bpf,.view-satisfaction) .topbar-right time { display:none; }
}
