/* 2026-03-29: unified tab-style header navigation + sibling site chips */

header .nav {
  grid-template-columns: clamp(190px, 18vw, 260px) minmax(0, 1fr) clamp(312px, 26vw, 410px);
  gap: 0.72rem;
  align-items: center;
}

header .brand {
  border-radius: 12px;
}

header .menu {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.28rem;
  padding: 4px;
  border: 1px solid #d2dff2;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 35, 78, 0.08);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
header .menu::-webkit-scrollbar { display: none; }

header .menu > a[href="#top"],
header .menu > a[href="index.html"],
header .menu > a[href="/index.html"] {
  display: none !important;
}

header .menu > a,
header .menu > .menu-dropdown > .menu-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 9px;
  white-space: nowrap;
  line-height: 1;
  font-weight: 700;
}

header .menu > a {
  border: 1px solid transparent;
  color: #20334f;
  font-size: 0.84rem;
  padding: 0 0.74rem;
}
header .menu > a:hover {
  border-color: #c6d5ec;
  background: #f5f9ff;
}
header .menu > a.active {
  background: #1f43a7;
  border-color: #19388b;
  color: #fff;
}

header .menu > .menu-dropdown > .menu-trigger {
  border: 1px solid #cad8ee;
  background: #f8fbff;
  color: #27466f;
  font-size: 0.82rem;
  padding: 0 0.82rem;
}
header .menu > .menu-dropdown > .menu-trigger:hover {
  border-color: #b5cae7;
  background: #f1f7ff;
}

header .menu > .menu-dropdown:first-of-type > .menu-trigger {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 1.02rem;
  border-radius: 14px 10px 10px 14px;
  border-color: #bf4c73;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 213, 179, 0.62), transparent 34%),
    linear-gradient(130deg, #fff0dc 0%, #ffd8e4 46%, #f5cde3 100%);
  color: #71152d;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 16px 30px rgba(124, 23, 47, 0.16),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset;
  justify-content: flex-start;
  gap: 0;
  animation: navSignalFloatOc 4.8s ease-in-out infinite;
}
header .menu > .menu-dropdown:first-of-type > .menu-trigger::before {
  content: none;
}
header .menu > .menu-dropdown:first-of-type > .menu-trigger::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -26px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(177, 42, 76, 0.28), rgba(177, 42, 76, 0));
  pointer-events: none;
  animation: navGlowPulseOc 3.4s ease-in-out infinite;
}
header .menu > .menu-dropdown:first-of-type > .menu-trigger.active {
  border-color: #7d1c31;
  background:
    radial-gradient(circle at 18% 24%, rgba(255, 223, 173, 0.3), transparent 30%),
    linear-gradient(130deg, #a4233d 0%, #7a1637 42%, #5b2f9f 100%);
  color: #fff;
  box-shadow:
    0 24px 42px rgba(101, 16, 42, 0.34),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 5px rgba(129, 35, 68, 0.2);
}

header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  padding: 0 1.04rem;
  border-radius: 14px;
  border-color: #4a98df;
  background:
    radial-gradient(circle at 18% 24%, rgba(206, 245, 255, 0.9), transparent 34%),
    linear-gradient(130deg, #ecf9ff 0%, #d6ecff 44%, #cce1ff 72%, #d4ffe9 100%);
  color: #123f99;
  font-size: 0.84rem;
  letter-spacing: 0.01em;
  box-shadow:
    0 18px 36px rgba(28, 68, 155, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.68) inset;
  justify-content: flex-start;
  gap: 0;
  animation: navSignalFloatAi 4.8s ease-in-out infinite;
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger::before {
  content: none;
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -28px;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 148, 255, 0.28), rgba(62, 148, 255, 0));
  pointer-events: none;
  animation: navGlowPulseAi 3.4s ease-in-out infinite;
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger.active {
  border-color: #1a409f;
  background:
    radial-gradient(circle at 18% 24%, rgba(137, 228, 255, 0.36), transparent 30%),
    linear-gradient(130deg, #2250bd 0%, #1b47a8 38%, #0f857d 100%);
  color: #fff;
  box-shadow:
    0 24px 42px rgba(20, 63, 151, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset,
    0 0 0 5px rgba(30, 94, 205, 0.2);
}

header .menu > a.menu-hermes-link {
  position: relative;
  overflow: hidden;
  min-height: 44px;
  min-width: 94px;
  margin-left: 0;
  padding: 0 1.08rem;
  border-radius: 10px 14px 14px 10px;
  border-color: rgba(126, 58, 17, 0.34);
  color: #fff8e9;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 213, 143, 0.72), transparent 36%),
    linear-gradient(132deg, #f37021 0%, #c25b1d 54%, #5b2a12 100%);
  box-shadow:
    0 16px 30px rgba(105, 48, 16, 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.28) inset;
  gap: 0;
  flex: 0 0 auto;
}

header .menu > .menu-dropdown:first-of-type + a.menu-hermes-link::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 10px;
  bottom: 10px;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(255, 248, 232, 0.5), transparent);
  z-index: 2;
}

header .menu > a.menu-hermes-link::after {
  content: "";
  position: absolute;
  right: -22px;
  top: -24px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 229, 181, 0.38), rgba(255, 229, 181, 0));
  pointer-events: none;
}

