:root{
  --bg: #0B0E13;
  --bg-2: #11151C;
  --bg-3: #161B22;
  --bg-4: #1C232D;
  --border: #21262D;
  --border-2: #30363D;
  --border-3: #3D444D;
  --yellow: #F5C500;
  --yellow-2: #FFD53D;
  --yellow-dim: rgba(245,197,0,0.10);
  --yellow-dim-2: rgba(245,197,0,0.18);
  --green: #3FB950;
  --green-dim: rgba(63,185,80,0.12);
  --blue: #58A6FF;
  --blue-dim: rgba(88,166,255,0.12);
  --red: #F85149;
  --red-dim: rgba(248,81,73,0.12);
  --purple: #D2A8FF;
  --purple-dim: rgba(210,168,255,0.12);
  --orange: #FFA657;
  --orange-dim: rgba(255,166,87,0.12);
  --text: #E6EDF3;
  --text-2: #8B949E;
  --text-3: #6E7681;
  --text-4: #484F58;
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --shadow: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.25);
}
*{margin:0;padding:0;box-sizing:border-box}
html,body{height:100%;background:var(--bg);color:var(--text)}
body{
  font-family:'Inter',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:13px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  font-feature-settings:"cv11","ss01";
}
.mono{font-family:'JetBrains Mono',ui-monospace,monospace;font-feature-settings:"zero","ss01"}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,select,textarea{font-family:inherit;color:inherit}
a{color:inherit;text-decoration:none}

::-webkit-scrollbar{width:8px;height:8px}
::-webkit-scrollbar-track{background:transparent}
::-webkit-scrollbar-thumb{background:var(--border-2);border-radius:4px}
::-webkit-scrollbar-thumb:hover{background:var(--border-3)}

/* ============== LOGIN ============== */
.login-wrap{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.1fr 1fr;
  background:var(--bg);
}
.login-left{
  position:relative;
  background: radial-gradient(120% 80% at 20% 10%, rgba(245,197,0,0.08) 0%, transparent 50%), var(--bg);
  border-right:1px solid var(--border);
  padding: 56px 64px;
  display:flex;
  flex-direction:column;
  overflow:hidden;
}
.login-left::before{
  content:"";
  position:absolute;
  inset:0;
  background-image:
    linear-gradient(rgba(245,197,0,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245,197,0,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events:none;
  mask: linear-gradient(180deg, black 0%, transparent 80%);
}
.login-brand{
  position:relative;
  display:flex;
  align-items:center;
  gap:14px;
  z-index:2;
}
.login-brand-logo{
  width:46px;height:46px;
  border-radius:10px;
  background: var(--yellow);
  display:flex;align-items:center;justify-content:center;
  position:relative;
  box-shadow: 0 0 0 1px rgba(245,197,0,0.4), 0 8px 24px rgba(245,197,0,0.25);
}
.login-brand-logo img{ width:80%; height:80%; object-fit:contain; mix-blend-mode: multiply; }
.login-brand-text .lb1{font-size:18px;font-weight:800;letter-spacing:-0.3px}
.login-brand-text .lb1 .acc{color:var(--yellow)}
.login-brand-text .lb2{font-size:11px;color:var(--text-3);letter-spacing:0.04em;margin-top:1px}

.login-hero{position:relative;z-index:2;flex:1;display:flex;flex-direction:column;justify-content:center}
.login-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  font-size:11px;font-weight:600;color:var(--yellow);
  letter-spacing:0.16em;text-transform:uppercase;
  margin-bottom:24px;
}
.login-eyebrow::before{content:"";width:24px;height:1px;background:var(--yellow)}
.login-title{
  font-size:48px;line-height:1.05;letter-spacing:-1.6px;font-weight:800;
  margin-bottom:18px;
}
.login-title .muted{color:var(--text-3);font-weight:400}
.login-desc{font-size:15px;color:var(--text-2);max-width:480px;line-height:1.65;margin-bottom:40px}

.login-stat-row{display:flex;gap:0;border:1px solid var(--border);border-radius:12px;background:rgba(22,27,34,0.6);overflow:hidden;max-width:540px}
.login-stat{padding:18px 24px;flex:1;border-right:1px solid var(--border)}
.login-stat:last-child{border-right:none}
.login-stat-val{font-family:'JetBrains Mono',monospace;font-size:22px;font-weight:700;color:var(--yellow);letter-spacing:-0.5px}
.login-stat-lbl{font-size:10px;color:var(--text-3);text-transform:uppercase;letter-spacing:0.1em;margin-top:4px;font-weight:600}

.login-foot{position:relative;z-index:2;display:flex;justify-content:space-between;align-items:center;padding-top:32px;border-top:1px solid var(--border);color:var(--text-3);font-size:11px}
.login-foot .dot{width:6px;height:6px;border-radius:50%;background:var(--green);margin-right:6px;display:inline-block;animation:pulse 2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:0.5}}

