.tokens-widget{position:absolute;left:350px;right:350px;bottom:585px;padding:14px 16px 10px;border:1px solid #84966b;border-radius:8px 8px 0 0;background:#11251a;color:#edf0de;z-index:825;box-shadow:0 4px 14px rgba(0,0,0,.25);text-align:left;touch-action:pan-y}
.tokens-widget[hidden]{display:none!important}
.tokens-widget.is-token-dragging{visibility:hidden;pointer-events:none}
.tokens-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:9px}
.tokens-title{margin:0;font:23px/1.1 Georgia,'Times New Roman',serif;color:#eee6cc}
.tokens-close{width:32px;min-height:29px;padding:0;font-size:23px;line-height:25px;background:transparent;border-color:#607449;color:#e9e5ce}
.tokens-search-label{display:flex;align-items:center;gap:12px;font-size:12px;color:#d4dfc0}
.tokens-search{flex:1;min-width:0;min-height:36px;height:36px;padding:7px 11px;font-size:13px;background:#091b11;border:1px solid #71875b;border-radius:4px;color:#edf0de;touch-action:manipulation}
.tokens-search::placeholder{color:#aebda1;opacity:1}
.tokens-help{margin:8px 0 6px;font-size:12px;line-height:1.3;color:#cad6b9}
.tokens-status{margin:7px 0;font-size:12px;line-height:1.3;color:#e4d7aa}
.tokens-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:7px 0;padding:5px 8px;border:1px solid #8a9d66;border-radius:4px;background:#233b23;font-size:12px;line-height:1.3;color:#f0e9c9}
.tokens-selection[hidden]{display:none!important}
.tokens-cancel,.tokens-retry{min-height:28px;padding:5px 9px;font-size:11px;border-color:#7d8d5f;color:#eee4c5;background:#263a27}
.tokens-chosen{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tokens-grid{display:grid;grid-template-columns:repeat(8,minmax(0,1fr));gap:6px;min-height:86px}
.token-tile{display:flex;align-items:flex-start;gap:6px;width:100%;height:90px;min-height:90px;padding:5px;text-align:left;white-space:normal;overflow:hidden;background:#243a2a;border:1px solid #526c42;border-radius:4px;color:#f2f0df;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;cursor:grab}
.token-tile:hover{background:#304930;border-color:#a0b57d}
.token-tile[aria-pressed=true]{background:#d2ddb7;border-color:#edf1db;color:#172919}
.token-thumbnail{position:relative;display:block;width:52px;height:73px;min-width:52px;overflow:hidden;border:1px solid #07150c;border-radius:3px;background:#6b725b;pointer-events:none}
.token-art-fallback{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font:30px Georgia,serif;color:#eee4bd}
.token-art{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;pointer-events:none;-webkit-user-drag:none}
.token-summary{display:flex;flex-direction:column;gap:3px;min-width:0;pointer-events:none}
.token-name{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:12px;font-weight:700;line-height:1.15;overflow-wrap:break-word}
.token-stats{font-size:10px;line-height:1.15;color:#f0dca6;overflow-wrap:break-word}
.token-type,.token-rules{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:9px;line-height:1.2;color:#c3d3b3;overflow-wrap:break-word}
.token-rules{-webkit-line-clamp:1}
.token-tile[aria-pressed=true] .token-stats,.token-tile[aria-pressed=true] .token-type,.token-tile[aria-pressed=true] .token-rules{color:#243c21}
.tokens-footer{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:9px}
.tokens-footer button{min-height:30px;padding:6px 14px;font-size:12px;border-color:#738956;background:#263a27;color:#eee7d1}
.tokens-footer button:disabled{background:#1c2d20;color:#b1c2a1;border-color:#4f6343}
.tokens-page{min-width:115px;text-align:center;font-size:12px;color:#e0dfc6}
.tokens-catalog-info{margin:8px 0 0;font-size:10px;line-height:1.2;text-align:center;color:#b0c09f}
