:root {
  --bg-primary: #030712;
  --bg-secondary: #050a16;
  --bg-card: rgba(4, 7, 17, 0.9);
  --bg-card-hover: rgba(9, 13, 24, 0.95);
  --text-primary: #f7f5ff;
  --text-secondary: #c7ccda;
  --accent: #fbbf24;
  --accent-soft: rgba(251, 191, 36, 0.18);
  --accent-strong: rgba(251, 191, 36, 0.55);
  --danger: #f87171;
  --success: #4ade80;
  --border-radius: 16px;
  --shadow-lg: 0 18px 48px rgba(2, 6, 23, 0.55);
  --shadow-sm: 0 12px 32px rgba(2, 6, 23, 0.35);
  --odin-gold: #facc15;
  --odin-ember: #f97316;
  --odin-bronze: #c08401;
  --odin-midnight: #020510;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-primary);
  background: radial-gradient(circle at 18% 20%, rgba(251, 191, 36, 0.1), transparent 50%),
    radial-gradient(circle at top, #111827, var(--bg-primary) 55%),
    linear-gradient(120deg, #010309, #03050c 60%);
  background-attachment: fixed;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 2.4rem;
  background: rgba(7, 12, 24, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .topbar__actions {
    justify-content: flex-start;
  }
}

.topbar--elevated {
  box-shadow: 0 25px 60px rgba(2, 8, 20, 0.45);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-mark img {
  display: block;
  transition: opacity 0.2s ease;
}

.brand-mark:hover img {
  opacity: 0.85;
}

.brand-mark:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.5);
  outline-offset: 4px;
  border-radius: 8px;
}

.topbar__menu {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.topbar__menu a {
  position: relative;
  padding: 0.55rem 1.1rem 0.55rem 2.4rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border: 1px solid rgba(148, 163, 184, 0.15);
  background: rgba(15, 23, 42, 0.55);
  transition: border 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topbar__menu a::before {
  content: attr(data-icon);
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.85rem;
  opacity: 0.7;
}

.topbar__menu a:hover,
.topbar__menu a.active {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-1px);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  /* background: rgba(34, 197, 94, 0.2); */
  color: #ffffff;
  border: 1px solid rgb(138, 185, 240);
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.topbar__cta[data-active="true"] {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.35), rgba(59, 130, 246, 0.35));
  color: #e0f2fe;
}

.topbar__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
}

.topbar__secondary {
  display: inline-flex;
  gap: 0.35rem;
}

.topbar__secondary a {
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.topbar__secondary a.active,
.topbar__secondary a:hover {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.35);
}

.button__dot {
  display: inline-block;
  flex-shrink: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.8);
}

.user-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 0.35rem 0.85rem;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.2);
  font-size: 0.75rem;
  min-width: 120px;
}

.user-chip--compact {
  min-width: auto;
  padding: 0.3rem 0.75rem;
}

.user-chip__name {
  font-weight: 600;
  color: var(--text-primary);
}

.user-chip__role {
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.pill--ghost {
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
}

.pill--glass {
  background: rgba(148, 163, 184, 0.15);
  border: 1px solid rgba(148, 163, 184, 0.32);
  color: var(--text-primary);
}

.pill--ghost:hover,
.pill--glass:hover {
  color: var(--text-primary);
  background: rgba(148, 163, 184, 0.2);
}

.pill--danger {
  border: 1px solid rgba(248, 113, 113, 0.45);
  color: #fecaca;
  background: rgba(248, 113, 113, 0.2);
}

.pill--danger:hover {
  background: rgba(248, 113, 113, 0.3);
  color: #fff;
}

.content {
  flex: 1;
  width: min(1200px, 92vw);
  margin: 3rem auto 4rem;
}

.hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem;
  border-radius: var(--border-radius);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(59, 130, 246, 0.05));
  box-shadow: var(--shadow-lg);
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 4vw, 2.6rem);
  font-weight: 700;
}

.hero p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-shell {
  width: min(1400px, 94vw);
  margin: 2.4rem auto 4rem;
  display: flex;
  flex-direction: column;
  gap: 2.2rem;
}

.project-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(320px, 1fr);
  gap: 2rem;
  padding: clamp(2rem, 4vw, 2.8rem);
  border-radius: 36px;
  background: radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 45px 85px rgba(2, 8, 20, 0.55);
}

@media (max-width: 980px) {
  .project-hero {
    grid-template-columns: 1fr;
  }
}

.project-hero__intro {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.project-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.project-hero__chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.project-pill {
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.65);
}

.project-pill--state {
  border-color: rgba(248, 250, 252, 0.35);
}

.project-pill--board {
  letter-spacing: 0.2em;
}

.project-pill--planning {
  color: #fcd34d;
}

.project-pill--in_progress {
  color: #bae6fd;
}

.project-pill--completed {
  color: #bbf7d0;
}

.project-pill--on_hold {
  color: #fed7aa;
}

.project-pill--cancelled {
  color: #fecaca;
}

.project-pill--archived {
  color: #94a3b8;
}

.project-hero__subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1rem;
}

.project-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.project-meta-grid article {
  padding: 0.95rem 1.1rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(2, 10, 24, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.project-meta-grid small {
  color: var(--text-secondary);
}

.project-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.1rem;
}

.project-action-card {
  padding: 1.4rem 1.6rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(5, 11, 24, 0.72);
  box-shadow: 0 28px 55px rgba(2, 8, 28, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-height: 200px;
}

.project-action-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-action-card__schedule {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.8rem;
  margin-top: 0.4rem;
}

.project-action-card__schedule strong {
  display: block;
  font-size: 1rem;
}

.project-action-hint {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-actions .button {
  min-width: 0;
}

.project-hero__stats {
  display: grid;
  gap: 1rem;
}

.project-glance {
  padding: 1.4rem 1.5rem;
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(2, 10, 24, 0.6);
  box-shadow: 0 20px 45px rgba(2, 8, 20, 0.45);
  display: grid;
  gap: 0.45rem;
}

.project-glance--accent {
  border-color: rgba(56, 189, 248, 0.35);
}

.project-scan {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.2rem;
}

.project-scan-card {
  padding: 1.5rem;
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(15, 23, 42, 0.75);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 180px;
  box-shadow: 0 28px 55px rgba(2, 10, 20, 0.45);
}

.project-scan-card h3 {
  margin: 0;
}

.project-scan-card--forecast {
  border-color: rgba(56, 189, 248, 0.35);
}

.project-scan-card--forecast.is-success {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(15, 23, 42, 0.8));
}

.project-scan-card--forecast.is-warning {
  border-color: rgba(251, 191, 36, 0.45);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(15, 23, 42, 0.85));
}

.project-scan-card--forecast.is-risk {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(135deg, rgba(185, 28, 28, 0.25), rgba(15, 23, 42, 0.85));
}

.project-scan-card--forecast.is-neutral {
  border-color: rgba(148, 163, 184, 0.35);
}

.project-scan-card__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-panels {
  display: grid;
  gap: 1.4rem;
}

.project-panels--wide {
  grid-template-columns: minmax(0, 1fr);
}

.project-panels--split {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.project-panel {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 1.8rem 2rem;
  box-shadow: 0 30px 60px rgba(2, 8, 20, 0.45);
}

.project-panel--wide {
  grid-column: 1 / -1;
}

.project-panel__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-stream {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  box-shadow: 0 32px 65px rgba(2, 8, 20, 0.45);
}

.project-stream__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.project-stream__actions {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}

.project-stream__list {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.85rem;
}

.project-stream__empty {
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  padding: 2rem;
  text-align: center;
  color: var(--text-secondary);
}

.project-narrative {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  box-shadow: 0 30px 58px rgba(2, 8, 20, 0.42);
  display: grid;
  gap: 1rem;
}

.project-narrative__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.9rem;
}

.project-narrative__body {
  line-height: 1.7;
  color: rgba(248, 250, 252, 0.92);
}

.button,
button,
input[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #021525;
  border: none;
  border-radius: 999px;
  padding: 0.65rem 1.4rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.button.secondary,
button.secondary {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
}

.button.tertiary,
button.tertiary {
  background: transparent;
  border: 1px solid rgba(148, 163, 184, 0.25);
  color: var(--text-secondary);
  padding: 0.5rem 1.1rem;
  box-shadow: none;
}

.button.tertiary:hover,
button.tertiary:hover {
  color: var(--text-primary);
  border-color: rgba(56, 189, 248, 0.4);
}

.button:hover,
button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2.5rem 0 1rem;
}

.section-title h2 {
  margin: 0;
  font-size: 1.25rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}

.card-grid--projects {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.card-grid--projects>article {
  height: 100%;
}

.stats-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.project-card {
  position: relative;
  display: grid;
  gap: 1.6rem;
  padding: 2rem 2.2rem;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.85), rgba(15, 23, 42, 0.65));
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-lg);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border 0.25s ease;
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.22), transparent 55%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 28px 65px rgba(2, 12, 34, 0.55);
  border-color: rgba(56, 189, 248, 0.35);
}

.project-card:hover::before {
  opacity: 1;
}

.project-card h3 {
  margin: 0;
  font-size: 1.35rem;
}

.project-card__title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  max-height: 3.4rem;
  overflow: hidden;
}

.project-card__title a {
  color: inherit;
}

.project-card--canvas {
  background: linear-gradient(125deg, rgba(15, 23, 42, 0.9), rgba(7, 12, 24, 0.8));
  border: 1px solid rgba(148, 163, 184, 0.18);
}

.project-card--ahead {
  border-color: rgba(34, 197, 94, 0.45);
  background: linear-gradient(125deg, rgba(34, 197, 94, 0.18), rgba(7, 12, 24, 0.85));
}

.project-card--on-track {
  border-color: rgba(59, 130, 246, 0.4);
  background: linear-gradient(125deg, rgba(59, 130, 246, 0.18), rgba(7, 12, 24, 0.85));
}

.project-card--behind {
  border-color: rgba(248, 113, 113, 0.45);
  background: linear-gradient(125deg, rgba(248, 113, 113, 0.18), rgba(7, 12, 24, 0.85));
}

.project-card--neutral {
  border-color: rgba(148, 163, 184, 0.18);
}

.project-card__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-card__board {
  margin: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.8);
}

.project-card__badges {
  display: inline-flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.project-card__meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.9rem;
}

.project-card__meta-grid article {
  padding: 0.9rem 1.1rem;
  border-radius: 18px;
  background: rgba(2, 10, 24, 0.4);
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-height: 120px;
  justify-content: space-between;
}

.project-card__meta {
  position: relative;
}

.project-card__meta--po {
  border-color: rgba(244, 114, 182, 0.55);
}

.project-card__meta--captain {
  border-color: rgba(34, 197, 94, 0.55);
}

.project-card__meta-grid strong {
  font-size: 1rem;
}

.project-card__meta-grid small {
  color: var(--text-secondary);
}

.project-card__captain {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
}

.project-card__captain--po span {
  color: #fbcfe8;
}

.project-card__captain--lead span {
  color: #bbf7d0;
}

.project-card__signals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  align-items: center;
}

.signal {
  padding: 1rem 1.2rem;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(10, 16, 32, 0.65);
  display: grid;
  gap: 0.6rem;
  position: relative;
}

.signal--progress,
.signal--timeline {
  align-content: start;
  gap: 0.75rem;
}

.signal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.signal__badge {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(148, 163, 184, 0.12);
  color: rgba(248, 250, 252, 0.85);
}

.signal__badge--muted {
  border-color: rgba(148, 163, 184, 0.2);
  background: rgba(15, 23, 42, 0.5);
  color: rgba(148, 163, 184, 0.75);
}

.signal--progress small,
.signal--timeline small {
  color: var(--text-secondary);
}

.progress-dial {
  --value: 0%;
  --dial-color-start: #38bdf8;
  --dial-color-end: #818cf8;
  position: relative;
  width: clamp(110px, 28vw, 140px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 0.75rem;
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.12), rgba(15, 23, 42, 0.82) 65%);
  border: 1px solid rgba(148, 163, 184, 0.3);
  box-shadow: inset 0 12px 28px rgba(15, 23, 42, 0.85), 0 18px 30px rgba(2, 6, 23, 0.55);
}

.progress-dial__ring {
  position: absolute;
  inset: 0;
  display: block;
  border-radius: 50%;
  background: conic-gradient(from -90deg,
      var(--dial-color-start) 0%,
      var(--dial-color-end) var(--value),
      rgba(148, 163, 184, 0.2) var(--value) 100%);
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
  pointer-events: none;
  transition: background 0.4s ease;
}

.progress-dial__ring::after {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(15, 23, 42, 0.95), rgba(2, 6, 23, 0.9));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: inset 0 0 28px rgba(8, 25, 75, 0.65);
  pointer-events: none;
}

.progress-dial__value {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 0.15rem;
}

.progress-dial__value strong {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.progress-dial__value small {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-dial--complete {
  --dial-color-start: #4ade80;
  --dial-color-end: #16a34a;
}

.progress-dial--steady {
  --dial-color-start: #38bdf8;
  --dial-color-end: #6366f1;
}

.progress-dial--warning {
  --dial-color-start: #f97316;
  --dial-color-end: #f43f5e;
}

.progress-dial--idle {
  --dial-color-start: rgba(148, 163, 184, 0.55);
  --dial-color-end: rgba(71, 85, 105, 0.9);
}

.timeline-gauge {
  --timeline-color-start: #22d3ee;
  --timeline-color-end: #818cf8;
  display: grid;
  gap: 0.45rem;
}

.timeline-gauge__track {
  position: relative;
  width: 100%;
  height: 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.85);
  overflow: hidden;
}

.timeline-gauge__progress {
  position: absolute;
  inset: 0;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--timeline-color-start), var(--timeline-color-end));
  box-shadow: 0 0 18px rgba(56, 189, 248, 0.4);
  max-width: 100%;
  transition: width 0.35s ease;
}

.timeline-gauge__marker {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  transform: translate(-50%, -50%);
  background: #0f172a;
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.55);
}

.timeline-gauge__labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
}

.timeline-gauge--ahead {
  --timeline-color-start: #34d399;
  --timeline-color-end: #059669;
}

.timeline-gauge--behind {
  --timeline-color-start: #f87171;
  --timeline-color-end: #fb7185;
}

.timeline-gauge--on-track {
  --timeline-color-start: #38bdf8;
  --timeline-color-end: #818cf8;
}

.timeline-gauge--neutral {
  --timeline-color-start: #94a3b8;
  --timeline-color-end: #64748b;
}

.timeline-gauge--empty {
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  padding: 0.75rem;
  text-align: center;
  color: var(--text-secondary);
  background: rgba(15, 23, 42, 0.5);
}