.login-right{padding:56px 80px;display:flex;flex-direction:column;justify-content:center}
.login-form{max-width:380px;width:100%;margin:0 auto}
.login-form h2{font-size:24px;font-weight:700;letter-spacing:-0.5px;margin-bottom:6px}
.login-form .sub{color:var(--text-2);font-size:13px;margin-bottom:32px}
.form-row{margin-bottom:18px}
.form-label{display:block;font-size:11px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:8px}
.form-input{
  width:100%;
  background:var(--bg-3);
  border:1px solid var(--border-2);
  border-radius:8px;
  padding:11px 14px;
  font-size:13px;
  color:var(--text);
  transition:all 0.15s;
}
.form-input:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 3px var(--yellow-dim)}
.form-input::placeholder{color:var(--text-4)}
.form-help{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px;font-size:12px}
.form-help label{display:flex;align-items:center;gap:6px;color:var(--text-2);cursor:pointer}
.form-help a{color:var(--yellow);font-weight:500}
.btn-primary{
  width:100%;
  background:var(--yellow);
  color:#0A0A0A;
  font-weight:700;
  padding:12px;
  border-radius:8px;
  font-size:13px;
  letter-spacing:0.02em;
  transition:all 0.15s;
  display:flex;align-items:center;justify-content:center;gap:8px;
}
.btn-primary:hover{background:var(--yellow-2);transform:translateY(-1px);box-shadow:0 4px 16px rgba(245,197,0,0.3)}
.btn-secondary{
  background:var(--bg-3);
  color:var(--text);
  border:1px solid var(--border-2);
  padding:10px 16px;
  border-radius:7px;
  font-size:12px;
  font-weight:500;
  transition:all 0.15s;
  display:inline-flex;align-items:center;gap:6px;
}
.btn-secondary:hover{border-color:var(--border-3);background:var(--bg-4)}
.btn-ghost{
  color:var(--text-2);
  padding:8px 12px;
  border-radius:6px;
  font-size:12px;
  transition:all 0.15s;
  display:inline-flex;align-items:center;gap:6px;
}
.btn-ghost:hover{color:var(--text);background:var(--bg-3)}

.login-divider{display:flex;align-items:center;gap:12px;margin:24px 0;color:var(--text-3);font-size:11px;text-transform:uppercase;letter-spacing:0.1em}
.login-divider::before,.login-divider::after{content:"";flex:1;height:1px;background:var(--border)}

.demo-users{display:flex;flex-direction:column;gap:8px}
.demo-user{
  display:flex;align-items:center;gap:12px;padding:10px 12px;
  background:var(--bg-3);border:1px solid var(--border);border-radius:8px;
  cursor:pointer;transition:all 0.15s;text-align:left;width:100%;
}
.demo-user:hover{border-color:var(--border-2);background:var(--bg-4)}
.demo-user .avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.demo-user .info{flex:1}
.demo-user .name{font-size:12px;font-weight:600;color:var(--text)}
.demo-user .role{font-size:11px;color:var(--text-3);font-family:'JetBrains Mono',monospace}
.demo-user .arrow{color:var(--text-3);font-size:14px}