header .menu > a.menu-hermes-link span:last-child {
  position: relative;
  z-index: 1;
  color: #fff8e9;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0;
  white-space: nowrap;
}

header .menu > a.menu-hermes-link:hover {
  border-color: rgba(91, 42, 18, 0.56);
  filter: saturate(1.08);
  box-shadow:
    0 22px 38px rgba(105, 48, 16, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.32) inset;
}

header .menu > a.menu-hermes-link.active {
  border-color: rgba(91, 42, 18, 0.62);
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 229, 181, 0.86), transparent 38%),
    linear-gradient(132deg, #ff812d 0%, #d8641f 48%, #6a3013 100%);
  box-shadow:
    0 20px 38px rgba(105, 48, 16, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.34) inset,
    0 0 0 4px rgba(243, 112, 33, 0.18);
}

header .menu > .menu-dropdown:first-of-type > .menu-trigger:hover,
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger:hover {
  transform: translateY(-2px) scale(1.01);
  filter: saturate(1.12);
}

header .menu > .menu-dropdown:first-of-type > .menu-trigger:hover::after,
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger:hover::after {
  opacity: 0.95;
}

@keyframes navSignalFloatOc {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes navSignalFloatAi {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes navGlowPulseOc {
  0%, 100% { opacity: 0.62; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

@keyframes navGlowPulseAi {
  0%, 100% { opacity: 0.62; transform: scale(1); }
  50% { opacity: 0.95; transform: scale(1.08); }
}

header .menu-panel {
  border-radius: 12px;
  border: 1px solid #cfddf0;
  box-shadow: 0 18px 32px rgba(11, 23, 45, 0.16);
}

header .nav-right {
  min-width: 0;
  gap: clamp(0.52rem, 1.1vw, 0.86rem);
  align-items: center;
  justify-content: flex-end;
  padding-left: clamp(0.24rem, 0.9vw, 0.76rem);
}

header .nav-right .home-link {
  display: none !important;
}

header .user-trigger {
  width: 30px;
  height: 30px;
  min-width: 30px;
  padding: 0 !important;
  border-radius: 999px;
  justify-content: center;
  gap: 0;
}
header .user-trigger .user-phone {
  display: none !important;
}
header .user-trigger .user-avatar {
  width: 24px;
  height: 24px;
  font-size: 0.72rem;
}

header .quick-links {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.28rem;
  margin-right: clamp(0.18rem, 0.8vw, 0.72rem);
  transform: none !important;
  overflow-x: auto;
  max-width: min(44vw, 500px);
  padding-bottom: 2px;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
header .quick-links::-webkit-scrollbar { display: none; }

header .quick-links a {
  text-decoration: none;
  display: inline-flex !important;
  flex: 0 0 auto;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 56px;
  height: 32px;
  border-radius: 10px;
  border: 1px solid;
  line-height: 1;
  white-space: nowrap;
  padding: 3px 6px;
  box-shadow: none;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.16s ease;
  scroll-snap-align: start;
}

header .quick-links a .quick-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  width: auto;
  height: 11px;
  padding: 0 3px;
  border-radius: 999px;
  font-size: 7px;
  letter-spacing: 0.02em;
  font-weight: 900;
  border: 1px solid transparent;
}

header .quick-links a .quick-label {
  display: inline-block;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

header .quick-links a.quick-ai {
  background: #edf4ff;
  border-color: #c4d5f8;
  color: #1f4ba2;
  min-width: 72px;
}
header .quick-links a.quick-ai .quick-emblem {
  background: #1f4ba2;
  border-color: #1a3f88;
  color: #fff;
  font-size: 6.8px;
  letter-spacing: 0;
  min-width: 40px;
}

header .quick-links a.quick-fin {
  background: #fff1f3;
  border-color: #e8c0c7;
  color: #8b1d2f;
  min-width: 82px;
}
header .quick-links a.quick-fin .quick-emblem {
  background: #8b1d2f;
  border-color: #6f1725;
  color: #fff;
}

header .quick-links a.quick-radar {
  background: #eef7ff;
  border-color: #c2daef;
  color: #15638a;
  min-width: 62px;
}
header .quick-links a.quick-radar .quick-emblem {
  background: #15638a;
  border-color: #104d6b;
  color: #fff;
}

header .quick-links a.quick-rss {
  background: #fff8e9;
  border-color: #ead7ad;
  color: #8a6113;
  min-width: 62px;
}
header .quick-links a.quick-rss .quick-emblem {
  background: #8a6113;
  border-color: #72500f;
  color: #fff;
}

header .quick-links a.quick-member {
  background: #6f7b86;
  border-color: #8e98a3;
  color: #fff;
  position: relative;
  overflow: hidden;
  min-width: 62px;
  padding-right: 6px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 10px 20px rgba(12, 39, 92, 0.16);
  animation: quickMemberPulse 1.9s ease-in-out infinite;
}
header .quick-links a.quick-member::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  pointer-events: none;
  opacity: 0.82;
}
header .quick-links a.quick-member .quick-emblem {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}
header .quick-links a.quick-member::after {
  content: "";
  position: absolute;
  inset: -34% -42%;
  transform: translateX(-64%) rotate(12deg);
  background: linear-gradient(105deg, transparent 36%, rgba(255, 255, 255, 0.72) 49%, transparent 62%);
  opacity: 0;
  pointer-events: none;
  animation: quickMemberSweep 3.4s ease-in-out infinite;
}
header .quick-links a.quick-member:hover {
  animation-duration: 1.4s;
  transform: translateY(-2px) scale(1.03);
}

header .quick-links a.quick-admin {
  background: #8f1f2d;
  border-color: #711926;
  color: #fff;
  min-width: 62px;
}
header .quick-links a.quick-admin .quick-emblem {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.34);
  color: #fff;
}

header .quick-links a:hover {
  transform: translateY(-1px);
  filter: saturate(1.03);
}
header .quick-links a.active {
  box-shadow: 0 0 0 2px rgba(31, 67, 167, 0.18);
}
header .quick-links a.quick-admin[hidden],
header .quick-links a.quick-admin[data-admin-entry][hidden] {
  display: none !important;
}

@keyframes quickMemberPulse {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset, 0 0 0 2px rgba(39, 98, 214, 0.32), 0 10px 20px rgba(12, 39, 92, 0.28);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32) inset, 0 0 0 3px rgba(68, 134, 255, 0.42), 0 14px 26px rgba(12, 39, 92, 0.34);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset, 0 0 0 2px rgba(39, 98, 214, 0.32), 0 10px 20px rgba(12, 39, 92, 0.28);
  }
}

@keyframes quickMemberLift {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1px); }
}