.timeline-gauge--empty p {
  margin: 0;
  font-size: 0.85rem;
}

.signal--crew small {
  color: var(--text-secondary);
}

.avatar-stack {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.avatar-stack__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-stack__item--more {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-card__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  color: var(--text-secondary);
}

.project-card__footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.85rem;
}

.project-card__footer-actions {
  display: inline-flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.project-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.project-card__summary {
  display: grid;
  gap: 1rem;
  /* grid-template-columns: minmax(3px, 320px) 1fr; */
  align-items: center;
  align-content: center;
}

.project-card__progress-inline {
  background: rgba(15, 23, 42, 0.68);
  border-radius: 20px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.15);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.progress-ring {
  position: relative;
  width: 72px;
  height: 72px;
}

.progress-ring svg {
  transform: rotate(-90deg);
  width: 72px;
  height: 72px;
}

.progress-ring__bg {
  fill: none;
  stroke: rgba(148, 163, 184, 0.18);
  stroke-width: 3;
}

.progress-ring__value {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  transition: stroke-dasharray 0.4s ease;
}

.progress-ring__label {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 600;
}

.progress-text span {
  display: block;
}

.progress-text strong {
  font-size: 1.05rem;
}

.project-card__state {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

.project-card__board {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.project-card__leaders {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  justify-content: left;
  align-items: left;
}

.leader {
  background: rgba(148, 163, 184, 0.08);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  display: grid;
  gap: 0.4rem;
  align-items: left;
}

.leader--po {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.15), rgba(30, 64, 175, 0.18));
  border: 1px solid rgba(96, 165, 250, 0.25);
  justify-content: left;
}

.leader--captain {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.16), rgba(4, 120, 87, 0.18));
  border: 1px solid rgba(16, 185, 129, 0.28);
  justify-content: left;
}

.leader-line--badge {
  display: inline-flex;
  align-items: left;
  gap: 0.55rem;
  padding: 0.45rem 0.7rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.18);
  width: fit-content;
}

.leader .avatar-stack {
  gap: 0.4rem;
}

.leader .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.7);
}

.leader .value {
  font-size: 1.25rem;
  font-weight: 600;
}

.project-card__stack {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.developer-list {
  display: grid;
  gap: 0.5rem;
}

.developer-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.75rem;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  font-size: 0.9rem;
}

.developer-chip__initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.developer-chip__name {
  font-weight: 600;
}

.project-card__stack .avatar-stack {
  flex-wrap: wrap;
}

.label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.75);
  margin-bottom: 0.35rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.chip-row--wrap {
  gap: 0.45rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.chip--captain {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

.project-card__progress {
  display: grid;
  gap: 0.4rem;
}

.progress-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.progress-meta .value {
  font-weight: 600;
  font-size: 1rem;
}

.project-card__progress small {
  color: var(--text-secondary);
}

.project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.project-health {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill.ahead {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.status-pill.on-track {
  background: rgba(59, 130, 246, 0.22);
  color: #93c5fd;
}

.status-pill.behind {
  background: rgba(248, 113, 113, 0.22);
  color: var(--danger);
}

.status-pill.neutral {
  background: rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}

.progress-meter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 120px;
}

.progress-track {
  position: relative;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.progress-fill {
  position: absolute;
  inset: 0;
  width: 0;
  background: var(--accent);
  border-radius: inherit;
}

.progress-meter small {
  color: var(--text-secondary);
  font-size: 0.75rem;
}

.avatar-stack {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.avatar-stack.small .avatar {
  width: 32px;
  height: 32px;
}

.avatar {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar .initials {
  font-weight: 600;
  color: var(--text-primary);
}

.avatar.captain::after {
  content: "★";
  position: absolute;
  bottom: -6px;
  right: -4px;
  font-size: 0.65rem;
  color: var(--accent);
}

.avatar.tiny {
  width: 28px;
  height: 28px;
  font-size: 0.7rem;
}

.avatar--tiny {
  width: 32px;
  height: 32px;
  font-size: 0.75rem;
}

.avatar-stack.small .avatar {
  width: 32px;
  height: 32px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.status-badge.planning {
  background: rgba(96, 165, 250, 0.2);
  color: #93c5fd;
}

.status-badge.in_progress {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.status-badge.on_hold {
  background: rgba(248, 180, 0, 0.2);
  color: #fbbf24;
}

.status-badge.completed {
  background: rgba(16, 185, 129, 0.25);
  color: #34d399;
}

.status-badge.archived {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-pill.project-state.planning {
  background: rgba(96, 165, 250, 0.18);
  color: #93c5fd;
}

.status-pill.project-state.in_progress {
  background: rgba(74, 222, 128, 0.18);
  color: #4ade80;
}

.status-pill.project-state.on_hold {
  background: rgba(248, 180, 0, 0.18);
  color: #fbbf24;
}

.status-pill.project-state.completed {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}

.status-pill.project-state.archived {
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
}

.status-pill.delivery.ahead {
  background: rgba(74, 222, 128, 0.2);
  color: var(--success);
}

.status-pill.delivery.on-track {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}

.status-pill.delivery.behind {
  background: rgba(248, 113, 113, 0.22);
  color: var(--danger);
}

.status-pill.delivery.neutral {
  background: rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}

.muted {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 960px) {
  .grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

form {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

input,
textarea,
select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.6);
  color: var(--text-primary);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

textarea {
  resize: vertical;
  min-height: 120px;
}

fieldset {
  border: 1px solid rgba(148, 163, 184, 0.15);
  border-radius: var(--border-radius);
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.55);
}

legend {
  padding: 0 0.5rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.assignment-form button {
  align-self: flex-end;
  margin-top: 0.5rem;
}

.crew-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.35rem 0;
  gap: 0.75rem;
}


.crew-checkbox {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 500;
}

.crew-checkbox input[type="checkbox"] {
  accent-color: var(--accent);
}

.crew-person {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.crew-option .captain-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.captain-toggle input[type="radio"] {
  accent-color: var(--accent);
}

.crew-roles {
  display: grid;
  gap: 0.6rem;
  margin: 1rem 0;
}

.crew-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.crew-row .muted {
  font-size: 0.85rem;
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-actions .button {
  flex-shrink: 0;
}

.issue-summary button {
  margin-top: 1rem;
}

.issue-summary-card {
  display: grid;
  gap: 1rem;
  background: rgba(15, 23, 42, 0.65);
  border-radius: var(--border-radius);
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.issue-summary-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.issue-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: rgba(148, 163, 184, 0.08);
  border-radius: 14px;
  padding: 0.9rem 1rem;
}

.issue-stat .count {
  font-size: 1.4rem;
  font-weight: 600;
}

.issue-stat .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.issue-stat--person {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.issue-stat--person .avatar-name {
  gap: 0.5rem;
}

.issue-stat--person .avatar-name__label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.availability-employee .avatar-name,
.availability-bucket__person .avatar-name,
.availability-date-card__details .avatar-name {
  align-items: center;
  gap: 0.6rem;
}

.developer-chip .avatar {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.issue-progress {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.issue-progress .progress-meter {
  flex: 1;
}

.status {
  margin-top: 1rem;
  color: var(--text-secondary);
}

.timeline {
  display: block;
  overflow-x: auto;
  scroll-behavior: smooth;
}

.timeline-legend {
  display: flex;
  gap: 0.6rem;
  margin-top: 1.25rem;
}

.legend-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.legend-badge.on-duty {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
}

.legend-badge.leave {
  background: rgba(248, 113, 113, 0.2);
  color: var(--danger);
}

.legend-badge.off {
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.legend-badge.active {
  background: rgba(56, 189, 248, 0.18);
  color: var(--accent);
}

.legend-badge.upcoming {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.legend-badge.complete {
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
}

.timeline-grid {
  margin-top: 0.75rem;
  border-radius: var(--border-radius);
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  position: relative;
}

.timeline-header-row,
.timeline-row-grid {
  display: grid;
  align-items: stretch;
  position: relative;
}

.timeline-cell {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
}

.timeline-cell.head {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: rgba(148, 163, 184, 0.08);
  position: sticky;
  top: 0;
  z-index: 3;
}

.timeline-cell.head.today {
  background: rgba(56, 189, 248, 0.22);
  color: var(--accent);
  font-weight: 700;
}

.timeline-cell.label {
  background: rgba(15, 23, 42, 0.75);
  border-right: 1px solid rgba(148, 163, 184, 0.16);
  position: sticky;
  left: 0;
  z-index: 4;
  box-shadow: 12px 0 24px rgba(2, 12, 34, 0.45);
}

.timeline-label {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
}

.timeline-label__meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}


.timeline-cell.day {
  position: relative;
  padding: 0;
  min-height: 48px;
  background: rgba(15, 23, 42, 0.4);
}

.timeline-cell.day.on-duty {
  background: rgba(56, 189, 248, 0.22);
}

.timeline-cell.day.leave {
  background: rgba(248, 113, 113, 0.25);
}

.timeline-cell.day.sick {
  background: rgba(250, 204, 21, 0.25);
}

.timeline-cell.day.holiday {
  background: rgba(34, 197, 94, 0.25);
}

.timeline-cell.day.training {
  background: rgba(129, 140, 248, 0.25);
}

.timeline-cell.day.special {
  background: rgba(244, 114, 182, 0.25);
}

.timeline-cell.day.off {
  background: rgba(30, 41, 59, 0.65);
}

.timeline-cell.day.today {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.timeline-cell.day.active {
  background: rgba(56, 189, 248, 0.25);
}

.timeline-cell.day.upcoming {
  background: rgba(59, 130, 246, 0.18);
}

.timeline-cell.day.complete {
  background: rgba(16, 185, 129, 0.22);
}

.timeline-cell.day.unknown {
  background: rgba(148, 163, 184, 0.22);
}

.timeline-row {
  padding: 1rem 1.2rem;
  border-radius: var(--border-radius);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.08);
  box-shadow: var(--shadow-sm);
}

.timeline-row header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.timeline-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.badge.leave {
  background: rgba(248, 113, 113, 0.25);
  color: var(--danger);
}

.badge.shift {
  background: var(--accent-soft);
  color: var(--accent);
}

article {
  padding: 1.5rem;
  border-radius: var(--border-radius);
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.1);
}

@media (max-width: 1100px) {
  .project-panels--primary {
    grid-template-columns: 1fr;
  }

  .pitcrew-panels {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }

  .nav-links {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 0.6rem;
  }

  .content {
    width: 92vw;
  }

  .status-breakdown__row {
    grid-template-columns: 1fr;
  }

  .issue-table__row {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .issue-table__status {
    justify-self: flex-start;
  }
}

.timeline-grid--portfolio .timeline-cell.label {
  position: sticky;
  left: 0;
  z-index: 2;
}

.leader-line {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.2rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
}


.micro-progress {
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.micro-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #22d3ee, #38bdf8, #818cf8);
}

.project-delete {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fecaca;
}

.project-delete:hover {
  background: rgba(248, 113, 113, 0.15);
}

.project-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 2.2rem 0;
}

.project-summary article {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 18px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  display: grid;
  gap: 0.6rem;
}

.summary-card__header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.summary-icon {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: inset 0 0 16px rgba(14, 165, 233, 0.25);
}

.summary-icon--capacity {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.35);
}

.summary-icon--stakeholder {
  background: rgba(244, 114, 182, 0.22);
  border-color: rgba(244, 114, 182, 0.35);
}

.project-summary__card h2 {
  margin: 0;
}

.project-summary__card small {
  color: var(--text-secondary);
}

.summary-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.85rem;
}

.forecast-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.forecast-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-summary__forecast.is-success {
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.18);
}

.project-summary__forecast.is-warning {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.18);
}

.project-summary__forecast.is-risk {
  border-color: rgba(248, 113, 113, 0.45);
  box-shadow: 0 12px 28px rgba(248, 113, 113, 0.22);
}

.project-summary__forecast.is-neutral {
  border-color: rgba(148, 163, 184, 0.2);
  box-shadow: var(--shadow-sm);
}

.muted--critical {
  color: rgba(248, 113, 113, 0.9);
}

.project-panels {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.4rem;
  margin-bottom: 2rem;
}

.project-panels article {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
}

.project-panels--primary {
  grid-template-columns: minmax(480px, 2fr) minmax(320px, 1fr);
  align-items: stretch;
}

.project-panels--secondary {
  margin-top: 1rem;
}

.project-panels__timeline,
.project-panels__roster {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.project-panels__timeline .timeline {
  flex: 1;
}

.pitcrew-panels {
  grid-template-columns: minmax(340px, 1.4fr) minmax(320px, 1fr);
}

.alert {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.15);
  color: #facc15;
  margin-bottom: 1.5rem;
}

.alert--warning {
  box-shadow: 0 12px 28px rgba(251, 191, 36, 0.18);
}

.leaderboard {
  display: grid;
  gap: 0.85rem;
}

.leaderboard__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.leaderboard__person {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 600;
}

.leaderboard__score {
  font-weight: 600;
  color: var(--accent);
}

.status-breakdown {
  display: grid;
  gap: 0.85rem;
}

.status-breakdown__row {
  display: grid;
  grid-template-columns: minmax(110px, 1fr) 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.status-breakdown__value {
  font-weight: 600;
}

.activity-feed {
  display: grid;
  gap: 0.8rem;
}

.activity-feed__item {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.4rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.activity-feed__item p {
  margin: 0.25rem 0 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.activity-feed__meta {
  display: grid;
  justify-items: end;
  gap: 0.25rem;
}

.issue-table {
  display: grid;
  gap: 0.9rem;
}

.issue-table__row {
  display: grid;
  grid-template-columns: minmax(140px, 1.5fr) minmax(120px, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
}

.issue-table__key {
  display: grid;
  gap: 0.25rem;
}

.issue-table__assignee {
  display: grid;
  gap: 0.25rem;
  justify-items: start;
}

.issue-table__status {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.timeline-hero,
.timeline-stats,
.timeline-deck {
  width: min(1400px, 94vw);
  margin-left: auto;
  margin-right: auto;
}

.timeline-hero {
  margin-top: 2.6rem;
  margin-bottom: 1.8rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.6rem;
}

.timeline-hero h1 {
  margin: 0 0 0.45rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.timeline-hero p {
  margin: 0;
  max-width: 560px;
  color: var(--text-secondary);
}

.eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.timeline-hero__copy {
  flex: 1 1 460px;
  display: grid;
  gap: 0.45rem;
}

.timeline-hero__window {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.timeline-window-card {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  padding: 1rem 1.35rem;
  min-width: 200px;
  display: grid;
  gap: 0.2rem;
  box-shadow: 0 20px 40px rgba(2, 8, 28, 0.55);
}

.timeline-window-card .label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.timeline-window-card strong {
  font-size: 1.15rem;
}

.timeline-window-card small {
  color: var(--text-secondary);
}

.timeline-hero__meta {
  flex: 1 1 320px;
  display: grid;
  gap: 1rem;
  align-content: flex-start;
}

.timeline-pulse {
  border-radius: 26px;
  padding: 1.5rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 26px 55px rgba(2, 8, 28, 0.55);
  display: grid;
  gap: 0.45rem;
}

.timeline-pulse strong {
  font-size: 1.35rem;
}

.timeline-pulse p {
  margin: 0;
  color: rgba(226, 232, 240, 0.85);
}

.timeline-pulse--alert {
  background: linear-gradient(145deg, rgba(127, 29, 29, 0.92), rgba(248, 113, 113, 0.68));
  border-color: rgba(248, 113, 113, 0.45);
}

.timeline-pulse--calm {
  background: linear-gradient(145deg, rgba(37, 99, 235, 0.68), rgba(15, 23, 42, 0.88));
  border-color: rgba(59, 130, 246, 0.35);
}

.timeline-pulse__eyebrow {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.8);
}

@media (max-width: 640px) {
  .timeline-hero__window {
    flex-direction: column;
  }
}

.timeline-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.timeline-hero__meta .timeline-legend {
  justify-content: flex-start;
}

.timeline-legend__pill {
  padding: 0.38rem 1rem;
  border-radius: 999px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}

.timeline-legend__pill--ahead {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
}

.timeline-legend__pill--on-track {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.timeline-legend__pill--neutral {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
}

.timeline-legend__pill--behind {
  background: rgba(248, 113, 113, 0.2);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.timeline-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.6rem;
}

.timeline-stat-card {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 48px rgba(2, 10, 32, 0.45);
  padding: 1.6rem 1.8rem;
  display: grid;
  gap: 0.6rem;
}

.timeline-stat-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.timeline-stat-card strong {
  font-size: clamp(2.1rem, 4vw, 3rem);
  font-weight: 700;
}

.timeline-callouts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.6rem;
}

.timeline-callout {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 26px 55px rgba(2, 8, 28, 0.45);
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.timeline-callout--alert {
  background: linear-gradient(145deg, rgba(76, 29, 149, 0.78), rgba(185, 28, 28, 0.85));
  border-color: rgba(248, 113, 113, 0.45);
}

.timeline-callout__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.timeline-callout__intro {
  margin: 0;
  color: var(--text-secondary);
}

.timeline-callout__body {
  display: grid;
  gap: 0.85rem;
}

.timeline-callout__empty {
  border-radius: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  padding: 1rem 1.25rem;
  color: var(--text-secondary);
  text-align: center;
}

.timeline-focus-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  padding: 1rem 1.2rem;
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 16px 32px rgba(2, 8, 28, 0.35);
  display: grid;
  gap: 0.35rem;
}

.timeline-focus-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.timeline-focus-card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-focus-card p {
  margin: 0;
  color: var(--text-secondary);
}

.timeline-focus-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.75);
}

.timeline-deck {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0.62));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 42px 70px rgba(2, 10, 32, 0.45);
  padding: 2.4rem clamp(2.2rem, 6vw, 3.6rem);
}

.timeline-deck__header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.2rem;
  margin-bottom: 1.6rem;
}

.timeline-deck__controls {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.timeline-control {
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: var(--text-primary);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.timeline-control:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(56, 189, 248, 0.65);
  background: rgba(15, 23, 42, 0.9);
}

.timeline-control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.timeline-deck__status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.2rem;
}

@media (max-width: 720px) {
  .timeline-deck__controls {
    width: 100%;
    justify-content: center;
  }

  .timeline-control {
    flex: 1 1 calc(50% - 0.6rem);
    text-align: center;
  }
}

#portfolio-timeline {
  height: 560px;
}

.timeline-state-chip {
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
}

.timeline-state-chip--ahead {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.42);
  color: #bbf7d0;
}

.timeline-state-chip--on-track {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.timeline-state-chip--neutral {
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
}

.timeline-state-chip--behind {
  background: rgba(248, 113, 113, 0.24);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.timeline-deck .vis-timeline,
.timeline-deck .vis-panel,
.timeline-deck .vis-content {
  background: transparent;
  border: none;
}

.timeline-deck .vis-time-axis .vis-text {
  color: rgba(226, 232, 240, 0.72);
  font-size: 0.78rem;
}

.timeline-deck .vis-time-axis .vis-grid.vis-major {
  border-color: rgba(148, 163, 184, 0.16);
}

.timeline-deck .vis-time-axis .vis-grid.vis-minor {
  border-color: rgba(148, 163, 184, 0.08);
}

.timeline-deck .vis-label {
  border-color: rgba(30, 41, 59, 0.6) !important;
}

.timeline-label {
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;

}

.timeline-deck .vis-item.timeline-item {
  border: none;
  border-radius: 22px;
  box-shadow: 0 24px 48px rgba(2, 10, 32, 0.45);
  color: rgba(248, 250, 252, 0.92);
  padding: 0;
}

.timeline-item__content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1.4rem;
}

.timeline-item__dates {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.timeline-item__status {
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.timeline-item--ahead {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(6, 95, 70, 0.82));
}

.timeline-item--on-track {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(14, 116, 144, 0.78));
}

.timeline-item--neutral {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.88), rgba(71, 85, 105, 0.72));
}

.timeline-item--behind {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.94), rgba(185, 28, 28, 0.82));
}

.timeline-item--ahead .timeline-item__status {
  color: #bbf7d0;
}

.timeline-item--on-track .timeline-item__status {
  color: #bae6fd;
}

.timeline-item--neutral .timeline-item__status {
  color: #e2e8f0;
}

.timeline-item--behind .timeline-item__status {
  color: #fecaca;
}

.timeline-deck .vis-group,
.timeline-deck .vis-label {
  cursor: default;
}

.timeline-deck .vis-custom-time-marker {
  color: rgba(248, 250, 252, 0.86);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.45);
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
}

.timeline-shell {
  width: min(1400px, 94vw);
  margin: 2.8rem auto 3.6rem;
  display: flex;
  flex-direction: column;
  gap: 2.4rem;
}

.timeline-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
}

.timeline-hero h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.timeline-hero p {
  margin: 0;
  max-width: 560px;
  color: var(--text-secondary);
}

.timeline-legend {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.timeline-legend__pill {
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}

.timeline-legend__pill--ahead {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.timeline-legend__pill--on-track {
  background: rgba(56, 189, 248, 0.18);
  border-color: rgba(56, 189, 248, 0.42);
  color: #bae6fd;
}

.timeline-legend__pill--neutral {
  background: rgba(148, 163, 184, 0.2);
  border-color: rgba(148, 163, 184, 0.35);
  color: #e2e8f0;
}

.timeline-legend__pill--behind {
  background: rgba(248, 113, 113, 0.18);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.timeline-board {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.82), rgba(15, 23, 42, 0.6));
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 38px 70px rgba(2, 10, 32, 0.45);
  overflow: hidden;
}

.timeline-scroll {
  overflow-x: auto;
  overflow-y: visible;
  padding: 2.2rem clamp(2.2rem, 6vw, 3.4rem) 2.6rem;
  position: relative;
}

.timeline-grid {
  display: grid;
  grid-template-columns: minmax(260px, 320px) repeat(var(--timeline-week-count), minmax(160px, 1fr));
  gap: 1.4rem;
  align-items: stretch;
}

.timeline-grid+.timeline-grid {
  margin-top: 1.2rem;
}

.timeline-grid--header {
  margin-bottom: 1.1rem;
  align-items: end;
  padding-bottom: 0.8rem;
}

.timeline-grid__project-col {
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.78);
  position: sticky;
  left: 0;
  z-index: 5;
}

.timeline-week-label {
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.82));
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
  min-width: 160px;
}

.timeline-week-label.is-current {
  border-color: rgba(56, 189, 248, 0.65);
  box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35);
}

.week-badge {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(148, 197, 253, 0.82);
}

.week-range {
  font-size: 0.86rem;
  font-weight: 600;
}

.timeline-project-card {
  display: grid;
  gap: 0.65rem;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: rgba(9, 16, 28, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.15);
  box-shadow: 0 24px 38px rgba(2, 10, 32, 0.45);
  position: sticky;
  left: 0;
  z-index: 4;
}

.timeline-project-card__title {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.timeline-project-card__title h3 {
  margin: 0;
  font-size: 1.05rem;
}

.timeline-project-card__title a {
  text-decoration: none;
  color: inherit;
  transition: color 0.2s ease;
}

.timeline-project-card__title a:hover {
  color: var(--accent);
}

.timeline-project-card__meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.timeline-avatars {
  display: inline-flex;
  gap: 0.4rem;
  align-items: center;
}

.avatar--tiny {
  width: 28px;
  height: 28px;
  min-width: 28px;
  min-height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 6px 14px rgba(2, 10, 32, 0.35);
}

.avatar--tiny .initials {
  font-size: 0.68rem;
  font-weight: 600;
}

.avatar--count {
  background: rgba(30, 41, 59, 0.9);
  color: var(--text-secondary);
  padding: 0 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.timeline-grid--row {
  align-items: center;
  position: relative;
}

.timeline-bar {
  height: 84px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  padding: 0 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 26px 46px rgba(2, 8, 28, 0.48);
  position: relative;
  overflow: hidden;
}

.timeline-bar::after {
  content: \"\";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(248, 250, 252, 0.08);
  pointer-events: none;
}

.timeline-bar__content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.timeline-bar__dates {
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(248, 250, 252, 0.92);
}

.timeline-state-pill {
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.2);
  color: var(--text-secondary);
}

.timeline-state-pill--ahead {
  background: rgba(34, 197, 94, 0.2);
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.timeline-state-pill--on-track {
  background: rgba(56, 189, 248, 0.2);
  border-color: rgba(56, 189, 248, 0.4);
  color: #bae6fd;
}

.timeline-state-pill--neutral {
  background: rgba(148, 163, 184, 0.24);
  border-color: rgba(148, 163, 184, 0.38);
  color: #e2e8f0;
}

.timeline-state-pill--behind {
  background: rgba(248, 113, 113, 0.24);
  border-color: rgba(248, 113, 113, 0.42);
  color: #fecaca;
}

.timeline-bar--ahead {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.92), rgba(6, 95, 70, 0.82));
}

.timeline-bar--on-track {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(14, 116, 144, 0.78));
}