/* ============== APP SHELL ============== */
.app{display:grid;grid-template-columns:236px 1fr;min-height:100vh;background:var(--bg)}

/* Sidebar */
.sidebar{
  background:var(--bg-2);
  border-right:1px solid var(--border);
  display:flex;flex-direction:column;
  position:sticky;top:0;height:100vh;
  overflow-y:auto;
}
.sb-brand{
  display:flex;align-items:center;gap:10px;
  padding:18px 18px;
  border-bottom:1px solid var(--border);
}
.sb-logo{
  width:34px;height:34px;border-radius:8px;
  background: var(--yellow);
  display:flex;align-items:center;justify-content:center;
  flex-shrink:0;
  box-shadow: 0 0 0 1px rgba(245,197,0,0.3);
}
.sb-logo img{width:80%;height:80%;object-fit:contain;mix-blend-mode:multiply}
.sb-brand-text .l1{font-size:13px;font-weight:800;letter-spacing:-0.3px;line-height:1}
.sb-brand-text .l1 .acc{color:var(--yellow)}
.sb-brand-text .l2{font-size:10px;color:var(--text-3);margin-top:3px;font-family:'JetBrains Mono',monospace}

.sb-project{
  margin: 14px;
  background:var(--bg-3);
  border:1px solid var(--border);
  border-radius:8px;
  padding:10px 12px;
  display:flex;align-items:center;gap:10px;
  cursor:pointer;
  transition:all 0.15s;
}
.sb-project:hover{border-color:var(--border-2)}
.sb-project-dot{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px rgba(63,185,80,0.15)}
.sb-project-text{flex:1;min-width:0}
.sb-project-name{font-size:12px;font-weight:600;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-project-meta{font-size:10px;color:var(--text-3);margin-top:1px;font-family:'JetBrains Mono',monospace}
.sb-project-icon{color:var(--text-3)}

.sb-nav{padding:6px 10px;flex:1}
.sb-nav-group{margin-bottom:6px}
.sb-nav-label{padding:12px 12px 6px;font-size:10px;color:var(--text-4);text-transform:uppercase;letter-spacing:0.1em;font-weight:600}
.sb-nav-item{
  display:flex;align-items:center;gap:10px;
  padding:8px 12px;
  border-radius:6px;
  font-size:13px;
  color:var(--text-2);
  cursor:pointer;
  transition:all 0.1s;
  margin:1px 0;
  position:relative;
}
.sb-nav-item:hover{color:var(--text);background:var(--bg-3)}
.sb-nav-item.active{color:var(--yellow);background:var(--yellow-dim)}
.sb-nav-item.active::before{
  content:"";position:absolute;left:-10px;top:6px;bottom:6px;
  width:3px;background:var(--yellow);border-radius:0 3px 3px 0;
}
.sb-nav-item .ic{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.sb-nav-item .lbl{flex:1}
.sb-nav-item .badge{
  background:var(--bg-4);color:var(--text-3);
  font-size:10px;padding:1px 6px;border-radius:10px;font-weight:600;
  font-family:'JetBrains Mono',monospace;
}
.sb-nav-item.active .badge{background:var(--yellow);color:#0A0A0A}

.sb-user{
  margin:0 10px 12px;
  padding:10px 12px;
  border-top:1px solid var(--border);
  padding-top:14px;
  display:flex;align-items:center;gap:10px;
}
.sb-user-avatar{
  width:32px;height:32px;border-radius:50%;
  background:linear-gradient(135deg, var(--yellow), #D4A800);
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:11px;color:#0A0A0A;
  flex-shrink:0;
}
.sb-user-info{flex:1;min-width:0}
.sb-user-name{font-size:12px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.sb-user-role{font-size:10px;color:var(--text-3);font-family:'JetBrains Mono',monospace}
.sb-user-icon{color:var(--text-3);cursor:pointer;padding:4px;border-radius:4px}
.sb-user-icon:hover{color:var(--text);background:var(--bg-3)}

/* Topbar */
.main{display:flex;flex-direction:column;min-width:0}
.topbar{
  height:56px;
  display:flex;align-items:center;
  padding:0 24px;
  border-bottom:1px solid var(--border);
  background:rgba(11,14,19,0.85);
  backdrop-filter:blur(12px);
  position:sticky;top:0;z-index:10;
  gap:16px;
}
.tb-breadcrumb{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--text-2)}
.tb-breadcrumb .crumb{color:var(--text)}
.tb-breadcrumb .sep{color:var(--text-4)}
.tb-search{
  flex:1;max-width:420px;
  display:flex;align-items:center;gap:8px;
  background:var(--bg-3);
  border:1px solid var(--border);
  border-radius:7px;
  padding:7px 12px;
  margin-left:24px;
}
.tb-search input{background:transparent;border:none;outline:none;flex:1;font-size:13px;color:var(--text)}
.tb-search input::placeholder{color:var(--text-3)}
.tb-search .kbd{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);padding:2px 6px;border:1px solid var(--border-2);border-radius:4px;background:var(--bg-2)}
.tb-actions{display:flex;align-items:center;gap:6px;margin-left:auto}
.tb-icon-btn{
  width:34px;height:34px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;
  color:var(--text-2);
  position:relative;
  transition:all 0.15s;
}
.tb-icon-btn:hover{color:var(--text);background:var(--bg-3)}
.tb-icon-btn .ind{
  position:absolute;top:7px;right:7px;width:7px;height:7px;
  background:var(--yellow);border-radius:50%;
  box-shadow:0 0 0 2px var(--bg);
}

/* Content area */
.content{padding:28px 32px;flex:1;min-width:0}
.page-title-row{display:flex;align-items:flex-end;justify-content:space-between;margin-bottom:24px;gap:24px;flex-wrap:wrap}
.page-title{font-size:24px;font-weight:700;letter-spacing:-0.5px}
.page-sub{font-size:13px;color:var(--text-2);margin-top:4px}
.page-actions{display:flex;align-items:center;gap:8px}

/* ============== COMMON COMPONENTS ============== */
.card{
  background:var(--bg-2);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  overflow:hidden;
}
.card-head{
  padding:14px 18px;
  border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;gap:12px;
}
.card-title{font-size:13px;font-weight:600;color:var(--text)}
.card-sub{font-size:12px;color:var(--text-3);margin-top:1px}
.card-body{padding:18px}
.card-body.no-pad{padding:0}

/* KPI cards */
.kpi-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:24px}
.kpi-card{
  background:var(--bg-2);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px 20px;
  position:relative;
  overflow:hidden;
  transition:all 0.15s;
}
.kpi-card:hover{border-color:var(--border-2)}
.kpi-card.featured{
  background: linear-gradient(135deg, rgba(245,197,0,0.06) 0%, transparent 70%), var(--bg-2);
  border-color: rgba(245,197,0,0.2);
}
.kpi-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:12px}
.kpi-label{font-size:11px;color:var(--text-2);text-transform:uppercase;letter-spacing:0.08em;font-weight:600}
.kpi-icon{width:28px;height:28px;border-radius:7px;display:flex;align-items:center;justify-content:center;background:var(--bg-3);color:var(--text-2)}
.kpi-card.featured .kpi-icon{background:var(--yellow-dim);color:var(--yellow)}
.kpi-value{font-family:'JetBrains Mono',monospace;font-size:24px;font-weight:700;letter-spacing:-0.6px;line-height:1.1}
.kpi-card.featured .kpi-value{color:var(--yellow)}
.kpi-meta{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:11px;color:var(--text-3)}
.kpi-delta{display:inline-flex;align-items:center;gap:3px;font-weight:600;font-family:'JetBrains Mono',monospace}
.kpi-delta.up{color:var(--green)}
.kpi-delta.down{color:var(--red)}
.kpi-delta.neutral{color:var(--text-2)}
.kpi-spark{position:absolute;right:0;bottom:0;width:80px;height:36px;opacity:0.6}

/* Pill / Tag */
.pill{
  display:inline-flex;align-items:center;gap:5px;
  padding:3px 9px;
  border-radius:20px;
  font-size:11px;
  font-weight:600;
  font-family:'JetBrains Mono',monospace;
  letter-spacing:0.02em;
}
.pill-yellow{background:var(--yellow-dim);color:var(--yellow);border:1px solid rgba(245,197,0,0.2)}
.pill-green{background:var(--green-dim);color:var(--green);border:1px solid rgba(63,185,80,0.2)}
.pill-red{background:var(--red-dim);color:var(--red);border:1px solid rgba(248,81,73,0.2)}
.pill-blue{background:var(--blue-dim);color:var(--blue);border:1px solid rgba(88,166,255,0.2)}
.pill-purple{background:var(--purple-dim);color:var(--purple);border:1px solid rgba(210,168,255,0.2)}
.pill-orange{background:var(--orange-dim);color:var(--orange);border:1px solid rgba(255,166,87,0.2)}
.pill-gray{background:var(--bg-4);color:var(--text-2);border:1px solid var(--border-2)}
.pill-dot::before{content:"";width:5px;height:5px;border-radius:50%;background:currentColor}

/* Table */
.table{width:100%;border-collapse:collapse;font-size:12.5px}
.table thead th{
  background:var(--bg-3);
  color:var(--text-3);
  font-weight:600;
  font-size:10.5px;
  text-transform:uppercase;
  letter-spacing:0.08em;
  text-align:left;
  padding:11px 16px;
  border-bottom:1px solid var(--border);
  white-space:nowrap;
}
.table tbody td{padding:13px 16px;border-bottom:1px solid var(--border);color:var(--text);vertical-align:middle}
.table tbody tr:last-child td{border-bottom:none}
.table tbody tr{transition:background 0.1s}
.table tbody tr:hover td{background:rgba(255,255,255,0.02)}
.table td.num{font-family:'JetBrains Mono',monospace;text-align:right;white-space:nowrap}
.table td.muted{color:var(--text-2)}
.table td.strong{font-weight:600}

/* Filter bar */
.filters{display:flex;gap:8px;align-items:center;flex-wrap:wrap;margin-bottom:16px}
.filter-chip{
  display:inline-flex;align-items:center;gap:6px;
  background:var(--bg-3);
  border:1px solid var(--border);
  padding:6px 12px;
  border-radius:7px;
  font-size:12px;
  color:var(--text-2);
  cursor:pointer;
  transition:all 0.15s;
}
.filter-chip:hover{border-color:var(--border-2);color:var(--text)}
.filter-chip.active{background:var(--yellow-dim);border-color:rgba(245,197,0,0.3);color:var(--yellow)}
.filter-chip .count{
  font-family:'JetBrains Mono',monospace;
  font-size:10px;padding:1px 5px;border-radius:8px;
  background:var(--bg-2);color:var(--text-3);
}
.filter-chip.active .count{background:var(--yellow);color:#0A0A0A}

/* Two column layout */
.two-col{display:grid;grid-template-columns:2fr 1fr;gap:18px}
.three-col{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}

/* Bar chart */
.bar-chart{display:flex;align-items:flex-end;gap:8px;height:180px;padding:0 4px}
.bar-chart .bar-wrap{flex:1;display:flex;flex-direction:column;align-items:center;gap:6px}
.bar-chart .bar{
  width:100%;
  background:linear-gradient(180deg, var(--yellow) 0%, rgba(245,197,0,0.4) 100%);
  border-radius:4px 4px 0 0;
  position:relative;
  cursor:pointer;
  transition:all 0.15s;
  min-height:4px;
}
.bar-chart .bar.alt{background:linear-gradient(180deg, var(--blue) 0%, rgba(88,166,255,0.3) 100%)}
.bar-chart .bar:hover{filter:brightness(1.15)}
.bar-chart .bar-label{font-size:10px;color:var(--text-3);font-family:'JetBrains Mono',monospace}
.bar-chart .bar-value{
  position:absolute;top:-22px;left:50%;transform:translateX(-50%);
  font-size:10px;font-family:'JetBrains Mono',monospace;color:var(--text);
  white-space:nowrap;
  opacity:0;transition:opacity 0.15s;
}
.bar-chart .bar:hover .bar-value{opacity:1}

/* Category bars */
.cat-list{display:flex;flex-direction:column;gap:14px}
.cat-row{display:flex;flex-direction:column;gap:6px}
.cat-row-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}
.cat-name{display:flex;align-items:center;gap:8px;color:var(--text)}
.cat-dot{width:8px;height:8px;border-radius:2px}
.cat-amount{font-family:'JetBrains Mono',monospace;font-weight:600;color:var(--text)}
.cat-bar{height:6px;background:var(--bg-3);border-radius:3px;overflow:hidden;position:relative}
.cat-bar-fill{height:100%;border-radius:3px;transition:width 0.6s}
.cat-pct{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);margin-left:6px}

