/* Public [poe_tier_list] styled 1:1 with Diablo IV tier list (.d4tl). Author: vlad1116. */
.poetl-letter.tier-S, .poetl-letter.tier-A, .poetl-letter.tier-B, .poetl-letter.tier-C, .poetl-letter.tier-D { color: #111; }
.poetl-letter.tier-S { background: #ff6b5a; }
.poetl-letter.tier-A { background: #ffb347; }
.poetl-letter.tier-B { background: #ffe066; }
.poetl-letter.tier-C { background: #8fd16b; }
.poetl-letter.tier-D { background: #7fb6e6; }
.poetl-letter { display: flex; align-items: center; justify-content: center; flex: none; width: 56px; font-size: 26px; font-weight: 800; background: #3a3d46; border-radius: 8px 0 0 8px; }

.poetl { --bg: #15171c; --card: #1d2027; --line: #2d313b; --text: #e8e6e1; --muted: #9a9ba3; --accent: #d8dce3; color: var(--text); font-size: 15px; margin: 1.5em 0; }
.poetl-poe2 { --accent: #c9a24b; }
.poetl *, .poetl *::before, .poetl *::after { box-sizing: border-box; }
.poetl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 12px; }
.poetl-title { margin: 0; font-size: 22px; color: var(--text); }
.poetl-updated, .poetl-legend { color: var(--muted); font-size: 13px; }
.poetl-legend { margin-left: auto; }
.poetl-filter { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; padding: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.poetl-chip { padding: 5px 12px; background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 999px; font: inherit; font-size: 13px; cursor: pointer; }
.poetl-chip:hover { border-color: var(--accent); }
.poetl-chip.is-on { background: var(--accent); border-color: var(--accent); color: #111; font-weight: 600; }
.poetl-chip-class { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 3px; }
.poetl-chip-class img { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; object-position: 50% 15%; background: #101216; border: 1px solid var(--line); }
.poetl-chip-class.is-on img { border-color: #111; }
.poetl-row { display: flex; margin-bottom: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.poetl-row[hidden], .poetl-tile[hidden] { display: none; }
.poetl-items { display: flex; flex-wrap: wrap; gap: 8px; padding: 10px; flex: 1; }
.poetl-tile { position: relative; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; color: var(--text) !important; text-decoration: none !important; transition: border-color .15s, transform .15s; }
.poetl-tile:hover { border-color: var(--accent); transform: translateY(-1px); }
.poetl-tile img, .poetl-noicon { width: 40px; height: 40px; border-radius: 6px; object-fit: cover; background: #101216; flex: none; }
.poetl-name { font-size: 13px; line-height: 1.2; max-width: 165px; }
.poetl-move { font-size: 10px; font-weight: 800; padding: 1px 5px; border-radius: 5px; line-height: 1.3; }
.poetl-tile .poetl-move { position: absolute; right: -6px; top: -7px; }
.poetl-move.up { background: #3fae5b; color: #fff; }
.poetl-move.down { background: #d9534f; color: #fff; }
.poetl-move.new { background: #c9a24b; color: #111; }
.poetl-legend .poetl-move { position: static; }
.poetl-empty { padding: 30px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: 10px; }
.poetl-log { margin-top: 18px; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; }
.poetl-log summary { cursor: pointer; font-weight: 600; }
.poetl-log-entry { margin-top: 10px; font-size: 13px; }
.poetl-log-entry ul { margin: 6px 0 0 18px; color: var(--muted); }
@media (max-width: 600px) { .poetl-letter { width: 40px; font-size: 20px; } .poetl-name { max-width: 115px; } }
