/* Stolarija Stanišić shell adjustments. */
.sidebar{width:auto;min-width:0;gap:0}
.brand{min-height:44px;padding:0 8px 23px;gap:9px}
.brand img{width:32px;height:32px;object-fit:contain}
.brand b{font-size:15px;letter-spacing:0}
.brand small{font-size:8px;letter-spacing:.11em;white-space:nowrap}
.nav-caption{margin:0 0 6px;padding:0 10px}
.nav-caption.second{margin-top:20px}
.sidebar nav{display:grid;gap:3px}
.nav{min-height:42px;margin:0;padding:8px 10px;gap:11px}
.nav>svg{display:block;flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round;color:#70776e}
.nav>span{width:auto;min-width:0;flex:1;text-align:left;font-size:inherit;color:inherit}
.nav.active>svg{color:#8b6200}
.topbar{min-height:62px;height:auto;gap:14px;padding:0 24px}
.mobile-brand{display:none}
.global-search{display:flex;align-items:center;gap:8px;flex:0 1 300px;min-width:170px;height:38px;margin-left:auto;padding:0 10px;border:1px solid var(--line);border-radius:9px;background:#fafbf9;color:var(--muted)}
.global-search>svg{width:17px;height:17px;flex:none;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.global-search input{width:100%;min-width:0;border:0;outline:0;background:transparent;color:var(--ink);font-size:12px}
.global-search input::placeholder{color:var(--muted);font-size:12px}
.global-search:focus-within{border-color:#d5b65d;box-shadow:0 0 0 3px #f8b00424}
.global-search kbd{flex:none;padding:2px 4px;border:1px solid var(--line);border-radius:4px;background:#fff;font-size:9px}
.top-actions{position:relative;gap:10px}


.bell,.profile-trigger{position:relative;display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:0;border-radius:50%;background:transparent;color:#657066}
.bell:hover,.profile-trigger:hover{background:#f5f6f3}
.bell>svg,.profile-chevron{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.75;stroke-linecap:round;stroke-linejoin:round}
.notification-count{position:absolute;top:2px;right:1px;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border:2px solid #fff;border-radius:999px;background:#c94e42;color:#fff;font:700 9px/1 'DM Sans',Arial,sans-serif}
.profile-trigger{display:flex;gap:5px;width:auto;min-width:44px;padding:0 2px}
.top-user{width:32px;height:32px;border:0;background:#e8ece7;color:#526752}
.profile-chevron{width:14px;height:14px;color:var(--muted)}
.header-popover{position:absolute;top:calc(100% + 9px);right:0;z-index:40;width:min(330px,calc(100vw - 24px));padding:14px;border:1px solid var(--line);border-radius:12px;background:#fff;box-shadow:0 14px 36px #24311e1c;color:var(--ink)}
.header-popover[hidden]{display:none}
.popover-heading,.profile-summary{display:flex;align-items:center;gap:10px;padding:2px 2px 12px;border-bottom:1px solid var(--line)}
.popover-heading>div,.profile-summary>span:last-child{display:grid;gap:3px;flex:1}
.popover-heading b,.profile-summary b{font-size:12px}
.popover-heading small,.profile-summary small{font-size:10px;color:var(--muted)}
.popover-count{display:grid;place-items:center;min-width:24px;height:24px;border-radius:50%;background:var(--red-bg);color:var(--red);font-size:10px;font-weight:700}
.notification-menu ul{display:grid;gap:0;margin:0;padding:0;list-style:none}
.notification-menu li{display:flex;gap:9px;padding:11px 2px;border-bottom:1px solid #eff1ed}
.notification-menu li>div{display:grid;gap:3px;min-width:0}
.notification-menu li b{font-size:10px;line-height:1.4}
.notification-menu li small{font-size:9px;color:var(--muted)}
.popover-dot{width:7px;height:7px;margin:4px 1px 0;border-radius:50%;background:#c94e42;flex:none}
.popover-dot.read{background:#cbd1ca}
.popover-dismiss,.profile-menu>button{width:100%;padding:10px 4px;border:0;background:transparent;text-align:left;color:var(--ink);font-size:10px}
.popover-dismiss{padding-bottom:2px;text-align:center;color:var(--muted)}
.profile-menu{width:240px}
.profile-menu .profile-summary{margin-bottom:5px}
.profile-menu>button:hover,.popover-dismiss:hover{color:#8b6200}

.mobile-nav-scrim{border:0;padding:0}

/* Tablet keeps the persistent desktop navigation; only content density adapts. */
@media(min-width:851px) and (max-width:1050px){
  .shell{display:grid;grid-template-columns:246px minmax(0,1fr);min-height:100vh}
  .sidebar{position:sticky;inset:auto;width:auto;height:100vh;padding:23px 14px 10px;border:0;border-right:1px solid var(--line);border-radius:0;box-shadow:none;transform:none;transition:none}
  .sidebar.open{left:auto}
  .workspace{padding-top:0}
  .topbar{position:sticky;inset:auto;display:flex;grid-template-columns:none;grid-template-rows:none;width:auto;min-height:62px;height:auto;padding:0 16px;gap:10px}
  .mobile-brand,.hamb{display:none}
  .crumb{display:block;flex:none}
  .global-search{flex:0 1 220px;min-width:135px;margin-left:auto}
  .global-search input{font-size:12px}
  .top-actions{grid-column:auto;grid-row:auto;gap:6px}
  
  .bell,.profile-trigger{width:36px;height:40px}
  .top-user{width:30px;height:30px}
  .profile-chevron{display:none}
  .mobile-nav-scrim{display:none!important}
}

@media(max-width:850px){
  .shell{display:block}
  .sidebar{position:fixed;left:8px;top:8px;bottom:8px;z-index:35;width:min(320px,calc(100vw - 72px));height:auto;padding:20px 14px 18px;border:1px solid var(--line);border-radius:14px;background:#fff;box-shadow:10px 0 35px #17201824;transform:translateX(calc(-100% - 16px));transition:transform .18s ease}
  .sidebar.open{left:8px;transform:translateX(0)}
  .workspace{padding-top:110px}
  .topbar{position:fixed;inset:0 0 auto;z-index:30;display:grid;grid-template-columns:minmax(0,1fr) 44px auto;grid-template-rows:58px 48px;gap:0 5px;width:100%;min-height:110px;padding:0 12px 4px;border-bottom:1px solid var(--line);background:#fff}
  .mobile-brand{display:flex;grid-column:1;grid-row:1;align-items:center;gap:7px;min-width:0;overflow:hidden;text-decoration:none;color:var(--ink)}
  .mobile-brand img{width:30px;height:30px;flex:none;object-fit:contain}
  .mobile-brand span{display:grid;gap:2px;min-width:0}
  .mobile-brand b{font-size:12px;line-height:1.1}
  .mobile-brand small{overflow:hidden;color:var(--muted);font-size:8px;letter-spacing:.05em;text-overflow:ellipsis;white-space:nowrap}
  .hamb{display:flex;grid-column:2;grid-row:1;align-items:center;justify-content:center;gap:4px;width:44px;height:44px;padding:0 4px;border:1px solid var(--line);border-radius:8px;background:#fff;font-size:10px}
  .hamb svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
  .crumb{display:none}
  .top-actions{grid-column:3;grid-row:1;gap:3px}
  
  .bell,.profile-trigger{width:40px;height:44px}
  .profile-trigger{min-width:40px;padding:0}
  .profile-chevron{display:none}
  .top-user{width:30px;height:30px}
  .global-search{grid-column:1/-1;grid-row:2;width:100%;min-width:0;height:38px;margin:0;padding:0 10px}
  .global-search input{font-size:16px}
  .global-search input::placeholder{font-size:14px}
  .global-search kbd{display:none}
  
  .header-popover{top:calc(100% + 4px)}
  .mobile-nav-scrim.show{display:block;position:fixed;inset:0;z-index:32;background:#17201866}
}
@media(max-width:380px){
  .topbar{grid-template-columns:minmax(0,1fr) 42px auto;gap:0 2px;padding-inline:8px}
  .mobile-brand img{width:26px;height:26px}
  .mobile-brand b{font-size:11px}
  .mobile-brand small{font-size:7px}
  .hamb{width:42px}
  .top-actions{gap:0}
  
  .bell,.profile-trigger{width:36px}
  .notification-count{right:0}
}
@media(prefers-reduced-motion:reduce){.sidebar{transition:none}}