/* Donut */
.donut-wrap{position:relative;width:160px;height:160px;margin:0 auto}
.donut-center{
  position:absolute;inset:0;display:flex;flex-direction:column;
  align-items:center;justify-content:center;
}
.donut-val{font-family:'JetBrains Mono',monospace;font-size:18px;font-weight:700}
.donut-lbl{font-size:10px;color:var(--text-3);text-transform:uppercase;letter-spacing:0.06em;margin-top:2px}

/* Activity / timeline */
.activity{display:flex;flex-direction:column}
.activity-item{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--border)}
.activity-item:last-child{border-bottom:none}
.act-dot{width:8px;height:8px;border-radius:50%;margin-top:6px;flex-shrink:0}
.act-dot.green{background:var(--green);box-shadow:0 0 0 3px var(--green-dim)}
.act-dot.yellow{background:var(--yellow);box-shadow:0 0 0 3px var(--yellow-dim)}
.act-dot.red{background:var(--red);box-shadow:0 0 0 3px var(--red-dim)}
.act-dot.blue{background:var(--blue);box-shadow:0 0 0 3px var(--blue-dim)}
.act-body{flex:1;min-width:0}
.act-title{font-size:12.5px;color:var(--text);line-height:1.5}
.act-title strong{font-weight:600}
.act-title .amt{font-family:'JetBrains Mono',monospace;color:var(--yellow)}
.act-meta{font-size:11px;color:var(--text-3);margin-top:3px}