.timeline-bar--neutral {
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.88), rgba(71, 85, 105, 0.72));
}

.timeline-bar--behind {
  background: linear-gradient(135deg, rgba(248, 113, 113, 0.94), rgba(185, 28, 28, 0.82));
}

.timeline-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  border-radius: 22px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  background: rgba(15, 23, 42, 0.55);
  margin-top: 1.2rem;
}

body.pitcrew-view {
  overflow-y: auto;
  overflow-x: hidden;
}

body.pitcrew-view .content {
  width: min(1400px, 95vw);
  margin: 3rem auto 4rem;
}

.pitcrew-top {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 960px) {
  .pitcrew-top {
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 1fr);
    align-items: stretch;
  }
}

.pitcrew-shell {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.pitcrew-top .project-card {
  height: 100%;
}

.pitcrew-shell {
  display: flex;
  flex-direction: column;
  gap: 2.75rem;
}

.pitcrew-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

.pitcrew-hero h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
}

.pitcrew-hero p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.05rem;
  max-width: 640px;
}

.pitcrew-hero__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.pitcrew-meta-pill {
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pitcrew-meta-pill.is-empty {
  color: #facc15;
  border-color: rgba(251, 191, 36, 0.55);
}

.pitcrew-alert {
  padding: 1rem 1.4rem;
  border-radius: 18px;
  border: 1px solid rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.18);
  color: #fecaca;
  font-size: 1rem;
}

.pitcrew-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.pitcrew-metric-card {
  background: rgba(15, 23, 42, 0.7);
  border-radius: 24px;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 28px 48px rgba(2, 10, 32, 0.45);
  display: grid;
  gap: 0.6rem;
}

.pitcrew-metric-card .label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.pitcrew-metric-card strong {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
}

.pitcrew-metric-card .sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.pitcrew-domain-section {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pitcrew-domain-section .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.pitcrew-domain-section h2 {
  margin: 0;
}

.pitcrew-domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
}

.pitcrew-domain-card {
  padding: 1.4rem 1.6rem;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(15, 23, 42, 0.75));
  border: 1px solid rgba(56, 189, 248, 0.32);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pitcrew-domain-card .domain-name {
  font-weight: 600;
  font-size: 1rem;
}

.pitcrew-domain-card .domain-count {
  font-size: 2rem;
  font-weight: 700;
}

