/**
 * Shared Maestro chrome: top bar + page header (aligned with project-detail / index).
 */
@font-face {
  font-family: 'Azonix';
  src: url('./Azonix.otf') format('opentype');
  font-display: swap;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #0f2a5a;
  color: #eaf2ff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.topbar .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  flex-wrap: nowrap;
}
.topbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #eaf2ff;
  min-width: 0;
  flex-shrink: 0;
}
.topbar .brand img {
  height: 62px;
  width: auto;
  flex-shrink: 0;
}
.topbar .title {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  min-width: 0;
}
.topbar .title b {
  font-family: 'Azonix', sans-serif;
  letter-spacing: 0.5px;
  font-size: 26px;
  white-space: nowrap;
}
.topbar .title small {
  font-family: sans-serif;
  font-style: italic;
  font-size: 11px;
  opacity: 0.85;
  font-weight: 400;
  white-space: nowrap;
}
.topbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: nowrap;
}

.topbar select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.12);
  color: #eaf2ff;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
  white-space: nowrap;
  min-width: 140px;
  max-width: 200px;
}
.topbar select:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
}
.topbar select option {
  background: #0f2a5a;
  color: #eaf2ff;
}

.chip {
  background: linear-gradient(135deg, #a78bfa, #60a5fa);
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  flex-shrink: 0;
}
.user-badge {
  background: rgba(255, 255, 255, 0.12);
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.logout {
  background: #fff;
  color: #0f2a5a;
  border: none;
  border-radius: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 800;
  font-size: 16px;
  flex-shrink: 0;
}
.logout:hover {
  background: #e0e7ff;
}

@media (max-width: 1200px) {
  .topbar .title small {
    display: none;
  }
  .topbar select {
    min-width: 120px;
    font-size: 13px;
  }
  .user-badge {
    max-width: 150px;
    font-size: 12px;
  }
  .chip {
    font-size: 11px;
    padding: 5px 10px;
  }
}

@media (max-width: 992px) {
  .topbar .inner {
    gap: 8px;
  }
  .topbar .right {
    gap: 8px;
  }
  .topbar select {
    min-width: 100px;
    padding: 6px 8px;
  }
}

.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 20px 0;
  flex-wrap: wrap;
}
.page-header-left h2 {
  margin: 0;
  font-family: 'Azonix', sans-serif;
  color: var(--blue-800, #0f2a5a);
  letter-spacing: 0.5px;
  font-size: 28px;
}
.page-header-left p {
  margin: 4px 0 0 0;
  color: var(--slate-600, #475569);
}
.page-header-right {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.btn-nav {
  background: #fff;
  border: 2px solid var(--blue-500, #3b82f6);
  color: var(--blue-700, #1d4ed8);
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  font-family: inherit;
  cursor: pointer;
}
button.btn-nav {
  border: 2px solid var(--blue-500, #3b82f6);
}
.btn-nav:hover {
  background: var(--blue-50, #eff6ff);
  border-color: var(--blue-600, #2563eb);
}
.btn-nav.active {
  background: var(--blue-500, #3b82f6);
  color: #fff;
}

.section {
  padding: 12px 0;
}
.container {
  max-width: 2400px;
  padding: 0 16px;
  margin: 0 auto;
}
