*{box-sizing:border-box;margin:0;padding:0;}
body{font-family:'Segoe UI',system-ui,sans-serif;background:#f5f4f0;display:flex;flex-direction:column;min-height:100vh;}

/* ── MOBILE TOP BAR (hidden on desktop) ── */
.mobile-topbar{display:none;background:#0F2E5D;padding:12px 16px;align-items:center;justify-content:space-between;position:sticky;top:0;z-index:200;}
.mobile-topbar img{height:36px;object-fit:contain;}
.mobile-topbar .hamburger{display:flex;flex-direction:column;gap:5px;cursor:pointer;}
.mobile-topbar .hamburger span{display:block;width:22px;height:2px;background:#fff;border-radius:2px;}

/* ── LAYOUT ── */
.layout{display:flex;flex:1;}

/* ── SIDEBAR ── */
.sidebar{width:210px;background:#0F2E5D;display:flex;flex-direction:column;flex-shrink:0;min-height:100vh;}
.sb-logo{padding:18px 16px 16px;border-bottom:1px solid rgba(255,255,255,.08);}
.sb-logo img{height:38px;object-fit:contain;width:100%;}
.sb-section{padding:16px 14px 6px;font-size:10px;font-weight:600;letter-spacing:.09em;color:rgba(255,255,255,.3);text-transform:uppercase;}
.sb-item{display:flex;align-items:center;gap:10px;padding:9px 14px;margin:1px 8px;border-radius:8px;cursor:pointer;color:rgba(255,255,255,.55);font-size:13px;text-decoration:none;}
.sb-item.active{background:rgba(211,171,68,.18);color:#D3AB44;}
.sb-item:hover:not(.active){background:rgba(255,255,255,.06);color:rgba(255,255,255,.85);}
button.sb-item{background:none;border:none;width:calc(100% - 16px);text-align:left;}
.sb-avatar{margin-top:auto;padding:16px 14px;border-top:1px solid rgba(255,255,255,.08);display:flex;align-items:center;gap:10px;}
.avatar{width:32px;height:32px;border-radius:50%;background:#D3AB44;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;color:#0F2E5D;flex-shrink:0;}

/* ── SIDEBAR OVERLAY (mobile) ── */
.sidebar-overlay{display:none;position:fixed;inset:0;background:rgba(0,0,0,.45);z-index:150;}
.sidebar.mobile-open{display:flex;}

/* ── MAIN ── */
.main{flex:1;display:flex;flex-direction:column;min-width:0;}
.topbar{padding:16px 28px;border-bottom:1px solid #e0dfd9;background:#fff;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;}
.topbar-title{color:#0F2E5D;font-size:17px;font-weight:600;}
.topbar-sub{font-size:12px;color:#A5A6A5;margin-top:2px;}
.topbar-right{display:flex;align-items:center;gap:12px;}
.add-btn{background:#D3AB44;color:#0F2E5D;font-size:12px;font-weight:600;padding:8px 16px;border-radius:8px;border:none;cursor:pointer;white-space:nowrap;}
.notif{width:32px;height:32px;background:#f0efeb;border-radius:8px;display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative;font-size:14px;}
.badge{position:absolute;top:6px;right:6px;width:8px;height:8px;background:#D3AB44;border-radius:50%;}

/* ── CONTENT ── */
.content{padding:24px 28px;flex:1;overflow-y:auto;}
.metrics{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:22px;}
.metric{background:#fff;border-radius:10px;padding:16px;border:1px solid #e8e8e4;}
.metric-label{font-size:11px;color:#A5A6A5;margin-bottom:6px;}
.metric-val{font-size:22px;font-weight:600;color:#0F2E5D;margin-bottom:3px;}
.metric-sub{font-size:11px;color:#D3AB44;}
.metric-sub.gray{color:#A5A6A5;}
.grid2{display:grid;grid-template-columns:1.2fr 1fr;gap:14px;margin-bottom:14px;}
.card{background:#fff;border:1px solid #e8e8e4;border-radius:12px;padding:18px;}
.card-title{font-size:13px;font-weight:600;color:#0F2E5D;margin-bottom:14px;display:flex;align-items:center;justify-content:space-between;}
.card-title span{font-size:11px;color:#D3AB44;font-weight:500;cursor:pointer;}
.proj-row{display:flex;align-items:center;justify-content:space-between;padding:9px 0;border-bottom:1px solid #f0efeb;gap:8px;}
.proj-row:last-child{border-bottom:none;}
.proj-name{font-size:13px;color:#1a1a1a;}
.proj-client{font-size:11px;color:#A5A6A5;}
.status{font-size:11px;padding:3px 10px;border-radius:20px;font-weight:500;white-space:nowrap;}
.s-active{background:rgba(15,46,93,.1);color:#0F2E5D;}
.s-review{background:rgba(211,171,68,.15);color:#9a7b28;}
.s-done{background:rgba(165,166,165,.18);color:#666;}
.bar-row{margin-bottom:11px;}
.bar-label{display:flex;justify-content:space-between;font-size:12px;color:#555;margin-bottom:5px;}
.bar-track{background:#f0efeb;border-radius:4px;height:8px;overflow:hidden;}
.bar-fill{height:100%;border-radius:4px;}
.activity-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 28px;}
.activity-row{display:flex;align-items:flex-start;gap:10px;padding:9px 0;border-bottom:1px solid #f0efeb;}
.activity-row:last-child{border-bottom:none;}
.act-dot{width:9px;height:9px;border-radius:50%;margin-top:4px;flex-shrink:0;}
.act-text{font-size:12px;color:#333;line-height:1.55;}
.act-time{font-size:11px;color:#A5A6A5;margin-top:2px;}

/* ══════════════════════════════════════════
   TABLET  (≤900px)
══════════════════════════════════════════ */
@media(max-width:900px){
  .mobile-topbar{display:flex;}
  .sidebar{position:fixed;left:-210px;top:0;height:100vh;z-index:160;transition:left .25s ease;}
  .sidebar.mobile-open{left:0;}
  .sidebar-overlay.show{display:block;}
  .topbar{padding:14px 20px;}
  .content{padding:20px;}
  .metrics{grid-template-columns:repeat(2,1fr);}
  .grid2{grid-template-columns:1fr;}
  .activity-grid{grid-template-columns:1fr;}
}

/* ══════════════════════════════════════════
   MOBILE  (≤520px)
══════════════════════════════════════════ */
@media(max-width:520px){
  .topbar{padding:12px 14px;}
  .topbar-title{font-size:15px;}
  .content{padding:14px;}
  .metrics{grid-template-columns:1fr 1fr;gap:10px;}
  .metric{padding:12px;}
  .metric-val{font-size:20px;}
  .add-btn{font-size:11px;padding:7px 12px;}
  .card{padding:14px;}
}
