/* Created by: ChatGPT | Date: 2026-10-17 | Phone hamburger and left navigation drawer. */
:root{--sat:env(safe-area-inset-top,0px);--sab:env(safe-area-inset-bottom,0px);--sal:env(safe-area-inset-left,0px);--sar:env(safe-area-inset-right,0px)}
#mobileMenuButton,#mobileMenuClose,#mobileMenuBackdrop{display:none}
@media(max-width:768px){
  body.mobile-nav-open{overflow:hidden}
  .app{min-height:100dvh}
  .app>.main{min-width:0;margin-left:0;padding:0 calc(12px + var(--sar)) calc(16px + var(--sab)) calc(12px + var(--sal))}
  .mobile-top-bar{position:sticky;top:0;z-index:90;display:flex;gap:12px;min-height:60px;margin:0 calc(-12px - var(--sar)) 14px calc(-12px - var(--sal));padding:calc(8px + var(--sat)) calc(12px + var(--sar)) 8px calc(12px + var(--sal));background:var(--bg);border-bottom:1px solid var(--border)}
  .mobile-top-bar>.brand{font-size:16px;letter-spacing:.5px}
  .mobile-top-bar>a{display:none}
  #mobileMenuButton,#mobileMenuClose{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-width:44px;padding:10px;border:1px solid var(--border);border-radius:10px;background:var(--surface);color:var(--text);cursor:pointer}
  #mobileMenuButton svg,#mobileMenuClose svg{width:22px;height:22px}
  .app>.sidebar{position:fixed;inset:0 auto 0 0;display:flex;flex-direction:column;width:min(300px,86vw);height:100dvh;padding:calc(16px + var(--sat)) 0 calc(8px + var(--sab));z-index:501;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;transform:translateX(-100%);visibility:hidden;transition:transform .2s ease,visibility .2s;box-shadow:12px 0 40px #0003}
  body.mobile-nav-open .app>.sidebar{transform:translateX(0);visibility:visible}
  .sidebar .brand{display:block;flex:0 0 auto;min-height:44px;margin-bottom:8px;padding:8px 64px 16px 20px;font-size:17px}
  #mobileMenuClose{position:absolute;right:12px;top:calc(12px + var(--sat));background:#ffffff12;color:white;border-color:#ffffff26}
  .sidebar .top-icons{display:flex;flex:0 0 auto;gap:10px;padding:0 20px 12px}
  .sidebar .top-icon{width:44px;height:44px}
  .sidebar .top-icon svg{width:20px;height:20px}
  .sidebar .nav-item{display:flex;flex:0 0 auto;flex-direction:row;justify-content:flex-start;align-items:center;gap:12px;min-width:0;min-height:48px;padding:12px 20px;font-size:15px}
  .sidebar .nav-item svg{width:21px;height:21px}
  .sidebar .nav-item span{display:block;max-width:none;overflow:visible;text-overflow:clip;text-align:left;font-size:15px}
  .sidebar .sidebar-footer{display:block;flex:0 0 auto;margin-top:auto;padding:16px 20px 8px;font-size:13px}
  .sidebar-footer .logout-btn{display:block;min-height:44px;font-size:14px;color:#ffffffb3}
  #mobileMenuBackdrop{position:fixed;inset:0;z-index:500;width:100%;height:100dvh;padding:0;border:0;background:#0f172a80}
  body.mobile-nav-open #mobileMenuBackdrop{display:block}
  .sidebar .nav-item:focus-visible,#mobileMenuButton:focus-visible,#mobileMenuClose:focus-visible{outline:3px solid #a5b4fc;outline-offset:-3px}
}
@media(prefers-reduced-motion:reduce){.app>.sidebar{transition:none}}

/* Modified by: Claude | Date: 2026-11-25 | Change: real NEODRIFT logo + "Creative Manager" in place of the
   text wordmark (owner: "add proper logo and branding in creative manager"). White logo on the dark sidebar,
   navy on the light phone top bar and the white sign-in card. The text stays in the DOM for screen readers. */
.sidebar .brand,.mobile-top-bar .brand,.login-card .brand{font-size:0!important;letter-spacing:0!important;line-height:0!important;color:transparent!important}
.sidebar .brand span,.mobile-top-bar .brand span{display:none}
.sidebar .brand::before,.mobile-top-bar .brand::before,.login-card .brand::before{content:"";display:block;background:url(/brand-logo-white.png?v=20261125) left center/contain no-repeat}
.sidebar .brand{padding:2px 16px 14px}
.sidebar .brand::before{width:150px;height:37px}
.sidebar .brand::after{content:"Creative Manager";display:block;margin-top:7px;font-size:10.5px;font-weight:600;letter-spacing:.16em;line-height:1.2;text-transform:uppercase;color:rgba(255,255,255,.5)}
.mobile-top-bar .brand::before{width:104px;height:26px;background-image:url(/brand-logo-navy.png?v=20261125)}
.login-card .brand{margin-bottom:18px}
.login-card .brand::before{width:170px;height:42px;background-image:url(/brand-logo-navy.png?v=20261125)}

/* Modified by: Claude Opus 5 | Date: 2026-11-25 | Change: owner — "so much unwanted text specially on phone it
   becomes so long scroll". Phone-only tightening that every screen shares: the KPI tiles go 3-up instead of 2-up
   (the Dashboard loses ~380 px of scroll), page padding and headings shrink. Desktop is untouched. */
@media(max-width:600px){
  .stats-grid{grid-template-columns:repeat(3,1fr)!important;gap:6px!important;margin-bottom:12px!important}
  .stat-card{padding:8px!important}
  .stat-card .label{font-size:9px!important;letter-spacing:.04em}
  .stat-card .value{font-size:20px!important;line-height:1.15}
  .stat-card .sub{font-size:9px!important}
  .page-header h2{font-size:19px!important}
  .chart-card{padding:11px!important}
}
