body.hub-ambient {
  --tool-shell-max: 1120px;
  --tool-shell-line: rgba(132, 199, 193, 0.18);
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(67, 170, 139, 0.28), transparent 25%),
    radial-gradient(circle at 88% 14%, rgba(244, 162, 97, 0.22), transparent 22%),
    radial-gradient(circle at 72% 82%, rgba(132, 199, 193, 0.16), transparent 28%),
    linear-gradient(145deg, #08161a 0%, #0d2024 38%, #132e31 100%);
  color: #f5fbf8;
  font-family: 'Sora', 'Trebuchet MS', sans-serif;
  position: relative;
}

body.hub-ambient::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 120px 120px;
  mix-blend-mode: soft-light;
  opacity: 0.35;
}

body.hub-ambient::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0), rgba(0, 0, 0, 0.18) 70%);
}

body.hub-ambient .main-content {
  position: relative;
  z-index: 1;
  padding: clamp(24px, 4vw, 40px) clamp(14px, 2.8vw, 28px) 56px;
}

body.hub-ambient .tool-main-center {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

body.hub-ambient .tool-shell {
  max-width: var(--tool-shell-max);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  background: linear-gradient(180deg, rgba(11, 33, 37, 0.88), rgba(7, 22, 26, 0.94));
  border: 1px solid var(--tool-shell-line);
  border-radius: 32px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}

body.hub-ambient .tool-shell::before {
  content: '';
  position: absolute;
  right: -10%;
  bottom: -30%;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 162, 97, 0.18), rgba(244, 162, 97, 0) 72%);
  pointer-events: none;
}

body.hub-ambient .tool-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 22%, rgba(255, 255, 255, 0.02) 64%, rgba(255, 255, 255, 0.08) 100%);
  mix-blend-mode: screen;
  opacity: 0.32;
  pointer-events: none;
}

body.hub-ambient .tool-header {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
  text-align: center;
}

body.hub-ambient .tool-header.tool-header-left {
  text-align: left;
  justify-items: start;
}

body.hub-ambient .tool-title,
body.hub-ambient .tool-shell > h1 {
  margin: 0;
  color: #fff7f1;
  font-family: 'Space Grotesk', 'Trebuchet MS', sans-serif;
  font-size: clamp(2.15rem, 4.4vw, 3.7rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
}

body.hub-ambient .tool-subtitle {
  margin: 0;
  max-width: 56ch;
  color: rgba(224, 238, 234, 0.78);
  font-size: 0.98rem;
  line-height: 1.6;
}

/* Sidebar appearance now lives entirely in template/ScalableSidebar.css
   (id-scoped to #sidebar) so it renders identically across every page.
   The rules that used to live here are removed to avoid drift -- edit the
   sidebar's look there, not per-shell. */

@media (max-width: 760px) {
  body.hub-ambient .tool-shell {
    border-radius: 24px;
    padding: 20px 16px 24px;
  }

  body.hub-ambient .tool-title,
  body.hub-ambient .tool-shell > h1 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }
}

@media (max-width: 600px) {
  body.hub-ambient .main-content {
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 32px;
  }

  body.hub-ambient .tool-shell {
    border-radius: 0;
    border-left: none;
    border-right: none;
    box-shadow: none;
    padding: 18px 12px 22px;
  }

  body.hub-ambient .tool-header {
    margin-bottom: 18px;
  }
}