.guide-panel {
  box-sizing: border-box; position: fixed; inset: 0; margin: auto; padding: 0;
  width: min(43.3rem, calc(100% - 2rem)); height: fit-content; max-height: calc(100dvh - 2rem);
  background: #1c1c1f; color: #f5f5f5; border: 1px solid #616164; border-radius: .9rem;
  box-shadow: 0 1rem 4rem #0008; overflow-y: auto; overscroll-behavior: contain;
}
.guide-panel::backdrop { background: rgb(0 0 0 / 68%); }
.guide-panel .install-guide, .standalone-guide .install-guide { padding: 1rem 1.1rem .9rem; }
.standalone-guide { max-width: 43.3rem; }
.standalone-guide .install-guide { border: 1px solid #616164; border-radius: .9rem; background: #1c1c1f; color: #f5f5f5; }
.install-guide .guide-heading {
  display: flex; align-items: flex-start; justify-content: space-between; gap: .7rem; margin: 0 0 1.3rem;
}
.install-guide .guide-heading :is(h1,h2) {
  margin: .15rem 0 0; font: 800 clamp(2rem, 3.15vw, 2.65rem)/1.1 var(--display, var(--sans));
  letter-spacing: -.008em; color: transparent;
}
.install-guide .close-guide {
  display: grid; place-items: center; flex: none; padding: .5rem; margin: -.4rem -.42rem 0 0;
  width: 2.4rem; height: 2.4rem; color: #d9d9dc; background: transparent; border: 0; border-radius: .3rem;
}
.install-guide .close-guide .ui-icon { width: 1.35rem; height: 1.35rem; }
.install-guide .close-guide:hover { background: #35353a; color: #fff; }
.install-guide :focus-visible { outline: 3px solid #ffa55e; outline-offset: 2px; }
.guide-entry-name { margin: -.75rem 0 1rem; color: #cbcbce; }
.install-steps {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .95rem;
  padding: 0; margin: 0; list-style: none;
}
.install-steps li { min-width: 0; text-align: center; }
.install-steps svg {
  display: block; width: 100%; aspect-ratio: 4/3; color: #eee;
  border: 1px solid #58585c; border-radius: .55rem; background: linear-gradient(135deg,#252529,#222225);
  font-family: var(--sans);
}
.install-steps li > span { display: block; margin-top: .45rem; color: #f4f4f5; font-size: 1.08rem; }
.install-steps li > span > span { margin-right: .23em; }
.install-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; }
.install-help { color: #cdcdcf; font-size: .85rem; line-height: 1.45; max-width: 25rem; }
.guide-local-note { color: #b6b6ba; }
.guide-link-action { flex: 0 1 auto; min-width: 0; text-align: right; }
.install-actions .primary-button {
  display: inline-flex; justify-content: center; align-items: center; gap: .45rem; min-height: 2.57rem;
  padding: .6rem 1.12rem; border: 0; border-radius: .38rem; background: #ff7a24; color: #20140b;
  font: 670 1rem/1.3 var(--sans);
}
.install-actions .primary-button:hover { background: #ff9855; }
.install-more { width: 100%; margin-top: 0; }
.install-more summary { width: fit-content; max-width: 100%; padding: .3rem 0; cursor: pointer; color: #ceced3; font-size: .85rem; }
.install-more summary:hover { color: #fff; text-decoration: underline; }
.install-more .guide-fold-body { margin-top: .7rem; padding-top: .7rem; border-top: 1px solid #515156; }
.install-guide .guide-section { border-color: #44444a; }
.install-guide .guide-section :is(h2,h3), .install-guide .guide-section strong { color: #fafafa; }
.install-guide .guide-section li::marker { color: #b8b8bc; }
.install-guide .sample-notice { margin-top: .75rem; color: #e5e5e8; border-color: #525258; background: #29292c; }
.install-guide .guide-version { color: #c5c5c8; }
.install-guide :is(.field-label,.copy-fallback label) { color: #eaeaec; text-align: left; }
.install-guide textarea { background: #161618; color: #eaeaec; border-color: #626265; }
.install-guide .secondary-button { background: #333337; color: #eee; border-color: #67676d; }
.install-guide .copy-status:not(:empty) { color: #fff; border-left-color: #ff9238; background: #333135; text-align: left; }
.install-guide .copy-fallback:not([hidden]) { width: min(100%,32rem); }
@media (max-width: 36rem) {
  .guide-panel { width: 100%; max-width: 100%; max-height: 100dvh; border-inline: 0; border-radius: .55rem; }
  .guide-panel .install-guide, .standalone-guide .install-guide { padding: 1rem; }
  .install-guide .guide-heading { margin-bottom: 1rem; }
  .install-steps { gap: .45rem; }
  .install-steps li > span { font-size: .95rem; }
  .install-actions { display: grid; gap: .6rem; margin-top: 1rem; }
  .guide-link-action, .install-actions .primary-button { width: 100%; }
  .install-more { margin-top: .45rem; }
}
@media (forced-colors: active) {
  .install-steps svg { forced-color-adjust: none; }
  .install-guide .guide-heading :is(h1,h2) { color: CanvasText; }
}
