 /* ===== Base Reset ===== */
    *{box-sizing:border-box}
    html,body{height:100%}
    body{
      margin:0;
  font-family: 'Ubuntu', sans-serif !important;
      background: linear-gradient(135deg,#eaf2ff,#f7fbff);
      color:#0f172a;
      overflow-x:hidden;
    }
    a{color:inherit}
    .layout{
      min-height:100vh;
      display:flex;
      width:100%;
      max-width:100%;
      overflow-x:hidden;
    }

    /* ===== Overlay (mobile) ===== */
    .overlay{
      position:fixed;
      inset:0;
      background: rgba(2,6,23,.45);
      opacity:0;
      visibility:hidden;
      transition:.2s ease;
      z-index:80;
      pointer-events:none; /* IMPORTANT */
    }
    .overlay.show{
      opacity:1;
      visibility:visible;
      pointer-events:auto; /* can click to close */
    }

    /* ===== Sidebar ===== */
    .side{
      width:280px;
      flex:0 0 280px;
      max-width:86vw;
      height:100vh;
      position:sticky;
      top:0;
      overflow:auto;
      background: rgba(255,255,255,.92);
      border-right:1px solid rgba(15,23,42,.10);
      box-shadow: 0 18px 50px rgba(2,6,23,.10);
      backdrop-filter: blur(14px);
      z-index:90; /* MUST be higher than overlay */
    }
    .brand{
      display:flex;
      align-items:center;
      gap:12px;
      padding:18px 16px;
      border-bottom:1px solid rgba(15,23,42,.08);
      background: linear-gradient(135deg, rgba(26,115,232,.12), rgba(13,71,161,.05));
    }
    .mark{
      width:46px;height:46px;
      border-radius:16px;
      display:grid;place-items:center;
      font-weight:900;
      color:#fff;
      background: linear-gradient(135deg,#1a73e8,#0d47a1);
      box-shadow:0 12px 26px rgba(26,115,232,.28);
      flex:0 0 auto;
    }
    .brand h1{
      margin:0;
      font-size:16px;
      font-weight:900;
      color:#0b2a66;
      letter-spacing:.2px;
    }
    .brand p{
      margin:4px 0 0;
      font-size:12px;
      color:#64748b;
      font-weight:700;
    }

    .menu{padding:12px}
    .link{
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:10px;
      padding:12px 12px;
      border-radius:16px;
      text-decoration:none;
      margin-bottom:8px;
      border:1px solid rgba(15,23,42,.08);
      background: rgba(255,255,255,.86);
      transition:.18s ease;
      font-weight:850;
      color:#0b2a66;
    }
    .link:hover{transform:translateY(-1px); box-shadow:0 12px 26px rgba(2,6,23,.08)}
    .link.active{
      background: linear-gradient(135deg, rgba(26,115,232,.14), rgba(13,71,161,.06));
      border-color: rgba(26,115,232,.22);
    }
    .pill{
      font-size:11px;
      font-weight:900;
      padding:6px 10px;
      border-radius:999px;
      background: rgba(26,115,232,.10);
      border:1px solid rgba(26,115,232,.20);
      color:#0d47a1;
      white-space:nowrap;
    }

    .drop{margin-bottom:8px}
    .drop-btn{
      width:100%;
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:10px;
      padding:12px 12px;
      border-radius:16px;
      border:1px solid rgba(15,23,42,.08);
      background: rgba(255,255,255,.86);
      cursor:pointer;
      font-weight:850;
      color:#0b2a66;
      transition:.18s ease;
    }
    .drop-btn:hover{transform:translateY(-1px); box-shadow:0 12px 26px rgba(2,6,23,.08)}
    .drop-arrow{font-weight:900}
    .drop-menu{display:none; padding:8px 10px 6px}
    .drop.open .drop-menu{display:block;}
    .sublink{
      display:block;
      padding:10px 12px;
      border-radius:14px;
      text-decoration:none;
      font-weight:800;
      color:#0b2a66;
      margin-bottom:6px;
      border:1px solid rgba(15,23,42,.06);
      background: rgba(248,251,255,.85);
    }
    .sublink:hover{background: rgba(14,165,255,.08)}
    .sublink.active{
      border-color: rgba(26,115,232,.24);
      background: rgba(26,115,232,.10);
    }

    .sidebox{
      margin:12px;
      border-radius:18px;
      border:1px solid rgba(15,23,42,.08);
      background: rgba(255,255,255,.86);
      padding:12px 14px;
      box-shadow: 0 14px 30px rgba(2,6,23,.06);
    }
    .sidebox .t{margin:0; font-size:12px; color:#64748b; font-weight:850}
    .sidebox .s{margin:6px 0 0; font-size:14px; color:#0b2a66; font-weight:950}

    /* ===== Main ===== */
    .main{
      flex:1 1 auto;
      min-width:0;
      width:100%;
      max-width:100%;
      padding:14px;
    }

    /* ===== Topbar ===== */
    .topbar{
      position:sticky;
      top:0;
      z-index:70;
      display:flex;
      align-items:center;
      justify-content:space-between;
      gap:12px;
      flex-wrap:wrap;
      padding:12px 12px;
      border-radius:22px;
      background: rgba(255,255,255,.90);
      border:1px solid rgba(15,23,42,.08);
      box-shadow: 0 18px 44px rgba(2,6,23,.08);
      backdrop-filter: blur(12px);
    }
    .topbar-left{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .topbar-toggle{
      width:44px;height:44px;
      border-radius:16px;
      border:1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.92);
      cursor:pointer;
      font-size:18px;
      font-weight:900;
      color:#0d47a1;
      display:grid;
      place-items:center;
    }
    .topbar-brand{
      display:flex;
      align-items:center;
      gap:10px;
      min-width:0;
    }
    .topbar-mark{
      width:40px;height:40px;
      border-radius:16px;
      display:grid;place-items:center;
      color:#fff;
      font-weight:900;
      background: linear-gradient(135deg,#1a73e8,#0d47a1);
      flex:0 0 auto;
    }
    .topbar-title{min-width:0}
    .t1{
      font-weight:950;
      color:#0b2a66;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 48vw;
    }
    .t2{
      font-size:12px;
      font-weight:800;
      color:#64748b;
      margin-top:2px;
      white-space:nowrap;
      overflow:hidden;
      text-overflow:ellipsis;
      max-width: 48vw;
    }
    .topbar-right{
      display:flex;
      align-items:center;
      gap:10px;
      flex-wrap:wrap;
      justify-content:flex-end;
    }
    .topbar-user{
      padding:10px 12px;
      border-radius:16px;
      background: rgba(26,115,232,.08);
      border:1px solid rgba(26,115,232,.16);
      font-weight:900;
      color:#0b2a66;
      display:flex;
      flex-direction:column;
      line-height:1.1;
    }
    .topbar-user .u1{font-size:11px; color:#64748b; font-weight:900}
    .topbar-user .u2{font-size:13px; font-weight:950}

    .topbar-btn{
      padding:10px 12px;
      border-radius:16px;
      text-decoration:none;
      border:1px solid rgba(15,23,42,.10);
      background: rgba(255,255,255,.92);
      font-weight:900;
      color:#0d47a1;
      display:inline-flex;
      align-items:center;
      gap:8px;
    }
    .topbar-btn.danger{
      color:#b91c1c;
      background: rgba(185,28,28,.06);
      border-color: rgba(185,28,28,.18);
    }

    /* ===== Responsive ===== */
    @media (max-width: 1100px){
      .layout{display:block;}
      .side{
        position:fixed;
        left:0; top:0;
        transform: translateX(-105%);
        transition: transform .22s ease;
        z-index:95; /* keep above overlay */
        pointer-events:auto;
      }
      .side.open{transform: translateX(0);}
      .main{padding:12px;}
      .t1,.t2{max-width: 58vw;}
    }
    @media (max-width: 520px){
      .topbar{border-radius:18px}
      .t1,.t2{max-width: 68vw;}
      .topbar-right{width:100%; justify-content:space-between;}
      .topbar-user{flex:1}
    }