/*
 * shared.css  ·  AUTO-GENERATED by scripts/consolidate_css.py
 *
 * Bucket: shared
 * Rules in source files: 646
 * Rules after dedup:     362
 * Source files merged:
 *   - chat-panel/css/chat-panel.css
 *   - css/chat-panel.css
 *   - css/clash-manager.css
 *   - css/index-styles.css
 *   - css/shared-styles.css
 *   - sandbox/sandbox.css
 */

html, body {
  overflow-x: hidden;
  max-width: 100vw;
}

.ribbon-group-label {
  border-top: 1px solid #eee;
  color: #888;
  font-size: 0.45rem;
  margin-top: 6px;
  padding-top: 2px;
  text-align: center;
  white-space: nowrap;
}

.ribbon-separator {
  align-self: stretch;
  background: #e0e0e0;
  flex-shrink: 0;
  margin: 0 4px;
  width: 1px;
}

.ribbon-btn {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 2px;
  color: #444;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  gap: 1px;
  justify-content: center;
  min-height: 18px;
  padding: 2px 5px;
  transition: background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.ribbon-btn-stack {
  align-items: stretch;
  display: flex;
  flex-direction: column;
  gap: 0px;
  max-height: 54px;
}

.ribbon-select {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 2px;
  color: #333;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.5rem;
  height: 18px;
  min-width: 60px;
  padding: 2px 4px;
}

.ribbon-style-btn {
  align-items: center;
  background: #fff;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  color: #333;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.45rem;
  height: 42px;
  justify-content: flex-end;
  padding: 3px 4px;
  text-align: center;
  transition: all 0.15s ease;
  width: 38px;
}

.build-release-overlay {
  align-items: center;
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  right: 0;
  top: 0;
  transition: opacity 0.6s ease;
  z-index: 100;
}

.build-release-content {
  padding: 40px;
  text-align: center;
}

.build-release-logo {
  color: #222;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 5px;
  margin-bottom: 30px;
}

.build-release-text {
  font-family: 'Inter', sans-serif;
}

.menu-dropdown {
  display: inline-block;
  position: relative;
}

.menu-dropdown-content {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  left: 0;
  min-width: 200px;
  padding: 4px 0;
  position: absolute;
  top: 100%;
  z-index: 1000;
}

.menu-item {
  align-items: center;
  color: #333;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  padding: 6px 12px;
  position: relative;
  transition: background 0.1s ease;
}

.menu-divider {
  background: #e8e8e8;
  height: 1px;
  margin: 4px 8px;
}

.menu-submenu {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
  display: none;
  left: 100%;
  min-width: 200px;
  padding: 4px 0;
  position: absolute;
  top: -4px;
  z-index: 1001;
}

.brand-build,
.brand-dot {
  color: #000;
  letter-spacing: 2px !important;
}

.brand-variant {
  color: #156082;
  letter-spacing: 2px !important;
}

.color-palette-dropdown {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
  margin-top: 8px;
  min-width: 220px;
  opacity: 0;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
  visibility: hidden;
  z-index: 500;
}

.color-swatch {
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 2px;
  cursor: pointer;
  height: 16px;
  padding: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  width: 16px;
}

.more-colors-btn {
  align-items: center;
  background: transparent;
  border: 1px dashed #ccc;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  gap: 6px;
  justify-content: center;
  padding: 8px;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 100%;
}

.section-header {
  color: #888;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  padding: 10px 12px 6px 12px;
  text-transform: uppercase;
}

.ribbon-tabs {
  border-bottom: 1px solid #eaeaea;
  display: flex;
  padding: 0 6px;
}

.ribbon-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #777;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 500;
  margin-bottom: -1px;
  padding: 5px 10px;
}

.ribbon-content {
  -ms-overflow-style: none;
  align-items: stretch;
  color: #333;
  display: none;
  font-family: 'Inter', sans-serif;
  font-size: 0.55rem;
  gap: 2px;
  height: 86px;
  max-height: 86px;
  min-height: 86px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 6px 6px;
  scrollbar-width: none;
}

.ribbon-group {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  min-width: fit-content;
  overflow: hidden;
  padding: 2px 6px;
}

.ribbon-group-content {
  align-items: flex-start;
  display: flex;
  flex: 1;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 4px;
  max-height: 54px;
  overflow: visible;
}

.build-release-logo {
  color: #222;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 36px;
  font-weight: 500;
  letter-spacing: 5pt;
  margin-bottom: 30px;
}

.menu-dropdown-content {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  left: 0;
  min-width: 140px;
  padding: 3px 0;
  position: absolute;
  top: 100%;
  z-index: 1000;
}

.menu-item {
  color: #333;
  cursor: pointer;
  display: flex;
  font-size: 10px;
  justify-content: space-between;
  padding: 4px 10px;
}

.menu-divider {
  background: #e0e0e0;
  height: 1px;
  margin: 3px 0;
}

.menu-submenu {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  display: none;
  left: 100%;
  min-width: 100px;
  padding: 3px 0;
  position: absolute;
  top: 0;
}

.overlay-nodes-container {
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 0.5s ease;
  width: 100%;
  z-index: 1001;
}

.section-indicator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 40px;
  opacity: 1;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10001;
}

.project-complete-overlay {
  -webkit-backdrop-filter: blur(0px);
  align-items: center;
  backdrop-filter: blur(0px);
  background: rgba(0, 0, 0, 0);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  transition: opacity 1s ease, visibility 0s linear 1s;
  visibility: hidden;
  width: 100%;
  z-index: 2000;
}

.section-dot {
  background: rgba(21, 96, 130, 0.35);
  border-radius: 50%;
  cursor: pointer;
  height: 10px;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  width: 10px;
}

