.project-hero {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  color: #fff;
  text-align: center;
  padding: 66px 0 58px;
}
.project-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .58; }
.project-hero-inner { position: relative; z-index: 1; }
.project-hero h1 { margin: 5px 0 15px; font-size: 48px; line-height: 1.1; letter-spacing: -1.5px; }
.project-hero h1 span { color: var(--blue-light); }
.project-hero-inner > p:not(.eyebrow) { color: #cdd8ec; max-width: 650px; margin: 0 auto; line-height: 1.6; }
.project-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.project-tags span { border: 1px solid rgba(255,255,255,.22); background: rgba(8,20,38,.55); border-radius: 6px; padding: 6px 10px; font-size: 11px; }

.project-dashboard-section { padding: 42px 0 64px; background: #f7f9fc; }
.project-view-tabs { display: flex; justify-content: center; gap: 10px; margin-bottom: 30px; }
.project-view-tab { min-width: 210px; padding: 13px 22px; border: 1px solid #d6e0ef; border-radius: 10px; background: #fff; color: #5b6b86; font: inherit; font-weight: 700; cursor: pointer; }
.project-view-tab.active { background: var(--navy-900); border-color: var(--navy-900); color: #fff; }
.project-view-tab:focus-visible { outline: 3px solid rgba(43, 101, 238, .28); outline-offset: 3px; }
.project-view-panel[hidden] { display: none; }
.dashboard-heading { max-width: 760px; margin-bottom: 22px; }
.dashboard-heading h2 { margin: 7px 0 8px; font-size: 31px; }
.dashboard-heading > p:last-child { margin: 0; color: var(--body-text); line-height: 1.65; }
.portal-dashboard { display: grid; grid-template-columns: 245px 1fr; min-height: 440px; border-radius: 17px; overflow: hidden; box-shadow: 0 18px 45px rgba(14, 39, 76, .12); }
.portal-sidebar { background: var(--blue); color: #fff; padding: 26px 16px; }
.portal-sidebar > p { margin: 0 10px 11px; color: #cbd9ff; font-size: 10px; font-weight: 700; letter-spacing: 1.7px; }
.portal-sidebar > p:not(:first-child) { margin-top: 24px; }
.portal-sidebar > div { display: flex; gap: 11px; align-items: center; border-radius: 9px; padding: 13px 12px; margin: 4px 0; font-size: 13px; line-height: 1.3; }
.portal-sidebar > div span { width: 20px; text-align: center; font-size: 17px; }
.portal-sidebar > div.selected { background: #fff; color: var(--blue); font-weight: 700; }
.portal-content { background: #fff; padding: 28px; }
.role-check { display: flex; align-items: center; gap: 11px; padding: 15px 17px; background: #eaf2ff; color: #315b99; border-radius: 10px; font-size: 13px; }
.role-check span { color: var(--blue); font-size: 18px; font-weight: 700; }
.portal-feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-top: 20px; }
.portal-feature-grid article { border: 1px solid #dce5f2; border-radius: 12px; padding: 18px; }
.feature-icon { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 12px; border-radius: 9px; background: #edf3ff; color: var(--blue); font-size: 18px; }
.portal-feature-grid h3 { margin: 0 0 6px; font-size: 17px; }
.portal-feature-grid p { margin: 0; color: var(--body-text); font-size: 12px; line-height: 1.55; }
.backend-dashboard { display: grid; gap: 27px; max-width: 760px; margin: 0 auto; }
.backend-dashboard article { position: relative; display: grid; grid-template-columns: 54px 1fr; gap: 16px; align-items: center; padding: 17px 20px; border: 1px solid #dce5f2; border-radius: 13px; background: #fff; box-shadow: 0 8px 24px rgba(15, 42, 80, .06); }
.backend-dashboard article:not(:last-child)::after { content: "↓"; position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); color: var(--blue); font-size: 17px; font-weight: 700; }
.backend-number { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--blue); color: #fff; font-size: 10px; font-weight: 700; }
.backend-dashboard article h3 { margin: 0 0 5px; font-size: 16px; }
.backend-dashboard article div > span { color: var(--body-text); font-size: 12px; line-height: 1.5; }

.project-result { background: var(--bg-soft); padding: 45px 0; border-top: 1px solid var(--border); }
.result-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 65px; align-items: center; }
.result-inner h2 { margin: 5px 0 0; }
.result-inner > p { color: var(--body-text); line-height: 1.7; margin: 0; }

@media (max-width: 760px) {
  .project-hero { padding: 48px 0 42px; }
  .project-hero h1 { font-size: 37px; }
  .project-view-tabs { align-items: stretch; }
  .project-view-tab { min-width: 0; flex: 1; padding: 12px 8px; }
  .portal-dashboard { grid-template-columns: 86px 1fr; }
  .portal-sidebar { padding: 20px 8px; }
  .portal-sidebar > p { display: none; }
  .portal-sidebar > div { justify-content: center; padding: 13px 8px; }
  .portal-sidebar > div span { width: auto; }
  .portal-sidebar > div { font-size: 0; }
  .portal-sidebar > div span { font-size: 18px; }
  .portal-content { padding: 18px; }
  .portal-feature-grid { grid-template-columns: 1fr; }
  .result-inner { grid-template-columns: 1fr; gap: 15px; }
}

@media (max-width: 480px) {
  .project-view-tabs { flex-direction: column; }
  .portal-dashboard { grid-template-columns: 1fr; }
  .portal-sidebar { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
  .portal-sidebar > div { margin: 0; }
  .dashboard-heading h2 { font-size: 26px; }
  .backend-dashboard article { grid-template-columns: 48px 1fr; padding: 15px; }
}
