/* Only the header navigation and non-interactive connection indicators. */
#clientIdentity i{background:#34e36c;box-shadow:0 0 8px #34e36c88,0 0 2px #a4ffc3}
.page-client header .topnav {
  flex-shrink: 0;
  padding: 4px;
  gap: 4px;
  border: 1px solid #555259;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0a0e 0%, #202025 100%);
  box-shadow: inset 0 3px 7px #000b, inset 0 -1px 2px #ffffff16,
    0 0 0 3px #ffffff06, 0 1px 0 #ffffff24, 0 5px 12px #0005;
}
.page-client header .topnav::before {
  background: linear-gradient(155deg, #fff 0%, #f6f5f8 46%, #c9c7ce 100%);
  border: 1px solid #ffffffc9;
  box-shadow: inset 0 2px 2px #fff, inset 0 -2px 3px #9f9ba35e,
    0 2px 3px #0008, 0 5px 9px #0007;
  transition: transform .42s cubic-bezier(.22,.8,.2,1), box-shadow .3s ease;
}
.page-client header .navbtn {
  min-height: 44px;
  padding: 10px 17px;
  color: #a09ba8;
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -.015em;
  text-shadow: 0 1px 2px #000b;
}
.page-client header .navbtn.active {
  color: #17151d;
  text-shadow: 0 1px 0 #ffffffb3;
}
.page-client header .navbtn:hover:not(.active) { color: #e5dfee; }
.page-client header .connection-status {
  flex-wrap: wrap;
  gap: 5px;
  min-width: 0;
  margin-inline: 8px;
}
.page-client header .connection-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 8px 4px 5px;
  border: 1px solid #49464f;
  border-radius: 999px;
  background: linear-gradient(180deg, #0b0b0e, #242128);
  box-shadow: inset 0 3px 7px #000b, inset 0 -1px 2px #ffffff14,
    0 0 0 2px #ffffff04, 0 1px 0 #ffffff1c, 0 3px 7px #0005;
  color: #99929f;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  letter-spacing: .005em;
  opacity: 1;
  cursor: default;
  text-shadow: 0 1px 2px #000b;
}
.page-client header .connection-chip::before {
  content: '';
  width: 14px;
  height: 14px;
  flex: 0 0 14px;
  border: 1px solid #aaa6ae;
  border-radius: 50%;
  background: linear-gradient(145deg, #d2cfd5, #8c8793);
  box-shadow: inset 0 1px 2px #ffffff85, inset 0 -2px 3px #534b6266,
    0 2px 4px #000c, 0 0 0 2px #0005;
}
.page-client header .connection-chip::after {
  content: none;
  display: none;
}
.page-client header .connection-chip.connected {
  padding-left: 8px;
  padding-right: 5px;
  border-color: #3f6256;
  color: #cef6df;
  background: linear-gradient(180deg, #0a1411, #1c2823);
}
.page-client header .connection-chip.connected::before {
  order: 2;
  border-color: #bcf4d4;
  background: linear-gradient(145deg, #ddffeb, #81cba4);
  box-shadow: inset 0 1px 2px #ffffffad, inset 0 -2px 3px #42785855,
    0 2px 4px #000c, 0 0 0 2px #0005, 0 0 11px #81e5b121;
}
.page-client header .connection-chip.connected::after {
  content: none;
  display: none;
}
@media (min-width: 1181px) and (max-width: 1399px) {
  .page-client header .connection-status { flex: 0 1 410px; }
}
@media (max-width: 1180px) {
  .page-client header .connection-status { margin-inline: 0; }
}
@media (max-width: 640px) {
  .page-client header .connection-status { gap: 6px; }
  .page-client header .connection-chip { font-size: 10px; padding-right: 8px; }
  .page-client header .connection-chip::before { width: 16px; height: 16px; flex-basis: 16px; }
  .page-client header .navbtn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .page-client header .topnav::before { transition: none; }
}
/* Logout changes only shape and glyph; existing surface, opacity and action stay. */
.page-client #logoutBtn {
  width: 48px;
  height: 48px;
  min-height: 48px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.page-client #logoutBtn::before { content: none; }
.page-client #logoutBtn svg { width: 23px; height: 23px; flex: 0 0 23px; }

/* The existing 3D switch gains one destination; its original surfaces stay. */
.page-client header .topnav.with-about {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: 340px;
  min-width: 0;
  max-width: 100%;
}
.page-client header .topnav.with-about::before {
  box-sizing: border-box;
  width: calc((100% - 16px) / 3);
  transform: translateX(calc(100% + 4px));
}
.page-client header .topnav.with-about.invoice-active::before { transform: translateX(calc(200% + 8px)); }
.page-client header .topnav.with-about.about-active::before { transform: translateX(0); }
.page-client header .topnav.with-about .navbtn {
  display: flex; align-items: center; justify-content: center;
  min-width: 0; padding-inline: 9px; text-decoration: none; white-space: nowrap;
}
@media (min-width: 761px) and (max-width: 860px) {
  .page-client header .topnav.with-about { flex-basis: 300px; width: 300px; }
}
@media (max-width: 480px) {
  .page-client header .topnav.with-about { width: 100%; }
}
