.app {
  position: relative;
  z-index: 1;
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.topbar {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.5rem;
  margin: 0.75rem 1.5rem 0;
  border-radius: 1.375rem;
  background: linear-gradient(90deg, #075e54 0%, #128c7e 55%, #25d366 100%);
  color: #f8fffb;
  box-shadow: none;
  flex-wrap: wrap;
}

body[data-theme="dark"] .topbar {
  background: linear-gradient(90deg, #042b25 0%, #0b3b34 55%, #128c7e 100%);
}

body[data-theme="dark"] .top-nav {
  background: rgba(15, 36, 31, 0.9);
  border-color: rgba(200, 255, 230, 0.12);
}

body[data-theme="dark"] .nav-btn:hover {
  background: rgba(18, 140, 126, 0.25);
}

body[data-theme="dark"] .nav-btn.active {
  background: rgba(18, 140, 126, 0.35);
  border-color: rgba(200, 255, 230, 0.18);
}

body[data-theme="dark"] .nav-icon {
  background: rgba(200, 255, 230, 0.12);
}

body[data-theme="dark"] .nav-btn.active .nav-icon {
  background: #d9fdd3;
  color: #0b1f17;
}
.brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  order: 1;
}

.brand-dot {
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: none;
}

.brand-title {
  font-family: var(--font-head);
  font-size: 1.125rem;
  margin: 0;
}

.brand-sub {
  margin: 0.125rem 0 0;
  color: rgba(248, 255, 251, 0.75);
  font-size: 0.75rem;
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
  order: 2;
}

.top-nav {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  flex: 1 1 100%;
  justify-content: flex-start;
  padding: 0.25rem;
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.2);
  border: 0.0625rem solid rgba(255, 255, 255, 0.22);
  min-width: 0;
  overflow: hidden;
  flex-wrap: wrap;
  order: 3;
}

.nav-btn {
  background: transparent;
  color: #f8fffb;
  padding: 0.375rem 0.625rem;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
  border: 0.0625rem solid transparent;
  white-space: nowrap;
}

.nav-btn:hover {
  background: rgba(255, 255, 255, 0.2);
}

.nav-btn.active {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.32);
}

.nav-icon {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.625rem;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
}

.nav-icon svg {
  width: 0.875rem;
  height: 0.875rem;
}

.nav-btn.active .nav-icon {
  background: #f8fffb;
  color: #075e54;
}

.nav-label {
  letter-spacing: 0.01em;
}

.views {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.view {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.view.active {
  display: flex;
  flex-direction: column;
}

.view-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin: 0;
}

.view-header h2 {
  margin: 0;
  font-size: 1.5rem;
}

.view-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.shell {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 1.375rem;
  padding: 1.5rem 3rem 1.5rem;
  height: 100%;
  min-height: 0;
}

.panel {
  background: var(--panel);
  border-radius: var(--radius);
  border: 0.0625rem solid var(--stroke);
  box-shadow: none;
  padding: 1.375rem;
  min-height: 0;
}

.panel-left,
.panel-right {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.panel-left {
  background: var(--panel);
  min-height: 0;
  overflow: hidden;
}

.panel-center {
  background: var(--panel);
  min-height: 0;
  overflow: hidden;
}

.panel-right {
  background: var(--panel);
}

.panel-header h2 {
  margin: 0 0 0.375rem;
  font-family: var(--font-head);
  font-size: 1.25rem;
}

.panel-center {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 0;
}

.internal-shell {
  display: grid;
  grid-template-columns: 1.05fr 1.95fr;
  gap: 1.375rem;
  flex: 1;
  min-height: 0;
}

.panel,
.metric-card {
  animation: floatIn 0.6s ease both;
}

.panel-center {
  animation-delay: 0.1s;
}

.panel-right {
  animation-delay: 0.2s;
}