@keyframes quickMemberSweep {
  0%, 36% { transform: translateX(-64%) rotate(12deg); opacity: 0; }
  48% { opacity: 0.72; }
  70%, 100% { transform: translateX(62%) rotate(12deg); opacity: 0; }
}

@keyframes quickLobsterFocus {
  0%, 100% { transform: scale(1); filter: saturate(1); }
  50% { transform: scale(1.08); filter: saturate(1.18); }
}

/* Console branding enhancement */
#consoleWorkspace {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #2a57b0;
  border-radius: 20px;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.72) inset,
    0 0 0 4px rgba(52, 106, 225, 0.16),
    0 24px 48px rgba(11, 30, 71, 0.22);
}
#consoleWorkspace::before {
  content: "";
  position: absolute;
  right: -36px;
  bottom: -86px;
  width: clamp(300px, 34vw, 460px);
  aspect-ratio: 1 / 1;
  background: url("/assets/openclaw/lobster-logo.svg") no-repeat center / contain;
  opacity: 0.12;
  filter: saturate(1.16);
  pointer-events: none;
  z-index: 0;
}
#consoleWorkspace > * {
  position: relative;
  z-index: 1;
}

/* Console-first header rail */
header .nav {
  grid-template-columns: clamp(190px, 18vw, 260px) minmax(0, 1fr) clamp(312px, 26vw, 410px);
}

header .quick-links {
  gap: 0.38rem;
  margin-right: clamp(0.18rem, 0.8vw, 0.72rem);
  max-width: none;
}