.pitcrew-empty {
  padding: 1.2rem;
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.pitcrew-panels {
  display: grid;
  gap: 1.6rem;
}

.pitcrew-panels--split {
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
}

.pitcrew-panel {
  background: rgba(15, 23, 42, 0.65);
  border-radius: 26px;
  padding: 1.6rem 1.8rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 24px 48px rgba(2, 10, 32, 0.42);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.pitcrew-leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.pitcrew-leaderboard li {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pitcrew-leaderboard .leader-info {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.pitcrew-leaderboard .leader-score {
  font-weight: 600;
  font-size: 1.1rem;
}


.pitcrew-issue-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.issue-card {
  position: relative;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 22px;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 38px rgba(2, 10, 32, 0.36);
  display: grid;
  gap: 0.75rem;
}

.issue-card--resolved {
  border-left: 3px solid rgba(34, 197, 94, 0.65);
}

.issue-card--queue {
  border-left: 3px solid rgba(56, 189, 248, 0.55);
}

.issue-card--lane {
  border-left: 3px solid rgba(148, 163, 184, 0.3);
}

.issue-card--todo {
  border-left-color: rgba(244, 114, 182, 0.65);
}

.issue-card--in_progress {
  border-left-color: rgba(56, 189, 248, 0.65);
}

.issue-card--done {
  border-left-color: rgba(34, 197, 94, 0.65);
}

.issue-card--other {
  border-left-color: rgba(148, 163, 184, 0.45);
}

.issue-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
}

.issue-card__key {
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.82rem;
}

.issue-card__status {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(148, 163, 184, 0.2);
  color: var(--text-primary);
}

.issue-card__status--done {
  background: rgba(34, 197, 94, 0.18);
  color: #bbf7d0;
}

.issue-card__status--in_progress,
.issue-card__status--indeterminate {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.issue-card__status--indeterminate {
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
}

.issue-card__status--new {
  background: rgba(244, 114, 182, 0.2);
  color: #fbcfe8;
}

.issue-card__status--todo {
  background: rgba(244, 114, 182, 0.2);
  color: #fbcfe8;
}

.issue-card__status--unknown {
  background: rgba(148, 163, 184, 0.24);
  color: var(--text-secondary);
}

.issue-card__summary {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-primary);
  line-height: 1.45;
}

.issue-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.issue-card__domain {
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

.issue-card__assignee {
  font-weight: 600;
  color: var(--text-primary);
}

.issue-card__assignee.is-unassigned {
  color: #facc15;
}

.issue-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.issue-card__timestamp {
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: none;
}

.issue-card__state {
  font-weight: 600;
}

.pitcrew-throughput,
.pitcrew-activity {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.pitcrew-throughput li,
.pitcrew-activity li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.throughput-day {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.throughput-count {
  font-weight: 600;
  font-size: 1.05rem;
}

.pitcrew-activity li p {
  margin: 0.2rem 0 0;
  color: var(--text-secondary);
  max-width: 320px;
}

.activity-meta {
  display: grid;
  justify-items: end;
  gap: 0.2rem;
}

.pitcrew-queue {
  display: grid;
  gap: 1rem;
}

.queue-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 0.8rem;
}

.queue-row:last-child {
  border-bottom: none;
}

.queue-row p {
  margin: 0.3rem 0 0;
  color: var(--text-secondary);
  max-width: 360px;
}

.queue-meta {
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  font-size: 0.9rem;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.project-status-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
  max-width: 320px;
}

.project-status-form label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.project-status-form__controls {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.project-status-form select {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
  color: var(--text-primary);
}

.project-inline-form {
  margin-top: 1rem;
  display: grid;
  gap: 0.6rem;
}

.stakeholder-chip-list {
  margin: 0.6rem 0 0.4rem;
}

.stakeholder-actions {
  margin-top: 0.4rem;
  display: flex;
  justify-content: flex-end;
}

.project-inline-form textarea {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 16px;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  color: var(--text-primary);
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
}


.modal-form {
  display: grid;
  gap: 0.9rem;
}

.modal-form select,
.modal-form textarea,
.modal-form input[type="date"] {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
}

.modal--wide .modal__card {
  max-width: 760px;
}

.rich-editor {
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.6);
  overflow: hidden;
  display: grid;
}

.rich-editor__toolbar {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  background: rgba(15, 23, 42, 0.75);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.rich-editor__toolbar button {
  background: rgba(148, 163, 184, 0.16);
  border: none;
  border-radius: 10px;
  color: var(--text-primary);
  padding: 0.35rem 0.65rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.rich-editor__toolbar button span {
  font-weight: 700;
}

.rich-editor__content {
  min-height: 260px;
  padding: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  outline: none;
}

.rich-editor__content:focus {
  background: rgba(15, 23, 42, 0.8);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.project-feed-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.9fr) minmax(240px, 2fr) minmax(160px, 0.9fr);
  gap: 1rem;
  padding: 1rem 1.4rem;
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(7, 12, 24, 0.75);
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.project-feed-row:hover {
  border-color: rgba(56, 189, 248, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 18px 38px rgba(2, 8, 28, 0.45);
}

@media (max-width: 980px) {
  .project-feed-row {
    grid-template-columns: 1fr;
  }
}

.project-feed-row--in_progress {
  border-left: 3px solid rgba(59, 130, 246, 0.5);
}

.project-feed-row--todo {
  border-left: 3px solid rgba(244, 114, 182, 0.65);
}

.project-feed-row--done {
  border-left: 3px solid rgba(34, 197, 94, 0.65);
}

.project-feed-row--other {
  border-left: 3px solid rgba(148, 163, 184, 0.4);
}

.project-feed-row__signal {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-feed-row__key {
  display: block;
  font-size: 0.85rem;
}

.project-feed-row__state {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.project-feed-row__summary p {
  margin: 0 0 0.45rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.project-feed-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.project-feed-row__timestamps {
  display: flex;
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 980px) {
  .project-feed-row__timestamps {
    justify-content: flex-start;
    text-align: left;
  }
}

.project-feed-row__time-label {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.status-dot--in_progress {
  background: rgba(59, 130, 246, 0.95);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.5);
}

.status-dot--todo {
  background: rgba(244, 114, 182, 0.9);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.5);
}

.status-dot--done {
  background: rgba(34, 197, 94, 0.9);
  box-shadow: 0 0 12px rgba(34, 197, 94, 0.5);
}

.status-dot--other {
  background: rgba(148, 163, 184, 0.9);
  box-shadow: 0 0 12px rgba(148, 163, 184, 0.5);
}

.issue-row__key {
  font-size: 0.85rem;
}

.issue-row__state {
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.issue-row__summary p {
  margin: 0 0 0.5rem;
  line-height: 1.45;
  color: var(--text-primary);
}

.issue-row__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.issue-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(148, 163, 184, 0.18);
  color: var(--text-secondary);
}

.issue-chip--domain {
  background: rgba(56, 189, 248, 0.18);
  color: #bae6fd;
}

.issue-chip--assignee {
  background: rgba(148, 163, 184, 0.16);
  color: var(--text-primary);
}

.issue-chip--assignee.is-unassigned {
  color: #facc15;
}

.issue-row__timestamps {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  text-align: right;
}

@media (max-width: 980px) {
  .issue-row__timestamps {
    justify-content: flex-start;
    text-align: left;
  }
}

.issue-row__time-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.availability-stats {
  margin: 2.5rem 0 2rem;
}

.availability-stats article {
  background: rgba(15, 23, 42, 0.68);
  border-radius: 20px;
  padding: 1.4rem 1.6rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
}

.availability-stats h2 {
  margin: 0.35rem 0 0;
  font-size: 1.8rem;
}

.availability-table-wrapper {
  margin-top: 2.5rem;
  overflow-x: auto;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-lg);
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.availability-table th,
.availability-table td {
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  text-align: left;
  vertical-align: top;
}

.availability-table thead th {
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.availability-table tbody tr:last-child th,
.availability-table tbody tr:last-child td {
  border-bottom: none;
}

.availability-table td.empty-state {
  text-align: center;
  padding: 2.5rem 1rem;
}

.availability-table tbody tr.is-available {
  background: rgba(74, 222, 128, 0.06);
}

.availability-table tbody tr.is-upcoming {
  background: rgba(56, 189, 248, 0.05);
}

.availability-table tbody tr.is-unknown {
  background: rgba(248, 113, 113, 0.05);
}

.availability-employee {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.availability-employee__name {
  font-weight: 600;
}

.availability-employee__email {
  font-size: 0.85rem;
  color: var(--text-secondary);
  word-break: break-all;
}

.availability-assignment {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.availability-assignment__main {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.availability-assignment__name {
  font-weight: 500;
}

.availability-tag {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.22);
  color: #bfdbfe;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.15);
}

.availability-tag--pitcrew {
  background: rgba(234, 179, 8, 0.22);
  color: #fde047;
  box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.18);
}

.availability-tag--bench {
  background: rgba(148, 163, 184, 0.22);
  color: #cbd5f5;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.availability-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.availability-chip--available {
  background: rgba(74, 222, 128, 0.22);
  color: var(--success);
}

.availability-chip--upcoming {
  background: rgba(56, 189, 248, 0.22);
  color: #93c5fd;
}

.availability-chip--unknown {
  background: rgba(248, 113, 113, 0.22);
  color: var(--danger);
}

.availability-flag {
  margin-top: 0.75rem;
  display: inline-block;
  padding: 0.3rem 0.55rem;
  border-radius: 8px;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.availability-flag--absence {
  background: rgba(248, 113, 113, 0.18);
  color: var(--danger);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.22);
}

.availability-absences {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.availability-absences li {
  margin: 0;
}

.availability-absences .timeline-status {
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

.availability-roster-title {
  margin-top: 3rem;
}

.availability-legend {
  margin: 1.5rem 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.availability-legend__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.avatar-name {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.avatar-name__label {
  font-weight: 600;
}

.roster-chip {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.22);
}

.roster-table-wrapper {
  overflow-x: auto;
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.62);
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-lg);
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 980px;
  font-size: 0.82rem;
}

.roster-table__name {
  position: sticky;
  left: 0;
  z-index: 4;
  background: rgba(15, 23, 42, 0.9);
  text-align: left;
  padding: 0.9rem 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.roster-table thead th {
  position: sticky;
  top: 0;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
  text-align: center;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.roster-table__day {
  min-width: 52px;
}

.roster-table__day-name {
  display: block;
  margin-bottom: 0.15rem;
}

.roster-table__day.is-today {
  color: var(--accent);
  box-shadow: inset 0 -2px 0 rgba(56, 189, 248, 0.45);
}

.roster-cell {
  padding: 0;
  height: 48px;
  text-align: center;
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
}

.roster-cell__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.roster-cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.65);
}

.roster-status--available {
  background: #34d399;
}

.roster-status--allocated {
  background: #60a5fa;
}

.roster-status--buffer {
  background: #fbbf24;
}

.roster-status--pitcrew {
  background: #c084fc;
}

.roster-status--leave {
  background: #fb7185;
}

.roster-status--sick {
  background: #facc15;
}

.roster-status--holiday {
  background: #38bdf8;
}

.roster-status--weekend {
  background: #475569;
}

.roster-status--available .roster-cell__label {
  color: #064e3b;
}

.roster-status--allocated .roster-cell__label {
  color: #0c4a6e;
}

.roster-status--buffer .roster-cell__label {
  color: #78350f;
}

.roster-status--pitcrew .roster-cell__label {
  color: #4c1d95;
}

.roster-status--leave .roster-cell__label,
.roster-status--sick .roster-cell__label,
.roster-status--holiday .roster-cell__label {
  color: #0f172a;
}

.roster-status--weekend .roster-cell__label {
  color: #e2e8f0;
}

.availability-view-toggle {
  display: inline-flex;
  gap: 0.75rem;
  margin: 2rem 0 2.5rem;
  background: rgba(148, 163, 184, 0.12);
  padding: 0.4rem;
  border-radius: 999px;
}

.availability-view-toggle__button {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 0.55rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: all 0.2s ease;
}

.availability-view-toggle__button:hover {
  color: var(--text-primary);
}

.availability-view-toggle__button.is-active {
  background: var(--accent-soft);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.availability-view {
  display: none;
}

.availability-view--active {
  display: block;
}

.availability-groups-title {
  margin-top: 0;
}

.availability-groups {
  display: grid;
  gap: 1.8rem;
}

.availability-group-card {
  padding: 1.6rem 1.8rem;
  background: rgba(15, 23, 42, 0.68);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 1.4rem;
}

.availability-group-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.availability-group-card__header h3 {
  margin: 0;
  font-size: 1.15rem;
}

.availability-group-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.45rem;
}

.availability-group-card__count {
  font-size: 0.85rem;
  color: var(--text-secondary);
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.availability-buckets {
  display: grid;
  gap: 1.2rem;
}

.availability-buckets {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.availability-bucket {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.9rem;
}

.availability-bucket__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.availability-bucket__header h4 {
  margin: 0;
  font-size: 1rem;
}

.availability-bucket__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(148, 163, 184, 0.22);
  color: var(--text-secondary);
}

.availability-bucket__badge--positive {
  background: rgba(52, 211, 153, 0.25);
  color: #bbf7d0;
}

.availability-bucket__badge--neutral {
  background: rgba(234, 179, 8, 0.25);
  color: #fde68a;
}

.availability-bucket__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.availability-bucket__item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.8rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.availability-bucket__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.availability-bucket__person {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.availability-bucket__name {
  font-weight: 600;
}

.availability-bucket__meta {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.availability-bucket__tags {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}


.availability-date-groups {
  display: grid;
  gap: 1.5rem;
}

.availability-date-card {
  background: rgba(15, 23, 42, 0.68);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.12);
  padding: 1.4rem 1.6rem;
  display: grid;
  gap: 1.1rem;
  box-shadow: var(--shadow-sm);
}

.availability-date-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.availability-date-card__header h3 {
  margin: 0;
  font-size: 1.05rem;
}

.availability-date-card__count {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.availability-date-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.availability-date-card__item {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.availability-date-card__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.availability-date-card__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.75rem;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.availability-date-card__badge--positive {
  background: rgba(34, 197, 94, 0.28);
  color: #bbf7d0;
}

.availability-date-card__badge--date {
  background: rgba(59, 130, 246, 0.24);
  color: #dbeafe;
}

.availability-date-card__badge--neutral {
  background: rgba(234, 179, 8, 0.3);
  color: #fef3c7;
}

.availability-date-card__details {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.availability-date-card__name {
  font-weight: 600;
}

.availability-date-card__meta {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.availability-date-card__project {
  font-weight: 500;
}

.availability-date-card__project--bench {
  color: #cbd5f5;
}

.availability-date-card__source {
  font-size: 0.75rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.22);
  color: #bae6fd;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.availability-date-card__time-hint {
  font-size: 0.8rem;
}

.availability-date-card__flag {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.availability-date-card__flag::before {
  content: '●';
  margin-right: 0.4rem;
}

.availability-bucket__source {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.2);
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.availability-bucket__flag {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
}

.availability-bucket__flag--absence {
  background: rgba(248, 113, 113, 0.25);
  color: #fecaca;
  border: 1px solid rgba(248, 113, 113, 0.35);
}

.timeline-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

.timeline-table th,
.timeline-table td {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  padding: 0.8rem;
  text-align: center;
}

.timeline-table thead th {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(15, 23, 42, 0.92);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.timeline-table tbody th {
  position: sticky;
  left: 0;
  z-index: 6;
  text-align: left;
  background: rgba(15, 23, 42, 0.92);
  min-width: 220px;
}

.day-cell {
  min-width: 64px;
  height: 48px;
  position: relative;
  padding: 0;
  text-align: center;
}

.day-cell.on-duty {
  background: rgba(56, 189, 248, 0.22);
}

.day-cell.leave {
  background: rgba(248, 113, 113, 0.25);
}

.day-cell.sick {
  background: rgba(250, 204, 21, 0.25);
}

.day-cell.holiday {
  background: rgba(34, 197, 94, 0.25);
}

.day-cell.training {
  background: rgba(129, 140, 248, 0.25);
}

.day-cell.special {
  background: rgba(244, 114, 182, 0.25);
}

.day-cell.off {
  background: rgba(30, 41, 59, 0.65);
}

.day-cell.is-today {
  box-shadow: inset 0 0 0 2px rgba(56, 189, 248, 0.45);
}

.day-cell.active {
  background: rgba(56, 189, 248, 0.25);
}

.day-cell.upcoming {
  background: rgba(59, 130, 246, 0.18);
}

.day-cell.complete {
  background: rgba(16, 185, 129, 0.22);
}

.day-cell.unknown {
  background: rgba(148, 163, 184, 0.22);
}

.timeline-day {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0.35rem;
}

.timeline-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(15, 23, 42, 0.92);
  font-weight: 600;
  background: rgba(148, 163, 184, 0.22);
  max-width: 100%;
  line-height: 1.2;
  white-space: nowrap;
}

.timeline-status--leave {
  background: rgba(248, 113, 113, 0.85);
  color: #fee2e2;
}

.timeline-status--sick {
  background: rgba(250, 204, 21, 0.9);
  color: #1e1b4b;
}

.timeline-status--holiday {
  background: rgba(34, 197, 94, 0.9);
  color: #052e16;
}

.timeline-status--training {
  background: rgba(129, 140, 248, 0.9);
  color: #1e1b4b;
}

.timeline-status--special {
  background: rgba(244, 114, 182, 0.9);
  color: #3b0764;
}

.timeline-status--dot {
  padding: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.75);
  color: transparent;
  opacity: 0.75;
}

.timeline-table thead th.is-today {
  background: rgba(56, 189, 248, 0.25);
  color: var(--accent);
}

.row-heading {
  font-weight: 600;
}

.row-heading.captain::after {
  content: '★';
  margin-left: 0.3rem;
  color: var(--accent);
}

.team-summary {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.team-summary__leaders {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.team-summary__leader {
  display: grid;
  gap: 0.75rem;
  padding: 1.1rem 1.25rem;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(56, 189, 248, 0.18), rgba(15, 23, 42, 0.7));
  border: 1px solid rgba(56, 189, 248, 0.28);
  box-shadow: var(--shadow-sm);
}

.team-summary__leader--product {
  background: linear-gradient(140deg, rgba(59, 130, 246, 0.2), rgba(15, 23, 42, 0.7));
  border-color: rgba(59, 130, 246, 0.35);
}

.team-summary__leader--captain {
  background: linear-gradient(140deg, rgba(16, 185, 129, 0.22), rgba(15, 23, 42, 0.7));
  border-color: rgba(16, 185, 129, 0.38);
}

.team-summary__leader-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  width: fit-content;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.team-summary__person {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.team-summary__person-name {
  font-weight: 600;
}

.team-summary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.team-summary__section {
  display: grid;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.55);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.team-summary__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 0.25rem;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-open {
  overflow: hidden;
}

.modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 12, 34, 0.68);
  backdrop-filter: blur(8px);
}

.modal__card {
  position: relative;
  width: min(720px, 92vw);
  max-height: 90vh;
  overflow-y: auto;
  background: rgba(15, 23, 42, 0.96);
  border-radius: 24px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 70px rgba(2, 12, 34, 0.6);
  padding: 1.8rem 2rem;
  z-index: 51;
}

.modal__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.2rem;
}

.modal__close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.4rem;
  cursor: pointer;
}

.modal__body {
  display: grid;
  gap: 1rem;
}

.settings-hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 2.5rem 0 2rem;
}

.settings-hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.settings-hero p {
  margin: 0;
  max-width: 620px;
  color: var(--text-secondary);
}

.settings-panels {
  display: grid;
  gap: 1.8rem;
}

@media (min-width: 900px) {
  .settings-panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-card.settings-card--accent {
    grid-column: span 2;
  }
}

.settings-card {
  background: rgba(15, 23, 42, 0.72);
  border-radius: 26px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 48px rgba(2, 10, 32, 0.45);
  padding: 1.8rem 2rem;
  display: grid;
  gap: 1.2rem;
}

.settings-card header h2 {
  margin: 0 0 0.35rem;
}

.settings-card header p {
  margin: 0;
  color: var(--text-secondary);
}

.settings-card--accent {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.22), rgba(30, 64, 175, 0.22));
  border-color: rgba(56, 189, 248, 0.32);
}

.settings-card__body {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.8rem 1rem;
  max-height: 320px;
  overflow-y: auto;
}

.settings-sync-form {
  display: grid;
  gap: 1rem;
}

.settings-sync-form label {
  display: grid;
  gap: 0.45rem;
}

.settings-sync-form label span {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.settings-sync-form select,
.settings-sync-form input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
  color: var(--text-primary);
}

.settings-sync-form__dates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.settings-card button {
  width: fit-content;
}

.timeline-deck .vis-label .vis-inner {
  display: flex;
  align-items: center;
  color: #ffffff;
  font-weight: 600;
}

.timeline-deck .vis-label .timeline-label {
  color: #ffffff;
}

.project-create {
  display: grid;
  gap: 1.8rem;
}

.project-create__hero {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.project-create__hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 3rem);
}

.project-create__hero p {
  margin: 0;
  max-width: 640px;
  color: var(--text-secondary);
}

.project-create__empty {
  padding: 1.4rem 1.6rem;
  border-radius: 20px;
  border: 1px solid rgba(248, 113, 113, 0.35);
  background: rgba(248, 113, 113, 0.16);
  color: #fecaca;
}

.project-form {
  display: grid;
  gap: 1.6rem;
}

.project-form__card {
  padding: 1.8rem 2rem;
  border-radius: 26px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 28px 48px rgba(2, 10, 32, 0.45);
  display: grid;
  gap: 1.2rem;
}

.project-form__card h2 {
  margin: 0;
}

.project-form__card p {
  margin: 0;
  color: var(--text-secondary);
  max-width: 640px;
}

.project-form__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.project-form__card-header h2 {
  margin-bottom: 0.35rem;
}

.captain-legend {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: rgba(56, 189, 248, 0.18);
  border: 1px solid rgba(56, 189, 248, 0.32);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bfdbfe;
}

.project-form__field {
  display: grid;
  gap: 0.45rem;
}

.project-form__field span {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.project-form__field input,
.project-form__field select,
.project-form__field textarea {
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 14px;
  padding: 0.7rem 0.9rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.project-form__field textarea {
  resize: vertical;
}

.project-form__inline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.project-form__fieldset {
  margin: 0;
  padding: 0;
  border: none;
  display: grid;
  gap: 0.9rem;
}

.project-form__fieldset legend {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.78);
}

.project-form__roster {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.project-form__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.2s ease;
}

.project-form__chip input[type="checkbox"],
.project-form__chip input[type="radio"] {
  display: none;
}

.project-form__chip-body {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.project-form__chip-name {
  font-weight: 500;
}

.project-form__chip-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.project-form__chip-meta {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.75);
}

.project-form__chip-captain {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 197, 253, 0.75);
  padding-left: 0.65rem;
  border-left: 1px solid rgba(148, 163, 184, 0.2);
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
}

.project-form__chip-captain label {
  cursor: pointer;
}

.project-form__chip-captain input[type="radio"]:checked+label {
  color: #bfdbfe;
}

.project-form__chip:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.4);
}

.project-form__chip input[type="checkbox"]:checked~.project-form__chip-body {
  color: #bfdbfe;
}

.project-form__chip.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  border-color: rgba(148, 163, 184, 0.12);
}

.project-form__chip.is-disabled:hover {
  transform: none;
  border-color: rgba(148, 163, 184, 0.12);
}

.developer-groups {
  display: grid;
  gap: 1.4rem;
}

.developer-group {
  display: none;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(148, 163, 184, 0.14);
}

.developer-group.is-visible {
  display: block;
}

.developer-group__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.72);
}

.developer-group__label {
  font-weight: 600;
  color: var(--text-primary);
}

.developer-group__count {
  color: var(--text-secondary);
}

.developer-empty {
  display: none;
  margin-top: 0.6rem;
  font-size: 0.85rem;
}

.hr-shell {
  display: grid;
  gap: 2.4rem;
  width: min(1260px, 95vw);
  margin: 2rem auto 4rem;
}

.hr-hero {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 2.4rem;
  padding: 2.6rem 3rem;
  background: linear-gradient(135deg, rgba(30, 64, 175, 0.35), rgba(2, 132, 199, 0.24));
  border-radius: 34px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 32px 46px rgba(2, 10, 32, 0.45);
  overflow: hidden;
  z-index: 0;
}

.hr-hero::after {
  content: "";
  position: absolute;
  inset: -35% 38% auto -8%;
  height: 220%;
  background: radial-gradient(circle at center, rgba(148, 163, 184, 0.18), transparent 68%);
  opacity: 0.55;
  transform: rotate(16deg);
  pointer-events: none;
  z-index: -1;
}

.hr-hero__intro {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.4rem;
  max-width: 60ch;
}

.hr-hero h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4vw, 3rem);
}

.hr-hero__stats {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.hr-hero__stat {
  padding: 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 32px rgba(15, 23, 42, 0.36);
  display: grid;
  gap: 0.35rem;
}

.hr-hero__stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.85);
}

.hr-hero__stat strong {
  font-size: 1.9rem;
  line-height: 1;
  color: #f8fafc;
}

.hr-hero__stat small {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.75);
}

.hr-hero__bands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.2rem;
  font-size: 0.85rem;
  color: rgba(226, 232, 240, 0.88);
}

.hr-hero__actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.75rem;
}

@media (max-width: 960px) {
  .hr-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 2.2rem;
  }

  .hr-hero__actions {
    align-items: flex-start;
  }
}

