:root{
  --director-nav:#0b1f4d;
  --director-nav-2:#102c6a;
  --director-shell:#f3f7fd;
  --director-card:#ffffff;
  --director-shadow:0 18px 40px rgba(12,30,72,.08);
  --director-shadow-soft:0 10px 24px rgba(12,30,72,.05);
  --director-radius:22px;
  --director-radius-sm:16px;
}

html,body{
  overflow-x:hidden !important;
  background:
    radial-gradient(circle at top left, rgba(95,135,255,.12), transparent 28%),
    linear-gradient(180deg, #f7faff 0%, #eef4fb 100%);
}

.app-shell{
  background:transparent;
}

.topbar{
  position:sticky;
  top:0;
  z-index:40;
  min-height:84px;
  padding:14px 22px;
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid rgba(208,218,236,.9);
  box-shadow:0 10px 24px rgba(18,46,98,.06);
}

.brand{
  gap:14px;
}

.brand-badge{
  width:54px;
  height:54px;
  border-radius:18px;
  background:linear-gradient(145deg, #1f4ed8, #5d7cff);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.24);
  font-size:18px;
}

.brand h1{
  font-size:18px;
  line-height:1.15;
  margin:0;
}

.brand p{
  margin:4px 0 0;
  font-size:13px;
  color:#607290;
}

.actions{
  gap:10px;
}

.workspace-identity{
  display:flex;
  align-items:center;
  gap:10px;
  padding:6px 10px;
  border-radius:16px;
  background:linear-gradient(180deg, rgba(244,247,253,.96), rgba(255,255,255,.94));
  border:1px solid rgba(213,223,239,.95);
  min-height:52px;
}

.workspace-identity .avatar{
  width:40px;
  height:40px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, #edf3ff, #d7e5ff);
  color:#2352d9;
  font-size:13px;
  font-weight:800;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
}

.workspace-identity strong{
  display:block;
  font-size:13px;
  line-height:1.15;
}

.workspace-identity .muted{
  font-size:11px;
  color:#6e7e98;
}

.layout{
  grid-template-columns:240px minmax(0,1fr);
  gap:20px;
  align-items:start;
}

.sidebar{
  position:sticky;
  top:104px;
  padding:0 0 24px;
}

.side-card{
  background:linear-gradient(180deg, var(--director-nav) 0%, #081736 100%);
  color:#eef4ff;
  border:0;
  border-radius:28px;
  box-shadow:var(--director-shadow);
  padding:24px 20px;
}

.side-card strong{
  display:block;
  font-size:15px;
  line-height:1.35;
}

.side-card .muted{
  color:rgba(227,236,255,.78);
  font-size:13px;
  line-height:1.6;
}

.side-menu{
  margin-top:20px;
  display:grid;
  gap:10px;
}

.side-link{
  display:flex;
  align-items:center;
  min-height:48px;
  padding:0 16px;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.08);
  color:#dce7ff;
  background:rgba(255,255,255,.03);
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:all .18s ease;
}

.side-link:hover,
.side-link.active{
  color:#fff;
  background:linear-gradient(135deg, #2555f0, #1d43c8);
  border-color:rgba(255,255,255,.14);
  box-shadow:0 10px 24px rgba(32,82,232,.26);
}

.main{
  padding:8px 0 32px;
}

.main .input,
.main input,
.main select,
.main textarea{
  min-height:42px;
  padding:10px 13px;
  border-radius:14px;
  font-size:13px;
  line-height:1.45;
}

.main textarea{
  min-height:104px;
  resize:vertical;
}

.main label .label,
.main .field-label{
  display:block;
  margin:0 0 6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:#70819d;
}

.main .login-grid{
  gap:12px;
}

.hero,
.panel,
.stat,
.report-card,
.org-card,
.summary-card,
.user-card,
.director-project-card,
.context-callout{
  border-radius:var(--director-radius);
  box-shadow:var(--director-shadow-soft);
}

.hero{
  padding:22px 24px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(213,223,239,.9);
}

.hero h2{
  font-size:17px;
  line-height:1.2;
  margin:0;
}

.hero p{
  margin:10px 0 0;
  font-size:13px;
  line-height:1.7;
  color:#657796;
  max-width:980px;
}

.meta,
.chips,
.chip-stack{
  gap:8px;
}

.pill,
.chip,
.metric-badge,
.legend-pill,
.ratings-hint{
  min-height:34px;
  padding:0 12px;
  border-radius:999px;
  font-size:12px;
  font-weight:600;
}

.stats{
  gap:16px;
}

.stat{
  min-height:118px;
  padding:18px 18px 16px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(214,223,238,.94);
}

.stat .label{
  font-size:12px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#7384a0;
}

.stat .value{
  margin-top:12px;
  font-size:28px;
  line-height:1;
  font-weight:800;
}

.stat .delta{
  margin-top:8px;
  font-size:12px;
  line-height:1.45;
  color:#6b7c98;
}

.panel{
  padding:16px 18px;
  background:rgba(255,255,255,.95);
  border:1px solid rgba(214,223,238,.95);
}

.toolbar{
  gap:14px;
  margin-bottom:14px;
}

.toolbar h3,
.panel h3,
.report-card h3{
  margin:0;
  font-size:16px;
  line-height:1.25;
}

.sub,
.small,
.muted{
  line-height:1.55;
}

.sub{
  font-size:12px;
  color:#6d7d97;
}

.small{
  font-size:12px;
}

.btn-primary,
.btn-light,
.btn-ghost{
  min-height:40px;
  padding:0 14px;
  border-radius:14px;
  font-size:12px;
  font-weight:700;
}

.btn-light{
  background:#f2f6fd;
}

.btn-primary,
.btn-light{
  box-shadow:0 10px 22px rgba(32,82,232,.12);
}

.login-card{
  width:min(480px, 92vw);
  max-height:min(88vh, 720px);
  overflow:auto;
  border-radius:24px;
}

.login-card h3{
  font-size:18px;
}

.report-card,
.org-card,
.summary-card,
.user-card{
  padding:14px;
}

@media (max-width: 1200px){
  .layout{
    grid-template-columns:1fr;
    gap:16px;
  }

  .sidebar{
    position:relative;
    top:0;
  }
}

@media (max-width: 768px){
  .topbar{
    padding:12px 14px;
    min-height:74px;
  }

  .brand-badge{
    width:44px;
    height:44px;
    border-radius:14px;
  }

  .actions{
    gap:8px;
    flex-wrap:wrap;
    justify-content:flex-end;
  }

  .workspace-identity{
    width:100%;
    justify-content:flex-start;
  }

  .side-card{
    border-radius:22px;
    padding:18px 16px;
  }

  .hero{
    padding:18px;
  }

  .panel{
    padding:14px;
  }
}

.input,
select,
textarea{
  min-height:42px;
  border-radius:14px;
  font-size:13px;
}

textarea.input{
  min-height:88px;
  padding-top:12px;
}

.field-label{
  display:block;
  margin:0 0 6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:#70819c;
}

.director-project-card{
  padding:16px 18px;
  gap:12px;
}

.director-project-card h3{
  margin:6px 0 0;
  font-size:16px;
  line-height:1.28;
}

.project-desc{
  font-size:12px;
  line-height:1.55;
}

.project-score{
  font-size:24px;
}

.project-card-actions{
  align-items:center;
  gap:8px;
}

.project-card-actions .btn-light,
.project-card-actions .btn-primary{
  min-width:40px;
  padding:0 12px;
}

.project-card-actions .icon-btn{
  width:40px;
  min-width:40px;
  height:40px;
  padding:0;
  display:inline-grid;
  place-items:center;
}

.compact-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}

.compact-chip-button{
  min-height:34px;
  padding:0 12px;
  font-size:12px;
  border-radius:12px;
}

.evidence-preview-btn{
  position:absolute;
  top:10px;
  right:10px;
  z-index:3;
  min-width:34px;
  min-height:34px;
  padding:0;
  border-radius:10px;
}

.summary-card .value{
  font-size:22px;
}

.detail.open{
  margin-top:8px;
}

.milestone{
  padding:12px 14px;
  border-radius:14px;
}

.project-exec-card{
  width:min(1080px,94vw);
  height:min(700px,88vh);
  border-radius:22px;
}

.project-exec-head{
  padding:14px 18px;
}

.project-exec-head h3{
  margin:0;
  font-size:18px;
}

.project-exec-sub{
  margin-top:6px;
  font-size:12px;
  color:#667892;
}

.project-exec-body{
  grid-template-columns:280px minmax(0,1fr);
}

.project-exec-left,
.project-exec-right{
  padding:14px;
}

.summary-card{
  padding:14px 15px;
  border-radius:16px;
}

.summary-card .value{
  font-size:20px;
  font-weight:800;
}

.exec-milestone{
  border-radius:14px;
}

.exec-milestone-head{
  padding:12px 14px;
}

.exec-milestone-body{
  padding:12px 14px;
}

.exec-gantt-shell{
  min-width:720px;
  border-radius:18px;
}

.exec-gantt-corner,
.gantt-corner{
  font-size:15px;
}

.gantt-shell{
  min-width:720px;
}

.login-card,
.top-card{
  border-radius:24px;
}

.scroll-panel,
.projects,
.org-grid,
.tree-wrap,
.activity-list,
.report-grid,
.user-table-wrap{
  padding-right:4px;
}

.empty,
.empty-inline{
  font-size:12px;
  line-height:1.55;
}

.chart-panel{
  min-height:320px;
}

.chart-panel.tall{
  min-height:360px;
}

.chart-host{
  min-height:240px;
}

.attention-list{
  display:grid;
  gap:12px;
}

.attention-item{
  padding:14px 16px;
  border-radius:18px;
  border:1px solid rgba(223,213,213,.9);
  background:#fff;
}

.attention-item h4{
  margin:0;
  font-size:15px;
}

.attention-meta{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:10px;
}

.workspace-identity{
  display:flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border-radius:16px;
  background:rgba(255,255,255,.9);
  border:1px solid rgba(214,223,238,.95);
}

.workspace-identity .avatar{
  width:40px;
  height:40px;
  border-radius:50%;
  display:grid;
  place-items:center;
  background:linear-gradient(145deg, #244fe0, #7d97ff);
  color:#fff;
  font-weight:800;
  font-size:14px;
}

@media (max-width:1400px){
  .layout{
    grid-template-columns:220px minmax(0,1fr);
  }
}

@media (max-width:1200px){
  .layout,
  .reports-grid,
  .project-grid,
  .config-grid,
  .user-grid,
  .forms-split,
  .project-exec-body{
    grid-template-columns:1fr !important;
  }

  .sidebar{
    position:static;
    top:auto;
    padding-bottom:0;
  }

  .project-exec-left{
    border-right:0 !important;
    border-bottom:1px solid var(--line);
    max-height:38vh;
  }

  .project-exec-card{
    height:min(92vh,960px);
  }
}

@media (max-width:768px){
  .topbar{
    padding:12px 14px;
  }

  .layout{
    gap:16px;
  }

  .hero{
    padding:20px;
  }

  .panel,
  .stat{
    padding:16px;
  }

  .stats{
    grid-template-columns:repeat(2, minmax(0,1fr)) !important;
  }

  .project-exec-card{
    width:min(98vw, 98vw);
    height:min(94vh, 94vh);
    border-radius:18px;
  }

  .brand p{
    font-size:12px;
  }

  .project-exec-body{
    grid-template-columns:1fr !important;
  }

  .project-exec-left,
  .project-exec-right{
    padding:12px;
  }

  .chart-panel,
  .chart-panel.tall,
  .chart-host{
    min-height:220px;
  }
}