header .quick-links a {
  min-width: 74px;
  height: 38px;
  padding: 4px 9px;
  border-radius: 12px;
}

header .quick-links a .quick-emblem {
  height: 14px;
  padding: 0 4px;
  font-size: 7.6px;
}

header .quick-links a .quick-label {
  font-size: 10.8px;
  max-width: none;
}

header .quick-links a.quick-member {
  min-width: 184px;
  height: 52px;
  display: inline-flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  justify-content: flex-start;
  gap: 0.58rem;
  padding: 0 1.18rem 0 0.68rem;
  border-width: 1px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 20% 22%, rgba(120, 178, 255, 0.42), transparent 34%),
    linear-gradient(135deg, #2f66df 0%, #19479f 48%, #102d6d 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.32) inset,
    0 0 0 5px rgba(45, 109, 242, 0.22),
    0 20px 36px rgba(10, 33, 80, 0.34);
  animation: quickMemberPulse 2.35s ease-in-out infinite, quickMemberLift 5.6s ease-in-out infinite;
}

header .quick-links a.quick-member::before {
  inset: 3px;
  border-radius: 999px;
  border-color: rgba(255, 255, 255, 0.4);
}

header .quick-links a.quick-member .quick-emblem {
  min-width: 30px;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  font-size: 17px;
  line-height: 1;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 0 18px rgba(121, 177, 255, 0.38);
  animation: quickLobsterFocus 2.8s ease-in-out infinite;
}

header .quick-links a.quick-member .quick-label {
  font-size: 14px;
  letter-spacing: 0.01em;
  font-weight: 950;
  text-shadow: 0 1px 8px rgba(4, 17, 43, 0.22);
}

header .quick-links a.quick-member:hover {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.34) inset,
    0 0 0 5px rgba(66, 134, 255, 0.24),
    0 24px 42px rgba(10, 33, 80, 0.38);
  transform: translateY(-2px) scale(1.03);
}

header .quick-links a.quick-admin {
  min-width: 74px;
  background: #8f1f2d;
  box-shadow: 0 12px 24px rgba(99, 19, 34, 0.2);
}

@media (max-width: 1240px) {
  header .nav {
    grid-template-columns: clamp(164px, 17vw, 210px) minmax(0, 1fr) clamp(276px, 30vw, 340px);
  }
  header .quick-links a {
    height: 32px;
    padding: 3px 7px;
  }
  header .quick-links a.quick-member {
    min-width: 156px;
    height: 48px;
  }
  header .quick-links a .quick-label {
    font-size: 10px;
  }
  header .menu > .menu-dropdown:first-of-type > .menu-trigger,
  header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger {
    min-height: 42px;
    padding-left: 0.82rem;
    padding-right: 0.96rem;
  }
}

@media (max-width: 980px) and (min-width: 769px) {
  header .nav {
    grid-template-columns: minmax(118px, 148px) minmax(0, 1fr) clamp(244px, 32vw, 286px);
    gap: 0.48rem;
  }

  header .nav-right {
    gap: 0.44rem;
    padding-left: 0.16rem;
  }

  header .quick-links {
    margin-right: 0.26rem;
  }

  header .quick-links a.quick-member {
    min-width: 136px;
    height: 44px;
    gap: 0.42rem;
    padding-left: 0.58rem;
    padding-right: 0.86rem;
  }

  header .quick-links a.quick-member .quick-emblem {
    min-width: 26px;
    width: 26px;
    height: 26px;
    font-size: 15px;
  }

  header .quick-links a.quick-member .quick-label {
    font-size: 12px;
  }

  header .auth-entry-btn {
    padding-inline: 0.72rem;
  }
}

@media (max-width: 768px) {
  header .nav {
    grid-template-columns: 1fr;
    gap: 0.45rem;
  }
  header .menu {
    width: 100%;
    gap: 0.26rem;
    border-radius: 11px;
  }
  header .menu > a,
  header .menu > .menu-dropdown > .menu-trigger {
    min-height: 31px;
    font-size: 0.76rem;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }
  header .menu > .menu-dropdown:first-of-type > .menu-trigger,
  header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger {
    min-height: 40px;
    padding-left: 0.74rem;
    padding-right: 0.9rem;
    border-radius: 13px;
    gap: 0;
  }
  header .menu > .menu-dropdown:first-of-type > .menu-trigger::before,
  header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger::before {
    content: none;
  }
  header .nav-right {
    width: 100%;
    justify-content: space-between;
  }
  header .quick-links {
    max-width: none;
    gap: 0.3rem;
  }
  header .quick-links a {
    height: 34px;
    padding: 0 9px;
    border-radius: 9px;
  }
  header .quick-links a.quick-member {
    min-width: 136px;
    height: 44px;
    gap: 0.36rem;
    padding-right: 0.82rem;
  }
  header .quick-links a .quick-emblem {
    width: 16px;
    height: 16px;
    font-size: 8px;
  }
  header .quick-links a .quick-label {
    font-size: 9.6px;
  }
}