.hr-grid {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 32px;
  padding: 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 42px rgba(2, 10, 32, 0.42);
  display: grid;
  gap: 2rem;
}

.hr-grid__meta {
  display: grid;
  gap: 1.2rem;
}

.hr-grid__lead h2 {
  margin: 0 0 0.6rem;
  font-size: 1.6rem;
}

.hr-grid__topline {
  display: grid;
  gap: 0.6rem;
}

.hr-grid__chip-deck {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hr-grid__chip {
  --accent-color: rgba(148, 163, 184, 0.3);
  --accent-glow: rgba(15, 23, 42, 0.35);
  position: relative;
  z-index: 0;
  padding: 0.65rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--accent-color, rgba(148, 163, 184, 0.22));
  background: rgba(15, 23, 42, 0.82);
  display: grid;
  gap: 0.25rem;
  box-shadow: 0 16px 28px var(--accent-glow, rgba(15, 23, 42, 0.32));
}

.hr-grid__chip::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, var(--accent-glow, transparent), transparent 70%);
  opacity: 0.85;
  pointer-events: none;
  z-index: -1;
}

.hr-grid__chip strong {
  font-size: 0.95rem;
  color: #e2e8f0;
}

.hr-grid__chip small {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.8);
}

.hr-grid__disciplines {
  display: grid;
  gap: 0.5rem;
}

.hr-grid__disciplines ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.hr-grid__disciplines li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.hr-grid__disciplines li:last-child {
  border-bottom: 0;
}

.hr-subnav {
  display: inline-flex;
  gap: 0.75rem;
  margin: 1.2rem 0 2rem;
  padding: 0.6rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 40px rgba(2, 10, 32, 0.35);
}

.hr-subnav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.78);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.hr-subnav__link:hover,
.hr-subnav__link:focus-visible {
  color: #f8fafc;
  background: rgba(30, 41, 59, 0.9);
  box-shadow: 0 12px 28px rgba(2, 10, 32, 0.3);
}

.hr-subnav__link.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.25), rgba(14, 165, 233, 0.28));
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #f8fafc;
  box-shadow: 0 18px 36px rgba(56, 189, 248, 0.28);
}

.hr-people {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 48px rgba(2, 10, 32, 0.45);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
}

.hr-people__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.hr-people__filters input[type="search"] {
  min-width: 260px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
}

.hr-people__filters input[type="search"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.hr-grid__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
  position: relative;
}

.hr-grid__workspace.is-panel-open {
  grid-template-columns: minmax(0, 1fr);
}

.nine-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(260px, 1fr);
  gap: 18px;
  width: 100%;
}

.nine-grid__cell {
  --accent-color: rgba(56, 189, 248, 0.55);
  --accent-glow: rgba(56, 189, 248, 0.18);
  display: flex;
  height: 100%;
}

.nine-grid__cell-surface {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  height: 100%;
  min-height: clamp(220px, 28vh, 320px);
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.72));
  padding: 1.45rem 1.5rem;
  overflow: hidden;
  box-shadow: 0 24px 42px rgba(2, 6, 23, 0.45);
  cursor: pointer;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.nine-grid__cell-surface:hover {
  border-color: color-mix(in srgb, var(--accent-color) 55%, rgba(148, 163, 184, 0.3));
  box-shadow: 0 28px 48px var(--accent-glow, rgba(15, 23, 42, 0.38));
  transform: translateY(-2px);
}

.nine-grid__cell.is-selected .nine-grid__cell-surface {
  border-color: color-mix(in srgb, var(--accent-color) 65%, rgba(148, 163, 184, 0.3));
  box-shadow: 0 28px 48px var(--accent-glow, rgba(15, 23, 42, 0.4));
}

.nine-grid__cell-surface:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent-color) 70%, rgba(226, 232, 240, 0.6));
  outline-offset: 3px;
}

.nine-grid__cell-surface::before {
  content: "";
  position: absolute;
  inset: -28% 12% auto -36%;
  height: 260px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--accent-color) 40%, rgba(56, 189, 248, 0.18)), transparent 68%);
  opacity: 0.85;
  pointer-events: none;
  transform: rotate(8deg);
}

.nine-grid__cell-header {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.nine-grid__title {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: min(260px, 62%);
}

.nine-grid__meta {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  align-items: flex-end;
  margin-left: auto;
  text-align: right;
}

.nine-grid__badge {
  padding: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #f8fafc;
  letter-spacing: -0.01em;
  text-transform: none;
}

.nine-grid__score {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nine-grid__count {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.nine-grid__profile {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.88rem;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.45;
}

.nine-grid__body {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  z-index: 1;
}


.nine-grid__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  overflow-y: auto;
  max-height: calc(100% - 0.5rem);
}

.nine-grid__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.18);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nine-grid__row:hover {
  background: rgba(15, 23, 42, 0.82);
  border-color: color-mix(in srgb, var(--accent-color) 55%, rgba(148, 163, 184, 0.25));
  transform: translateY(-1px);
}

.nine-grid__row:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--accent-color) 70%, rgba(226, 232, 240, 0.88));
  outline-offset: 2px;
}

.nine-grid__row.is-highlighted {
  border-color: color-mix(in srgb, var(--accent-color) 65%, rgba(148, 163, 184, 0.28));
  background: color-mix(in srgb, var(--accent-color) 30%, rgba(15, 23, 42, 0.82));
  box-shadow: 0 14px 30px var(--accent-glow, rgba(56, 189, 248, 0.22));
}

.nine-grid__row-avatar {
  width: 32px;
  height: 32px;
  box-shadow: 0 10px 20px rgba(2, 6, 23, 0.55);
}

.nine-grid__row-info {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow: hidden;
}

