.design-guide-launch {
  width: 100%;
  margin: 0 0 12px;
  border: 1px solid color-mix(in srgb, var(--accent, #c8ff57) 42%, transparent);
  background: color-mix(in srgb, var(--accent, #c8ff57) 10%, transparent);
  font-weight: 800;
}

.design-guide {
  position: relative;
  z-index: 8;
  display: grid;
  gap: 14px;
  margin: 0 0 18px;
  padding: 18px;
  border: 1px solid rgba(200, 255, 87, .22);
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(15, 24, 21, .98), rgba(24, 42, 35, .96));
  box-shadow: 0 22px 54px rgba(0, 0, 0, .24);
  color: #f4f7f2;
}

.design-guide[hidden] { display: none; }
body.design-guided-mode .design-guide-launch { display: none; }
.design-guide-property {
  min-height: 44px;
  color: #dfff94;
  background: transparent;
  border-color: rgba(200, 255, 87, .26);
}

.design-guide-head,
.design-guide-head > div,
.design-guide-copy,
.design-guide-goals {
  display: grid;
  gap: 5px;
}

.design-guide-head {
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 12px;
}

.design-guide-head strong { font-size: 1rem; }
.design-guide-head .eyebrow,
.design-guide-copy > span,
.design-guide-goals > span {
  color: #b9c8c0;
  font-size: .72rem;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.design-guide-mode {
  padding: 7px 9px;
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .06);
  color: #f4f7f2;
  font-size: .78rem;
}

.design-guide-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.design-guide-progress span {
  display: grid;
  place-items: center;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #91a098;
  font-size: .76rem;
  font-weight: 900;
}

.design-guide-progress span[data-state="complete"] {
  background: rgba(200, 255, 87, .12);
  border-color: rgba(200, 255, 87, .26);
  color: #dfff94;
}

.design-guide-progress span[data-state="current"] {
  background: #c8ff57;
  border-color: #c8ff57;
  color: #172016;
  box-shadow: 0 0 0 4px rgba(200, 255, 87, .1);
}

.design-guide-copy h2 {
  margin: 0;
  color: #fff;
  font-size: 1.22rem;
  line-height: 1.08;
}

.design-guide-copy p,
.design-guide-trust {
  margin: 0;
  color: #b9c8c0;
  line-height: 1.5;
}

.design-guide-goals > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.design-guide-goals button {
  min-height: 38px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .05);
  color: #d7e0dc;
  font-size: .76rem;
  font-weight: 800;
}

.design-guide-goals button[aria-pressed="true"] {
  border-color: rgba(200, 255, 87, .45);
  background: rgba(200, 255, 87, .14);
  color: #efffcf;
}

.design-guide-smart-default {
  margin-top: 3px;
  padding: 9px 10px;
  border: 1px solid rgba(200, 255, 87, .14);
  border-radius: 11px;
  background: rgba(200, 255, 87, .06);
  color: #b9c8c0;
  line-height: 1.4;
}
.design-guide-smart-default strong { color: #eaffb9; }

.design-guide-action { width: 100%; }
.design-guide-continue {
  justify-self: start;
  color: #dfff94;
  font-weight: 800;
  text-decoration: none;
}

body.design-guided-mode .tools > h2:first-of-type,
body.design-guided-mode .tools > p.muted,
body.design-guided-mode .tools .array-config,
body.design-guided-mode .tools #array-summary,
body.design-guided-mode .tools label:has(#tilt),
body.design-guided-mode .tools label:has(#azimuth),
body.design-guided-mode .tools label:has(#optimization-goal),
body.design-guided-mode .tools #optimization-goal-help,
body.design-guided-mode .tools #update-selected-array,
body.design-guided-mode .tools .route-config,
body.design-guided-mode .tools #route-summary,
body.design-guided-mode .tools #route {
  display: none;
}

body.design-guided-mode .tool-grid button:not([data-tool="property"]):not([data-tool="select"]) {
  display: none;
}

body.design-guided-mode .tools {
  scroll-behavior: smooth;
}

body.design-guided-mode #solve {
  box-shadow: 0 0 0 4px rgba(200, 255, 87, .08);
}

@media (max-width: 900px) {
  /* The existing mobile workflow sheet is already the entry point. Do not add
     another expert-mode row that pushes the map/sheet toggle below the canvas. */
  body:not(.design-guided-mode) .design-guide-launch { display: none; }
  .design-guide { position: relative; top: auto; }
  .design-guide-head { grid-template-columns: 1fr; }
  .design-guide-mode { justify-self: start; }
}

@media (prefers-reduced-motion: reduce) {
  .design-guide,
  .design-guide * { scroll-behavior: auto !important; }
}