/* Project / list items */
.proj-card{
  background:var(--bg-2);
  border:1px solid var(--border);
  border-radius:var(--radius-lg);
  padding:18px 20px;
  cursor:pointer;
  transition:all 0.15s;
  display:flex;flex-direction:column;gap:14px;
  min-height:230px;
}
.proj-card:hover{border-color:var(--border-2);transform:translateY(-2px);box-shadow:0 8px 24px rgba(0,0,0,0.2)}
.proj-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.proj-name{font-size:14px;font-weight:700;color:var(--text);letter-spacing:-0.2px;line-height:1.3}
.proj-code{font-family:'JetBrains Mono',monospace;font-size:10px;color:var(--text-3);margin-top:3px}
.proj-loc{font-size:11px;color:var(--text-3);margin-top:6px;display:flex;align-items:center;gap:4px}
.proj-progress{display:flex;flex-direction:column;gap:6px}
.proj-progress-row{display:flex;justify-content:space-between;align-items:center;font-size:11px;color:var(--text-2)}
.proj-progress-bar{height:5px;background:var(--bg-3);border-radius:3px;overflow:hidden}
.proj-progress-fill{height:100%;background:var(--yellow);border-radius:3px}
.proj-stats{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding-top:12px;border-top:1px solid var(--border)}
.proj-stat .pls{font-size:10px;color:var(--text-3);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:2px;font-weight:600}
.proj-stat .plv{font-family:'JetBrains Mono',monospace;font-size:14px;font-weight:600;color:var(--text)}
.proj-stat .plv.yellow{color:var(--yellow)}
.proj-stat .plv.green{color:var(--green)}
.proj-stat .plv.red{color:var(--red)}