.nine-grid__row-name {
  font-weight: 600;
  font-size: 0.86rem;
  color: rgba(15, 23, 42, 0.88);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nine-grid__row-discipline {
  font-size: 0.72rem;
  color: rgba(15, 23, 42, 0.55);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nine-grid__row-metric {
  font-size: 0.72rem;
  font-weight: 600;
  color: color-mix(in srgb, var(--accent-color) 65%, rgba(226, 232, 240, 0.88));
  letter-spacing: 0.05em;
}

.nine-grid__empty {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.78);
}

.nine-grid__avatars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.nine-grid__avatar-group {
  display: inline-flex;
  align-items: center;
  gap: 0;
}

.nine-grid__avatar {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nine-grid__avatar+.nine-grid__avatar {
  margin-left: -0.75rem;
}

.nine-grid__avatar-frame {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  border: 2px solid rgba(15, 23, 42, 0.95);
  overflow: hidden;
  box-shadow: 0 14px 26px rgba(2, 6, 23, 0.45);
  background: rgba(15, 23, 42, 0.85);
}

.nine-grid__avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nine-grid__avatar .initials {
  font-weight: 600;
  color: rgba(226, 232, 240, 0.92);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nine-grid__avatar:hover,
.nine-grid__avatar:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(2, 6, 23, 0.45);
}

.nine-grid__avatar:focus-visible {
  outline: 0;
}

.nine-grid__avatar--more {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px dashed rgba(148, 163, 184, 0.35);
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.82rem;
  font-weight: 600;
  margin-left: -0.75rem;
}

.nine-grid__summary {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  align-items: flex-end;
}

.nine-grid__summary-percent {
  font-size: 1rem;
  color: rgba(226, 232, 240, 0.92);
}

.nine-grid__summary-count {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nine-grid__trend {
  font-size: 0.82rem;
  color: rgba(226, 232, 240, 0.78);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.grid-panel {
  position: fixed;
  inset: clamp(36px, 6vh, 64px) clamp(18px, 4vw, 56px) clamp(36px, 6vh, 64px) auto;
  width: clamp(380px, 32vw, 540px);
  background: rgba(15, 23, 42, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 28px;
  padding: 2rem;
  box-shadow: 0 36px 64px rgba(2, 8, 23, 0.55);
  display: flex;
  flex-direction: column;
  gap: 1.6rem;
  max-height: calc(100vh - clamp(72px, 12vh, 120px));
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity 0.25s ease, transform 0.25s ease;
  transform: translateX(24px);
  z-index: 40;
  --panel-accent-bg: rgba(96, 165, 250, 0.18);
  --panel-accent-border: rgba(96, 165, 250, 0.35);
  --panel-accent-text: rgba(191, 219, 254, 0.95);
}

.grid-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(0);
}

.grid-panel__header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.grid-panel__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: color-mix(in srgb, var(--panel-accent-text, rgba(148, 163, 184, 0.75)) 60%, rgba(148, 163, 184, 0.7));
}

.grid-panel__title {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.45rem;
  color: var(--panel-accent-text, #f8fafc);
}

.grid-panel__subtitle {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(203, 213, 225, 0.88);
  line-height: 1.5;
}

.grid-panel__close {
  border: 0;
  background: rgba(15, 23, 42, 0.6);
  color: rgba(226, 232, 240, 0.72);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.grid-panel__close:hover,
.grid-panel__close:focus-visible {
  background: rgba(30, 41, 59, 0.85);
}

.nine-grid__cell.is-selected .nine-grid__cell-surface::before {
  opacity: 1;
}

body.grid-panel-open {
  overflow: hidden;
}

.grid-panel__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
  padding-bottom: 0.4rem;
}

.grid-panel__scroller {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  overflow-y: auto;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
  scrollbar-gutter: stable;
}

.grid-panel__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.2rem;
  z-index: 3;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
}

.grid-panel__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 120px;
  padding: 0.6rem 0.85rem;
  background: color-mix(in srgb, rgba(15, 23, 42, 0.92) 70%, rgba(148, 163, 184, 0.18) 30%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.4);
}

.grid-panel__chip strong {
  font-size: 1.12rem;
  color: #f8fafc;
}

.grid-panel__chip span {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
  letter-spacing: 0.12em;
}


.grid-panel__actions {
  display: grid;
  gap: 0.5rem;
  padding: 0.2rem 0;
}

.grid-panel__actions:not([hidden]) {
  background: color-mix(in srgb, var(--panel-accent-bg, rgba(96, 165, 250, 0.18)) 55%, rgba(15, 23, 42, 0.7));
  border: 1px solid color-mix(in srgb, var(--panel-accent-border, rgba(148, 163, 184, 0.25)) 65%, rgba(148, 163, 184, 0.15));
  border-radius: 16px;
  padding: 0.75rem 1rem;
  box-shadow: 0 12px 24px rgba(2, 8, 23, 0.35);
}


.grid-panel__actions h4 {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: color-mix(in srgb, var(--panel-accent-text, rgba(226, 232, 240, 0.85)) 60%, rgba(148, 163, 184, 0.7));
}


.grid-panel__actions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.4rem;
}


.grid-panel__actions-list li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  font-size: 0.8rem;
  color: rgba(203, 213, 225, 0.9);
}

.grid-panel__actions-list li::before {
  content: '\2022';
  color: color-mix(in srgb, var(--panel-accent-text, rgba(96, 165, 250, 0.85)) 85%, rgba(148, 163, 184, 0.6));
  font-size: 1rem;
  line-height: 1.4;
}

.grid-panel__search {
  display: grid;
  gap: 0.75rem;
  position: sticky;
  top: 0;
  padding: 0.3rem 0 0.6rem;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.96) 35%, rgba(15, 23, 42, 0.85) 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  z-index: 4;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
}

.grid-panel__search-box {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.grid-panel__search-box input[type="search"] {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  padding: 0.55rem 1.1rem;
  color: #f8fafc;
}

.grid-panel__search-box input[type="search"]:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--panel-accent-border, rgba(96, 165, 250, 0.4)) 80%, rgba(148, 163, 184, 0.45));
  outline-offset: 2px;
}

.grid-panel__search-box input[type="search"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.grid-panel__list {
  display: grid;
  gap: 0.9rem;
  flex: 1 1 auto;
  padding-bottom: 0.8rem;
  padding-right: 0.35rem;
  margin-right: -0.35rem;
}

.grid-panel__card {
  background: color-mix(in srgb, rgba(15, 23, 42, 0.88) 75%, var(--panel-accent-bg, rgba(96, 165, 250, 0.16)) 25%);
  border: 1px solid color-mix(in srgb, var(--panel-accent-border, rgba(148, 163, 184, 0.2)) 75%, rgba(148, 163, 184, 0.25));
  border-radius: 18px;
  padding: 1.2rem 1.35rem;
  display: grid;
  gap: 0.9rem;
  box-shadow: 0 26px 38px rgba(2, 8, 23, 0.35);
  transition: border-color 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.grid-panel__card::before {
  content: '';
  position: absolute;
  inset: -20% -40% auto auto;
  height: 160px;
  width: 160px;
  background: radial-gradient(circle at center, color-mix(in srgb, var(--panel-accent-bg, rgba(96, 165, 250, 0.2)) 65%, transparent), transparent 70%);
  opacity: 0.35;
  pointer-events: none;
  transform: rotate(18deg);
}

.grid-panel__card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 0.85rem;
  row-gap: 0.4rem;
  align-items: start;
}

.grid-panel__card-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 16px 26px rgba(2, 6, 23, 0.45);
}

.grid-panel__card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-panel__card-avatar .initials {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: rgba(96, 165, 250, 0.2);
  color: rgba(226, 232, 240, 0.92);
  font-weight: 600;
  text-transform: uppercase;
}

.grid-panel__card-info {
  display: grid;
  gap: 0.25rem;
  line-height: 1.2;
  min-width: 0;
}

.grid-panel__card-name {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
  color: #f8fafc;
  word-break: break-word;
}

.grid-panel__card-role {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.grid-panel__card-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.grid-panel__card.is-updating {
  opacity: 0.65;
  pointer-events: none;
}

.grid-panel__card.is-error {
  border-color: rgba(239, 68, 68, 0.65);
  transform: translateY(-2px);
  box-shadow: 0 28px 44px rgba(239, 68, 68, 0.28);
}

.grid-panel__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--panel-accent-border);
  background: var(--panel-accent-bg);
  color: var(--panel-accent-text);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  align-self: flex-end;
}

.grid-panel__manage {
  border: 1px solid var(--panel-accent-border);
  background: color-mix(in srgb, var(--panel-accent-bg) 75%, rgba(15, 23, 42, 0.65) 25%);
  color: var(--panel-accent-text);
  border-radius: 999px;
  padding: 0.35rem 0.85rem;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
  align-self: flex-end;
}

.grid-panel__manage:hover,
.grid-panel__manage:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--panel-accent-border) 70%, rgba(148, 163, 184, 0.45));
}

.grid-panel__ratings {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.grid-panel__rating {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  display: grid;
  gap: 0.5rem;
}

.grid-panel__rating span {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.78);
}

.grid-panel__stars {
  display: inline-flex;
  gap: 0.25rem;
}

.grid-panel__star {
  width: 20px;
  height: 20px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.6);
  border-radius: 6px;
  clip-path: polygon(50% 0%, 63% 35%, 100% 38%, 72% 59%, 82% 98%, 50% 76%, 18% 98%, 28% 59%, 0% 38%, 37% 35%);
  cursor: pointer;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  color: transparent;
  transition: transform 0.15s ease, background 0.2s ease, border-color 0.2s ease;
}

.grid-panel__star:hover,
.grid-panel__star:focus-visible {
  transform: translateY(-1px) scale(1.05);
  border-color: color-mix(in srgb, var(--panel-accent-border) 65%, rgba(148, 163, 184, 0.5));
}

.grid-panel__star:focus-visible {
  outline: 2px solid rgba(148, 163, 184, 0.65);
  outline-offset: 3px;
}

.grid-panel__star.is-active {
  background: rgba(250, 204, 21, 0.9);
  border-color: rgba(252, 211, 77, 0.95);
}

.grid-panel__notes {
  font-size: 0.82rem;
  color: rgba(203, 213, 225, 0.82);
  line-height: 1.4;
}

.grid-panel__note-body {
  margin: 0;
  color: rgba(203, 213, 225, 0.88);
}

.grid-panel__notes strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(148, 163, 184, 0.75);
}

.grid-panel__notes button {
  margin-top: 0.6rem;
  border: 0;
  background: transparent;
  color: rgba(125, 211, 252, 0.92);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
}

.grid-panel__note-editor {
  margin-top: 0.45rem;
}

.grid-panel__note-editor textarea {
  width: 100%;
  min-height: 90px;
  resize: vertical;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.7);
  color: #f8fafc;
  padding: 0.6rem 0.8rem;
  font-size: 0.85rem;
}

.grid-panel__note-editor textarea::placeholder {
  color: rgba(148, 163, 184, 0.6);
}

.grid-panel__empty {
  margin: 0;
  font-size: 0.88rem;
  color: rgba(148, 163, 184, 0.78);
  text-align: center;
  padding: 1.2rem 0;
}

.grid-panel__overlay {
  position: fixed;
  inset: 0;
  border: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 30;
}

.grid-panel__overlay:focus-visible {
  outline: none;
}

.grid-panel__overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1120px) {
  .grid-panel {
    inset: clamp(24px, 4vh, 48px) clamp(12px, 6vw, 32px);
    width: calc(100vw - clamp(24px, 12vw, 64px));
    max-height: calc(100vh - clamp(48px, 12vh, 96px));
  }
}

