/* Stamp tray and Router list rules used on the map page at first paint. mux5-map-20261114: the Stamp & Texture Maker
   dialog rules (.smk, Texture tab, Photo to stamp, walls, phone layout) moved to stamp-maker-ui.css, which loads with
   the maker on first use (map-phone-bar.js). The rules themselves are unchanged. */
#btn-stamp-maker[hidden]{display:none!important}
/* Map Builder stamp tray: clean names, rename, finder, "just saved" glow */
.stamp-popup-tray .stamp-item .name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;max-width:100%;white-space:normal;overflow:hidden;text-overflow:ellipsis;overflow-wrap:anywhere;line-height:1.15}
#selected-stamp-name,.selected-stamp-name{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%;min-width:0}
.stamp-popup-tray .stamp-custom-ren{position:absolute;top:.2rem;left:.2rem;z-index:2;width:1.35rem;height:1.35rem;padding:0;border-radius:999px;border:1px solid rgba(138,104,60,.7);background:rgba(4,19,30,.9);color:inherit;font-size:.8rem;line-height:1;cursor:pointer}
.stamp-popup-tray .stamp-ren-in{width:100%;min-width:0;font:inherit;font-size:.78rem;padding:2px 4px;background:#000F17;color:#F2D7AC;border:1px solid #F2D7AC;border-radius:4px}
.stamp-popup-tray .stamp-item-wrap.is-new>.stamp-item{box-shadow:0 0 0 2px #F2D7AC,0 0 14px rgba(242,215,172,.45)}
.stamp-tray-finder{display:flex;gap:6px;align-items:center;margin:6px 0 4px}
.stamp-tray-finder input{flex:1;min-width:0;min-height:30px;padding:4px 8px;background:#000F17;color:#F2D7AC;border:1px solid rgba(138,104,60,.8);border-radius:5px;font:inherit}
.stamp-tray-finder [hidden]{display:none!important}
@media (max-width:760px){.stamp-tray-finder input,.stamp-tray-finder .mini-upload-btn{min-height:44px}.stamp-popup-tray .stamp-custom-ren,.stamp-popup-tray .stamp-custom-del{width:44px;height:44px;font-size:1.1rem}}
/* smk7: Edit (tray, Router list) + Router "My stamps" sections */
.stamp-popup-tray .stamp-custom-edit{position:absolute;top:.2rem;left:1.75rem;z-index:2;width:1.35rem;height:1.35rem;padding:0;border-radius:999px;border:1px solid rgba(138,104,60,.7);background:rgba(4,19,30,.9);color:inherit;font-size:.8rem;line-height:1;cursor:pointer}
.stamp-popup-tray .stamp-custom-edit:hover,.stamp-popup-tray .stamp-custom-ren:hover{border-color:#F2D7AC}
.stamp-popup-tray .stamp-custom-ren{font-size:.62rem;letter-spacing:-.02em}
.stamp-popup-tray .stamp-sec-h{grid-column:1/-1;margin:.45rem 0 .1rem;font-family:var(--da-font-display,Cinzel,serif);font-size:.74rem;letter-spacing:.08em;text-transform:uppercase;color:#F2D7AC;border-bottom:1px solid rgba(138,104,60,.55);padding-bottom:.2rem}
.stamp-popup-tray .stamp-sec-h:first-child{margin-top:0}
.stamp-router-hint{display:block;grid-column:1/-1;margin:0 0 .35rem;padding:.4rem .6rem;border:1px dashed rgba(201,119,59,.75);border-radius:6px;font-size:.78rem;line-height:1.35;color:#F2D7AC;background:rgba(201,119,59,.08)}
@media (max-width:760px){
  .stamp-popup-tray .stamp-custom-edit{width:44px;height:44px;left:auto;top:auto;bottom:.2rem;right:.2rem;font-size:1.1rem}
  .stamp-popup-tray .stamp-custom-ren{font-size:.9rem}
}
