#walkthrough-dialog {
  width:min(640px,94vw);max-width:94vw;
  max-height:min(86vh,760px);padding:0;overflow:hidden;
  color:var(--txt);background:var(--panel);
  border:1px solid #484554;border-radius:12px;
}
@supports (height: 100dvh) { #walkthrough-dialog { max-height:min(86dvh,760px); } }

#walkthrough-dialog[open] {display:flex; flex-direction:column;}
.wd-head,.wd-controls,.wd-footer {flex:none; display:flex; align-items:center; gap:10px; padding:15px 18px;}
.wd-head {justify-content:space-between;padding-bottom:4px;}
#wd-title {margin:0; font:italic 700 34px/1.15 Display,Georgia,serif;}
.wd-controls {padding-block:10px 13px;border-bottom:1px solid var(--line);}
.wd-controls .searchbox {flex:1; min-width:0;}
.wd-controls .region-select {margin:0; height:40px; max-width:44%;}
.wd-controls .region-select select {min-width:0;}
.wd-results {overflow-y:auto; min-height:64px; overscroll-behavior:contain; scrollbar-width:thin; scrollbar-color:#555165 transparent;}
.wd-row {width:100%; min-height:56px; padding:8px 18px; display:flex; align-items:center; gap:11px; text-align:left; border-bottom:1px solid var(--line);}
.wd-row:last-child {border:0;}
.wd-row:hover,.wd-row:focus-visible {background:#272a39;}
.wd-row:focus-visible {outline-offset:-3px;}
.wd-symbol {display:grid; place-items:center; width:31px; height:31px; flex:none; color:var(--cat); border-radius:7px; background:color-mix(in srgb,var(--cat) 12%,var(--panel));}
.wd-row strong,.wd-row small {display:block;}
.wd-row strong {font-size:13px;}
.wd-row small,.wd-empty {color:var(--muted); font-size:12px;}
.wd-row small {margin-top:3px; line-height:1.4;}
.wd-steps {margin-left:auto; white-space:nowrap; color:var(--aqua); font:10px var(--mono);}
.wd-row>svg {color:var(--muted);}
.wd-footer {border-top:1px solid var(--line); justify-content:space-between; color:var(--muted); font:11px var(--mono); padding-block:5px;}
.wd-footer>div {display:flex; gap:5px;}
.wd-footer button {display:grid; place-items:center; width:40px; height:38px; border-radius:5px;}
.wd-footer button:not(:disabled):hover {background:#292d3d; color:var(--txt);}
.wd-empty {padding:12px 18px;}
.wd-return {display:inline-flex; align-items:center; gap:4px; padding:6px 2px; color:var(--aqua); font-size:11px; flex:none;}
.wd-return+.type-badge {margin-left:auto;}
.additional-source-details {margin:1rem 0;border-block:1px solid var(--line);}
.additional-source-details summary {cursor:pointer;padding:.75rem 0;color:var(--aqua);font-weight:600;}
.additional-source-details section {margin:0 0 1rem;}
.additional-source-details h4 {margin:0 0 .3rem;}
.additional-source-details a {color:var(--aqua);font-size:.85em;}
@media(max-width:540px){
  #walkthrough-dialog {max-height:90vh;}
@supports (height: 100dvh) { #walkthrough-dialog { max-height:90dvh; } }

  .wd-controls {flex-direction:column; align-items:stretch;}
  .wd-controls .searchbox {flex:none; height:44px;}
  .wd-controls .region-select {max-width:100%;}
  .wd-head,.wd-controls,.wd-footer,.wd-row {padding-inline:13px;}
  .wd-row {gap:8px;}
  .wd-footer button {height:44px; width:44px;}
}

#detail .loot-box h3{margin:0 0 .45rem;color:inherit}
#detail .loot-box ul{margin:0;padding-left:1.15rem}
#detail .loot-box li+li{margin-top:.35rem}
#detail .safe-details>h3{margin:0 0 .5rem}