.grid-panel.is-rising-star {
  border-color: color-mix(in srgb, #fb923c 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(251, 146, 60, 0.18);
  --panel-accent-border: rgba(251, 146, 60, 0.45);
  --panel-accent-text: rgba(252, 211, 77, 0.95);
}

.grid-panel.is-game-changer {
  border-color: color-mix(in srgb, #34d399 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(52, 211, 153, 0.18);
  --panel-accent-border: rgba(52, 211, 153, 0.4);
  --panel-accent-text: rgba(134, 239, 172, 0.95);
}

.grid-panel.is-legend {
  border-color: color-mix(in srgb, #a855f7 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(168, 85, 247, 0.18);
  --panel-accent-border: rgba(168, 85, 247, 0.4);
  --panel-accent-text: rgba(221, 214, 254, 0.95);
}

.grid-panel.is-firecracker {
  border-color: color-mix(in srgb, #f43f5e 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(244, 63, 94, 0.18);
  --panel-accent-border: rgba(244, 63, 94, 0.4);
  --panel-accent-text: rgba(252, 165, 165, 0.95);
}

.grid-panel.is-knight {
  border-color: color-mix(in srgb, #38bdf8 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(56, 189, 248, 0.18);
  --panel-accent-border: rgba(56, 189, 248, 0.4);
  --panel-accent-text: rgba(191, 219, 254, 0.95);
}

.grid-panel.is-winner {
  border-color: color-mix(in srgb, #fbbf24 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(251, 191, 36, 0.18);
  --panel-accent-border: rgba(251, 191, 36, 0.4);
  --panel-accent-text: rgba(253, 224, 71, 0.95);
}

.grid-panel.is-mismatch {
  border-color: color-mix(in srgb, #ef4444 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(239, 68, 68, 0.18);
  --panel-accent-border: rgba(239, 68, 68, 0.45);
  --panel-accent-text: rgba(248, 113, 113, 0.95);
}

.grid-panel.is-loner {
  border-color: color-mix(in srgb, #facc15 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(250, 204, 21, 0.18);
  --panel-accent-border: rgba(250, 204, 21, 0.45);
  --panel-accent-text: rgba(253, 230, 138, 0.95);
}

.grid-panel.is-solo-performer {
  border-color: color-mix(in srgb, #60a5fa 45%, rgba(148, 163, 184, 0.4));
  --panel-accent-bg: rgba(96, 165, 250, 0.18);
  --panel-accent-border: rgba(96, 165, 250, 0.4);
  --panel-accent-text: rgba(191, 219, 254, 0.95);
}

.modal__card--employee {
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 28px 48px rgba(15, 23, 42, 0.35);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.modal__card--employee[class*="is-"]::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.45;
  background: radial-gradient(circle at top right, rgba(148, 163, 184, 0.12), transparent 55%);
}

.modal__card--employee.is-rising-star {
  border-color: color-mix(in srgb, #fb923c 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(251, 146, 60, 0.28);
}

.modal__card--employee.is-game-changer {
  border-color: color-mix(in srgb, #34d399 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(52, 211, 153, 0.28);
}

.modal__card--employee.is-legend {
  border-color: color-mix(in srgb, #a855f7 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(168, 85, 247, 0.28);
}

.modal__card--employee.is-firecracker {
  border-color: color-mix(in srgb, #f43f5e 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(244, 63, 94, 0.28);
}

.modal__card--employee.is-knight {
  border-color: color-mix(in srgb, #38bdf8 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(56, 189, 248, 0.28);
}

.modal__card--employee.is-winner {
  border-color: color-mix(in srgb, #fbbf24 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(251, 191, 36, 0.28);
}

.modal__card--employee.is-mismatch {
  border-color: color-mix(in srgb, #ef4444 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(239, 68, 68, 0.3);
}

.modal__card--employee.is-loner {
  border-color: color-mix(in srgb, #facc15 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(250, 204, 21, 0.3);
}

.modal__card--employee.is-solo-performer {
  border-color: color-mix(in srgb, #60a5fa 45%, rgba(148, 163, 184, 0.35));
  box-shadow: 0 32px 60px rgba(96, 165, 250, 0.3);
}

.modal__card--legend {
  max-width: 1000px;
}

.modal__card--employee {
  max-width: 980px;
}

.modal__subtitle {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: rgba(148, 163, 184, 0.8);
}

.hr-modal-tabs {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0.4rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.5);
}

.hr-modal-tab {
  border: 0;
  background: transparent;
  color: rgba(148, 163, 184, 0.75);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.45rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease;
}

.hr-modal-tab.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(14, 165, 233, 0.22));
  color: #f1f5f9;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.18);
}

.hr-modal-panel {
  margin-top: 1.4rem;
  display: none;
  gap: 1rem;
}

.hr-modal-panel.is-active {
  display: grid;
}

.hr-legend {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-bottom: 2rem;
}

.hr-legend__column {
  display: grid;
  gap: 0.9rem;
}

.hr-legend__column h4 {
  margin: 0;
}

.hr-legend__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.hr-legend__list li {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 0.95rem 1.1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
}

.hr-legend__list strong {
  font-size: 0.95rem;
  color: #f8fafc;
}

.hr-legend__list p {
  margin: 0;
  color: rgba(203, 213, 225, 0.92);
}

.hr-legend__list small {
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.8);
}

.hr-legend__grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.hr-legend__tile {
  --accent-color: rgba(56, 189, 248, 0.55);
  --accent-glow: rgba(56, 189, 248, 0.2);
  border-radius: 20px;
  border: 1px solid var(--accent-color, rgba(148, 163, 184, 0.18));
  padding: 1.4rem 1.6rem;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.95), rgba(15, 23, 42, 0.68));
  display: grid;
  gap: 0.8rem;
  box-shadow: 0 24px 40px var(--accent-glow, rgba(2, 10, 32, 0.4));
  position: relative;
  overflow: hidden;
}

.hr-legend__tile::before {
  content: "";
  position: absolute;
  inset: -40% 10% auto -35%;
  height: 240px;
  background: radial-gradient(circle at center, var(--accent-glow, rgba(56, 189, 248, 0.18)), transparent 70%);
  opacity: 0.9;
  pointer-events: none;
  transform: rotate(12deg);
  z-index: -1;
}

.hr-legend__tile header {
  display: grid;
  gap: 0.3rem;
  position: relative;
  z-index: 1;
}

.hr-legend__tile header strong {
  font-size: 1.05rem;
  color: #f8fafc;
}

.hr-legend__tile header span {
  font-size: 0.8rem;
  color: rgba(148, 163, 184, 0.85);
}

.hr-legend__tile header small {
  font-size: 0.78rem;
  color: var(--accent-color, rgba(148, 163, 184, 0.8));
}

.hr-legend__tile p {
  margin: 0;
  color: rgba(203, 213, 225, 0.9);
  font-size: 0.9rem;
  position: relative;
  z-index: 1;
}

.hr-legend__tile ul {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: rgba(148, 163, 184, 0.9);
  position: relative;
  z-index: 1;
}

.nine-grid__cell.is-rising-star,
.hr-grid__chip.is-rising-star,
.hr-legend__tile.is-rising-star,
.nine-grid__cell.is-knight,
.hr-grid__chip.is-knight,
.hr-legend__tile.is-knight,
.nine-grid__cell.is-solo-performer,
.hr-grid__chip.is-solo-performer,
.hr-legend__tile.is-solo-performer {
  --accent-color: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.26);
}

.nine-grid__cell.is-game-changer,
.hr-grid__chip.is-game-changer,
.hr-legend__tile.is-game-changer,
.nine-grid__cell.is-legend,
.hr-grid__chip.is-legend,
.hr-legend__tile.is-legend,
.nine-grid__cell.is-winner,
.hr-grid__chip.is-winner,
.hr-legend__tile.is-winner {
  --accent-color: #f59e0b;
  --accent-glow: rgba(245, 158, 11, 0.28);
}

.nine-grid__cell.is-firecracker,
.hr-grid__chip.is-firecracker,
.hr-legend__tile.is-firecracker,
.nine-grid__cell.is-mismatch,
.hr-grid__chip.is-mismatch,
.hr-legend__tile.is-mismatch,
.nine-grid__cell.is-loner,
.hr-grid__chip.is-loner,
.hr-legend__tile.is-loner {
  --accent-color: #ef4444;
  --accent-glow: rgba(239, 68, 68, 0.3);
}

.hr-skills {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 32px;
  padding: 2.4rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 42px rgba(2, 10, 32, 0.42);
  display: grid;
  gap: 1.5rem;
}

.hr-skills__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.skill-coverage {
  width: 100%;
  border-collapse: collapse;
}

.skill-coverage th,
.skill-coverage td {
  text-align: left;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding: 0.8rem;
}

.hr-skills-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.hr-skill-row {
  display: grid;
  gap: 0.45rem;
}

.hr-manage-shell {
  width: min(1200px, 95vw);
  margin: 2rem auto 4rem;
  display: grid;
  gap: 2rem;
}

.hr-manage__hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.hr-manage__hero h1 {
  margin: 0 0 0.4rem;
}

.hr-manage__tabshell {
  display: grid;
  gap: 1.6rem;
}

.hr-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  padding: 0.6rem 0.8rem;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.08), 0 14px 32px rgba(2, 10, 32, 0.38);
  backdrop-filter: blur(18px);
}

.hr-tab {
  border: 0;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
  cursor: pointer;
  transition: color 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}

.hr-tab.is-active {
  color: #f8fafc;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.36), rgba(14, 165, 233, 0.42));
  box-shadow: 0 18px 32px rgba(14, 165, 233, 0.22);
  transform: translateY(-2px);
}

.hr-tab:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.7);
  outline-offset: 2px;
}

.hr-tabs__panels {
  display: grid;
  gap: 1.8rem;
}

.hr-tab-panel {
  animation: hrFadeIn 260ms ease;
}

.hr-tab-panel[hidden] {
  display: none !important;
}

@keyframes hrFadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hr-manage__toast {
  background: rgba(34, 197, 94, 0.16);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: rgba(187, 247, 208, 0.92);
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  font-size: 0.9rem;
  display: inline-flex;
  gap: 0.45rem;
  align-items: center;
}

.hr-manage__toast strong {
  font-weight: 600;
}

.hr-catalogue {
  margin-top: 1.4rem;
  display: grid;
  gap: 1.2rem;
}

.hr-catalogue header h2 {
  margin: 0 0 0.2rem;
}

.hr-catalogue__grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.hr-catalogue-card {
  background: rgba(15, 23, 42, 0.74);
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 20px 36px rgba(2, 10, 32, 0.4);
  padding: 1rem 1.2rem;
  display: grid;
  gap: 0.6rem;
}

.hr-catalogue-card h3 {
  margin: 0;
  font-size: 0.95rem;
}

.hr-catalogue-card__contributors {
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.75);
}

.hr-catalogue-card__meter {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.78);
}

.hr-heatmap-section {
  margin-top: 1.8rem;
  background: rgba(15, 23, 42, 0.78);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 24px 38px rgba(2, 10, 32, 0.4);
  padding: 1.6rem 1.9rem;
  display: grid;
  gap: 1.2rem;
}

.hr-heatmap-section header h2 {
  margin: 0 0 0.2rem;
}

.hr-heatmap {
  position: relative;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.4rem;
  scrollbar-width: thin;
  scrollbar-gutter: stable both-edges;
  scrollbar-color: rgba(56, 189, 248, 0.55) rgba(30, 41, 59, 0.65);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.hr-heatmap::-webkit-scrollbar {
  height: 10px;
}

.hr-heatmap::-webkit-scrollbar-track {
  background: rgba(30, 41, 59, 0.6);
  border-radius: 999px;
}

.hr-heatmap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.45), rgba(14, 165, 233, 0.55));
}

.hr-heatmap:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.65);
  outline-offset: 4px;
}

.hr-heatmap::before,
.hr-heatmap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 16px;
  width: 32px;
  pointer-events: none;
  transition: opacity 0.25s ease;
  opacity: 0;
  z-index: 6;
}

.hr-heatmap::before {
  left: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0));
}

.hr-heatmap::after {
  right: 0;
  background: linear-gradient(270deg, rgba(15, 23, 42, 0.86), rgba(15, 23, 42, 0));
}

.hr-heatmap.is-scrollable::after {
  opacity: 0.85;
}

.hr-heatmap.is-scrolled::before {
  opacity: 0.85;
}

.hr-heatmap.is-at-end::after {
  opacity: 0;
}

.hr-heatmap__grid {
  display: grid;
  min-width: 680px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  overflow: hidden;
}

.hr-heatmap__row {
  display: contents;
}

.hr-heatmap__cell {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  border-right: 1px solid rgba(148, 163, 184, 0.08);
  font-size: 0.78rem;
  text-align: center;
  color: rgba(226, 232, 240, 0.85);
}

.hr-heatmap__cell.is-label {
  text-align: left;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 0.82rem;
  color: #f8fafc;
  background: rgba(15, 23, 42, 0.82);
  position: sticky;
  left: 0;
  z-index: 2;
}

.hr-heatmap__cell.is-header {
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: rgba(148, 163, 184, 0.8);
  background: rgba(15, 23, 42, 0.86);
  position: sticky;
  top: 0;
  z-index: 3;
}

.hr-heatmap__cell.is-header:not(.is-label) {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.1rem 0.45rem;
}

.hr-heatmap__skill-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  gap: 0.35rem;
  min-height: 120px;
}

@media (max-width: 720px) {
  .hr-heatmap__cell.is-header:not(.is-label) {
    padding: 0.8rem 0.35rem;
  }

  .hr-heatmap__skill-name {
    min-height: 90px;
    font-size: 0.68rem;
  }
}

.hr-heatmap__cell[data-level="0"] {
  background: rgba(15, 23, 42, 0.6);
  color: rgba(148, 163, 184, 0.45);
}

.hr-heatmap__cell[data-level="1"] {
  background: rgba(30, 64, 175, 0.4);
}

.hr-heatmap__cell[data-level="2"] {
  background: rgba(59, 130, 246, 0.42);
}

.hr-heatmap__cell[data-level="3"] {
  background: rgba(45, 212, 191, 0.46);
}

.hr-heatmap__cell[data-level="4"] {
  background: rgba(250, 204, 21, 0.5);
  color: rgba(15, 23, 42, 0.85);
}

.hr-heatmap__cell[data-level="5"] {
  background: rgba(251, 191, 36, 0.7);
  color: rgba(15, 23, 42, 0.85);
}

.hr-heatmap__cell.is-focused {
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.6);
  position: relative;
  z-index: 4;
}

.hr-heatmap__legend {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.78);
}

.hr-heatmap__scale {
  display: grid;
  grid-template-columns: repeat(6, minmax(24px, 34px));
  gap: 0.2rem;
}

.hr-heatmap__scale span {
  height: 10px;
  border-radius: 999px;
  opacity: 0.8;
  background: rgba(148, 163, 184, 0.2);
}

.hr-heatmap__scale span[data-level="0"] {
  background: rgba(15, 23, 42, 0.75);
}

.hr-heatmap__scale span[data-level="1"] {
  background: rgba(30, 64, 175, 0.6);
}

.hr-heatmap__scale span[data-level="2"] {
  background: rgba(59, 130, 246, 0.6);
}

.hr-heatmap__scale span[data-level="3"] {
  background: rgba(45, 212, 191, 0.6);
}

.hr-heatmap__scale span[data-level="4"] {
  background: rgba(250, 204, 21, 0.7);
}

.hr-heatmap__scale span[data-level="5"] {
  background: rgba(251, 191, 36, 0.85);
}

.hr-insights-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}

.hr-insights-list li {
  display: grid;
  gap: 0.45rem;
  padding: 0.9rem 1rem;
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hr-insights-list strong {
  display: block;
  font-size: 0.92rem;
  color: #f8fafc;
}

.hr-insights-meter {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.hr-insights-meter__bar {
  flex: 1;
  height: 8px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  position: relative;
  overflow: hidden;
}

.hr-insights-meter__bar::after {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--fill, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.9), rgba(14, 165, 233, 0.85));
  transition: width 0.4s ease;
}

.hr-manage__layout {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.8rem;
}

@media (min-width: 1240px) {
  .hr-manage__layout {
    display: grid;
    grid-template-columns: minmax(300px, 320px) 1fr;
    align-items: flex-start;
  }
}

.hr-manage__sidebar {
  display: grid;
  gap: 1.4rem;
}

.hr-search {
  display: grid;
  gap: 0.4rem;
}

.hr-search input {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  color: #f8fafc;
}

.hr-segment {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 1.1rem 1.3rem;
  display: grid;
  gap: 0.8rem;
}

.hr-chip-group,
.hr-skill-focus {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.hr-chip,
.hr-skill-chip {
  border: 0;
  background: rgba(30, 41, 59, 0.7);
  border-radius: 999px;
  color: rgba(226, 232, 240, 0.85);
  padding: 0.35rem 0.9rem;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.hr-chip.is-active,
.hr-skill-chip.is-active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(14, 165, 233, 0.32));
  color: #f8fafc;
  box-shadow: 0 12px 24px rgba(14, 165, 233, 0.22);
}

.hr-skill-chip {
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.hr-progress-card {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  padding: 1.3rem 1.5rem;
  display: grid;
  gap: 1.2rem;
}

.hr-progress-card__body dl {
  display: grid;
  gap: 0.8rem;
  margin: 0;
}

.hr-progress-card__body dt {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.78);
}

.hr-progress-card__body dd {
  margin: 0.2rem 0 0;
  font-size: 1.3rem;
  font-weight: 600;
  color: #f8fafc;
}

