#portfolio-guide {
  position: fixed; inset: 0; z-index: 1100; pointer-events: none;
  padding: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
  color: #edf1f5; font: 14px/1.5 system-ui, -apple-system, sans-serif;
}
#portfolio-guide, #portfolio-guide * { box-sizing: border-box; }
#portfolio-guide button { font: inherit; color: inherit; cursor: pointer; }
#portfolio-guide button:focus-visible { outline: 2px solid #8ed4ce; outline-offset: 3px; }
#portfolio-guide .pg-dot {
  position: absolute; width: 48px; height: 48px; min-width: 48px; padding: 0; border-radius: 50%;
  border: 1px solid rgba(232,220,192,.45); background: #111a25; color: #e8dcc0;
  box-shadow: inset 0 0 0 5px #0b111a, inset 0 0 0 6px rgba(142,212,206,.25), 0 3px 14px #0005;
  display: grid; place-items: center; pointer-events: auto; touch-action: none; user-select: none;
}
#portfolio-guide .pg-dot:hover { border-color: #8ed4ce; }
#portfolio-guide .pg-orb { width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(120deg,#e8dcc0,#8ed4ce); }
#portfolio-guide .pg-panel {
  position: fixed; width: 360px; height: auto; min-height: 0; max-width: calc(100vw - 24px); max-height: min(40vh, 420px);
  padding: 12px; border-radius: 16px; border: 1px solid rgba(232,220,192,.22);
  background: rgba(14,23,34,.98); box-shadow: 0 12px 36px #0006; pointer-events: auto; overflow: auto;
}
#portfolio-guide .pg-panel[hidden] { display: none !important; }
#portfolio-guide .pg-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#portfolio-guide .pg-heading h2 { margin: 0; padding: 0; font: 600 12px/1.4 system-ui, sans-serif; letter-spacing: .1em; text-transform: uppercase; color: #e8dcc0; }
#portfolio-guide .pg-heading button { min-width: 52px; min-height: 36px; padding: 6px 9px; }
#portfolio-guide #portfolio-guide-narration { margin: 12px 0 16px; font: inherit; line-height: 1.55; color: #edf1f5; }
#portfolio-guide .pg-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
#portfolio-guide .pg-pace { display: flex; gap: 6px; margin-left: 1px; }
#portfolio-guide .pg-panel button { border: 1px solid #3c4650; background: #111a25; border-radius: 24px; padding: 8px 10px; min-height: 42px; font-size: 12px; }
#portfolio-guide .pg-panel button:hover:not(:disabled) { background: #1b2936; border-color: #8ed4ce; }
#portfolio-guide .pg-panel button:disabled { opacity: .42; cursor: default; }
#portfolio-guide .pg-panel [aria-pressed="true"] { color: #f1e2b3; border-color: #bbaa79; box-shadow: inset 0 0 0 1px #bbaa7933; }
#portfolio-guide .pg-footer { display: flex; align-items: center; gap: 12px; margin-top: 10px; font-size: 11px; color: #a8b7c4; }
#portfolio-guide-progress { flex: 1; height: 2px; overflow: hidden; background: #34434d; }
#portfolio-guide-progress > span { display: block; height: 100%; background: #8ed4ce; }
#portfolio-guide .pg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.is-portfolio-guide-target { outline: 2px solid #8ed4ce; outline-offset: 6px; scroll-margin-top: 110px; }
@media (max-width: 460px), (max-height: 520px) {
  #portfolio-guide .pg-panel { padding: 8px; }
  #portfolio-guide .pg-heading button { min-height: 36px; padding: 6px 8px; }
  #portfolio-guide #portfolio-guide-narration { margin: 6px 0 4px; line-height: 1.5; }
  #portfolio-guide .pg-footer { margin-top: 6px; }
}
@media (max-height: 520px) {
  #portfolio-guide .pg-panel { max-height: calc(100dvh - 24px); }
}
@media (prefers-reduced-motion: reduce) { #portfolio-guide * { scroll-behavior: auto; transition: none; animation: none; } }
@media print { #portfolio-guide { display: none !important; } .is-portfolio-guide-target { outline: none; } }
