/* Independent learning-workshop shell. Native components, no global template reset. */
:root { --growth-center-inner-width: 960px; }
.container:has(#ai-handbook.active) {
  width: 100%;
  max-width: 1440px;
  box-sizing: border-box;
  padding: 36px clamp(12px, 3vw, 48px) 64px;
}
#ai-handbook.panel {
  --gw-ink: #1d1d1f;
  --gw-muted: #6e6e73;
  --gw-material: rgba(232,232,237,.65);
  --gw-selected: #fff;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  color: var(--gw-ink);
}
html.theme-dark #ai-handbook.panel {
  --gw-ink: #f5f5f7;
  --gw-muted: #a1a1a6;
  --gw-material: rgba(58,58,60,.72);
  --gw-selected: #555557;
  background: transparent;
}
#ai-handbook .handbook-home-layout {
  width: 100%;
  min-width: 0;
  margin: 0 auto;
  padding: 0;
}
#ai-handbook .handbook-home-layout::before,
#ai-handbook .handbook-home-content::before,
#ai-handbook .handbook-home-content::after { content: none; }
#ai-handbook .handbook-home-top,
#ai-handbook .handbook-home-content-inner {
  width: 100%;
  max-width: var(--growth-center-inner-width);
  margin-inline: auto;
  box-sizing: border-box;
}
#ai-handbook[data-workspace="survey"] { --growth-center-inner-width: 1200px; }
#ai-handbook[data-workspace="image-center"] { --growth-center-inner-width: 1344px; }
#ai-handbook .handbook-home-content {
  padding: 30px 0 0;
  min-height: 480px;
  background: transparent;
}
#ai-handbook [hidden] { display: none !important; }
.growth-workspace-header { padding: 0 0 26px; }
#ai-handbook .growth-workspace-context {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--gw-muted);
}
#ai-handbook #growth-workspace-title {
  margin: 0;
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -.025em;
  color: var(--gw-ink);
}
#ai-handbook #growth-workspace-description {
  margin: 12px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--gw-muted);
}
.growth-learning-segments {
  display: flex;
  width: fit-content;
  max-width: 100%;
  gap: 3px;
  padding: 4px;
  border-radius: 16px;
  background: var(--gw-material);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}
#ai-handbook .handbook-home-learn-item {
  min-width: 88px;
  min-height: 38px;
  padding: 8px 20px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--gw-muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  font-family: inherit;
  cursor: pointer;
  touch-action: manipulation;
  transition: transform 140ms ease-out, background-color 160ms ease-out, color 160ms ease-out;
}
#ai-handbook .handbook-home-learn-item.is-active {
  color: var(--gw-ink);
  background: var(--gw-selected);
  box-shadow: 0 1px 4px rgba(0,0,0,.10), 0 0 0 .5px rgba(0,0,0,.04);
}
#ai-handbook .handbook-home-learn-item:hover { color: var(--gw-ink); }
#ai-handbook .handbook-home-learn-item:active { transform: scale(.97); transition-duration: 80ms; }
#ai-handbook .handbook-home-learn-item:focus-visible { outline: 2px solid var(--gw-muted); outline-offset: 3px; }
#ai-handbook .handbook-nonlearn-placeholder {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-align: center;
}
#ai-handbook .handbook-nonlearn-placeholder-title { color: var(--gw-ink); font-size: 18px; font-weight: 600; }
#ai-handbook .handbook-nonlearn-placeholder-desc { color: var(--gw-muted); font-size: 14px; }
#ai-handbook #growth-editor { color: var(--gw-ink) !important; }
#ai-handbook .growth-dev-survey-stack { padding: 0; gap: 18px; }
#ai-handbook .growth-dev-survey-head { padding-bottom: 12px; border-bottom: 1px solid color-mix(in srgb,var(--gw-ink) 10%,transparent); }
#ai-handbook .growth-dev-survey-title { font-size: 16px; }
#ai-handbook .growth-dev-survey-icon-btn:hover { transform: scale(1.03); }
#ai-handbook .growth-dev-survey-icon-btn:active { transform: scale(.97); }
#ai-handbook .growth-editor-btn, #ai-handbook .growth-editor-select { border-radius: 12px; }
@media (max-width: 600px) {
  .container:has(#ai-handbook.active) { padding: 24px 0 48px; }
  #ai-handbook .handbook-home-content { padding-top: 24px; }
  .growth-workspace-header { padding-bottom: 20px; }
  #ai-handbook .handbook-home-learn-item { min-width: 76px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  #ai-handbook .handbook-home-learn-item { transition: none; transform: none; }
}
@media (prefers-reduced-transparency: reduce), (prefers-contrast: more) {
  .growth-learning-segments { background: var(--gw-selected); backdrop-filter: none; -webkit-backdrop-filter: none; border: 1px solid var(--gw-muted); }
  #ai-handbook .handbook-home-learn-item.is-active { outline: 1px solid var(--gw-ink); }
}