.hr-manage__detail {
  background: rgba(15, 23, 42, 0.78);
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 46px rgba(2, 10, 32, 0.42);
  padding: 1.9rem 2.2rem;
  display: grid;
  gap: 1.6rem;
}

.hr-detail__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hr-detail__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.hr-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

.hr-badge--rise {
  background: rgba(34, 197, 94, 0.16);
  color: rgba(187, 247, 208, 0.92);
  border-color: rgba(34, 197, 94, 0.28);
}

.hr-badge--plateau {
  background: rgba(59, 130, 246, 0.18);
  color: rgba(191, 219, 254, 0.92);
  border-color: rgba(59, 130, 246, 0.3);
}

.hr-badge--gap {
  background: rgba(248, 113, 113, 0.2);
  color: rgba(254, 202, 202, 0.95);
  border-color: rgba(248, 113, 113, 0.32);
}

.hr-talent-list {
  display: grid;
  gap: 1.4rem;
}

.hr-talent-card {
  background: rgba(15, 23, 42, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 24px;
  box-shadow: 0 20px 38px rgba(2, 10, 32, 0.42);
  padding: 1.6rem 1.8rem;
  display: grid;
  gap: 1.4rem;
}

.hr-talent-card[data-classification="rise"] {
  border-color: rgba(34, 197, 94, 0.38);
  box-shadow: 0 24px 46px rgba(34, 197, 94, 0.2);
}

.hr-talent-card[data-classification="gap"] {
  border-color: rgba(248, 113, 113, 0.38);
  box-shadow: 0 24px 46px rgba(248, 113, 113, 0.18);
}

.hr-talent-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hr-talent-identity {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.hr-talent-identity .avatar {
  width: 48px;
  height: 48px;
  font-size: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.28);
  box-shadow: 0 16px 28px rgba(2, 10, 32, 0.4);
}

.hr-talent-score {
  display: grid;
  gap: 0.2rem;
  text-align: right;
}

.hr-talent-score__label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.7);
}

.hr-talent-score strong {
  font-size: 1.9rem;
  color: #f8fafc;
}

.hr-talent-metagrid {
  display: grid;
  gap: 1.2rem;
}

@media (min-width: 1180px) {
  .hr-talent-metagrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.hr-talent-column {
  display: grid;
  gap: 0.8rem;
  background: rgba(15, 23, 42, 0.68);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 1rem 1.1rem;
}

.hr-talent-column--journey {
  gap: 1rem;
}

.hr-journey-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.hr-journey-metrics {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.8);
}

.hr-skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 320px;
  overflow-y: auto;
}

.hr-skill-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.6rem;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  background: rgba(30, 41, 59, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.18);
  font-size: 0.78rem;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.hr-skill-pill.hr-skill-pill--compact {
  border-radius: 14px;
  font-size: 0.75rem;
  padding: 0.35rem 0.6rem;
}

.hr-skill-pill.is-expert {
  border-color: rgba(34, 197, 94, 0.45);
  background: rgba(34, 197, 94, 0.16);
  color: rgba(187, 247, 208, 0.95);
}

.hr-skill-pill.is-strong {
  border-color: rgba(59, 130, 246, 0.42);
  background: rgba(59, 130, 246, 0.18);
  color: rgba(191, 219, 254, 0.95);
}

.hr-skill-pill.is-gap {
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.18);
  color: rgba(254, 202, 202, 0.95);
}

.hr-skill-pill__level {
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.72rem;
}

.hr-skill-pill.is-focused {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow: 0 12px 26px rgba(56, 189, 248, 0.22);
  background: rgba(56, 189, 248, 0.18);
}

.hr-skill-timeline {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-height: 320px;
  overflow-y: auto;
}

.hr-skill-timeline__row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.hr-skill-timeline__track {
  height: 8px;
  width: 100%;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.18);
  overflow: hidden;
}

.hr-skill-timeline__fill {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.88), rgba(14, 165, 233, 0.9));
  transition: width 0.4s ease;
}

.hr-skill-timeline__metric {
  font-weight: 600;
  font-size: 0.8rem;
  color: rgba(226, 232, 240, 0.88);
}

.hr-skill-timeline__row.is-focused {
  background: rgba(59, 130, 246, 0.18);
  border-radius: 999px;
  padding: 0.35rem 0.65rem;
}

.hr-update-form {
  display: grid;
  gap: 0.75rem;
}

.hr-update-panel {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 0.25rem 0.75rem 0.85rem;
}

.hr-update-panel>summary {
  list-style: none;
  cursor: pointer;
  padding: 0.6rem 0.4rem;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.82);
}

.hr-update-panel>summary::-webkit-details-marker {
  display: none;
}

.hr-update-panel[open]>summary {
  color: #f8fafc;
}

.hr-update-search input {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 10px;
  padding: 0.4rem 0.55rem;
  color: #f8fafc;
  font-size: 0.78rem;
}

.hr-update-grid {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 320px;
  overflow-y: auto;
}

.hr-update-field {
  display: grid;
  gap: 0.35rem;
  font-size: 0.78rem;
}

.hr-update-field.is-edited {
  border-left: 2px solid rgba(56, 189, 248, 0.55);
  padding-left: 0.45rem;
}

.hr-update-field.is-focused {
  border-left: 2px solid rgba(59, 130, 246, 0.6);
  padding-left: 0.45rem;
}

.hr-update-field select {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 10px;
  padding: 0.35rem 0.5rem;
  color: #f8fafc;
}

.hr-talent-card__footer {
  display: flex;
  justify-content: flex-end;
}

@media (max-width: 960px) {
  .hr-manage__detail {
    padding: 1.5rem 1.6rem;
  }

  .hr-talent-card {
    padding: 1.4rem;
  }
}

.project-form__chip.is-disabled .project-form__chip-body,
.project-form__chip.is-disabled .project-form__chip-meta,
.project-form__chip.is-disabled .project-form__chip-captain {
  color: rgba(148, 163, 184, 0.5);
}

.project-form__actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.hr-matrix-shell {
  background: rgba(15, 23, 42, 0.82);
  border-radius: 32px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 28px 48px rgba(2, 10, 32, 0.45);
  padding: 2rem;
  display: grid;
  gap: 1.6rem;
}

.hr-matrix-headline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.hr-matrix-search input[type="search"] {
  min-width: 260px;
  padding: 0.6rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.75);
  color: #f8fafc;
}

.hr-matrix-search input[type="search"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.hr-matrix__table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0 14px;
  table-layout: fixed;
}

.hr-matrix__table thead th {
  background: rgba(15, 23, 42, 0.68);
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.75rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(148, 163, 184, 0.78);
}

.hr-matrix__table thead tr:first-child th:first-child {
  border-top-left-radius: 18px;
}

.hr-matrix__table thead tr:first-child th:last-child {
  border-top-right-radius: 18px;
}

.hr-matrix__table thead tr:nth-child(2) th {
  border-top: 0;
  text-align: center;
}

.hr-matrix__table tbody tr {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 20px 40px rgba(3, 7, 18, 0.45);
  border-radius: 18px;
  overflow: hidden;
}

.hr-matrix__table tbody tr td,
.hr-matrix__table thead th {
  text-align: center;
}

.hr-matrix__table tbody tr td {
  padding: 0.65rem 0.8rem;
}

.hr-matrix__table tbody tr td:first-child {
  text-align: left;
  padding-left: 1.1rem;
  border-top-left-radius: 18px;
  border-bottom-left-radius: 18px;
}

.hr-matrix__table thead .tone-low {
  color: rgba(239, 68, 68, 0.8);
}

.hr-matrix__table thead .tone-moderate {
  color: rgba(249, 115, 22, 0.82);
}

.hr-matrix__table thead .tone-high {
  color: rgba(250, 204, 21, 0.82);
}

.hr-matrix__table tbody tr td:last-child {
  border-top-right-radius: 18px;
  border-bottom-right-radius: 18px;
  padding-right: 1.1rem;
}

.hr-matrix__identity {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
}

.hr-matrix__avatar {
  width: 48px;
  height: 48px;
  box-shadow: 0 16px 32px rgba(2, 6, 23, 0.45);
}

.hr-matrix__identity-meta {
  display: grid;
  gap: 0.2rem;
}

.hr-matrix__name {
  font-size: 1rem;
  color: #f8fafc;
}

.hr-matrix__discipline {
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.hr-matrix__rating-button {
  width: 100%;
  border-radius: 12px;
  padding: 0.55rem 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  border: 1px solid transparent;
}

.hr-matrix__rating-button--low {
  border-color: rgba(239, 68, 68, 0.32);
  background: rgba(239, 68, 68, 0.14);
  color: rgba(254, 226, 226, 0.95);
}

.hr-matrix__rating-button--moderate {
  border-color: rgba(249, 115, 22, 0.32);
  background: rgba(249, 115, 22, 0.14);
  color: rgba(255, 237, 213, 0.92);
}

.hr-matrix__rating-button--high {
  border-color: rgba(250, 204, 21, 0.32);
  background: rgba(250, 204, 21, 0.16);
  color: rgba(254, 249, 195, 0.95);
}

.hr-matrix__rating-button--low:hover,
.hr-matrix__rating-button--low:focus-visible {
  background: rgba(239, 68, 68, 0.24);
  color: #fee2e2;
}

.hr-matrix__rating-button--moderate:hover,
.hr-matrix__rating-button--moderate:focus-visible {
  background: rgba(249, 115, 22, 0.24);
  color: #ffedd5;
}

.hr-matrix__rating-button--high:hover,
.hr-matrix__rating-button--high:focus-visible {
  background: rgba(250, 204, 21, 0.26);
  color: #fef3c7;
}

.hr-matrix__rating-button--low.is-active {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.32), rgba(220, 38, 38, 0.36));
  color: #fff5f5;
  box-shadow: 0 14px 28px rgba(239, 68, 68, 0.28);
}

.hr-matrix__rating-button--moderate.is-active {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.3), rgba(234, 88, 12, 0.34));
  color: #fff7ed;
  box-shadow: 0 14px 28px rgba(249, 115, 22, 0.26);
}

.hr-matrix__rating-button--high.is-active {
  background: linear-gradient(135deg, rgba(250, 204, 21, 0.3), rgba(234, 179, 8, 0.34));
  color: #fffdea;
  box-shadow: 0 14px 28px rgba(250, 204, 21, 0.26);
}

.hr-matrix__actions {
  text-align: right;
}

.hr-matrix__actions .button {
  font-size: 0.78rem;
  border-radius: 999px;
  padding: 0.45rem 1.3rem;
}

.hr-matrix__table tbody tr.is-updating {
  opacity: 0.65;
}

.hr-matrix__table tbody tr.is-error {
  border-color: rgba(239, 68, 68, 0.5);
  box-shadow: 0 22px 40px rgba(239, 68, 68, 0.28);
}

.hr-matrix__table tbody tr:hover {
  border-color: rgba(56, 189, 248, 0.25);
}

@media (max-width: 1280px) {
  .hr-matrix__table {
    table-layout: auto;
  }

  .hr-matrix__table thead {
    display: none;
  }

  .hr-matrix__table tbody tr,
  .hr-matrix__table tbody td {
    display: block;
    width: 100%;
    text-align: left;
  }

  .hr-matrix__table tbody tr {
    padding: 1rem 1.2rem;
  }

  .hr-matrix__table tbody td {
    padding: 0.5rem 0;
  }

  .hr-matrix__actions {
    text-align: left;
    margin-top: 0.4rem;
  }

  .hr-matrix__rating-button {
    width: auto;
  }

  .hr-matrix__table tbody td:first-child {
    padding: 0;
    margin-bottom: 0.6rem;
  }
}/* Dashboard Shell */
.dashboard-shell {
    width: min(1400px, 94vw);
    margin: 3rem auto 5rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

/* Dashboard Hero */
.dashboard-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.dashboard-hero h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, white, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dashboard-hero p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.dashboard-hero__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.dashboard-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    user-select: none;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem 1rem;
    border-radius: 99px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    transition: background 0.2s ease, border-color 0.2s ease;
}

.dashboard-toggle:hover {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(148, 163, 184, 0.35);
}

.dashboard-toggle input {
    margin: 0;
    cursor: pointer;
}

.dashboard-toggle span {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.dashboard-toggle input:checked+span {
    color: var(--text-primary);
}

/* Project Groups */
.project-group {
    margin-bottom: 3rem;
}

.project-group__header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.project-group__toggle {
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    cursor: pointer;
    color: inherit;
    width: 100%;
    text-align: left;
    transition: opacity 0.2s ease;
    box-shadow: none;
}

.project-group__toggle:hover {
    opacity: 0.8;
    transform: none;
    box-shadow: none;
}

.project-group__icon {
    font-size: 1.5rem;
}

.project-group__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.project-group__count {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-secondary);
    background: rgba(148, 163, 184, 0.1);
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
}

.project-group__chevron {
    margin-left: auto;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.project-group.is-collapsed .project-group__chevron {
    transform: rotate(-90deg);
}

.project-group.is-collapsed .project-group__content {
    display: none;
}

.project-group.is-collapsed .project-group__header {
    border-bottom: none;
    margin-bottom: 0;
}

/* Group Colors */
.project-group--blue .project-group__title {
    color: #60a5fa;
}

.project-group--yellow .project-group__title {
    color: #fbbf24;
}

.project-group--green .project-group__title {
    color: #4ade80;
}

.project-group--orange .project-group__title {
    color: #fb923c;
}

.project-group--red .project-group__title {
    color: #f87171;
}

.project-group--gray .project-group__title {
    color: #94a3b8;
}
/* Portfolio Header Alias */
.portfolio-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1rem;
}

.portfolio-header h1 {
    margin: 0 0 0.5rem;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    background: linear-gradient(135deg, white, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.portfolio-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.portfolio-header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Spinner */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 0;
    gap: 1rem;
    color: var(--text-secondary);
}

.spinner {
    width: 2rem;
    height: 2rem;
    border: 3px solid rgba(148, 163, 184, 0.2);
    border-radius: 50%;
    border-top-color: #38bdf8;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Dashboard Controls */
.dashboard-controls {
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 0 0.5rem;
}

.toggle-control {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

.toggle-control:hover {
    color: var(--text-primary);
}

.toggle-switch {
    display: block;
    position: relative;
    width: 36px;
    height: 20px;
    background: rgba(148, 163, 184, 0.2);
    border-radius: 20px;
    transition: background 0.2s ease;
}

.toggle-control input:checked + .toggle-switch {
    background: var(--accent);
}

.toggle-switch::after {
    content: '';
    position: absolute;
    left: 2px;
    top: 2px;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.toggle-control input:checked + .toggle-switch::after {
    transform: translateX(16px);
}

.toggle-control input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}
