/* msl1-20261017 — Map Studio stamp browser (mockup stamp-browser A / B / C). Same tiles, same ids; layout only. */
html body.mb-v2 #mb-shell .sb{display:flex;flex-direction:column;gap:8px;min-width:0}
html body.mb-v2 #mb-shell .sb-search{position:relative;display:flex;align-items:center}
html body.mb-v2 #mb-shell .sb-search-ico{position:absolute;left:9px;color:var(--lc-dim);font-size:14px;pointer-events:none}
html body.mb-v2 #mb-shell #sb-search{width:100%;box-sizing:border-box;padding:6px 28px 6px 26px;border-radius:8px;min-height:32px;font-size:13px}
html body.mb-v2 #mb-shell .sb-x{position:absolute;right:4px;width:24px;height:24px;border:0!important;background:none;cursor:pointer;font-size:16px;line-height:1}
html body.mb-v2 #mb-shell .sb-k{margin:8px 0 3px;font:600 9.5px var(--lc-sans);letter-spacing:.12em;text-transform:uppercase;color:var(--lc-dim)}
html body.mb-v2 #mb-shell .sb-k:first-child{margin-top:0}
html body.mb-v2 #mb-shell .sb-badge{display:inline-block;margin-left:4px;padding:0 6px;border-radius:999px;background:var(--lc-copper);color:var(--lc-navy);font:700 9px/16px var(--lc-sans);letter-spacing:.06em;text-transform:uppercase;vertical-align:1px}
html body.mb-v2 #mb-shell .sb-badge.is-other{background:transparent;color:var(--lc-dim);border:1px solid var(--lc-line)}
html body.mb-v2 #mb-shell .sb-recent{display:flex;align-items:center;gap:6px;min-width:0}
html body.mb-v2 #mb-shell .sb-recent[hidden]{display:none}
html body.mb-v2 #mb-shell .sb-recent .sb-k{margin:0}
html body.mb-v2 #mb-shell .sb-recent-row{display:flex;gap:4px;overflow:hidden;min-width:0}
html body.mb-v2 #mb-shell .sb-rec{flex:0 0 34px;width:34px;height:34px;padding:2px;border:1px solid var(--lc-line)!important;border-radius:6px;background:var(--lc-field);cursor:pointer;display:flex;align-items:center;justify-content:center;overflow:hidden}
html body.mb-v2 #mb-shell .sb-rec img{max-width:100%;max-height:100%;object-fit:contain}
html body.mb-v2 #mb-shell .sb-body{display:grid;grid-template-columns:118px minmax(0,1fr);gap:10px;min-width:0}
html body.mb-v2 #mb-shell .sb-nav{display:flex;flex-direction:column;min-width:0;border-right:1px solid var(--lc-line);padding-right:8px}
html body.mb-v2 #mb-shell .sb-nav-b{display:flex;align-items:center;justify-content:space-between;gap:4px;width:100%;min-height:26px;padding:3px 6px;border:1px solid transparent!important;border-radius:6px;background:none;color:var(--lc-cream)!important;font:500 12px/1.2 var(--lc-sans);text-align:left;cursor:pointer}
html body.mb-v2 #mb-shell .sb-nav-b:hover{border-color:var(--lc-line)!important}
html body.mb-v2 #mb-shell .sb-nav-b.is-on{background:rgba(201,119,59,.16);border-color:var(--lc-copper)!important}
html body.mb-v2 #mb-shell .sb-nav-b.is-dim{opacity:.45}
html body.mb-v2 #mb-shell .sb-nav-l{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.mb-v2 #mb-shell .sb-nav-n{flex:0 0 auto;color:var(--lc-dim);font-size:11px}
html body.mb-v2 #mb-shell .sb-none{margin:0;font-size:11px;line-height:1.35;color:var(--lc-dim)}
html body.mb-v2 #mb-shell .sb-nav-select{display:none;width:100%;min-height:32px;font-size:13px;border-radius:8px}
html body.mb-v2 #mb-shell .sb-main{min-width:0;display:flex;flex-direction:column;gap:6px}
html body.mb-v2 #mb-shell .sb-main-h{display:flex;align-items:baseline;flex-wrap:wrap;gap:6px}
html body.mb-v2 #mb-shell .sb-main-t{margin:0;font:600 13px var(--da-font-display,Georgia,serif);letter-spacing:.06em;text-transform:uppercase;color:var(--lc-cream)}
html body.mb-v2 #mb-shell .sb-main-n{font-size:11px;color:var(--lc-dim)}
html body.mb-v2 #mb-shell .sb-types{display:flex;flex-wrap:wrap;gap:4px}
html body.mb-v2 #mb-shell .sb-types[hidden]{display:none}
/* the pack list replaces the Collection dropdown; the one search replaces "Search stamps" + ★ My stamps (same state underneath) */
html body.mb-v2 #mb-shell.sb-on #stamp-collection-row>label[for="stamp-collection-select"],html body.mb-v2 #mb-shell.sb-on #stamp-collection-select,html body.mb-v2 #mb-shell.sb-on #stamp-tray-finder{display:none!important}
html body.mb-v2 #mb-shell.sb-on #stamp-collection-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0}
html body.mb-v2 #mb-shell.sb-on.sb-otherpack #stamp-popup-types{display:none!important}
/* tiles: Favorites star + pack sections (Favorites / Recent / search) */
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-item-wrap{position:relative}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav{position:absolute;top:1px;right:1px;z-index:2;width:18px;height:18px;padding:0;border:0!important;border-radius:4px;background:rgba(0,15,23,.72);color:var(--lc-dim)!important;font-size:12px;line-height:18px;text-align:center;cursor:pointer;opacity:0;transition:opacity .12s}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-item-wrap:hover .stamp-fav,html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav:focus-visible,html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav.is-on{opacity:1}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav.is-on{color:var(--lc-copper)!important}
@media (hover:none){html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav{opacity:.85}}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-item-wrap.is-other-kind .stamp-item{opacity:.92}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-sec-pack{grid-column:1/-1;display:flex!important;align-items:center;flex-wrap:wrap;gap:6px;margin:6px 0 0;font-size:11px;color:var(--lc-dim)}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-sec-pack:first-child{margin-top:0}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-sec-name{font:600 12px var(--da-font-display,Georgia,serif);letter-spacing:.06em;text-transform:uppercase;color:var(--lc-cream)}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-sec-fits{padding:0 6px;border-radius:999px;background:var(--lc-copper);color:var(--lc-navy);font:700 9px/16px var(--lc-sans);text-transform:uppercase;letter-spacing:.06em}
html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-sec-all{margin-left:auto;padding:0 4px;border:0!important;background:none;color:var(--lc-copper)!important;font:600 11px var(--lc-sans);cursor:pointer}
html body.mb-v2 #mb-shell #stamp-popup-tray.is-grouped{overflow:visible}
/* bottom preview bar */
html body.mb-v2 #mb-shell .sb-bar{display:none;order:99;margin-top:auto;position:sticky;bottom:0;z-index:3;padding:8px 0 2px;border-top:1px solid var(--lc-line);background:var(--lc-card,#04131E)}
html body.mb-v2 #mb-shell[data-mb-rtool=stamp] .sb-bar{display:block}
html body.mb-v2 #mb-shell .sb-bar-top{display:flex;align-items:center;gap:8px;min-width:0}
html body.mb-v2 #mb-shell .sb-bar-thumb{flex:0 0 40px;width:40px;height:40px;border:1px solid var(--lc-line);border-radius:6px;background:var(--lc-field);display:flex;align-items:center;justify-content:center;overflow:hidden}
html body.mb-v2 #mb-shell .sb-bar-thumb img{max-width:100%;max-height:100%;object-fit:contain}
html body.mb-v2 #mb-shell .sb-bar-txt{flex:1 1 auto;min-width:0;display:flex;flex-direction:column}
html body.mb-v2 #mb-shell .sb-bar-txt strong{font-size:13px;color:var(--lc-cream);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body.mb-v2 #mb-shell .sb-bar-sub{font-size:11px;color:var(--lc-dim)}
html body.mb-v2 #mb-shell .sb-bar-rr label.stamp-check{display:flex!important;align-items:center;gap:6px;margin:0;font-size:12px!important;white-space:nowrap}
html body.mb-v2 #mb-shell .sb-bar-fav{flex:0 0 28px;width:28px;height:28px;padding:0;border:1px solid var(--lc-line)!important;border-radius:6px;background:none;color:var(--lc-cream)!important;cursor:pointer}
html body.mb-v2 #mb-shell .sb-bar-fav[aria-pressed=true]{color:var(--lc-copper)!important;border-color:var(--lc-copper)!important}
html body.mb-v2 #mb-shell .sb-bar-fav[hidden]{display:none}
html body.mb-v2 #mb-shell .sb-bar-row{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:8px;margin-top:6px}
html body.mb-v2 #mb-shell .sb-bar-row>label{margin:0!important;font-size:12px!important;white-space:nowrap;min-width:84px}
html body.mb-v2 #mb-shell .sb-bar-row .stamp-slider-hit{min-width:0;margin:0!important;padding:0!important}
html body.mb-v2 #mb-shell .sb-bar-row input[type=range]{width:100%}
html body.mb-v2 #mb-shell .sb-bar-row .stamp-rotate-exact{display:flex;align-items:center;gap:2px;font-size:0!important}
html body.mb-v2 #mb-shell .sb-bar-row .stamp-rotate-exact input{width:52px;font-size:12px;min-height:26px}
html body.mb-v2 #mb-shell .sb-bar-row .stamp-rotate-exact::after{content:"°";font-size:12px}
/* the browser needs room beside the rail (desktop) */
@media (min-width:1101px){
  html body.mb-v2 #editor-view #mb-shell.mb-rail.sb-on[data-mb-rtool=stamp],html body.mb-v2 #editor-view #mb-shell.mb-rail.sb-on.mb-wallpick{grid-template-columns:470px minmax(0,1fr) 230px}
  html body.mb-v2 #mb-shell .sb-body{grid-template-columns:minmax(0,1fr)}
  html body.mb-v2 #mb-shell .sb-nav{display:none}
  html body.mb-v2 #mb-shell .sb-pills{display:flex}
  html body.mb-v2 #mb-shell.sb-on #stamp-collection-credit{display:none!important}
  html body.mb-v2 #mb-shell #stamp-popup-types,html body.mb-v2 #mb-shell .sb-types{flex-wrap:wrap;overflow:visible;mask-image:none;-webkit-mask-image:none}
}
html body.mb-v2 #mb-shell #stamp-popup-types,html body.mb-v2 #mb-shell .sb-types{display:flex;flex-wrap:wrap;align-items:center;gap:4px;max-width:100%;min-width:0;overflow:visible}
html body.mb-v2 #mb-shell #stamp-popup-types>button.chip,html body.mb-v2 #mb-shell .sb-types>button.chip{flex:0 0 auto;width:auto;max-width:100%;min-width:max-content;height:auto;min-height:24px;padding:4px 10px;border-radius:999px;white-space:nowrap;overflow:visible;text-overflow:clip;font:600 12px/1.2 var(--lc-sans)}
html body.mb-v2 #mb-shell #stamp-popup-types>.sb-catlab{display:flex;align-items:center;gap:8px;width:100%;min-width:0;margin:0;font:600 12px/1.2 var(--lc-sans);color:var(--lc-cream);text-transform:none;letter-spacing:0}
html body.mb-v2 #mb-shell #stamp-popup-types>.sb-catlab select.sb-cat{flex:1 1 auto;width:auto;min-width:0;min-height:28px;border-radius:999px;padding:4px 28px 4px 10px;font:600 12px var(--lc-sans)}
html body.mb-v2 #mb-shell .sb-pills{display:flex;flex-wrap:nowrap;gap:6px;overflow:hidden;min-width:0}
html body.mb-v2 #mb-shell .sb-pills.sb-pack-hidden{display:none}
html body.mb-v2 #mb-shell .sb-nav-select.sb-pack-fallback{display:block}
html body.mb-v2 #mb-shell .sb-pill{flex:0 0 auto;border:1px solid var(--lc-line)!important;border-radius:999px;background:transparent;color:var(--lc-cream)!important;font:600 12px/1 var(--lc-sans);padding:6px 10px;cursor:pointer;white-space:nowrap}
html body.mb-v2 #mb-shell .sb-pill.is-on{background:var(--lc-cream)!important;color:#04131e!important;border-color:var(--lc-cream)!important}
html body.mb-v2 #mb-shell .sb-pill span{opacity:.7;font-weight:500}
html body.mb-v2 #mb-shell .sb-main-h{align-items:center}
html body.mb-v2 #mb-shell .sb-sizes{margin-left:auto;display:inline-flex;border:1px solid var(--lc-line);border-radius:999px;overflow:hidden}
html body.mb-v2 #mb-shell .sb-size{border:0!important;background:transparent;color:var(--lc-cream)!important;font:700 11px var(--lc-sans);padding:3px 8px;cursor:pointer}
html body.mb-v2 #mb-shell .sb-size.is-on{background:var(--lc-copper)!important;color:#04131e!important}
html body.mb-v2 #mb-shell .sb-add{border:1px solid var(--lc-copper)!important;border-radius:999px;background:transparent;color:var(--lc-cream)!important;font:600 11px var(--lc-sans);padding:3px 8px;cursor:pointer}
html body.mb-v2 #mb-shell .sb-yours{display:flex;flex-direction:column;gap:4px;padding:6px;border:1px solid var(--lc-line);border-radius:8px;background:var(--lc-field,#020d15)}
html body.mb-v2 #mb-shell .sb-yours[hidden]{display:none}
html body.mb-v2 #mb-shell .sb-yours-row{display:flex;align-items:center;gap:4px}
html body.mb-v2 #mb-shell .sb-yours-row>button:first-child,html body.mb-v2 #mb-shell .sb-yours-act{flex:1;text-align:left;border:0!important;background:none;color:var(--lc-cream)!important;font:500 12px var(--lc-sans);cursor:pointer;padding:4px 6px}
html body.mb-v2 #mb-shell .sb-mini{border:0!important;background:none;color:var(--lc-cream)!important;cursor:pointer}
html body.mb-v2 #mb-shell .sb-colmenu{display:flex;flex-direction:column;gap:2px}
html body.mb-v2 #mb-shell .sb-rr-ico{font-size:0!important;width:28px;height:28px;justify-content:center;border:1px solid var(--lc-line)!important;border-radius:6px;padding:0!important}
html body.mb-v2 #mb-shell .sb-rr-ico .sb-rr-mark{font-size:16px;line-height:1}
html body.mb-v2 #mb-shell .sb-rr-ico:has(input:checked){color:var(--lc-copper)!important;border-color:var(--lc-copper)!important}
html body.mb-v2 #mb-shell #stamp-popup-title{display:none}
html body.mb-v2 #mb-shell .stamp-more{position:absolute;left:1px;bottom:1px;z-index:2;width:18px;height:18px;padding:0;border:0!important;border-radius:4px;background:rgba(0,15,23,.72);color:var(--lc-cream)!important;cursor:pointer;opacity:0}
html body.mb-v2 #mb-shell .stamp-item-wrap:hover .stamp-more,html body.mb-v2 #mb-shell .stamp-more:focus-visible{opacity:1}
html body.mb-v2 #mb-shell .stamp-more-menu{position:absolute;left:0;bottom:20px;z-index:5;display:flex;flex-direction:column;min-width:160px;background:var(--lc-card,#04131E);border:1px solid var(--lc-line);border-radius:8px;padding:4px}
html body.mb-v2 #mb-shell .stamp-more-menu button{border:0!important;background:none;color:var(--lc-cream)!important;text-align:left;font:500 12px var(--lc-sans);padding:6px 8px;cursor:pointer}
/* narrow desktop + phone: the pack list becomes one dropdown */
@media (max-width:1100px){
  html body.mb-v2 #mb-shell .sb-body{grid-template-columns:minmax(0,1fr)}
  html body.mb-v2 #mb-shell .sb-nav{display:none}
}
@media (max-width:600px){
  html body.mb-v2 #mb-shell .sb-bar{position:static}
  html body.mb-v2 #mb-shell #stamp-popup-tray .stamp-fav{width:24px;height:24px;line-height:24px;font-size:14px}
  html body.mb-v2 #mb-shell .sb-rec{flex-basis:40px;width:40px;height:40px}
  html body.mb-v2 #mb-shell .sb-bar-row>label{min-width:72px}
}
/* top bar: Save spinner + "Saved" */
html body.mb-v2 #mb-shell .mb-save-state{font-size:11px;color:var(--lc-dim);white-space:nowrap}
html body.mb-v2 #mb-shell .mb-tip{font-size:12px;color:var(--lc-dim,#cbb892);white-space:nowrap}
html body.mb-v2 #mb-shell .mb-save-state.is-saved{color:#9fd39b}
html body.mb-v2 #mb-shell .mb-save-state.is-failed{color:#f0a08a}
html body.mb-v2 #mb-shell #mb-save .mb-spin{display:none;width:10px;height:10px;margin-right:5px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-1px;animation:mbspin .7s linear infinite}
html body.mb-v2 #mb-shell #mb-save.is-saving .mb-spin{display:inline-block}
@keyframes mbspin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){html body.mb-v2 #mb-shell #mb-save .mb-spin{animation-duration:2s}}
@media (max-width:600px){html body.mb-v2 #mb-shell .mb-save-state{display:none}}
/* grouped views (Favorites / Recent / search): no per-pack chips or credit line */
html body.mb-v2 #mb-shell.sb-grouped #stamp-popup-types,html body.mb-v2 #mb-shell.sb-grouped #stamp-collection-credit,html body.mb-v2 #mb-shell.sb-otherpack #stamp-collection-credit{display:none!important}
html body.mb-v2 #mb-shell .sb-bar .rotate-snap-ticks{display:none!important}
html body.mb-v2 #mb-shell .sb-bar label{text-transform:none!important;letter-spacing:0!important}
@media (min-width:601px){
  html body.mb-v2 #mb-shell .sb-bar{display:none;grid-template-columns:minmax(0,1fr) minmax(0,1fr);column-gap:12px;padding-bottom:4px}
  html body.mb-v2 #mb-shell[data-mb-rtool=stamp] .sb-bar{display:grid}
  html body.mb-v2 #mb-shell .sb-bar-top{grid-column:1/-1}
  html body.mb-v2 #mb-shell .sb-bar-row{grid-template-columns:auto minmax(0,1fr) auto;gap:6px}
  html body.mb-v2 #mb-shell .sb-bar-row>label{min-width:0}
}
/* msl1: Export stays in the bar (the bar wraps instead of hiding it) */
@media (min-width:601px){html body.mb-v2 #editor-view .mb-top>.mb-btn.mb-desk[data-mb-proxy="#btn-export"]{display:inline-flex}html body.mb-v2 #editor-view .mb-top{flex-wrap:wrap;row-gap:4px}}
html body.mb-v2 #mb-shell .sb-bar label{font-variant:normal!important;font-variant-caps:normal!important}
html body.mb-v2 #mb-shell .sb-grp{display:flex;align-items:center;justify-content:space-between;width:100%;padding:2px 0;border:0!important;background:none;cursor:pointer;text-align:left}
html body.mb-v2 #mb-shell .sb-grp-b[hidden]{display:none}
/* desktop: Size / Rotate / Random rotation sit in the bottom bar on the Library + Look tabs; Shadow & order shows only its own controls */
@media (min-width:601px){html body.mb-v2 #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=shadow] .sb-bar{display:none!important}}
/* msl1b-20261017 */
#sb-search::-webkit-search-cancel-button,#sb-search::-webkit-search-decoration{-webkit-appearance:none;appearance:none;display:none}
#sb-search::-ms-clear{display:none;width:0;height:0}
html body.mb-v2 #mb-shell .sb-nav-b.has-by{min-height:28px;padding-top:1px;padding-bottom:1px;align-items:center}
html body.mb-v2 #mb-shell .sb-nav-l{display:flex;flex-direction:column;align-items:flex-start;line-height:1.05;text-align:left}
html body.mb-v2 #mb-shell .sb-nav-name{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
html body.mb-v2 #mb-shell .sb-nav-by{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px;color:var(--lc-dim)}
.sb-tip{position:fixed;z-index:10050;max-width:280px;padding:5px 8px;border:1px solid var(--lc-copper,#c9773b);border-radius:6px;background:#0d131b;color:#f1e6d2;font-size:12px;line-height:1.3;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.45)}
.sb-tip[hidden]{display:none}
#selection-info{display:inline-flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
#selection-info .sel-sep{color:var(--lc-dim,#8a8f98)}
.stamp-sun-box{display:flex;flex-direction:column;gap:3px}
.stamp-sun-checks{display:flex;flex-wrap:wrap;gap:2px 14px}
.stamp-sun-fields{display:flex;flex-direction:column;gap:1px}
.stamp-sun-note{margin:2px 0 0;font-size:11px;color:var(--lc-dim,#8a8f98)}
.stamp-sun-row label{display:flex;justify-content:space-between;font-size:12px}
/* msl1b (5): real scale input kept for the editor, off screen; the log slider is the one you use */
.sb-scale-real{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important}
/* msl1b (DM Tester): range inputs had 10px padding + a border from the generic input style, so the thumb sat
   10px in from the track ends (Rotate 0° looked like 38%) and drags landed off the pointer. Ranges get no padding /
   border, and on desktop Scale and Rotate each get a full-width row (a 50px Rotate track was too short). */
html body.mb-v2 #mb-shell input[type=range],html body.mb-v2 #editor-view input[type=range]{padding:0!important;border:0!important;margin:0!important;min-height:22px;height:22px;box-shadow:none!important}
@media (min-width:1101px){
  html body.mb-v2 #mb-shell .sb-bar{grid-template-columns:minmax(0,1fr)!important}
  html body.mb-v2 #mb-shell .sb-bar-row{margin-top:0}
  html body.mb-v2 #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-pills{flex-wrap:nowrap}
  html body.mb-v2 #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-pill{padding:2px 6px;font-size:11px}
}
/* Library tab fills the panel height: full tile rows between the category/title and the pager.
   The preview row is gone. Random, Flip H, and Flip V sit on the Rotate row. */
html body.mb-v2 #mb-shell .sb-random-real{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip:rect(0 0 0 0)!important;clip-path:inset(50%)!important;white-space:nowrap!important;margin:-1px!important;padding:0!important;border:0!important}
html body.mb-v2 #mb-shell .sb-rot-extra{display:flex;align-items:center;gap:3px;flex:0 0 auto}
html body.mb-v2 #mb-shell .sb-mini-btn{font:600 10px/1 var(--lc-sans);padding:2px 4px;min-height:20px;border:1px solid var(--lc-line)!important;border-radius:5px;background:transparent;color:var(--lc-cream)!important;cursor:pointer}
html body.mb-v2 #mb-shell .sb-mini-btn[aria-pressed=true]{border-color:var(--lc-copper)!important;color:var(--lc-copper)!important}
html body.mb-v2 #mb-shell #sb-bar-rot>label>span{display:none}
html body.mb-v2 #mb-shell .sb-bar-row .stamp-rotate-exact input{width:36px;min-height:20px;padding:1px 2px}
#selection-info .stamp-flip-btn{font:600 11px/1 var(--lc-sans);padding:2px 6px;min-height:22px;border-radius:5px;border:1px solid var(--lc-line,#8A683C);background:transparent;color:inherit;cursor:pointer}
#selection-info .stamp-flip-btn[aria-pressed=true]{border-color:var(--lc-copper,#C9773B);color:var(--lc-copper,#C9773B)}
@media (min-width:601px){
  html body.mb-v2 #mb-shell[data-mb-rtool=stamp] .sb-bar{display:flex;flex-direction:column;gap:2px;padding:2px 0 0;margin-top:2px}
  html body.mb-v2 #mb-shell .sb-bar-row{margin-top:0;min-height:22px;grid-template-columns:auto minmax(0,1fr) auto}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp]:is([data-mb-stab=lib],[data-mb-stab=look]) #mb-opts{overflow:hidden;padding:4px 8px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-ctx-h{margin:0 0 2px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp] .mb-ctx-top{display:none}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp] .mb-stabs{margin-top:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=shadow] #mb-opts{padding:4px 8px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp] #sb-bar{padding-bottom:8px;gap:1px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #side-panel{display:none!important}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;margin:0;padding:0;border:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps .mb-sec-h{display:none}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb{flex:1 1 auto;min-height:0;gap:2px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb-search{min-height:22px;height:22px;padding-top:2px;padding-bottom:2px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-pill{padding:2px 8px;min-height:20px;height:20px;line-height:16px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:2px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-search{width:100%;min-width:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-filter-row{display:flex;align-items:stretch;gap:6px;width:100%;min-width:0;height:22px;max-height:22px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-pack-slot,html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-filter-row #stamp-popup-types{flex:0 0 calc(50% - 3px);width:calc(50% - 3px);max-width:calc(50% - 3px);min-width:0;height:22px;max-height:22px;margin:0;padding:0;border:0;overflow:hidden;display:flex;align-items:stretch}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-pack-slot .sb-pills{width:100%;max-width:100%}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-filter-row #stamp-popup-types>.sb-catlab{display:flex;align-items:stretch;gap:0;width:100%;max-width:100%;height:22px;min-width:0;margin:0;padding:0;line-height:22px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-filter-row select{appearance:none;-webkit-appearance:none;align-self:stretch;width:100%;max-width:100%;height:22px!important;min-height:22px!important;max-height:22px!important;margin:0!important;box-sizing:border-box!important;padding:0 22px 0 8px!important;border:1px solid var(--lc-line)!important;border-radius:6px!important;background-color:var(--lc-field,#020d15)!important;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='%23f1e6d2' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 7px center!important;background-size:10px 6px!important;font:600 12px/20px var(--lc-sans)!important;line-height:20px!important;color:var(--lc-cream)!important;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb-main{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr) auto;align-items:center;gap:2px}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-main-h{grid-column:1;grid-row:1;min-width:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #stamp-collection-row{display:none!important}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps #stamp-popup-tray{grid-column:1;grid-row:2;align-self:stretch;min-height:0;height:100%!important;max-height:none!important;overflow:hidden;grid-template-columns:repeat(var(--sb-cols,4),minmax(0,1fr))!important;grid-template-rows:repeat(var(--sb-rows,2),var(--sb-rowh,84px));gap:6px;justify-content:stretch;align-content:start;align-items:stretch}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps #stamp-popup-tray .stamp-item-wrap{width:auto;min-width:0;height:100%}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps #stamp-popup-tray .stamp-item{width:100%;height:100%;min-height:0;padding:4px;background:#0b1a22!important;border-color:rgba(138,104,60,.45)!important}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps #stamp-popup-tray .stamp-item img{width:100%;height:100%;min-width:0;min-height:0;max-width:none;max-height:none;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-spager{grid-column:1/-1;grid-row:3;margin-top:0;min-height:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-spager .mb-btn{min-height:20px!important;height:20px;padding:0 6px!important}
  html body.mb-v2 #mb-shell[data-mb-rtool=stamp] .sb-bar-row{height:22px;min-height:22px!important;overflow:hidden}
  html body.mb-v2 #mb-shell .sb-bar-row input,html body.mb-v2 #mb-shell .sb-mini-btn{min-height:20px!important;height:20px!important}
@media (max-width:1100px){
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-main-n{display:none}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-main-h{flex-wrap:nowrap;height:22px;min-height:0;overflow:hidden}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb-main{gap:0 6px}
}
  html body.mb-v2 #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=shadow] .sb-bar{display:none!important}
}
@media (min-width:960px) and (max-width:1100px){
  html body.mb-v2 #editor-view #mb-shell.mb-rail.sb-on[data-mb-rtool=stamp]{grid-template-columns:400px minmax(0,1fr) 210px}
}

/* panel-tools-20261110: pin Scale/Rotate/Random/Flip at the panel bottom; grid shrinks or scrolls. */
html body.mb-v2 #editor-view #mb-shell[data-mb-rtool=stamp] #mb-opts{display:flex;flex-direction:column;min-height:0}
html body.mb-v2 #editor-view #mb-shell[data-mb-rtool=stamp] #sb-bar{padding-bottom:10px;padding-top:0;box-sizing:border-box;flex:0 0 auto;position:relative;margin-top:auto;overflow:visible;z-index:3;background:var(--lc-card,#04131E)}
@media (min-width:601px){
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp]:is([data-mb-stab=lib],[data-mb-stab=look]) #mb-opts{overflow:hidden}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-ctx-h{margin:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb,
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-body{gap:0}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps{flex:1 1 auto;min-height:0;overflow:hidden}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb,
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] .sb-body,
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #sb-main{min-height:0;overflow:hidden}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp][data-mb-stab=lib] #mb-stamps #stamp-popup-tray{min-height:0;overflow:auto;grid-template-rows:repeat(var(--sb-rows,2),minmax(0,var(--sb-rowh,84px)))}
  html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-rtool=stamp]:is([data-mb-stab=lib],[data-mb-stab=look]) .sb-bar-row{overflow:visible}
}
@media (max-width:600px){
  html body.mb-v2.map-hall:has(#mb-shell[data-mb-rtool=stamp]) #editor-view,
  html body.mb-v2.map-hall:has(#mb-shell[data-mb-rtool=stamp]) #editor-view.has-tool-options{height:calc(100dvh - var(--mb-hdr,56px))!important;max-height:calc(100dvh - var(--mb-hdr,56px))!important;overflow:hidden!important;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp]{flex:1 1 auto;min-height:0;height:100%;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-center{flex:0 1 62dvh;height:auto;min-height:200px;max-height:62dvh}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-left{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-left>.mb-h,
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-left>.mb-cats,
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-left>.mb-tiles{flex:0 0 auto}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-opts{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-stamps{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #sb,
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] .sb-body,
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #sb-main{flex:1 1 auto;min-height:0;overflow:hidden;display:flex;flex-direction:column}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #mb-stamps #stamp-popup-tray{flex:1 1 auto;min-height:0;max-height:none!important;overflow:auto!important}
  html body.mb-v2 #editor-view .mb-shell[data-mb-rtool=stamp] #sb-bar{position:relative;flex:0 0 auto;margin-top:auto}
}
@media (min-width:601px){
html body.mb-v2 #editor-view #mb-shell.mb-rail[data-mb-stab=look] :is(#side-panel,#stamp-panel){flex:1 1 auto;min-height:0;overflow:auto}
#mb-look-maker{display:none}
#mb-shell[data-mb-stab=look] #mb-look-maker{display:flex;margin-top:8px}
}
