#need-guide-dialog {
  --guide-accent: #955531;
  position: fixed;
  inset: 0;
  width: min(500px, calc(100% - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 38px);
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  color: var(--ink);
  background: #fffdf8;
  border: 1px solid #d8cbbd;
  border-radius: 20px;
  box-shadow: 0 18px 72px #30221838;
}
#need-guide-dialog::backdrop { background: #31251c87; }
body:has(#need-guide-dialog[open]) { overflow: hidden; }
.ng-top, .ng-step-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ng-top { border-bottom: 1px solid var(--line); padding: 13px 21px; }
.ng-name { display: inline-flex; gap: 8px; align-items: center; color: var(--guide-accent); font-size: .95rem; font-weight: 750; }
.ng-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.ng-close { display: grid; place-items: center; width: 42px; height: 42px; padding: 0; background: none; color: var(--ink); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.ng-close:hover { background: #f4ece1; }
.ng-body { padding: 23px clamp(18px, 5vw, 32px) 30px; }
.ng-step { color: var(--guide-accent); font-size: .85rem; font-weight: 720; margin: 0; }
#need-guide-heading { outline: none; margin: 8px 0 6px; font: 750 clamp(1.5rem, 4vw, 2.1rem)/1.25 var(--sans); letter-spacing: -.035em; }
.ng-intro { margin: 0 0 19px; color: #66584c; font-size: .96rem; }
.ng-topic-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.ng-topic, .ng-action {
  min-width: 0;
  padding: 14px 15px;
  border: 1px solid #d5c7b8;
  border-radius: 10px;
  background: #fffaf3;
  color: var(--ink);
  text-align: start;
  text-decoration: none;
  cursor: pointer;
}
.ng-topic { font: 700 1rem/1.4 var(--sans); min-height: 60px; }
.ng-topic:is(:hover,:focus-visible), .ng-action:is(:hover,:focus-visible) { border-color: var(--guide-accent); background: #f5e8da; }
.ng-back { padding: 5px; border: 0; background: transparent; color: var(--guide-accent); font-size: .87rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.ng-actions { display: grid; gap: 8px; }
.ng-action { display: grid; gap: 2px; }
.ng-action:first-child { background: #f3e6d6; border-color: #c5a589; }
.ng-action strong { font: 720 1rem/1.45 var(--sans); }
.ng-action span { font: 400 .88rem/1.55 var(--sans); color: #5d554d; }
.ng-error { margin: 11px 0 0; color: #873c27; font-size: .9rem; }
@media(max-width: 600px) {
  #need-guide-dialog { inset: auto 0 0; width: 100%; max-height: calc(100dvh - 16px); margin: 0; border-radius: 20px 20px 0 0; }
  .ng-top { padding: 9px 15px; }
  .ng-body { padding: 16px 17px max(23px, env(safe-area-inset-bottom)); }
}
