/* Tier Lists: the same quiet glass surfaces as the browse hubs. */
.tl-page{max-width:var(--site-content-max,1360px);margin:0 auto;padding:24px var(--site-gutter,20px) 64px}.tl-heading{display:flex;justify-content:space-between;align-items:start;gap:20px;margin-bottom:24px}.tl-heading h1{font-size:clamp(1.8rem,4vw,2.7rem)}.tl-eyebrow{color:var(--primary);font-weight:600;font-size:.85rem;letter-spacing:.08em;text-transform:uppercase}.tl-muted{color:var(--text-secondary);line-height:1.6}.tl-panel,.tl-card{background:var(--glass-bg);border:1px solid var(--glass-border);border-radius:var(--radius-md);padding:20px;box-shadow:0 4px 18px #292a4c08}.tl-card{display:flex;flex-direction:column;gap:12px;min-width:0}.tl-card h2{font-size:1.2rem;overflow-wrap:anywhere}.tl-card p{color:var(--text-secondary)}.tl-card-footer{display:flex;gap:12px;flex-wrap:wrap;margin-top:auto;font-size:.85rem}.tl-chip{display:inline-flex;border:1px solid var(--border-color);border-radius:20px;padding:4px 10px;font-size:.8rem;background:#ffffff80}.tl-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.tl-button{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;background:white;border:1px solid var(--border-color);border-radius:12px;color:var(--text-primary);font:inherit;cursor:pointer;text-decoration:none}.tl-button--primary{background:var(--primary);color:white;border-color:var(--primary)}.tl-button:disabled{opacity:.55;cursor:wait}.tl-button:focus-visible,.tl-character:focus-visible,.tl-row-target:focus-visible{outline:3px solid var(--primary);outline-offset:3px}.tl-setup{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:16px;margin:20px 0}.tl-field{display:flex;flex-direction:column;gap:6px;min-width:0}.tl-field label{font-weight:600;font-size:.9rem}.tl-field input,.tl-field select,.tl-field textarea{width:100%;min-height:44px;font:inherit;padding:10px 12px;border:1px solid #a9b2c5;border-radius:10px;background:#fff;color:var(--text-primary)}.tl-field--wide{grid-column:1/-1}.tl-context{display:contents}.tl-help{font-size:.9rem;color:var(--text-secondary);line-height:1.6;margin:12px 0}.tl-board{display:flex;flex-direction:column;gap:8px;margin:16px 0}.tl-row{display:grid;grid-template-columns:92px minmax(0,1fr);min-height:110px;border:1px solid var(--border-color);border-radius:12px;background:#ffffffb8;overflow:hidden}.tl-row-label{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;padding:12px 8px;background:#ede9fe;text-align:center;overflow-wrap:anywhere}.tl-row-label h2{font-size:1rem}.tl-row[data-row="unranked"] .tl-row-label{background:#e2e8f0}.tl-row-target{min-height:44px;border:1px solid #8993a5;border-radius:6px;background:#fff;padding:6px;font:inherit;font-size:.75rem;cursor:pointer}.tl-items{display:flex;flex-wrap:wrap;align-content:start;gap:8px;min-height:110px;padding:10px}.tl-character{position:relative;width:88px;min-height:100px;padding:6px;border:1px solid #c5cbd8;border-radius:9px;background:white;color:var(--text-primary);font:inherit;font-size:.78rem;line-height:1.25;text-align:center;overflow-wrap:anywhere;cursor:grab;touch-action:none;user-select:none}.tl-character img{display:block;width:52px;height:52px;object-fit:contain;border-radius:0;margin:0 auto 5px;pointer-events:none}.tl-avatar{display:flex;width:52px;height:52px;margin:0 auto 5px;align-items:center;justify-content:center;background:#eef2ff;border-radius:7px;font-size:1.3rem;font-weight:600}.tl-character[aria-pressed="true"]{outline:3px solid var(--primary);outline-offset:1px;background:#eef2ff}.tl-character.tl-dragging{opacity:.45}.tl-row.tl-drop{outline:3px dashed var(--primary);outline-offset:-3px}.tl-insert{box-shadow:inset 4px 0 var(--primary)}.tl-empty-row{color:var(--text-muted);font-size:.85rem;align-self:center;padding:10px;pointer-events:none}.tl-move-tools{display:flex;align-items:end;gap:10px;flex-wrap:wrap;border:1px solid var(--border-color);border-radius:12px;padding:14px;background:#f8faff}.tl-move-tools .tl-field{flex:1;min-width:140px}.tl-status{min-height:1.6em;line-height:1.5;margin:12px 0;overflow-wrap:anywhere}.tl-status[data-error="true"]{color:#a42020}.tl-notice{padding:16px;border-left:4px solid var(--primary);background:#eef2ff;border-radius:8px;margin:16px 0}.tl-savebar{display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;margin-top:20px}.tl-description{white-space:pre-wrap;overflow-wrap:anywhere}.tl-report{margin-top:24px}.tl-report summary{cursor:pointer}.tl-report form{margin-top:12px;display:grid;gap:12px;max-width:550px}.tl-readonly .tl-character{cursor:default;touch-action:auto}.tl-readonly .tl-row-label{font-weight:600}.hub[data-hub-view="list"] .tl-card{flex-direction:row;align-items:center;flex-wrap:wrap}.hub[data-hub-view="list"] .tl-card h2{flex:1;min-width:180px}.tl-sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:600px){.tl-page{padding:16px 12px 40px}.tl-heading{flex-direction:column}.tl-panel{padding:14px}.tl-row{grid-template-columns:66px minmax(0,1fr)}.tl-row-label{padding:8px 3px}.tl-row-label h2{font-size:.85rem}.tl-character{width:73px;font-size:.73rem}.tl-items{gap:6px;padding:8px}.tl-setup{grid-template-columns:1fr}.tl-savebar .tl-button{flex:1}.tl-move-tools{padding:10px}.tl-heading .tl-actions{width:100%}}

.tl-character [hidden]{display:none!important}

/* Keep full user titles readable at narrow widths without expanding the heading flex item. */
.tl-heading > div:first-child{min-width:0;max-width:100%}
.tl-heading h1{overflow-wrap:anywhere}

/* Helpful/discovery use the existing hub and button surfaces. */
.tl-sidebar{min-width:0}.tl-sidebar .hub-sidebar{position:static}.tl-discovery-filters{margin-top:16px;padding:18px 14px}.tl-discovery-filters h2{font-size:1rem;margin-bottom:12px}.tl-discovery-filters .hub-filters{padding:12px 0;border-bottom:1px solid var(--border-color)}.tl-discovery-filters .hub-field select{max-width:100%}.tl-discovery-filters .tl-help{font-size:.8rem}.tl-context-chips{display:flex;flex-wrap:wrap;gap:6px;min-width:0}.tl-context-chips .tl-chip{max-width:100%;overflow-wrap:anywhere}.tl-helpful{padding:18px 0;border-top:1px solid var(--border-color);margin-top:20px}.tl-helpful>p:first-child{margin-bottom:10px}.tl-helpful [aria-pressed="true"]{background:#eef2ff;border-color:var(--primary);color:var(--primary-dark)}.tl-helpful-count{font-size:.9rem}.tl-helpful [hidden]{display:none!important}
.tl-details{margin:10px 0}.tl-details summary{cursor:pointer;font-size:.9rem;color:var(--text-secondary);padding:6px 0}.tl-details[open]{padding-bottom:6px}
/* Optional mode symbols accompany names; they are not previews of map layouts. */
.tl-map-chooser{min-width:0;border:1px solid var(--border-color);border-radius:12px;padding:14px}.tl-map-chooser legend{font-weight:600;padding:0 6px}.tl-map-choices{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px;margin:12px 0}.tl-map-choice{display:flex;align-items:center;gap:10px;min-height:56px;padding:10px;border:1px solid var(--border-color);border-radius:10px;background:#fff;cursor:pointer;overflow-wrap:anywhere}.tl-field .tl-map-choice input{width:20px;min-height:20px;height:20px;flex:0 0 20px;padding:0;accent-color:var(--primary)}.tl-map-choice:has(input:checked){border-color:var(--primary);background:#eef2ff}.tl-map-choice:focus-within{outline:3px solid var(--primary);outline-offset:2px}.tl-map-choice img{width:32px;height:32px;flex:0 0 32px;object-fit:contain}.tl-map-choice span{min-width:0}.tl-map-icon{width:24px;height:24px;object-fit:contain;vertical-align:middle;flex:0 0 24px;margin-right:6px}.tl-map-chooser[hidden],.tl-map-choice [hidden],.tl-map-icon[hidden],.tl-field>select[hidden],.tl-field>label[hidden]{display:none!important}.tl-chip:has(.tl-map-icon){align-items:center}
/* Classic tier-label palette, shared by editor and public rows. Unranked stays neutral. */
.tl-row[data-row="S"] .tl-row-label{background-color:#ff7f7f;color:#1e293b}
.tl-row[data-row="A"] .tl-row-label{background-color:#ffbf7f;color:#1e293b}
.tl-row[data-row="B"] .tl-row-label{background-color:#ffdf7f;color:#1e293b}
.tl-row[data-row="C"] .tl-row-label{background-color:#bfff7f;color:#1e293b}
.tl-row[data-row="D"] .tl-row-label{background-color:#7fff7f;color:#1e293b}
.tl-row[data-row="F"] .tl-row-label{background-color:#7fffd4;color:#1e293b}
/* Selected map only: compact thumbnail with an optional accessible native dialog. */
.tl-layout-preview{display:flex;align-items:center;gap:16px;max-width:420px;margin:16px 0;padding:12px;border:1px solid var(--border-color);border-radius:12px;background:#ffffffa6}.tl-layout-link{display:flex;flex-direction:column;gap:5px;align-items:center;flex:0 0 auto;min-height:44px;font-size:.85rem}.tl-layout-link img{display:block;width:80px;height:auto;max-height:130px;object-fit:contain}.tl-layout-preview>figcaption{min-width:0;overflow-wrap:anywhere}.tl-layout-credit{font-size:.8rem;line-height:1.5;margin-top:6px}.tl-layout-dialog{max-width:min(94vw,850px);max-height:94vh;margin:auto;padding:18px;border:1px solid var(--border-color);border-radius:16px;background:#fff;color:var(--text-primary);overflow:auto}.tl-layout-dialog::backdrop{background:#101827b8}.tl-layout-dialog h2{font-size:1.2rem;margin-bottom:10px}.tl-layout-dialog .tl-button{margin-bottom:10px}.tl-layout-dialog figure{margin:0;text-align:center}.tl-layout-dialog figure>img{display:block;max-width:100%;width:auto;height:auto;max-height:70vh;object-fit:contain;margin:0 auto}.tl-layout-dialog [hidden],.tl-layout-preview [hidden]{display:none!important}.tl-layout-link:focus-visible{outline:3px solid var(--primary);outline-offset:4px}@media(max-width:480px){.tl-layout-preview{gap:12px;padding:10px}.tl-layout-dialog{padding:12px}}

.tl-layout-preview figcaption p{font-size:1rem;color:var(--text-primary);margin-bottom:6px}

/* Required fan-content notice: readable, secondary page footer. */
.tl-attribution{margin-top:24px;padding:14px 16px;border-radius:10px;background:#f8fafc;color:#475569;font-size:14px;line-height:1.6;overflow-wrap:anywhere}.tl-attribution p{margin:0;font-size:inherit;line-height:inherit;color:inherit}.tl-attribution a{color:#334155;text-decoration:underline;text-underline-offset:2px}.tl-attribution a:focus-visible{outline:2px solid #334155;outline-offset:3px}

/* Mobile tap destinations occupy the existing unranked label rail only. */
.tl-quick-assign{display:none}
@media(max-width:600px){
[data-tierlist-editor] .tl-row[data-row="unranked"]{overflow:visible}
[data-tierlist-editor] .tl-row[data-row="unranked"]>.tl-row-label{justify-content:flex-start;border-radius:11px 0 0 11px}
.tl-quick-assign{display:flex;flex-direction:column;align-items:center;gap:8px;position:sticky;top:12px;margin-top:8px;max-width:100%}
.tl-quick-tier{display:flex;align-items:center;justify-content:center;width:44px;min-width:44px;height:44px;min-height:44px;padding:0;border:1px solid #334155;border-radius:8px;color:#1e293b;font-family:inherit;font-size:1rem;font-weight:700;line-height:1;cursor:pointer}
.tl-quick-tier:disabled{cursor:default;border-style:dashed}
.tl-quick-tier:focus-visible{outline:3px solid #334155;outline-offset:2px}
.tl-quick-tier[data-quick-tier="S"]{background:#ff7f7f}
.tl-quick-tier[data-quick-tier="A"]{background:#ffbf7f}
.tl-quick-tier[data-quick-tier="B"]{background:#ffdf7f}
.tl-quick-tier[data-quick-tier="C"]{background:#bfff7f}
.tl-quick-tier[data-quick-tier="D"]{background:#7fff7f}
.tl-quick-tier[data-quick-tier="F"]{background:#7fffd4}
}