.project-complete-tick {
  align-items: center;
  background: linear-gradient(135deg, #1a7a9e 0%, #156082 100%);
  border-radius: 50%;
  box-shadow: 0 0 40px rgba(21, 96, 130, 0.5);
  display: flex;
  height: 120px;
  justify-content: center;
  transform: scale(0);
  width: 120px;
}

.project-complete-text {
  -webkit-font-smoothing: antialiased;
  color: #333;
  font-family: 'Inter', sans-serif;
  font-size: 24px;
  font-weight: 600;
  margin-top: 24px;
  opacity: 0;
  text-align: center;
  transform: translateY(10px);
}

.project-complete-savings {
  -webkit-font-smoothing: antialiased;
  color: #00a0a0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  margin-top: 8px;
  opacity: 0;
  text-align: center;
  transform: translateY(10px);
}

.project-complete-btn {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(10px);
}

.section-active-ball {
  background: #156082;
  border-radius: 50%;
  height: 10px;
  left: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transform: scale(1.2);
  transition: top 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  width: 10px;
  z-index: 1;
}

.section-trail-ball {
  background: #156082;
  border-radius: 50%;
  height: 10px;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  transform: scale(1);
  width: 10px;
  z-index: 0;
}

.brain-overlay-container {
  height: 100%;
  left: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1001;
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-ribbon-panel,
  #schedulesOverlay .v7-center-panel,
  #schedulesOverlay .v8-center-panel,
  #schedulesOverlay .v8-text-right,
  #specWritingOverlay .v8-center-panel,
  #specWritingOverlay .v8-text-right,
  .brain-overlay-container,
  .overlay-nodes-container,
  .project-complete-overlay,
  .section-indicator {
    display: none !important;
  }
}

/* Menubar hides earlier than the rest of the mobile-mode rules so the
   hamburger kicks in before the desktop menu items overlap each other,
   the logo, or the dark-mode toggle. Pair: .hamburger-btn rule below. */
@media (max-width: 1199px) {
  .menubar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  .right-panel {
    background: #ffffff !important;
    height: auto !important;
    opacity: 1 !important;
    overflow: visible !important;
    pointer-events: auto !important;
    position: relative !important;
    visibility: visible !important;
    width: 100% !important;
    z-index: 1 !important;
  }
}

.dark-toggle {
  align-items: center;
  display: flex;
  gap: 10px;
  opacity: 1;
  pointer-events: auto;
  position: fixed;
  right: 40px;
  top: 75px;
  z-index: 1005;
}

.dark-toggle-label {
  color: #999;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.toggle-switch {
  background: #ddd;
  border-radius: 12px;
  cursor: pointer;
  height: 24px;
  position: relative;
  transition: background 0.3s ease;
  width: 44px;
}

.color-palette-btn {
  align-items: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  position: relative;
}

.color-palette-dropdown {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  margin-top: 8px;
  min-width: 160px;
  opacity: 0;
  padding: 12px;
  position: absolute;
  right: 0;
  top: 100%;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
  visibility: hidden;
  z-index: 2000;
}

.color-swatch {
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 2px;
  cursor: pointer;
  height: 18px;
  padding: 0;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  width: 18px;
}

.more-colors-btn {
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0 0 6px 6px;
  border-top: 1px solid rgba(0,0,0,0.08);
  color: #555;
  cursor: pointer;
  display: flex;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  gap: 8px;
  margin-top: 4px;
  padding: 8px 6px;
  transition: background 0.15s ease;
  width: 100%;
}

.ai-dialogue .msg,
.more-colors-icon {
  font-size: 14px;
}

.buildx-ribbon-panel {
  background: rgba(20, 20, 20, 0.2);
  bottom: 15vh;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  pointer-events: auto;
  position: absolute;
  top: 0;
  width: 260px;
  z-index: 5;
}

.buildx-ribbon-content {
  opacity: 0;
  padding: 100px 20px 40px;
  pointer-events: auto;
  transition: opacity 0.4s ease;
  user-select: text;
}

.buildx-ribbon-panel * {
  user-select: text;
}

.buildx-center-area {
  align-items: center;
  display: flex;
  flex: 1;
  justify-content: center;
  min-width: 0;
  width: 100%;
}

.buildx-content {
  max-width: 600px;
  padding: 40px;
  text-align: center;
}

.buildx-header {
  margin-bottom: 50px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.buildx-label {
  color: rgba(255,255,255,0.4);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 3px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.buildx-title {
  color: #fff;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 48px;
  font-weight: 500;
  letter-spacing: 2px;
  margin-bottom: 16px;
}

.buildx-subtitle {
  color: rgba(255,255,255,0.6);
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  line-height: 1.6;
}

.buildx-packages-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 40px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease 0.2s, transform 0.6s ease 0.2s;
}

.buildx-package-btn {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  cursor: pointer;
  display: block;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2px;
  outline: none;
  padding: 10px 16px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.buildx-centered-row {
  display: flex;
  grid-column: 1 / -1;
  justify-content: center;
}

.buildx-featured {
  grid-column: 1 / -1;
  width: 100%;
}

.buildx-signup-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 30px;
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.6s ease 0.3s, transform 0.6s ease 0.3s;
}

.buildx-signup-btn {
  border-radius: 6px;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.right-panel {
  background: #ffffff;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  height: 100%;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  position: fixed;
  right: 0;
  top: 0;
  transition: opacity 0.8s ease, visibility 0s linear 0.8s;
  visibility: hidden;
  width: 45%;
  z-index: 1000;
}

.buildx-footer {
  opacity: 0;
  transition: opacity 0.6s ease 0.4s;
}

.buildx-footer-text {
  color: rgba(255,255,255,0.35);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  line-height: 1.7;
}

.buildx-site-footer {
  background: #2a2a2a;
  border-top: 1px solid rgba(255,255,255,0.1);
  bottom: 0;
  box-sizing: border-box;
  height: 15vh;
  left: 0;
  opacity: 0;
  overflow: hidden;
  padding: 20px 0 15px;
  position: absolute;
  right: 0;
  transition: opacity 0.6s ease 0.5s;
  z-index: 100;
}

.v8-resize-edge {
  background: transparent;
  pointer-events: auto;
  position: absolute;
  z-index: 100;
}

.v8-resize-top {
  cursor: ns-resize;
  height: 6px;
  left: 14px;
  right: 14px;
  top: 0;
}

.v8-resize-bottom {
  bottom: 0;
  cursor: ns-resize;
  height: 6px;
  left: 14px;
  right: 14px;
}

.v8-resize-left {
  bottom: 14px;
  cursor: ew-resize;
  left: 0;
  top: 14px;
  width: 6px;
}

.v8-resize-right {
  bottom: 14px;
  cursor: ew-resize;
  right: 0;
  top: 14px;
  width: 6px;
}

.v8-resize-corner-se {
  bottom: 0;
  cursor: nwse-resize;
  height: 14px;
  right: 0;
  width: 14px;
}

.v8-resize-corner-nw {
  cursor: nwse-resize;
  height: 14px;
  left: 0;
  top: 0;
  width: 14px;
}

.v8-resize-corner-ne {
  cursor: nesw-resize;
  height: 14px;
  right: 0;
  top: 0;
  width: 14px;
}

.v8-resize-corner-sw {
  bottom: 0;
  cursor: nesw-resize;
  height: 14px;
  left: 0;
  width: 14px;
}

.panel-content {
  align-items: center;
  color: #111;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  overflow: auto;
  padding: 100px 2.5rem 2.5rem;
  position: relative;
}

@media (max-width: 768px) {
  .footer-links {
    flex-wrap: wrap;
    gap: 24px;
  }
}

.menu-highlight {
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  background: rgba(150, 150, 150, 0.3);
  border-radius: 4px;
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 0.4s ease;
  will-change: transform, opacity;
}

.hamburger-btn {
  align-items: center;
  background: none;
  border: none;
  cursor: pointer;
  display: none;
  flex-direction: column;
  gap: 5px;
  height: 44px;
  justify-content: center;
  padding: 10px;
  position: fixed;
  right: 16px;
  top: max(14px, env(safe-area-inset-top, 14px));
  width: 44px;
  z-index: 10002;
  -webkit-tap-highlight-color: transparent;
}

.menu-tail {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(150, 150, 150, 0.2);
  border-radius: 4px;
  height: 100%;
  left: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 0;
  transition: opacity 0.7s ease;
}

.mobile-menu-overlay {
  -webkit-backdrop-filter: blur(20px);
  align-items: stretch;
  backdrop-filter: blur(20px);
  background: rgba(255, 255, 255, 0.97);
  display: none;
  flex-direction: column;
  gap: 0;
  height: 100%;
  justify-content: flex-start;
  left: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 60px) 0 env(safe-area-inset-bottom, 20px);
  padding-top: 72px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10001;
}

@media (max-width: 768px) {
  .footer-links-column {
    flex: 0 0 auto;
    min-width: 100px;
  }
}

.menu-link {
  background-color: transparent;
  color: #000;
  cursor: pointer;
  flex-shrink: 0;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 300;
  padding: 6px 20px;
  position: relative;
  text-decoration: none;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

.dark-toggle {
  align-items: center;
  display: flex;
  gap: 10px;
  position: fixed;
  right: 40px;
  top: 75px;
  z-index: 10001;
}

/* Hamburger appears as soon as the desktop menubar would overlap, not just
   on phones. Paired with the .menubar @media (max-width: 1199px) hide rule. */
@media (max-width: 1199px) {
  .hamburger-btn {
    display: flex !important;
  }
}

@media (max-width: 767px) {
  .dark-toggle {
    right: 64px;
    top: max(14px, env(safe-area-inset-top, 14px));
  }
}

@media (max-width: 767px) {
  .dark-toggle-label {
    display: none;
  }
}

@media (max-width: 767px) {
  .toggle-switch {
    border-radius: 15px;
    height: 30px;
    width: 56px;
  }
}

.section-indicator {
  display: flex;
  flex-direction: column;
  gap: 12px;
  left: 40px;
  opacity: 1;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  transition: opacity 0.6s ease;
  z-index: 10001;
}

.section-dot {
  background: rgba(100, 100, 100, 0.25);
  border-radius: 50%;
  cursor: pointer;
  height: 10px;
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  width: 10px;
}

@media (max-width: 768px) {
  .footer-brand {
    flex: 1 1 100%;
  }
}

.logo {
  color: #222;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 5VH;
  font-weight: 500;
  left: 28px;
  letter-spacing: 5pt;
  position: fixed;
  text-decoration: none;
  top: 20px;
  z-index: 10001;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.logo-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}

@media (max-width: 767px) {
  .footer-content {
    padding: 0 20px;
  }
}

@media (max-width: 767px) {
  .footer-logo-adelphos,
  .footer-logo-ai {
    font-size: 3vh;
  }
}

@media (max-width: 767px) {
  .footer-bottom {
    padding: 15px 20px 0;
  }
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 40px;
}

.footer-content-compact {
  align-items: flex-start;
}

.footer-brand {
  flex: 0 0 280px;
}

.footer-logo {
  align-items: baseline;
  display: flex;
  gap: 0;
  margin-bottom: 12px;
  text-decoration: none;
}

.footer-logo-adelphos {
  color: #222;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  letter-spacing: 5pt;
  text-transform: uppercase;
}

.footer-logo-ai {
  color: #156082;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  letter-spacing: 5pt;
  margin-left: 8px;
  text-transform: uppercase;
}

.footer-tagline {
  color: #666;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 767px) {
  .logo {
    font-size: 3vh;
    left: 16px;
    letter-spacing: 3pt;
    top: 14px;
  }
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.footer-links-column {
  min-width: 120px;
}

.footer-links-title {
  color: #333;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.5px;
  margin: 0 0 10px;
  text-transform: uppercase;
}

.footer-links-list,
.menu-item-dropdown .dropdown-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-bottom {
  align-items: center;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin: 20px auto 0;
  max-width: 1200px;
  padding: 15px 40px 0;
}

.footer-copyright {
  color: #888;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
  margin: 0;
}

.menubar {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0;
  left: 50%;
  opacity: 1;
  position: fixed;
  top: 35px;
  transform: translateX(-50%);
  transition: opacity 0.6s ease;
  white-space: nowrap;
  z-index: 10000;
}

.menu-item-coming-soon,
.menu-item-dropdown {
  align-items: center;
  display: flex;
  position: relative;
}

.ai-dialogue {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: grid;
  gap: 8px 14px;
  grid-template-columns: 110px 1fr;
  padding: 14px 18px;
}

.ribbon-style-btn::before {
  align-items: center;
  content: 'Aa';
  display: flex;
  flex: 1;
  font-size: 0.75rem;
  margin-bottom: 1px;
}

.project-complete-tick svg {
  fill: none;
  height: 60px;
  stroke: white;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
  width: 60px;
}

.toggle-switch::after {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  content: '';
  height: 20px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.3s ease;
  width: 20px;
}

.buildx-ribbon-panel::-webkit-scrollbar {
  width: 4px;
}

.buildx-ribbon-panel::-webkit-scrollbar-track {
  background: rgba(0,0,0,0.2);
}

.buildx-ribbon-panel::-webkit-scrollbar-thumb {
  background: rgba(74, 155, 184, 0.3);
  border-radius: 2px;
}

.buildx-site-footer .footer-logo,
.footer-links-list li {
  margin-bottom: 6px;
}

.hamburger-btn span {
  background: #222;
  border-radius: 2px;
  display: block;
  height: 2px;
  transition: all 0.3s ease;
  width: 22px;
}

@media (max-width: 767px) {
  .toggle-switch::after {
    height: 26px;
    left: 2px;
    top: 2px;
    width: 26px;
  }
}

.footer-links-list a {
  color: #666;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 300;
  text-decoration: none;
  transition: color 0.2s ease;
}

.menu-item-dropdown::after {
  background: transparent;
  content: '';
  height: 16px;
  left: -8px;
  pointer-events: none;
  position: absolute;
  right: -8px;
  top: 100%;
}

.project-complete-tick svg path {
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
}

.ribbon-btn:hover {
  background: rgba(21, 96, 130, 0.1);
  border-color: rgba(21, 96, 130, 0.2);
}

.ribbon-btn.active {
  background: rgba(21, 96, 130, 0.15);
  border-color: rgba(21, 96, 130, 0.3);
}

.ribbon-btn.large {
  align-items: center;
  flex-direction: column;
  height: 54px;
  justify-content: flex-start;
  min-height: 54px;
  min-width: 48px;
  padding: 4px 8px;
  width: 48px;
}

.ribbon-btn.small {
  align-items: center;
  flex-direction: row;
  font-size: 0.5rem;
  gap: 3px;
  height: 18px;
  justify-content: flex-start;
  max-height: 18px;
  min-height: 18px;
  min-width: 65px;
  padding: 2px 6px;
  white-space: nowrap;
  width: 65px;
}

.ribbon-btn.icon {
  align-items: center;
  flex-shrink: 0;
  font-size: 0.6rem;
  height: 18px;
  justify-content: center;
  max-height: 18px;
  min-height: 18px;
  min-width: 18px;
  padding: 0;
  width: 18px;
}

.ribbon-row .ribbon-btn,
.ribbon-row-inner .ribbon-btn {
  flex-shrink: 0;
}

.ribbon-btn.primary {
  background: linear-gradient(135deg, #156082 0%, #1a7299 100%);
  border: none;
  color: white;
}

.ribbon-select.font-select {
  min-width: 80px;
}

.ribbon-select.size-select {
  min-width: 36px;
}

.ribbon-group-content.styles-gallery {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 2px;
  height: 100%;
  overflow: visible;
}

.ribbon-style-btn:hover {
  background: #f5fafc;
  border-color: #156082;
}

.ribbon-style-btn.active {
  background: #e8f4f8;
  border-color: #156082;
  border-width: 2px;
}

#buildXOverlay.visible .buildx-footer,
#buildXOverlay.visible .buildx-site-footer,
.build-release-overlay.visible,
.buildx-ribbon-panel.has-content .buildx-ribbon-content,
.menu-highlight.visible,
.menu-tail.visible,
.overlay-nodes-container.visible,
.smart-menu .menu-item[title]:hover::before {
  opacity: 1;
}

.brand-variant,
.build-release-logo .logo-ai,
.footer-links-list a:hover,
.logo .ai,
.mobile-menu-overlay .mobile-menu-link:hover,
.titlebar-brand .brand-variant,
body.view-dark-header .logo .ai,
html.dark-mode .logo .ai {
  color: #156082;
}

.build-release-text .release-line {
  color: #666;
  font-size: 14px;
  font-weight: 300;
  margin-bottom: 8px;
}

.build-release-text .release-brand {
  font-size: 28px;
  font-weight: 500;
  margin-bottom: 8px;
}

.build-release-text .release-product {
  color: #156082;
  font-size: 16px;
  font-weight: 400;
}

.brand-build,
.brand-dot,
.titlebar-brand .brand-build,
.titlebar-brand .brand-dot {
  color: #000;
}

.menu-item:hover {
  background: rgba(21, 96, 130, 0.1);
}

.menu-item.has-submenu {
  padding-right: 24px;
}

.menu-item .submenu-arrow {
  color: #888;
  font-size: 0.6rem;
  position: absolute;
  right: 8px;
}

.menu-item.smart-feature {
  color: #156082;
  font-weight: 500;
}

.color-swatch:hover {
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transform: scale(1.2);
  z-index: 1;
}

.color-swatch.active {
  outline: 2px solid #156082;
  outline-offset: 1px;
}

.more-colors-btn:hover {
  background: rgba(0,0,0,0.03);
  border-color: #999;
}

.ui-options-footer .footer-separator {
  background: #e0e0e0;
  height: 1px;
  margin: 0 8px 0 8px;
}

.ui-options-footer .footer-content {
  align-items: center;
  display: flex;
  justify-content: center;
  padding: 10px 12px;
}

.toggle-switch.active,
.ui-options-footer .ui-toggle input:checked + .toggle-slider,
html.dark-mode .section-active-ball,
html.dark-mode .section-trail-ball,
html.dark-mode .toggle-switch {
  background: #156082;
}

.ribbon-tab:hover {
  color: #444;
}

.ribbon-tab.active {
  border-bottom-color: #156082;
  color: #156082;
}

.footer-content-compact + .footer-bottom,
.ribbon-content::-webkit-scrollbar {
  display: none;
}

.mobile-menu-overlay.active,
.ribbon-content.active {
  display: flex;
}

.ribbon-group-content.three-rows,
.ribbon-group-content.two-rows {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 1px;
  max-height: 56px;
}

.build-release-text .release-brand {
  align-items: baseline;
  display: flex;
  font-size: 28px;
  font-weight: 500;
  gap: 0;
  justify-content: center;
  margin-bottom: 8px;
}

.build-release-text .release-product {
  color: #666;
  font-size: 16px;
  font-weight: 400;
}

.build-release-text .carousel-container {
  display: inline-block;
  height: 32px;
  overflow: hidden;
  position: relative;
  vertical-align: baseline;
}

.build-release-text .carousel-items {
  display: flex;
  flex-direction: column;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.build-release-text .carousel-item {
  display: block;
  font-size: 28px !important;
  font-weight: 600;
  height: 32px;
  line-height: 32px;
  padding: 0 !important;
}

.menu-item:hover {
  background: var(--accent-blue);
  color: #fff;
}

.section-indicator.hidden {
  opacity: 0 !important;
  pointer-events: none;
}

.project-complete-overlay.visible {
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 1s ease, visibility 0s linear 0s, background 1s ease, backdrop-filter 1s ease;
  visibility: visible;
}

.project-complete-overlay .project-complete-content {
  align-items: center;
  display: flex;
  flex-direction: column;
  left: 27.5%;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.5s ease;
}

.section-dot:hover {
  background: rgba(21, 96, 130, 0.6);
  transform: scale(1.2);
}

.section-dot.active {
  background: transparent;
  transform: scale(1);
}

.section-trail-ball.animating {
  animation: trailFade 0.2s ease-out forwards;
}

.color-palette-btn .palette-icon {
  color: #999;
  font-size: 14px;
  transition: color 0.2s ease;
}

.color-palette-btn.main-palette {
  margin-right: 6px;
}

.color-palette-dropdown.word-style {
  min-width: 220px;
  padding: 10px;
}

@media (max-width: 767px) {
  .right-panel .panel-content {
    padding: 100px 24px 20px !important;
  }
}

.color-swatch:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  position: relative;
  transform: scale(1.15);
  z-index: 10;
}

.color-swatch[data-color] {
  background-color: attr(data-color);
}

.more-colors-btn:hover {
  background: rgba(0,0,0,0.05);
}

.buildx-ribbon-panel.left {
  background: rgba(20, 20, 20, 0.2);
  left: 280px;
}

.buildx-ribbon-panel.right {
  background: rgba(20, 20, 20, 0.2);
  right: 280px;
}

.buildx-package-btn.active {
  background: rgba(74, 155, 184, 0.25);
  border-color: #4a9bb8;
  box-shadow: 0 0 12px rgba(74, 155, 184, 0.3);
}

.buildx-package-btn:hover {
  background: rgba(74, 155, 184, 0.2);
  border-color: rgba(74, 155, 184, 0.5);
}

.buildx-package-btn.featured {
  background: linear-gradient(135deg, rgba(74, 155, 184, 0.12), rgba(21, 96, 130, 0.12));
  border-color: rgba(74, 155, 184, 0.35);
  font-size: 14px;
  padding: 14px 24px;
  width: 100%;
}

.buildx-signup-btn.primary {
  background: #156082;
  border: none;
  color: #fff;
}

.buildx-signup-btn.secondary {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
}

.buildx-site-footer .footer-content {
  align-items: center;
  display: flex;
  gap: 30px;
  height: 100%;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  padding: 0 40px;
}

.buildx-site-footer .footer-brand {
  flex: 0 0 250px;
}

.buildx-site-footer .footer-links {
  gap: 30px;
}

.buildx-site-footer .footer-links-column {
  min-width: 100px;
}

.buildx-site-footer .footer-logo-adelphos {
  color: #e0e0e0;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  letter-spacing: 5pt;
}

.buildx-site-footer .footer-logo-ai {
  color: #156082;
  font-family: 'Gotham Medium', 'Montserrat', Helvetica, Arial, sans-serif;
  font-size: 4vh;
  font-weight: 500;
  letter-spacing: 5pt;
  margin-left: 6px;
}

.buildx-site-footer .footer-tagline {
  color: rgba(255,255,255,0.5);
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 12px;
  font-weight: 300;
}

.buildx-site-footer .footer-links-title {
  color: rgba(255,255,255,0.7);
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
  margin-bottom: 6px;
}

.buildx-site-footer .footer-bottom {
  border-top-color: rgba(255,255,255,0.1);
}

.buildx-site-footer .footer-copyright,
.buildx-site-footer .footer-legal a {
  color: rgba(255,255,255,0.35);
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 10px;
  font-weight: 300;
}

.right-panel.visible {
  opacity: 1;
  pointer-events: none;
  transition: opacity 0.8s ease, visibility 0s linear 0s;
  visibility: visible;
}

.menu-highlight.bright {
  background: rgba(80, 80, 80, 0.38);
  transition: background 0.1s ease, opacity 0.4s ease;
}

.menu-highlight.dimming {
  background: rgba(170, 170, 170, 0.32);
  transition: background 0.7s ease, opacity 0.4s ease;
}

.menu-highlight.moving {
  transition: transform 0.1s ease-out, width 0.1s ease-out, opacity 0.4s ease;
}

.hamburger-btn.active span:nth-child(2),
.menu-highlight.fading,
.menu-tail.fading {
  opacity: 0;
}

.mobile-menu-overlay .mobile-menu-link {
  color: #222;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 400;
  padding: 14px 32px;
  text-align: left;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
}
.mobile-menu-overlay .mobile-menu-link:active {
  background: rgba(21, 96, 130, 0.08);
}
.mobile-menu-overlay .mobile-menu-sublink {
  font-size: 15px;
  font-weight: 300;
  padding: 10px 32px 10px 48px;
  color: var(--ad-text-3, #666);
  min-height: 44px;
}
.mobile-menu-overlay .mobile-menu-sublink:active {
  color: var(--ad-teal, #156082);
}

.mobile-menu-overlay .mobile-menu-divider {
  background: rgba(0, 0, 0, 0.08);
  height: 1px;
  margin: 6px 32px;
  width: auto;
}

.mobile-menu-overlay .mobile-menu-coming-soon {
  color: #999;
  cursor: default;
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 18px;
  font-weight: 300;
  padding: 14px 32px;
  text-align: left;
  width: 100%;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.mobile-menu-overlay .coming-soon-tag {
  background: #156082;
  border-radius: 10px;
  color: #fff;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-left: 8px;
  padding: 2px 8px;
  text-transform: uppercase;
  vertical-align: middle;
}

.menu-tail.moving {
  transition: transform 0.5s ease-out, width 0.5s ease-out, opacity 0.7s ease;
}

@media (max-width: 767px) {
  .mobile-menu-overlay.active {
    display: flex;
  }
}

.section-dot:hover {
  background: rgba(100, 100, 100, 0.5);
  transform: scale(1.2);
}

.footer-brand .footer-copyright {
  margin-top: 12px;
}

.menu-item-coming-soon .menu-link {
  cursor: default;
  opacity: 0.6;
}

.menu-item-dropdown > .menu-link {
  cursor: pointer;
}

.menu-item-dropdown .dropdown-panel {
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.10);
  box-sizing: border-box;
  font-family: var(--font-sans);
  left: 0;
  margin-top: 10px;
  max-width: calc(100vw - 32px);
  opacity: 0;
  overflow: visible;
  padding: 14px 16px;
  pointer-events: none;
  position: absolute;
  text-align: left;
  top: 100%;
  transition: opacity 0.18s ease, visibility 0s linear 0.18s;
  visibility: hidden;
  width: 380px;
  z-index: 10001;
}

.menu-item-dropdown .dropdown-panel * {
  font-family: var(--font-sans);
}

.ai-dialogue .lab {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.05em;
  padding-top: 2px;
  text-transform: uppercase;
}

.ai-dialogue .placeholder {
  background: rgba(21,96,130,0.10);
  border-radius: 3px;
  color: var(--brand-teal);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 5px;
}

html.dark-mode .ribbon-group-label {
  border-top-color: #3a3a3a;
  color: #666;
}

.ribbon-btn.smart::after {
  color: #156082;
  content: '✦';
  font-size: 0.4rem;
  opacity: 0.7;
  position: absolute;
  right: 2px;
  top: 2px;
}

html.dark-mode .ribbon-select {
  background: #333;
  border-color: #444;
  color: #ccc;
}

.ribbon-style-btn.h1::before {
  color: #156082;
  content: 'Aa';
  font-size: 0.85rem;
  font-weight: 700;
}

.ribbon-style-btn.h2::before {
  color: #156082;
  content: 'Aa';
  font-size: 0.75rem;
  font-weight: 600;
}

.ribbon-style-btn.h3::before {
  color: #444;
  content: 'Aa';
  font-size: 0.7rem;
  font-weight: 600;
}

.ribbon-style-btn.clause::before {
  color: #156082;
  content: '▸ Aa';
  font-size: 0.65rem;
}

.ribbon-style-btn.note::before {
  color: #666;
  content: 'Aa';
  font-size: 0.65rem;
  font-style: italic;
}

html.dark-mode .ribbon-style-btn {
  background: #333;
  border-color: #444;
  box-shadow: 0 1px 2px rgba(0,0,0,0.2);
  color: #ccc;
}

html.dark-mode .build-release-text .release-line,
html.dark-mode .build-release-text .release-product,
html.dark-mode .footer-links-list a,
html.dark-mode .footer-tagline,
html.dark-mode .ribbon-style-btn.note::before,
html.dark-mode .ribbon-tab {
  color: #888;
}

body.view-dark-header .logo,
html.dark-mode .build-release-logo,
html.dark-mode .build-release-text .release-brand .brand-build,
html.dark-mode .logo,
html.dark-mode .mobile-menu-overlay .mobile-menu-link {
  color: #e0e0e0;
}

html.dark-mode .brand-build,
html.dark-mode .brand-dot,
html.dark-mode .footer-logo-adelphos,
html.dark-mode .menu-link,
html.dark-mode .titlebar-brand .brand-build,
html.dark-mode .titlebar-brand .brand-dot {
  color: #fff;
}

html.dark-mode .menu-dropdown-content,
html.dark-mode .menu-submenu {
  background: #2a2a2a;
  border-color: #3a3a3a;
  box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.menu-item[data-shortcut]::after {
  color: #999;
  content: attr(data-shortcut);
  font-size: 0.55rem;
  margin-left: 16px;
}

.color-palette-btn:hover .palette-icon,
html.dark-mode .color-palette-btn .palette-icon,
html.dark-mode .dark-toggle-label,
html.dark-mode .footer-copyright,
html.dark-mode .footer-legal a,
html.dark-mode .menu-item .submenu-arrow,
html.dark-mode .menu-item[data-shortcut]::after {
  color: #666;
}

.menu-item.menu-toggle::before {
  border: 1px solid #ccc;
  border-radius: 2px;
  content: '';
  flex-shrink: 0;
  height: 12px;
  margin-right: 8px;
  width: 12px;
}

html.dark-mode .color-palette-dropdown {
  background: #2a2a2a;
  border-color: #3a3a3a;
}

html.dark-mode .color-swatch {
  border-color: rgba(255,255,255,0.1);
}

html.dark-mode .more-colors-btn {
  border-color: #444;
  color: #888;
}

html.dark-mode .section-active-ball,
html.dark-mode .section-trail-ball,
html.dark-mode .ui-options-footer .ui-toggle input:checked + .toggle-slider {
  background: #4a9bb8;
}

html.dark-mode .ribbon-tabs {
  border-bottom-color: #3a3a3a;
}

html.dark-mode .menu-dropdown-content,
html.dark-mode .menu-submenu {
  background: #3a3a3a;
  border-color: #555;
}

.menu-item[data-shortcut]::after {
  color: #888;
  content: attr(data-shortcut);
  font-size: 9px;
  margin-left: 12px;
}

html.dark-mode .project-complete-tick {
  background: linear-gradient(135deg, #4ECDC4 0%, #3dbdb5 100%);
  box-shadow: 0 0 40px rgba(78, 205, 196, 0.5);
}

html.dark-mode .project-complete-text {
  color: var(--text-primary);
}

html.dark-mode .project-complete-savings {
  color: #4ECDC4;
}

html.dark-mode .section-dot {
  background: rgba(21, 96, 130, 0.35);
}

.toggle-switch.active::after,
html.dark-mode .toggle-switch::after {
  transform: translateX(20px);
}

@media (max-width: 767px) {
  html.dark-mode .right-panel {
    background: #1a1a1a !important;
  }
}

html.dark-mode .color-palette-dropdown {
  background: #2a2a2a;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
}

html.dark-mode .color-swatch {
  border-color: rgba(255,255,255,0.15);
}

html.dark-mode .more-colors-btn {
  border-top-color: rgba(255,255,255,0.08);
  color: #aaa;
}

html.dark-mode .right-panel {
  background: transparent;
  pointer-events: none;
}

.buildx-ribbon-panel::-webkit-scrollbar-thumb:hover {
  background: rgba(74, 155, 184, 0.5);
}

.buildx-site-footer .footer-links-list a {
  color: rgba(255,255,255,0.5);
  font-family: 'Inter Display', 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 300;
}

.buildx-site-footer .footer-links-list li {
  margin-bottom: 3px;
}

body.view-dark-header .logo {
  color: #e0e0e0 !important;
}

html.dark-mode .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .mobile-menu-overlay {
  background: rgba(26, 26, 26, 0.97);
}
html.dark-mode .mobile-menu-overlay .mobile-menu-sublink {
  color: rgba(255, 255, 255, 0.5);
}
html.dark-mode .mobile-menu-overlay .mobile-menu-link:active {
  background: rgba(74, 155, 184, 0.12);
}
html.dark-mode .mobile-menu-overlay .mobile-menu-divider {
  background: rgba(255, 255, 255, 0.08);
}

html.dark-mode .menu-highlight {
  background: rgba(0, 0, 0, 0.4);
}

html.dark-mode .menu-tail {
  background: rgba(0, 0, 0, 0.25);
}

html.dark-mode .toggle-switch {
  background: #444;
}

@media (max-width: 767px) {
  .toggle-switch.active::after {
    transform: translateX(26px);
  }
}

html.dark-mode .section-dot {
  background: rgba(200, 200, 200, 0.25);
}

html.dark-mode .footer-links-title {
  color: #ddd;
}

.menu-item-dropdown .dropdown-list li {
  margin: 0;
}

.menu-item-dropdown .dropdown-list a {
  border-radius: 6px;
  color: var(--text);
  display: block;
  overflow-wrap: break-word;
  padding: 10px 12px;
  text-decoration: none;
  transition: background 0.12s;
  word-wrap: break-word;
}

html.dark-mode .hamburger-btn span {
  background: #e0e0e0;
}

.menu-item-dropdown .dropdown-list a strong {
  color: var(--brand-teal);
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.menu-dropdown,
.ribbon-btn.icon.highlight,
.ribbon-btn.smart,
.smart-menu .menu-item[title] {
  position: relative;
}

.ribbon-btn.large .ribbon-icon {
  font-size: 1.1rem;
  margin-bottom: 4px;
  margin-top: 2px;
}

.ribbon-btn.large .ribbon-label {
  font-size: 0.5rem;
  text-align: center;
}

.ribbon-btn.primary:hover {
  background: linear-gradient(135deg, #1a7299 0%, #1d82a8 100%);
}

.build-release-text .release-brand .brand-build {
  color: #222;
}

.menu-dropdown:hover .menu-dropdown-content,
.menu-item.has-submenu:hover .menu-submenu,
.menu-item.has-submenu:hover > .menu-submenu {
  display: block;
}

.ui-options-footer .toggle-text .brand-build,
.ui-options-footer .toggle-text .brand-dot,
.ui-options-footer .toggle-text .brand-variant {
  font-family: 'Gotham Medium', 'Montserrat', sans-serif;
  font-size: 0.55rem;
  letter-spacing: 0.5px;
}

.ui-options-footer .ui-toggle .toggle-slider {
  background: #ccc;
  border-radius: 18px;
  bottom: 0;
  cursor: pointer;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
  transition: background 0.2s ease;
}

.ribbon-group-content.three-rows .ribbon-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
  height: 18px;
}

.ribbon-group-content.two-rows .ribbon-row {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 2px;
}

.build-release-text .release-brand .brand-build {
  -webkit-letter-spacing: 2pt !important;
  color: #222;
  letter-spacing: 2pt !important;
  margin-right: 6px;
}

.build-release-text .carousel-item .carousel-letter {
  color: #156082;
  font-size: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.build-release-text .carousel-item .carousel-stop {
  color: #222;
  font-size: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

.project-complete-overlay.visible .project-complete-content {
  opacity: 1;
  transition: opacity 0.5s ease 0.8s;
}

.project-complete-overlay.visible .project-complete-tick {
  animation: tickPopIn 0.5s cubic-bezier(0.65, 0, 0.35, 1) 1s forwards;
}

.project-complete-overlay.visible .project-complete-text {
  animation: textFadeIn 0.4s ease-out 1.5s forwards;
}

.project-complete-overlay.visible .project-complete-savings {
  animation: textFadeIn 0.4s ease-out 1.7s forwards;
}

.project-complete-overlay.visible .project-complete-btn {
  animation: textFadeIn 0.4s ease-out 1.9s forwards;
}

.color-palette-btn.main-palette .palette-icon {
  font-size: 18px;
}

.color-palette-btn:hover .color-palette-dropdown,
.color-palette-dropdown:hover {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.buildx-package-btn.featured:hover {
  background: linear-gradient(135deg, rgba(74, 155, 184, 0.22), rgba(21, 96, 130, 0.22));
  border-color: rgba(74, 155, 184, 0.55);
}

.buildx-signup-btn.primary:hover {
  background: #0e4560;
  transform: scale(1.02);
}

.buildx-signup-btn.secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.5);
}

.buildx-site-footer .footer-brand .footer-copyright {
  margin-top: 8px;
}

.menu-item-coming-soon:hover .coming-soon-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

.menu-item-dropdown:focus-within .dropdown-panel,
.menu-item-dropdown:hover .dropdown-panel {
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.18s ease, visibility 0s linear 0s;
  visibility: visible;
}

.menu-item-dropdown .dropdown-panel .blurb {
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.4;
  margin: 0 0 10px;
  overflow-wrap: break-word;
  padding-bottom: 10px;
  word-wrap: break-word;
}

html.dark-mode .menu-divider,
html.dark-mode .ribbon-separator,
html.dark-mode .ui-options-footer .footer-separator {
  background: #3a3a3a;
}

.ribbon-btn.icon.highlight::after {
  background: linear-gradient(90deg, #ffeb3b 0%, #ffc107 100%);
  border-radius: 1px;
  bottom: 2px;
  content: '';
  height: 3px;
  left: 3px;
  position: absolute;
  right: 3px;
}

html.dark-mode .menu-item,
html.dark-mode .ribbon-btn,
html.dark-mode .ribbon-content,
html.dark-mode .ribbon-style-btn::before,
html.dark-mode .ribbon-tab:hover {
  color: #ccc;
}

html.dark-mode .ribbon-btn:hover {
  background: rgba(74, 155, 184, 0.15);
  border-color: rgba(74, 155, 184, 0.25);
}

html.dark-mode .ribbon-btn.active {
  background: rgba(74, 155, 184, 0.2);
  border-color: rgba(74, 155, 184, 0.4);
}

html.dark-mode .ribbon-btn.primary {
  background: linear-gradient(135deg, #4a9bb8 0%, #5aabbf 100%);
}

html.dark-mode .ribbon-style-btn:hover {
  background: #3a4a52;
  border-color: #4a9bb8;
}

html.dark-mode .ribbon-style-btn.active {
  background: #2a3a42;
  border-color: #4a9bb8;
}

html.dark-mode .menu-item:hover {
  background: rgba(74, 155, 184, 0.15);
}

.smart-menu .menu-item[title]::before {
  color: #156082;
  content: '✦';
  font-size: 0.45rem;
  left: -2px;
  opacity: 0;
  position: absolute;
  transition: opacity 0.15s ease;
}

html.dark-mode .color-swatch.active {
  outline-color: #4a9bb8;
}

html.dark-mode .more-colors-btn:hover {
  background: rgba(255,255,255,0.05);
  border-color: #666;
}

.ui-options-footer .ui-toggle .toggle-slider::before {
  background: white;
  border-radius: 50%;
  bottom: 2px;
  content: '';
  height: 14px;
  left: 2px;
  position: absolute;
  transition: transform 0.2s ease;
  width: 14px;
}

html.dark-mode .ribbon-tab.active {
  border-bottom-color: #4a9bb8;
  color: #4a9bb8;
}

.menu-item:hover[data-shortcut]::after {
  color: rgba(255,255,255,0.7);
}

html.dark-mode .project-complete-overlay.visible {
  background: rgba(0, 0, 0, 0.5);
}

html.dark-mode .section-dot:hover {
  background: rgba(21, 96, 130, 0.6);
}

html.dark-mode .section-dot.active {
  background: transparent;
}

html.dark-mode .color-swatch.active {
  outline-color: #1a9cc2;
}

html.dark-mode .more-colors-btn:hover {
  background: rgba(255,255,255,0.08);
}

#buildXOverlay.visible .buildx-content,
#buildXOverlay.visible .buildx-package-btn,
#buildXOverlay.visible .buildx-ribbon-panel,
#buildXOverlay.visible .buildx-signup-btn,
#buildXOverlay.visible .buildx-site-footer,
.menu-item-dropdown:focus-within::after,
.menu-item-dropdown:hover::after,
.right-panel.visible .panel-content,
.view-buildx .buildx-panel-list,
.view-buildx .buildx-panel-text,
.view-buildx .buildx-ribbon-content,
html.dark-mode .right-panel .panel-content {
  pointer-events: auto;
}

body.view-dark-header .menubar .menu-link,
body.view-dark-header .menubar .menu-link:hover {
  color: #fff !important;
}

body.view-dark-header .menubar .menu-highlight {
  background: rgba(255, 255, 255, 0.1) !important;
}

body.view-dark-header .menubar .menu-tail {
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.06), transparent) !important;
}

body.view-dark-header .section-indicator .section-dot {
  background: rgba(21, 96, 130, 0.35) !important;
}

body.view-dark-header .section-indicator .section-active-ball {
  background: #156082 !important;
}

body.view-dark-header .section-indicator .section-trail-ball {
  background: rgba(21, 96, 130, 0.4) !important;
}

.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

html.dark-mode .mobile-menu-overlay .mobile-menu-divider {
  background: rgba(255, 255, 255, 0.1);
}

html.dark-mode .menu-highlight.bright {
  background: rgba(55, 55, 55, 0.5);
  transition: background 0.1s ease, opacity 0.4s ease;
}

html.dark-mode .menu-highlight.dimming {
  background: rgba(40, 40, 40, 0.45);
  transition: background 0.7s ease, opacity 0.4s ease;
}

html.dark-mode .section-dot:hover {
  background: rgba(200, 200, 200, 0.5);
}

.menu-item-dropdown .dropdown-list a:hover {
  background: var(--bg-soft);
}

.menu-item-dropdown .dropdown-list a .ds {
  color: var(--text-muted);
  display: block;
  font-size: 12px;
  line-height: 1.4;
  white-space: normal;
}

html.dark-mode .menu-item-dropdown .dropdown-panel {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.10);
}

/* Nested features panel — hidden by default, shown on hover of parent li */
.dropdown-panel li.has-nested { position: relative; }
.dropdown-nested-panel {
  display: none;
  position: absolute;
  left: 100%;
  top: 0;
  min-width: 320px;
  max-height: 70vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.10);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 12px 36px rgba(30,52,72,0.18);
  z-index: 10002;
}
html.dark-mode .dropdown-nested-panel {
  background: #2a2a2a;
  border-color: rgba(255,255,255,0.10);
}
.dropdown-panel li.has-nested:hover > .dropdown-nested-panel {
  display: block;
}
.dropdown-nested-panel .nested-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #888);
  margin: 0 0 8px;
  padding: 0 0 6px;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
html.dark-mode .dropdown-nested-panel .nested-label {
  border-bottom-color: rgba(255,255,255,0.08);
}

.buildx-package-btn .teal,
.buildx-site-footer .footer-links-list a:hover,
.buildx-title .teal,
html.dark-mode .brand-variant,
html.dark-mode .build-release-logo .logo-ai,
html.dark-mode .build-release-text .release-product,
html.dark-mode .footer-links-list a:hover,
html.dark-mode .menu-item.smart-feature,
html.dark-mode .mobile-menu-overlay .mobile-menu-link:hover,
html.dark-mode .ribbon-btn.smart::after,
html.dark-mode .ribbon-style-btn.clause::before,
html.dark-mode .ribbon-style-btn.h1::before,
html.dark-mode .ribbon-style-btn.h2::before,
html.dark-mode .smart-menu .menu-item[title]::before,
html.dark-mode .titlebar-brand .brand-variant {
  color: #4a9bb8;
}

html.dark-mode .menu-item.menu-toggle::before {
  border-color: #555;
}

.project-complete-overlay.visible .project-complete-tick svg path {
  animation: tickDraw 0.4s ease-out 1.3s forwards;
}

html.dark-mode .ribbon-btn.primary:hover {
  background: linear-gradient(135deg, #5aabbf 0%, #6abbd0 100%);
}

html.dark-mode .menu-divider,
html.dark-mode .ui-options-footer .ui-toggle .toggle-slider {
  background: #555;
}

html.dark-mode .build-release-text .release-brand .brand-build {
  -webkit-letter-spacing: 2pt !important;
  color: #e0e0e0;
  letter-spacing: 2pt !important;
}

html.dark-mode .build-release-text .carousel-item .carousel-letter {
  color: #4a9bb8;
  font-size: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

html.dark-mode .build-release-text .carousel-item .carousel-stop {
  color: #fff;
  font-size: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}

html.dark-mode .color-palette-btn:hover .palette-icon {
  color: #999;
}

body.view-dark-header .menubar .menu-highlight.bright {
  background: rgba(255, 255, 255, 0.15) !important;
}

html.dark-mode .ribbon-btn.icon.highlight::after {
  background: linear-gradient(90deg, #d4a017 0%, #b8860b 100%);
}

.ui-options-footer .ui-toggle input:checked + .toggle-slider::before {
  transform: translateX(14px);
}

@media (max-width: 767px) {
  #schedulesOverlay .v7-three-column,
  #schedulesOverlay .v8-three-column,
  #specWritingOverlay .v8-three-column {
    flex-direction: column !important;
    gap: 0 !important;
    height: auto !important;
    padding: 40px 24px !important;
  }
}

@media (max-width: 767px) {
  #schedulesOverlay .v8-text-left,
  #specWritingOverlay .v8-text-left {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-center-area {
    padding: 40px 24px !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-site-footer {
    bottom: auto !important;
    height: auto !important;
    margin-top: 20px;
    padding: 20px 16px 15px !important;
    pointer-events: auto !important;
    position: relative !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-content {
    margin-bottom: 0 !important;
    max-width: 100% !important;
    padding: 0 !important;
    width: 100% !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-content,
  #buildXOverlay .buildx-footer,
  #buildXOverlay .buildx-header,
  #buildXOverlay .buildx-packages-grid,
  #buildXOverlay .buildx-signup-buttons,
  #buildXOverlay .buildx-site-footer {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    visibility: visible !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-packages-grid {
    gap: 8px !important;
    margin-bottom: 0 !important;
    transform: scale(0.8) !important;
    transform-origin: center top;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-signup-buttons {
    align-items: center !important;
    flex-direction: column !important;
    gap: 12px !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-signup-btn {
    max-width: 280px !important;
    text-align: center !important;
    width: 100% !important;
  }
}

#schedulesOverlay .v8-three-column,
#specWritingOverlay .v8-three-column {
  align-items: center;
  box-sizing: border-box;
  display: flex;
  gap: 80px;
  height: 100%;
  justify-content: center;
  padding: 0 80px;
  width: 100%;
}

#schedulesOverlay .v8-text-column,
#specWritingOverlay .v8-text-column {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  justify-content: center;
  max-width: 400px;
  position: relative;
  z-index: 1;
}

#schedulesOverlay .v8-text-left,
#schedulesOverlay .v8-text-right,
#specWritingOverlay .v8-text-left,
#specWritingOverlay .v8-text-right {
  text-align: left;
}

#schedulesOverlay .v7-center-panel,
#schedulesOverlay .v8-center-panel,
#specWritingOverlay .v8-center-panel {
  align-items: center;
  display: flex;
  flex: 0 0 50%;
  height: 70vh;
  justify-content: center;
  position: relative;
  z-index: 10;
}

#schedulesOverlay .v8-text-column,
#specWritingOverlay .v8-text-column {
  flex: 1 1 0 !important;
  max-width: 400px;
  min-width: 200px;
}

#schedulesOverlay .v7-center-panel,
#schedulesOverlay .v8-center-panel,
#specWritingOverlay .v8-center-panel {
  flex: 0 0 50% !important;
  max-width: 962px;
  min-width: 500px;
}

#schedulesOverlay .v7-qa-panel {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-site-footer .footer-content {
    flex-direction: column !important;
    gap: 16px !important;
    height: auto !important;
    padding: 0 16px !important;
  }
}

@media (max-width: 767px) {
  #buildXOverlay .buildx-site-footer .footer-brand {
    flex: none !important;
  }
}

#buildXOverlay.visible .buildx-header,
#buildXOverlay.visible .buildx-packages-grid,
#buildXOverlay.visible .buildx-signup-buttons {
  opacity: 1;
  transform: translateY(0);
}

/* ===== MOBILE FOOTER — targets the shell.js .sandbox-footer ===== */
@media (max-width: 600px) {
  .sandbox-footer {
    padding: 32px 20px 24px !important;
  }
  .sandbox-footer .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
  }
  .sandbox-footer .footer-tag {
    max-width: 100% !important;
  }
  .sandbox-footer .footer-bottom {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    padding-top: 16px !important;
  }
  .sandbox-footer .footer-bottom .legal {
    display: flex;
    gap: 12px;
    justify-content: center;
  }
  .sandbox-footer .footer-bottom .legal a {
    margin-left: 0 !important;
  }
}
