/* Shared single-row workspace navigation across every page. */
:root { --workspace-nav-height:82px; }
.nav-wrap {
  position:sticky;
  top:0;
  z-index:1000;
  width:100%;
  max-width:none;
  margin:0;
  padding:8px clamp(8px,1.5vw,28px);
  background:rgba(245,245,247,.94);
  -webkit-backdrop-filter:blur(14px);
  backdrop-filter:blur(14px);
}
.site-topbar {
  display:grid;
  grid-template-columns:minmax(0,230px) minmax(0,1fr);
  align-items:center;
  gap:clamp(6px,1.2vw,20px);
  width:100%;
  min-width:0;
  min-height:64px;
  padding:6px 9px 6px 14px;
  border:1px solid #e8e8ed;
  border-radius:20px;
  background:rgba(250,250,252,.97);
  box-shadow:0 2px 12px rgba(29,29,31,.06);
}
.site-brand {
  display:flex;
  align-items:center;
  gap:10px;
  min-width:0;
  color:#1d1d1f;
  text-decoration:none;
}
.site-brand img {
  display:block;
  flex:none;
  width:42px;
  height:42px;
  object-fit:contain;
  border-radius:8px;
  background:#fff;
}
.site-brand strong,.site-brand small { display:block; white-space:nowrap; }
.site-brand strong { font-size:15px; line-height:1.2; font-weight:720; }
.site-brand small { margin-top:2px; color:#6e6e73; font-size:9px; letter-spacing:.08em; line-height:1.2; }
.workspace-nav {
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  gap:3px;
  width:100%;
  min-width:0;
  overflow-x:auto;
  overflow-y:hidden;
  scrollbar-width:none;
  overscroll-behavior-inline:contain;
  -webkit-overflow-scrolling:touch;
}
.workspace-nav::-webkit-scrollbar { display:none; }
.site-topbar .nav-tab {
  display:flex;
  flex:1 0 max-content;
  align-items:center;
  justify-content:center;
  gap:clamp(4px,.5vw,8px);
  min-width:max-content;
  min-height:50px;
  padding:0 clamp(7px,.9vw,14px);
  border-radius:14px;
  color:#1d1d1f;
  font-size:clamp(12px,.9vw,14px);
  font-weight:620;
  line-height:1.3;
  white-space:nowrap;
  text-decoration:none;
}
.site-topbar a.nav-tab:hover { background:#fff7d6; text-decoration:none; }
.site-topbar .nav-tab.current,.site-topbar a.nav-tab.current:hover { background:#fce47c; color:#1d1d1f; font-weight:720; }
.site-topbar .nav-tab .ico {
  display:block;
  flex:none;
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.site-topbar .nav-tab-unavailable { color:#595959; }
.site-topbar a:focus-visible { outline:2px solid #957000; outline-offset:2px; }
.embed .nav-wrap { display:none!important; }
.record-page .customer-section-nav { top:calc(var(--workspace-nav-height) + 10px); }
.record-page .customer-record-content > section[id] { scroll-margin-top:calc(var(--workspace-nav-height) + 12px); }
@media (max-width:850px) {
  .site-topbar { grid-template-columns:minmax(0,180px) minmax(0,1fr); }
  .site-topbar .nav-tab { flex:0 0 auto; font-size:13px; }
}
@media (max-width:600px) {
  .nav-wrap { padding:6px 8px; }
  .site-topbar { grid-template-columns:42px minmax(0,1fr); gap:6px; min-height:58px; padding:5px 7px; border-radius:15px; }
  .site-brand { padding:0; }
  .site-brand span { display:none; }
  .site-brand img { width:40px; height:40px; }
  .site-topbar .nav-tab { min-height:44px; padding:0 10px; font-size:13px; }
  .site-topbar .nav-tab .ico { width:18px; height:18px; }
}
@media (max-width:1100px) {
  .record-page .customer-section-nav { top:calc(var(--workspace-nav-height) + 4px); }
  .record-page .customer-record-content > section[id] { scroll-margin-top:calc(var(--workspace-nav-height) + 70px); }
}
