/* NOIR finish pass — narrow overrides for layout, typography and motion. */
:root {
  --soft-ease: cubic-bezier(.22, 1, .36, 1);
}

body, button, input, select, textarea {
  font-family: 'Plus Jakarta Sans', 'Manrope', sans-serif;
}

.page-title, .hero-title, .brandname {
  font-weight: 700;
  letter-spacing: -.045em;
}

.section-title, .metric-val, .ring-number strong, .ring-value {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.nav-button, .action-button, .connection-button, .profile-name {
  font-weight: 600;
}

.sidebar {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  padding-bottom: 20px;
}
.sidebar::-webkit-scrollbar { display: none; }
.brand { flex-shrink: 0; padding-bottom: 20px; }
.sidebar-section-label { flex-shrink: 0; padding-bottom: 10px; }
.nav { flex-shrink: 0; gap: 4px; }
.nav-button { min-height: 40px; padding: 10px 14px; }
.sidebar-space { flex: 1 0 20px; min-height: 20px; }
.connection-card { flex-shrink: 0; padding: 16px; }
.connection-desc { margin: 10px 0 14px; }
.connection-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 10px;
}
.connection-button svg { flex: 0 0 auto; }
.sidebar-profile {
  flex-shrink: 0;
  min-height: 64px;
  margin: 16px 4px 0;
  padding: 14px 6px 0;
}
.sidebar-profile > div:last-child { min-width: 0; }
.profile-role { line-height: 1.45; }

.overview-side { min-width: 0; }
.live-ring-wrap { gap: 20px; min-height: 162px; margin: 22px 0; }
.ring, .ring svg { width: 136px; height: 136px; }
.ring-number {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 11px;
  line-height: 1;
  pointer-events: none;
}
.ring-number strong { display: block; font-size: 29px; line-height: 1; letter-spacing: -.045em; }
.ring-number small {
  display: block;
  white-space: nowrap;
  font-size: 9px;
  line-height: 1.4;
  color: #aaadb5;
  letter-spacing: 0;
}
.ring-data { gap: 16px; min-width: 0; }
.ring-value { font-variant-numeric: tabular-nums; }
.metric-val { letter-spacing: -.04em; font-variant-numeric: tabular-nums; }

/* Tactile feedback: restrained depth shift rather than a bouncing UI. */
button, .toggle {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-button, .action-button, .icon-button, .connection-button,
.text-button, .chart-tab, .segmented button, .chat-contact, .toggle {
  transition-property: transform, background-color, border-color, color, box-shadow, opacity;
  transition-duration: 160ms;
  transition-timing-function: var(--soft-ease);
}
.action-button:hover, .connection-button:hover { transform: translateY(-1px); }
.nav-button:active, .action-button:active, .icon-button:active,
.connection-button:active, .text-button:active, .chart-tab:active,
.segmented button:active, .chat-contact:active {
  transform: translateY(1px) scale(.975);
  box-shadow: inset 0 2px 7px #0006;
}
button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible { outline: 2px solid #c2c7d1; outline-offset: 3px; }

/* Chart dots, fill and tiny bar reveals follow the first dashboard paint. */
.chart-area-fill { animation: noir-fade-in 800ms var(--soft-ease) both; }
.chart-dot { transform-box: fill-box; transform-origin: center; animation: noir-dot-in 320ms var(--soft-ease) both; }
.chart-dot:nth-of-type(1) { animation-delay: 320ms; }
.chart-dot:nth-of-type(2) { animation-delay: 390ms; }
.chart-dot:nth-of-type(3) { animation-delay: 460ms; }
.chart-dot:nth-of-type(4) { animation-delay: 530ms; }
.chart-dot:nth-of-type(5) { animation-delay: 600ms; }
.chart-dot:nth-of-type(6) { animation-delay: 670ms; }
.chart-dot:nth-of-type(7) { animation-delay: 740ms; }
.time-fill { transform-origin: left center; animation: noir-fill-in 850ms var(--soft-ease) both; }
.time-slot:nth-child(3) .time-fill { animation-delay: 90ms; }
.time-slot:nth-child(4) .time-fill { animation-delay: 170ms; }
.metric-card { animation: noir-card-in 420ms var(--soft-ease) both; }
.metric-card:nth-child(2) { animation-delay: 45ms; }
.metric-card:nth-child(3) { animation-delay: 90ms; }
.metric-card:nth-child(4) { animation-delay: 135ms; }

@keyframes noir-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes noir-dot-in { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: scale(1); } }
@keyframes noir-fill-in { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes noir-card-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1250px) {
  .live-ring-wrap { gap: 14px; }
  .ring, .ring svg { width: 124px; height: 124px; }
  .ring-number small { font-size: 8.5px; }
}

@media (max-width: 680px) {
  .sidebar { padding-bottom: max(20px, env(safe-area-inset-bottom)); }
  .live-ring-wrap { justify-content: center; gap: 24px; }
  .ring, .ring svg { width: 136px; height: 136px; }
  .ring-number small { font-size: 9px; }
}

@media (max-height: 670px) and (min-width: 961px) {
  .brand { padding-bottom: 12px; }
  .sidebar { padding-top: 16px; }
  .nav-button { min-height: 36px; padding-top: 8px; padding-bottom: 8px; }
  .sidebar-space { flex-basis: 12px; min-height: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .metric-card, .chart-area-fill, .chart-dot, .time-fill { animation: none !important; }
}