/* Drawer / modal */
.drawer-bg{position:fixed;inset:0;background:rgba(0,0,0,0.5);backdrop-filter:blur(4px);z-index:50;animation:fadein 0.15s}
.drawer{
  position:fixed;right:0;top:0;bottom:0;width:560px;max-width:100vw;
  background:var(--bg);border-left:1px solid var(--border);z-index:51;
  display:flex;flex-direction:column;
  animation:slidein 0.2s ease-out;
}
@keyframes fadein{from{opacity:0}to{opacity:1}}
@keyframes slidein{from{transform:translateX(100%)}to{transform:translateX(0)}}
.drawer-head{
  padding:18px 22px;border-bottom:1px solid var(--border);
  display:flex;align-items:center;justify-content:space-between;
}
.drawer-title{font-size:15px;font-weight:700}
.drawer-body{flex:1;overflow-y:auto;padding:22px}
.drawer-foot{padding:16px 22px;border-top:1px solid var(--border);display:flex;gap:10px;justify-content:flex-end}

/* Form */
.field{margin-bottom:14px}
.field-label{display:flex;justify-content:space-between;align-items:center;font-size:11px;font-weight:600;color:var(--text-2);text-transform:uppercase;letter-spacing:0.06em;margin-bottom:6px}
.field-label .req{color:var(--yellow)}
.field-row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.field-input,.field-select,.field-textarea{
  width:100%;
  background:var(--bg-2);
  border:1px solid var(--border-2);
  border-radius:7px;
  padding:9px 12px;
  font-size:13px;
  color:var(--text);
  transition:all 0.15s;
}
.field-input:focus,.field-select:focus,.field-textarea:focus{outline:none;border-color:var(--yellow);box-shadow:0 0 0 3px var(--yellow-dim)}
.field-textarea{resize:vertical;min-height:80px;font-family:inherit}
.field-help{font-size:11px;color:var(--text-3);margin-top:5px}

