/* AE demo annotations — floating, no backdrop, never blocks the page */
.aims-guide {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 34;
  width: min(400px, calc(100vw - 40px));
  pointer-events: none;
  font-family: "Roboto", system-ui, sans-serif;
}
.aims-guide.is-min { width: auto; }
.aims-guide-fab,
.aims-guide-card,
.aims-guide-min,
.aims-guide-link {
  pointer-events: auto;
}
.aims-guide-fab {
  display: none;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 14px 0 12px;
  border: 0;
  border-radius: 999px;
  background: var(--md-sys-color-primary, #1f497d);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0, 31, 95, 0.28);
}
.aims-guide-fab .ms { font-size: 20px; color: #e8d39a; }
.aims-guide.is-min .aims-guide-fab { display: inline-flex; }
.aims-guide.is-min .aims-guide-card { display: none; }

.aims-guide-card {
  background: var(--md-sys-color-surface-container-lowest, #fff);
  color: var(--md-sys-color-on-surface, #121826);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(18, 24, 38, 0.16);
  outline: 1px solid var(--md-sys-color-outline-variant, #bec6d2);
  outline-offset: -1px;
  max-height: min(46vh, 420px);
  overflow: auto;
  padding: 14px 14px 12px;
}
.aims-guide.is-pulse .aims-guide-card {
  animation: guide-in 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
@keyframes guide-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.aims-guide-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.aims-guide-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--md-sys-color-primary, #1f497d);
}
.aims-guide-head h3 {
  margin: 2px 0 0;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.aims-guide-min {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--md-sys-color-surface-container, #e8edf4);
  color: var(--md-sys-color-on-surface-variant, #3e4a5c);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
}
.aims-guide-min .ms { font-size: 18px; }
.aims-guide-tags { display: flex; flex-wrap: wrap; gap: 4px; margin: 8px 0 6px; }
.aims-guide-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--md-sys-color-secondary-container, #d5e3f2);
  color: var(--md-sys-color-on-secondary-container, #0a1c30);
}
.aims-guide-say {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--md-sys-color-on-surface, #121826);
}
.aims-guide-points {
  margin: 0 0 10px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--md-sys-color-on-surface-variant, #3e4a5c);
}
.aims-guide-points li { margin-bottom: 4px; }
.aims-guide-related {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--md-sys-color-outline-variant, #bec6d2);
  font-size: 11px;
}
.aims-guide-related > span {
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--md-sys-color-on-surface-variant, #3e4a5c);
  margin-right: 2px;
}
.aims-guide-link {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--md-sys-color-primary-container, #d6e4f4);
  color: var(--md-sys-color-on-primary-container, #001433);
  text-decoration: none;
  font-weight: 500;
}
.aims-guide-link:hover { outline: 1px solid var(--md-sys-color-primary, #1f497d); }

body.copilot-open .aims-guide { opacity: 0.35; }
body:has(#aiBoot.is-playing) .aims-guide { visibility: hidden; }

.hifi-dev-actions .seed-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 8px 0 6px;
  border: 1px solid #2a4d8a;
  border-radius: 8px;
  background: #0a2a6e;
  color: #fff;
}
.hifi-dev-actions .seed-picker .ms { font-size: 16px; color: #e8d39a; }
.hifi-dev-actions .seed-picker select {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-size: 12px;
  max-width: min(280px, 42vw);
  padding: 0;
  cursor: pointer;
}
.hifi-dev-actions .seed-picker select option { color: #121826; }

.aims-tour {
  position: fixed;
  inset: 0;
  z-index: 90;
}
.aims-tour-veil {
  position: absolute;
  inset: 0;
  background: rgba(1, 8, 34, 0.42);
}
.aims-tour-spot {
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(1, 8, 34, 0.48);
  outline: 2px solid #2e8bff;
  pointer-events: none;
  transition: top 0.25s ease, left 0.25s ease, width 0.25s ease, height 0.25s ease;
}
.aims-tour-hi { position: relative; z-index: 91; }
.aims-tour-pop {
  position: absolute;
  width: min(400px, calc(100vw - 32px));
  z-index: 92;
  background: #fff;
  color: #121826;
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 16px 48px rgba(1, 8, 34, 0.28);
}
.aims-tour-pop.is-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.aims-tour-progress {
  height: 4px;
  border-radius: 99px;
  background: #e8edf4;
  overflow: hidden;
  margin-bottom: 10px;
}
.aims-tour-progress i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #1f497d, #0e70a7);
  border-radius: 99px;
  transition: width 0.25s ease;
}
.aims-tour-kicker {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1f497d;
}
.aims-tour-pop h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.aims-tour-say {
  margin: 0 0 8px;
  font-size: 13px;
  line-height: 1.5;
}
.aims-tour-points {
  margin: 0 0 12px;
  padding-left: 18px;
  font-size: 12px;
  line-height: 1.45;
  color: #3e4a5c;
}
.aims-tour-points li { margin-bottom: 4px; }
.aims-tour-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.aims-tour-nav { display: flex; gap: 8px; }
.aims-tour-pop .wf-btn { cursor: pointer; }
.aims-tour-pop .wf-btn[disabled] { opacity: 0.4; pointer-events: none; }
body.aims-touring { overflow: hidden; }

@media (max-width: 720px) {
  .aims-guide {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
  }
  .aims-guide-card { max-height: 38vh; }
  .aims-tour-pop { left: 16px !important; right: 16px; width: auto; }
}