/* 20260509 API + Skills nav refinement */
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger,
header .menu > a.menu-skills-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 54, 54, 0.42);
  color: #fff7f2;
  background:
    radial-gradient(circle at 15% 20%, rgba(255, 122, 24, 0.45), transparent 32%),
    linear-gradient(135deg, rgba(225, 18, 18, 0.96), rgba(29, 78, 216, 0.82));
  box-shadow: 0 14px 34px rgba(225, 18, 18, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  text-decoration: none;
}

header .menu > a.menu-skills-link {
  border-color: rgba(31, 90, 255, 0.45);
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 122, 24, 0.38), transparent 30%),
    linear-gradient(135deg, rgba(29, 78, 216, 0.92), rgba(225, 18, 18, 0.78));
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger:hover,
header .menu > a.menu-skills-link:hover,
header .menu > a.menu-skills-link.active {
  transform: translateY(-1px);
  color: #fff;
  box-shadow: 0 18px 42px rgba(29, 78, 216, 0.26), 0 10px 24px rgba(225, 18, 18, 0.22);
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger::before,
header .menu > a.menu-skills-link::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 50%;
  background: #ff7a18;
  box-shadow: 0 0 14px rgba(255, 122, 24, 0.9);
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger::after,
header .menu > a.menu-skills-link::after {
  content: "";
  position: absolute;
  inset: 1px 8px auto 8px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
}


/* 20260510 member tone states */
header .quick-links a.quick-member[data-member-tone="muted"],
header .quick-links a.quick-member[data-member-status="muted"] {
  background: linear-gradient(135deg, #4b5563 0%, #374151 60%, #1f2937 100%);
  border-color: #6b7280;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 20px rgba(17,24,39,.28);
}
header .quick-links a.quick-member[data-member-tone="bronze"],
header .quick-links a.quick-member[data-member-status="bronze"] {
  background: linear-gradient(135deg, #8a5a2c 0%, #6f431d 58%, #432915 100%);
  border-color: #b88447;
  box-shadow: 0 0 0 1px rgba(255,255,255,.10) inset, 0 10px 20px rgba(74,40,15,.3);
}
header .quick-links a.quick-member[data-member-tone="silver"],
header .quick-links a.quick-member[data-member-status="silver"] {
  background: linear-gradient(135deg, #d8dee7 0%, #a9b1bf 54%, #6d7482 100%);
  border-color: #eef2f7;
  color: #122033;
  box-shadow: 0 0 0 1px rgba(255,255,255,.16) inset, 0 10px 20px rgba(75,85,99,.26);
}
header .quick-links a.quick-member[data-member-tone="silver"] .quick-emblem,
header .quick-links a.quick-member[data-member-status="silver"] .quick-emblem { color: #122033; border-color: rgba(18,32,51,.18); background: rgba(255,255,255,.48); }
header .quick-links a.quick-member[data-member-tone="gold"],
header .quick-links a.quick-member[data-member-status="gold"] {
  background: linear-gradient(135deg, #f6d06a 0%, #c68c25 56%, #7b4f0e 100%);
  border-color: #ffe38c;
  color: #2f1c06;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18) inset, 0 10px 20px rgba(120,76,12,.3);
}
header .quick-links a.quick-member[data-member-tone="gold"] .quick-emblem,
header .quick-links a.quick-member[data-member-status="gold"] .quick-emblem { color: #2f1c06; border-color: rgba(47,28,6,.18); background: rgba(255,255,255,.58); }
header .quick-links a.quick-member[data-member-tone="muted"] .quick-label,
header .quick-links a.quick-member[data-member-status="muted"] .quick-label,
header .quick-links a.quick-member[data-member-tone="bronze"] .quick-label,
header .quick-links a.quick-member[data-member-tone="silver"] .quick-label,
header .quick-links a.quick-member[data-member-tone="gold"] .quick-label { letter-spacing: .02em; }


/* 20260510 nav color overrides */
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger {
  border-color: rgba(225, 18, 18, 0.46);
  background: #8f1f2d;
  color: #fff5f5;
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger:hover,
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger.active {
  background: #b31d33;
  color: #fff;
  border-color: #d14a60;
}

/* 20260511 Tools -> Skills -> Openclaw brand chain */
:root {
  --tools-green: #0c8f49;
  --skills-blue: #1d4ed8;
  --openclaw-red: #e11212;
  --hermes-orange: #f37021;
}

header .nav {
  grid-template-columns: clamp(132px, 13vw, 176px) minmax(0, 1fr) clamp(292px, 25vw, 410px);
  gap: 0.5rem;
}

header .brand img,
header .brand .brand-mark {
  max-width: clamp(118px, 12vw, 166px);
  object-fit: contain;
}

header .menu {
  gap: 0.18rem;
}

header .menu-chain-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 18px;
  width: 18px;
  min-height: 38px;
  color: rgba(32, 51, 79, 0.58);
  font-weight: 900;
  line-height: 1;
}

header .menu-chain-arrow::before {
  content: "→";
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger {
  border-color: color-mix(in srgb, var(--tools-green), #ffffff 28%);
  background:
    radial-gradient(circle at 18% 18%, rgba(141, 255, 198, 0.54), transparent 32%),
    linear-gradient(135deg, var(--tools-green), #05633d);
  color: #effff5;
  box-shadow: 0 14px 30px rgba(12, 143, 73, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

header .menu > a.menu-skills-link {
  border-color: color-mix(in srgb, var(--skills-blue), #ffffff 28%);
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 197, 253, 0.5), transparent 32%),
    linear-gradient(135deg, var(--skills-blue), #123b9f);
  color: #f3f8ff;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger {
  border-color: color-mix(in srgb, var(--openclaw-red), #ffffff 28%);
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 166, 166, 0.46), transparent 32%),
    linear-gradient(135deg, var(--openclaw-red), #8f1f2d);
  color: #fff7f7;
  box-shadow: 0 14px 30px rgba(225, 18, 18, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger::before,
header .menu > a.menu-skills-link::before {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 0 14px rgba(255, 255, 255, 0.72);
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger::before {
  background: #ff7a18;
}
header .menu > .menu-dropdown:nth-of-type(2) > .menu-trigger::after {
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

/* 20260510 nav stretch */
header .nav { grid-template-columns: clamp(136px, 13vw, 186px) minmax(0, 1fr) clamp(310px, 30vw, 460px); }
header .brand { min-width: clamp(186px, 16vw, 246px); }
header .menu { padding-inline: clamp(0.06rem, 0.18vw, 0.2rem); gap: clamp(0.2rem, 0.38vw, 0.42rem); }
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger { background: #0c8f49; color: #effff5; border-color: #0c8f49; }
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger:hover,
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger.active { background: #12a257; color: #fff; border-color: #53c483; }
header .menu > a.menu-skills-link { background: #1d4ed8; color: #f3f8ff; border-color: #1d4ed8; }
header .menu > a.menu-skills-link:hover,
header .menu > a.menu-skills-link.active { background: #285fe8; color: #fff; border-color: #7aa6ff; }
header .menu > .menu-dropdown.menu-openclaw-dropdown .menu-trigger { background: #e11212; color: #fff5f5; border-color: #f06767; }
header .menu > .menu-dropdown.menu-openclaw-dropdown .menu-trigger:hover,
header .menu > .menu-dropdown.menu-openclaw-dropdown .menu-trigger.active { background: #b5213d; color: #fff; border-color: #d85d73; }
header .menu > a.menu-hermes-link { background: #ff9a3d; color: #fff8ec; border-color: #f78528; }
header .menu > a.menu-hermes-link:hover,
header .menu > a.menu-hermes-link.active { background: #f47b24; color: #fff; border-color: #ffae4c; }

/* 20260511 final semantic nav lock: Tools -> Skills -> Openclaw -> Hermes */
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger {
  border-color: color-mix(in srgb, var(--tools-green), #ffffff 28%) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(141, 255, 198, 0.52), transparent 32%),
    linear-gradient(135deg, var(--tools-green), #05633d) !important;
  color: #effff5 !important;
  box-shadow: 0 14px 30px rgba(12, 143, 73, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger:hover,
header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger.active,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger:hover,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger.active,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger:hover,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-api-dropdown > .menu-trigger.active {
  border-color: #53c483 !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(178, 255, 216, 0.58), transparent 32%),
    linear-gradient(135deg, #12a257, #067244) !important;
  color: #ffffff !important;
}

header .menu > a.menu-skills-link,
html[data-site-theme="dark"] header .menu > a.menu-skills-link,
html[data-site-theme="light"] header .menu > a.menu-skills-link {
  border-color: color-mix(in srgb, var(--skills-blue), #ffffff 28%) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(147, 197, 253, 0.5), transparent 32%),
    linear-gradient(135deg, var(--skills-blue), #123b9f) !important;
  color: #f3f8ff !important;
  box-shadow: 0 14px 30px rgba(29, 78, 216, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

header .menu > a.menu-skills-link:hover,
header .menu > a.menu-skills-link.active,
html[data-site-theme="dark"] header .menu > a.menu-skills-link:hover,
html[data-site-theme="dark"] header .menu > a.menu-skills-link.active,
html[data-site-theme="light"] header .menu > a.menu-skills-link:hover,
html[data-site-theme="light"] header .menu > a.menu-skills-link.active {
  border-color: #7aa6ff !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(191, 219, 254, 0.56), transparent 32%),
    linear-gradient(135deg, #285fe8, #143fba) !important;
  color: #ffffff !important;
}

header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger {
  border-color: color-mix(in srgb, var(--openclaw-red), #ffffff 28%) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 166, 166, 0.46), transparent 32%),
    linear-gradient(135deg, var(--openclaw-red), #8f1f2d) !important;
  color: #fff7f7 !important;
  box-shadow: 0 14px 30px rgba(225, 18, 18, 0.23), inset 0 1px 0 rgba(255, 255, 255, 0.24) !important;
}

header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger:hover,
header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger.active,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger:hover,
html[data-site-theme="dark"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger.active,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger:hover,
html[data-site-theme="light"] header .menu > .menu-dropdown.menu-openclaw-dropdown > .menu-trigger.active {
  border-color: #ff7676 !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 198, 198, 0.52), transparent 32%),
    linear-gradient(135deg, #f52626, #a51429) !important;
  color: #ffffff !important;
}

header .menu > a.menu-hermes-link,
html[data-site-theme="dark"] header .menu > a.menu-hermes-link,
html[data-site-theme="light"] header .menu > a.menu-hermes-link {
  border-color: color-mix(in srgb, var(--hermes-orange), #ffffff 28%) !important;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 236, 167, 0.58), transparent 34%),
    linear-gradient(135deg, var(--hermes-orange), #b54f0e) !important;
  color: #fffaf0 !important;
}

header .menu-chain-arrow::before {
  content: "→" !important;
}

/* 20260511 nav fit pass: left-tight chain, fixed right boundary */
header .nav,
html[data-site-theme="dark"] header .nav,
html[data-site-theme="light"] header .nav {
  width: min(1280px, calc(100vw - 32px)) !important;
  grid-template-columns: clamp(130px, 11.4vw, 166px) minmax(0, 1fr) minmax(236px, 330px) !important;
  gap: clamp(0.18rem, 0.42vw, 0.42rem) !important;
  transform: none !important;
  overflow: visible !important;
}

header .brand,
html[data-site-theme="dark"] header .brand,
html[data-site-theme="light"] header .brand {
  min-width: 0 !important;
  justify-self: start !important;
}

header .brand img,
header .brand .brand-mark,
html[data-site-theme="dark"] header .brand img,
html[data-site-theme="dark"] header .brand .brand-mark {
  width: clamp(118px, 10.6vw, 154px) !important;
  max-width: clamp(118px, 10.6vw, 154px) !important;
}

header .menu,
html[data-site-theme="dark"] header .menu,
html[data-site-theme="light"] header .menu {
  justify-self: start !important;
  justify-content: flex-start !important;
  max-width: 100% !important;
  min-width: 0 !important;
  padding: 3px !important;
  gap: clamp(0.1rem, 0.22vw, 0.24rem) !important;
  overflow-x: auto !important;
  overflow-y: visible !important;
}

header .menu > a,
header .menu > .menu-dropdown > .menu-trigger,
html[data-site-theme="dark"] header .menu > a,
html[data-site-theme="dark"] header .menu > .menu-dropdown > .menu-trigger {
  min-height: 36px !important;
  padding-inline: clamp(0.56rem, 0.72vw, 0.82rem) !important;
}

header .menu-chain-arrow,
html[data-site-theme="dark"] header .menu-chain-arrow {
  flex-basis: 14px !important;
  width: 14px !important;
  min-height: 36px !important;
}

header .nav-right,
html[data-site-theme="dark"] header .nav-right,
html[data-site-theme="light"] header .nav-right {
  justify-self: end !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  max-width: 330px !important;
  width: 100% !important;
  gap: 0.32rem !important;
  padding-left: 0 !important;
  overflow: visible !important;
}

header .quick-links,
html[data-site-theme="dark"] header .quick-links,
html[data-site-theme="light"] header .quick-links {
  justify-content: flex-end !important;
  min-width: 0 !important;
  max-width: 210px !important;
  margin-right: 0 !important;
  gap: 0.28rem !important;
  overflow: visible !important;
}

header .quick-links a.quick-member,
html[data-site-theme="dark"] header .quick-links a.quick-member,
html[data-site-theme="light"] header .quick-links a.quick-member {
  min-width: clamp(188px, 12vw, 218px) !important;
  height: 44px !important;
  padding: 0 1.1rem 0 0.56rem !important;
}

header .quick-links a.quick-member::after,
html[data-site-theme="dark"] header .quick-links a.quick-member::after,
html[data-site-theme="light"] header .quick-links a.quick-member::after {
  content: none !important;
  display: none !important;
  animation: none !important;
}

header .quick-links a.quick-member::before,
html[data-site-theme="dark"] header .quick-links a.quick-member::before,
html[data-site-theme="light"] header .quick-links a.quick-member::before,
header .quick-links a.quick-member::before {
  z-index: 1 !important;
}

header .quick-links a.quick-member .quick-emblem,
html[data-site-theme="dark"] header .quick-links a.quick-member .quick-emblem,
html[data-site-theme="light"] header .quick-links a.quick-member .quick-emblem,
header .quick-links a.quick-member .quick-label,
html[data-site-theme="dark"] header .quick-links a.quick-member .quick-label,
html[data-site-theme="light"] header .quick-links a.quick-member .quick-label {
  position: relative !important;
  z-index: 1000 !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: none !important;
  overflow: visible !important;
  color: #fffdf2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
  margin-left: 0.46rem !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  line-height: 1 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36), 0 0 10px rgba(255, 245, 210, 0.42) !important;
}

header .quick-links a.quick-member .quick-emblem.quick-lobster-logo,
html[data-site-theme="dark"] header .quick-links a.quick-member .quick-emblem.quick-lobster-logo,
html[data-site-theme="light"] header .quick-links a.quick-member .quick-emblem.quick-lobster-logo {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

header .quick-links a.quick-member[data-member-tone="muted"] .quick-label,
header .quick-links a.quick-member[data-member-tone="bronze"] .quick-label,
header .quick-links a.quick-member[data-member-tone="silver"] .quick-label,
header .quick-links a.quick-member[data-member-tone="gold"] .quick-label,
header .quick-links a.quick-member[data-member-status="muted"] .quick-label,
header .quick-links a.quick-member[data-member-status="bronze"] .quick-label,
header .quick-links a.quick-member[data-member-status="silver"] .quick-label,
header .quick-links a.quick-member[data-member-status="gold"] .quick-label {
  position: relative !important;
  z-index: 1000 !important;
  display: inline-flex !important;
  align-items: center !important;
  max-width: none !important;
  overflow: visible !important;
  color: #fffdf2 !important;
  opacity: 1 !important;
  visibility: visible !important;
  white-space: nowrap !important;
  font-size: 14px !important;
  font-weight: 950 !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.36), 0 0 10px rgba(255, 245, 210, 0.42) !important;
}

header .quick-links a.quick-admin,
html[data-site-theme="dark"] header .quick-links a.quick-admin,
html[data-site-theme="light"] header .quick-links a.quick-admin {
  min-width: 62px !important;
  height: 38px !important;
}

header .auth-entry-btn,
html[data-site-theme="dark"] header .auth-entry-btn,
html[data-site-theme="light"] header .auth-entry-btn {
  flex: 0 0 auto !important;
  max-width: 88px !important;
  padding-inline: 0.62rem !important;
  white-space: nowrap !important;
}

@media (max-width: 1240px) {
  header .nav,
  html[data-site-theme="dark"] header .nav,
  html[data-site-theme="light"] header .nav {
    width: min(100%, calc(100vw - 24px)) !important;
    grid-template-columns: minmax(112px, 0.74fr) minmax(0, 1.6fr) minmax(188px, 0.86fr) !important;
  }
  header .menu > a[href$="partners"],
  header .menu > a[href$="support"],
  header .menu > a[href="resources.html"],
  header .menu > a[href="cases.html"] {
    display: none !important;
  }
}