.cat-pills{display:flex;flex-wrap:wrap;gap:6px}
.cat-pill{
  padding:6px 11px;font-size:12px;border-radius:7px;
  background:var(--bg-2);border:1px solid var(--border-2);color:var(--text-2);
  cursor:pointer;transition:all 0.15s;display:inline-flex;align-items:center;gap:6px;
}
.cat-pill:hover{border-color:var(--border-3);color:var(--text)}
.cat-pill.selected{background:var(--yellow-dim);border-color:rgba(245,197,0,0.3);color:var(--yellow)}
.cat-pill .icn{font-size:13px}

.upload-zone{
  border:1.5px dashed var(--border-2);
  border-radius:8px;
  padding:24px;
  text-align:center;
  color:var(--text-3);
  background:var(--bg-2);
  cursor:pointer;
  transition:all 0.15s;
}
.upload-zone:hover{border-color:var(--yellow);background:var(--yellow-dim);color:var(--yellow)}

/* Empty state */
.empty{padding:48px 24px;text-align:center;color:var(--text-3)}
.empty-icon{font-size:32px;opacity:0.5;margin-bottom:10px}
.empty-title{font-size:14px;color:var(--text-2);margin-bottom:4px}
.empty-desc{font-size:12px}

/* IA / chat */
.chat-wrap{display:flex;flex-direction:column;height:calc(100vh - 56px - 56px);background:var(--bg);border-radius:var(--radius-lg);overflow:hidden}
.chat-feed{flex:1;overflow-y:auto;padding:24px 0}
.chat-msg{display:flex;gap:12px;padding:8px 28px;margin-bottom:8px}
.chat-msg.user{flex-direction:row-reverse}
.chat-avatar{width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;font-weight:700}
.chat-avatar.ai{background:var(--yellow);color:#0A0A0A}
.chat-avatar.user{background:var(--bg-3);color:var(--text);border:1px solid var(--border)}
.chat-bubble{max-width:680px;background:var(--bg-2);border:1px solid var(--border);border-radius:12px;padding:12px 16px;font-size:13px;line-height:1.6}
.chat-msg.user .chat-bubble{background:var(--yellow-dim);border-color:rgba(245,197,0,0.2)}
.chat-bubble code{background:var(--bg-3);padding:1px 5px;border-radius:4px;font-family:'JetBrains Mono',monospace;font-size:12px;color:var(--yellow)}
.chat-input-wrap{padding:14px 24px;border-top:1px solid var(--border);background:var(--bg-2)}
.chat-input{
  display:flex;align-items:center;gap:8px;
  background:var(--bg);
  border:1px solid var(--border-2);
  border-radius:10px;
  padding:8px 10px 8px 16px;
  transition:all 0.15s;
}
.chat-input:focus-within{border-color:var(--yellow)}
.chat-input input{flex:1;background:transparent;border:none;outline:none;font-size:13px;color:var(--text)}
.chat-input input::placeholder{color:var(--text-3)}
.chat-send{
  background:var(--yellow);color:#0A0A0A;
  width:32px;height:32px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;font-weight:700;
}
.chat-suggestions{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}
.chat-suggest{
  font-size:11.5px;padding:6px 10px;border-radius:6px;
  background:var(--bg);border:1px solid var(--border-2);color:var(--text-2);
  cursor:pointer;transition:all 0.15s;
}
.chat-suggest:hover{border-color:var(--yellow);color:var(--yellow)}

/* Files */
.file-row{
  display:flex;align-items:center;gap:14px;
  padding:12px 16px;border-bottom:1px solid var(--border);
  cursor:pointer;transition:background 0.1s;
}
.file-row:hover{background:rgba(255,255,255,0.02)}
.file-row:last-child{border-bottom:none}
.file-icon{width:36px;height:36px;border-radius:7px;display:flex;align-items:center;justify-content:center;flex-shrink:0;font-size:14px;font-weight:700;font-family:'JetBrains Mono',monospace}
.file-icon.pdf{background:rgba(248,81,73,0.15);color:var(--red)}
.file-icon.xls{background:rgba(63,185,80,0.15);color:var(--green)}
.file-icon.img{background:rgba(88,166,255,0.15);color:var(--blue)}
.file-icon.doc{background:rgba(210,168,255,0.15);color:var(--purple)}
.file-icon.folder{background:rgba(245,197,0,0.15);color:var(--yellow)}
.file-name{font-size:13px;font-weight:500;color:var(--text);flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.file-meta{font-size:11px;color:var(--text-3);font-family:'JetBrains Mono',monospace;display:flex;gap:18px;flex-shrink:0}

/* Misc */
.divider-h{width:100%;height:1px;background:var(--border);margin:18px 0}
.skel{background:var(--bg-3);border-radius:4px;height:14px;width:80px}
.sm{font-size:11.5px;color:var(--text-3)}
.amount-pos{color:var(--green)}
.amount-neg{color:var(--red)}

/* Animations */
@keyframes shimmer{0%{background-position:-200% 0}100%{background-position:200% 0}}
.shimmer{background:linear-gradient(90deg,var(--bg-3) 0%,var(--bg-4) 50%,var(--bg-3) 100%);background-size:200% 100%;animation:shimmer 1.5s infinite}

/* Responsive */
@media (max-width: 1100px){
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
  .two-col{grid-template-columns:1fr}
}
@media (max-width: 820px){
  .login-wrap{grid-template-columns:1fr}
  .login-left{display:none}
  .app{grid-template-columns:1fr}
  .sidebar{display:none}
}
