.counter-stack-inspector{position:fixed;z-index:40;width:360px;max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px);overflow:auto;overscroll-behavior:contain;padding:10px;border:1px solid var(--stack-border,#9aaba8);border-radius:6px;background:var(--stack-paper,#f6f3e6);color:var(--stack-ink,#263c49);box-shadow:0 8px 28px #12263350;box-sizing:border-box;touch-action:pan-y}
.counter-stack-inspector[hidden]{display:none}
.counter-stack-inspector header{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px;font-size:12px}
.counter-stack-inspector button{font:inherit;color:inherit;cursor:pointer}
.counter-stack-inspector header button{padding:7px 10px;min-height:36px}
.counter-stack-items{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.counter-stack-item{min-width:0;text-align:center;padding:4px;border:2px solid transparent;border-radius:3px}
.counter-stack-item.is-selected{border-color:#b98423}
.counter-stack-inspector .counter-stack-face{display:block;width:100%;border:0;padding:0;background:transparent;border-radius:0}
.counter-stack-face svg,.counter-stack-face img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(1px 2px 1px #1f354650)}
.counter-stack-face span{display:block;font-size:11px;line-height:1.45;margin:7px 0 4px;overflow-wrap:anywhere}
.counter-stack-item small{display:block;font-size:10px;line-height:1.5;min-height:30px}
.counter-stack-inspector .counter-stack-select{width:100%;font-size:11px;padding:6px 3px;min-height:40px;margin-top:5px}
.counter-stack-inspector button:focus-visible{outline:3px solid #b98423;outline-offset:2px}
