/* Hades layout v3 — Hephaestus-aligned command row and approved hero composition */

.app-shell > main > header {
  height: 108px !important;
  padding: 17px 28px 14px !important;
  align-items: flex-start !important;
}

.app-shell > main > header > .hades-title-block {
  position: relative !important;
  z-index: 6 !important;
  min-width: 360px !important;
  padding-top: 3px !important;
}

.hades-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
}

.hades-title-row h1 {
  margin: 0 !important;
  line-height: 1 !important;
}

.hades-title-row .status-chip {
  position: static !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 32px !important;
  margin: 1px 0 0 !important;
  padding: 0 11px !important;
  white-space: nowrap !important;
  border: 1px solid rgba(181, 47, 89, .45) !important;
  background: rgba(181, 47, 89, .08) !important;
  color: #e07b96 !important;
  border-radius: 6px !important;
  font-size: 9px !important;
  letter-spacing: .07em !important;
}

.hades-title-row .status-chip::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-radius: 50%;
  background: #48d5b1;
  box-shadow: 0 0 9px rgba(72, 213, 177, .7);
}

.app-shell > main > header > .hades-title-block::after {
  content: "Part of the Hera.AI Ecosystem" !important;
  display: block !important;
  margin-top: 8px !important;
  color: #c49362 !important;
  font: 500 10px Georgia, "Times New Roman", serif !important;
  letter-spacing: .08em !important;
  white-space: nowrap !important;
}

.app-shell > main > header > .hades-title-block::before {
  content: "" !important;
  position: absolute !important;
  left: 0 !important;
  bottom: -11px !important;
  width: 330px !important;
  height: 1px !important;
  background: linear-gradient(90deg, rgba(214,166,109,.62), rgba(197,56,99,.52), transparent) !important;
}

.header-actions {
  position: absolute !important;
  left: auto !important;
  right: 28px !important;
  top: 16px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  z-index: 7 !important;
  padding: 0 !important;
}

.header-actions .account-menu {
  display: block !important;
  order: 1 !important;
}

.header-actions .account-trigger {
  height: 34px !important;
  padding: 0 11px !important;
}

/* Match the Hephaestus console control row: input + action + Voice + Speak. */
.objective-card {
  width: calc(100% - 500px) !important;
  max-width: 1080px !important;
  min-width: 680px !important;
  min-height: 132px !important;
  margin: 0 0 225px !important;
  padding: 13px 15px !important;
}

.objective-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto auto auto !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 8px !important;
}

.objective-row input {
  width: 100% !important;
  height: 42px !important;
}

.objective-row > button {
  width: auto !important;
  min-width: 78px !important;
  height: 42px !important;
  padding: 0 14px !important;
  white-space: nowrap !important;
}

.objective-row > button[type="submit"] {
  min-width: 82px !important;
}

.objective-row .hades-command-button {
  min-width: 88px !important;
  background: #0a080c !important;
  border: 1px solid rgba(185,119,79,.34) !important;
  color: #cdbfc0 !important;
  box-shadow: none !important;
  font-weight: 650 !important;
}

.objective-row .hades-command-button:hover {
  border-color: rgba(197,56,99,.62) !important;
  color: #f5dfe4 !important;
}

.objective-row #speak-toggle:not(.is-off) {
  border-color: rgba(181,47,89,.68) !important;
  color: #f0b4c3 !important;
  background: rgba(181,47,89,.12) !important;
  box-shadow: inset 0 0 18px rgba(181,47,89,.06), 0 0 12px rgba(181,47,89,.08) !important;
}

.objective-row .escalate {
  grid-column: 1 / -1 !important;
  margin-top: 3px !important;
}

/* Give the hero enough vertical room to show Hades instead of cropping him at the neck/torso. */
#overview {
  padding-top: 18px !important;
}

#overview::before {
  top: 18px !important;
  right: 30px !important;
  width: 450px !important;
  height: 350px !important;
  background:
    linear-gradient(90deg, #030305 0, rgba(3,3,5,.10) 26%, rgba(3,3,5,0) 60%),
    url('/assets/hades-statue.webp') right center / contain no-repeat !important;
  opacity: .97 !important;
  filter: saturate(.92) contrast(1.05) !important;
}

#overview::after {
  top: 56px !important;
  right: 205px !important;
  width: 410px !important;
  height: 270px !important;
  background: radial-gradient(ellipse, rgba(127,34,123,.18), transparent 68%) !important;
}

/* Skull-only status mark. Keep the pulse, remove the crossbones glyph. */
.agent-state .pulse {
  animation: hades-status-pulse 2.35s ease-in-out infinite !important;
}

.agent-state .pulse::before {
  content: "" !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  width: 31px !important;
  height: 31px !important;
  transform: translate(-50%, -50%) !important;
  background: #dfbf95 !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='white' d='M32 6C17.6 6 8 15.7 8 29c0 8.6 4 14.7 10 18v7c0 2.2 1.8 4 4 4h6v-8h3v8h2v-8h3v8h6c2.2 0 4-1.8 4-4v-7c6-3.3 10-9.4 10-18C56 15.7 46.4 6 32 6zm-9 27c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm18 0c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm-9 4 5 7H27l5-7z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath fill='white' d='M32 6C17.6 6 8 15.7 8 29c0 8.6 4 14.7 10 18v7c0 2.2 1.8 4 4 4h6v-8h3v8h2v-8h3v8h6c2.2 0 4-1.8 4-4v-7c6-3.3 10-9.4 10-18C56 15.7 46.4 6 32 6zm-9 27c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm18 0c-3.3 0-6-2.7-6-6s2.7-6 6-6 6 2.7 6 6-2.7 6-6 6zm-9 4 5 7H27l5-7z'/%3E%3C/svg%3E") center / contain no-repeat !important;
  filter: drop-shadow(0 0 7px rgba(197,56,99,.42));
}

@keyframes hades-status-pulse {
  0%, 100% {
    box-shadow: 0 0 0 8px rgba(181,47,89,.035), 0 0 14px rgba(197,56,99,.12) !important;
  }
  50% {
    box-shadow: 0 0 0 11px rgba(181,47,89,.055), 0 0 28px rgba(197,56,99,.32) !important;
  }
}

@media (max-width: 1380px) {
  .objective-card {
    width: calc(100% - 410px) !important;
    min-width: 600px !important;
    margin-bottom: 175px !important;
  }

  #overview::before {
    right: 20px !important;
    width: 365px !important;
    height: 310px !important;
  }
}

@media (max-width: 1050px) {
  .app-shell > main > header > .hades-title-block::after {
    font-size: 9px !important;
  }

  .hades-title-row .status-chip {
    display: none !important;
  }

  .objective-card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin-bottom: 18px !important;
  }

  #overview::before {
    opacity: .20 !important;
    width: 60vw !important;
    height: 300px !important;
  }
}

@media (max-width: 760px) {
  .header-actions {
    right: 14px !important;
    top: 14px !important;
  }

  .objective-row {
    grid-template-columns: 1fr 74px !important;
  }

  .objective-row #voice-button,
  .objective-row #speak-toggle {
    grid-column: span 1 !important;
  }
}
