/* AI Content Studio UI polish v3 */
#quick-project-btn{display:none!important}
.topbar{justify-content:flex-start}

@media (min-width:761px){
  .sidebar{display:flex;flex-direction:column;padding:24px 18px 18px}
  .brand{display:flex!important;align-items:center!important;gap:12px!important;margin:0 6px 30px!important;font-size:20px!important;line-height:1.1!important}
  .brand::before{display:none!important}
  .brand-logo{display:grid;place-items:center;flex:0 0 46px;width:46px;height:46px;border-radius:14px;background:linear-gradient(145deg,#8066ff,#6270ff);color:#fff;font-size:15px;font-weight:900;box-shadow:0 10px 26px rgba(116,93,255,.38)}
  .brand-title{font-weight:850;letter-spacing:-.025em;white-space:nowrap}
  .sidebar nav{display:grid;gap:10px;padding-bottom:170px}
  .nav-btn{display:grid!important;grid-template-columns:36px minmax(0,1fr)!important;align-items:center!important;gap:12px!important;min-height:56px!important;padding:10px 14px!important;border-radius:14px!important;font-size:15px!important;font-weight:750!important;overflow:visible!important}
  .nav-btn::before{display:none!important}
  .nav-btn .nav-icon{display:grid;place-items:center;width:36px;height:36px;border-radius:11px;background:#151b27;border:1px solid rgba(255,255,255,.06);color:#9eabc0;transition:.16s ease}
  .nav-btn .nav-icon svg{width:20px;height:20px;display:block;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .nav-btn .nav-label{display:block;white-space:nowrap}
  .nav-btn:hover .nav-icon{background:#1b2331;color:#dbe2f1;border-color:rgba(255,255,255,.10)}
  .nav-btn.active{background:linear-gradient(90deg,rgba(124,92,255,.20),rgba(124,92,255,.07))!important;border-color:rgba(124,92,255,.34)!important}
  .nav-btn.active .nav-icon{background:linear-gradient(145deg,#7c5cff,#6871ff);border-color:transparent;color:#fff;box-shadow:0 8px 20px rgba(124,92,255,.24)}
  .nav-btn.active::before{display:none!important}

  #acs-lang-switch{
    position:fixed;left:18px;bottom:88px;width:224px;height:44px;z-index:9100;
    display:grid;grid-template-columns:1fr 1fr;gap:5px;padding:5px;
    border-radius:13px;background:#10151f;border:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 26px rgba(0,0,0,.18)
  }
  #acs-lang-switch button{
    border:0;border-radius:9px;background:transparent;color:#8f9bb0;cursor:pointer;
    font:800 12px/1 Inter,ui-sans-serif,system-ui,sans-serif;letter-spacing:.04em
  }
  #acs-lang-switch button:hover{background:#171e2a;color:#dbe2f1}
  #acs-lang-switch button.active{background:linear-gradient(145deg,#7c5cff,#6871ff);color:#fff;box-shadow:0 6px 16px rgba(124,92,255,.25)}

  #acs-userbar{left:18px!important;right:auto!important;bottom:18px!important;width:224px!important;min-height:58px!important;justify-content:space-between!important;gap:8px!important;padding:10px!important;border-radius:14px!important;background:linear-gradient(180deg,#141a25,#10151f)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:0 12px 30px rgba(0,0,0,.22)!important}
  #acs-userbar span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:#b9c4d6;font-size:11px}
  #acs-userbar .acs-btn{flex:0 0 auto;padding:8px 10px!important;font-size:12px!important}
}

.section-actions .primary,#new-channel-btn,#new-project-btn,#new-template-btn{min-height:46px!important;padding:11px 18px!important;border-radius:13px!important;font-size:14px!important}
#view-settings .panel{padding:18px 18px 16px}
#view-settings .panel h2{margin-bottom:12px}
#view-settings label{gap:5px}
#view-settings .form-row{gap:12px}
.project-tabs{gap:6px}.project-tab{position:relative;padding:10px 13px}.project-tab.active{box-shadow:0 8px 22px rgba(124,92,255,.14)}

@media (max-width:980px) and (min-width:761px){
  .sidebar{padding:20px 12px 18px}.brand-title{font-size:17px}.nav-btn{grid-template-columns:34px minmax(0,1fr)!important;padding:9px 10px!important;gap:9px!important;font-size:13px!important}.nav-btn .nav-icon{width:34px;height:34px}#acs-userbar{left:12px!important;width:186px!important}#acs-lang-switch{left:12px;width:186px}
}

@media (max-width:760px){
  .brand{display:none!important}
  .sidebar nav{gap:5px!important}
  .nav-btn{display:flex!important;flex-direction:column!important;justify-content:center!important;gap:4px!important;min-height:58px!important;padding:5px 3px!important;font-size:10px!important;overflow:visible!important}
  .nav-btn::before{display:none!important}
  .nav-btn .nav-icon{display:grid;place-items:center;width:28px;height:28px;border-radius:9px;background:#151b27;border:1px solid rgba(255,255,255,.06);color:#9eabc0}
  .nav-btn .nav-icon svg{width:17px;height:17px;display:block;stroke:currentColor;stroke-width:2;fill:none;stroke-linecap:round;stroke-linejoin:round}
  .nav-btn.active .nav-icon{background:linear-gradient(145deg,#7c5cff,#6871ff);color:#fff}
  .nav-btn .nav-label{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #acs-lang-switch{position:fixed;left:10px;bottom:82px;z-index:9100;display:flex;gap:4px;padding:4px;border-radius:10px;background:#10151f;border:1px solid rgba(255,255,255,.08)}
  #acs-lang-switch button{border:0;border-radius:7px;padding:7px 9px;background:transparent;color:#8f9bb0;font-size:10px;font-weight:800}
  #acs-lang-switch button.active{background:#7c5cff;color:#fff}
  #acs-userbar{right:10px!important;left:auto!important;bottom:82px!important;max-width:calc(100vw - 100px);border-radius:12px!important;padding:7px 8px!important;font-size:11px!important}
  #acs-userbar span{max-width:120px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  #acs-userbar .acs-btn{padding:7px 9px!important;font-size:11px!important}
  .section-actions .primary,#new-channel-btn,#new-project-btn,#new-template-btn{min-height:44px!important;padding:10px 14px!important}
}
