.ts-hero-card{background:#f7efe6;border:1px solid #cbb8a5;border-radius:16px;overflow:hidden;color:#3c3039}.ts-hero-open{display:flex;flex-direction:column;width:100%;padding:0 0 18px;border:0;background:transparent;color:inherit;text-align:center;gap:8px}.ts-hero-art{position:relative;display:grid;place-items:center;isolation:isolate;width:100%;height:290px;background:radial-gradient(ellipse at 50% 60%,#d8d5bc,#eee5d8 70%);overflow:hidden}.ts-hero-art>img{height:95%;width:95%;object-fit:contain}.ts-hero-open>strong{font-size:23px;line-height:1.4;margin:8px 14px 0}.ts-hero-open>small{font-size:13px;color:#796273}.ts-rarity{position:absolute;right:12px;top:14px;background:#463441;color:#f4d282;border:1px solid #a67e4c;border-radius:8px;padding:5px 9px;font-size:15px;font-weight:750}.ts-faction{position:absolute;top:12px;left:12px;width:40px;height:40px;z-index:2;display:grid;place-items:center}.ts-faction img{width:100%;height:100%;object-fit:contain}.ts-image-crop{position:relative;display:block;width:100%;height:100%;overflow:hidden;flex-shrink:0}.ts-image-crop>img{position:absolute!important;max-width:none!important;max-height:none!important;margin:0!important;object-fit:fill!important;border-radius:0!important}.ts-mini{position:relative;display:inline-block;width:48px;height:48px;border-radius:50%;overflow:hidden;background:#e8d7bd;vertical-align:middle;flex-shrink:0}.ts-mini>img{width:100%;height:100%;object-fit:cover}.ts-mini-derived>img{position:absolute!important;max-width:none!important;max-height:none!important}.inline-ts-hero{display:inline-flex!important;align-items:center;vertical-align:middle;position:relative;width:1.8em!important;height:1.8em!important;padding:0!important;background:transparent!important}.inline-ts-hero>.ts-mini{width:100%!important;height:100%!important}.ts-tooltip{display:grid;gap:12px;min-width:240px;max-width:380px;padding:12px;color:#44323e}.ts-tooltip>.ts-mini{width:72px;height:72px}.ts-tooltip>strong{font-size:22px}.ts-tooltip>span{font-size:14px}.ts-stats{display:grid;gap:0;margin:18px 0;border:1px solid #dacabb;border-radius:12px;overflow:hidden;color:#44323e;background:#fffaf4}.ts-stats>div{display:flex;align-items:baseline;justify-content:space-between;gap:22px;padding:12px 16px}.ts-stats>div+div{border-top:1px solid #eaded1}.ts-stats dt{font-size:16px}.ts-stats dd{font-size:18px;font-weight:700;margin:0;text-align:right}.ts-hero-detail{padding:20px;color:#493741}.ts-detail-heading{display:grid;grid-template-columns:minmax(220px,.85fr) minmax(0,1.15fr);gap:35px;align-items:center}.ts-detail-heading h2{font-size:38px!important;margin:10px 0!important}.ts-detail-heading p{font-size:16px;line-height:1.6}.ts-detail-model{position:relative;height:440px;background:radial-gradient(ellipse at 50% 65%,#e7dfce,transparent 70%);display:grid;place-items:center}.ts-detail-model>img{width:100%;height:100%;object-fit:contain}.ts-kicker{font-size:12px;letter-spacing:.07em;color:#916d4d}.ts-section{padding-top:25px;margin-top:28px;border-top:1px solid #d7c1ad}.ts-section>h3{font-size:26px!important;margin:0 0 22px!important}.ts-skills{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.ts-skill{display:flex;align-items:flex-start;gap:18px;padding:20px;background:#fffaf4;border:1px solid #e0cfbf;border-radius:14px;min-width:0}.ts-skill>.ts-image-crop,.ts-skill>img.ts-skill-icon{width:72px;height:72px;border-radius:50%;flex-shrink:0;object-fit:contain}.ts-skill h4{font-size:21px!important;line-height:1.4;margin:0 0 7px!important}.ts-skill small{color:#947254;font-size:13px}.ts-skill p{font-size:17px;line-height:1.7;margin:12px 0 0}.ts-skill>.ts-no-image{display:none}.ts-weapon-heading{display:flex;align-items:center;gap:25px}.ts-weapon-heading>img,.ts-weapon-heading>.ts-image-crop{width:120px;height:120px;object-fit:contain;border-radius:14px;flex-shrink:0}.ts-weapon-heading h3{font-size:28px!important;margin:10px 0!important}.ts-weapon-bonuses{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:22px}.ts-weapon-bonuses>section{padding:20px;border-radius:12px;background:#eee1d2}.ts-weapon-bonuses span{display:inline-block;padding:5px 12px;background:#5f7357;color:white;border-radius:8px;font-size:13px}.ts-weapon-bonuses p{font-size:17px;line-height:1.7}.ts-no-image{font-size:13px;color:#998373}.ts-editor-header{color:#ead9cf;padding:12px 0 24px}.ts-editor-header a{color:#e7bd96}.ts-editor-header h1{font-size:30px;color:#f2e4db;margin:16px 0}.ts-editor-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:26px}.ts-editor-section{padding:28px;border:1px solid #dac7b4;background:#fffaf4;border-radius:16px;margin-bottom:24px;color:#493741}.ts-editor-section h2{font-size:26px;margin:0 0 22px}.ts-editor-section h3{font-size:20px;margin:22px 0 16px}.ts-editor-section .field-label{margin-bottom:18px}.ts-editor-images{display:grid;grid-template-columns:1fr 1fr;gap:20px}.ts-upload{border:1px dashed #cbb69e;border-radius:12px;padding:16px;display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:18px 0;color:#4d3a44}.ts-upload>strong,.ts-upload>small,.ts-upload>.studio-input{flex-basis:100%}.ts-upload-preview{height:150px;width:100%;display:grid;place-items:center;background:#eee3d5;border-radius:10px;overflow:hidden}.ts-upload-preview>img{height:100%;max-width:100%;object-fit:contain}.ts-upload-preview>.ts-image-crop{height:140px;width:140px}.ts-editor-skill{display:grid;grid-template-columns:180px minmax(0,1fr);gap:20px;padding-top:20px;margin-top:20px;border-top:1px solid #e0ceba}.ts-editor-title{display:flex;justify-content:space-between;align-items:center;gap:18px;grid-column:1/-1}.ts-editor-title h2,.ts-editor-title h3{margin:0!important}.ts-editor-stats>div{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:center}.ts-editor-preview{position:sticky;top:100px;align-self:start;color:#efdfd5}.ts-editor-preview .ts-hero-card{margin-bottom:25px}.ts-editor-preview .ts-hero-card .ts-hero-art{height:300px}.ts-editor-preview>h2{font-size:23px}.ts-editor-save{position:sticky;bottom:0;padding:16px;background:#2a2130f5;border:1px solid #735a6c;border-radius:12px;display:flex;justify-content:flex-end;gap:16px;align-items:center;color:#eddccf}.ts-editor-save>span{margin-right:auto}.ts-faction-settings{padding:18px;background:#f0e4d5;border-radius:10px}.ts-faction-settings summary{cursor:pointer;font-weight:650}.ts-faction-row{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;margin-top:14px}.ts-full-preview{width:min(1200px,95vw);max-height:94vh;overflow:auto;background:#f7eee5;border:1px solid #ad8b6a;border-radius:20px;padding:25px}.ts-full-preview::backdrop{background:#150e1ed1}.ts-full-preview>button{float:right}
@media(max-width:1000px){.ts-editor-grid{grid-template-columns:minmax(0,1fr)}.ts-editor-preview{position:static;max-width:400px}.ts-skills{grid-template-columns:1fr}}
@media(max-width:650px){.ts-detail-heading{grid-template-columns:1fr;gap:18px}.ts-detail-model{height:330px}.ts-hero-detail{padding:8px}.ts-detail-heading h2{font-size:30px!important}.ts-weapon-bonuses,.ts-editor-images{grid-template-columns:1fr}.ts-editor-section{padding:18px}.ts-editor-skill{grid-template-columns:1fr}.ts-editor-skill>.ts-upload{max-width:250px}.ts-faction-row{grid-template-columns:1fr}.ts-editor-save{flex-wrap:wrap}.ts-editor-save>span{flex-basis:100%}.ts-editor-stats>div{gap:7px}.ts-skill{padding:16px;gap:12px}.ts-skill>.ts-image-crop,.ts-skill>img.ts-skill-icon{width:56px;height:56px}.ts-stats dt{font-size:14px}.ts-stats dd{font-size:16px}}

body.game-theme-4 #db-item-dialog:has(.ts-hero-detail){width:min(1150px,calc(100vw - 32px))!important;max-width:1150px!important;max-height:94vh;padding:28px!important;border-radius:20px}
body.site-theme.db-catalog-page.game-theme-4{background:#211b26 url('/assets/riftery-world-hero.jpg') center top/cover fixed!important}body.site-theme.db-catalog-page.game-theme-4>header{background:#211b26ed!important}body.site-theme.db-catalog-page.game-theme-4>header .bar .brand{color:#efded3!important}
body.site-theme.db-catalog-page.game-theme-4 #database-main{width:calc(100% - 32px);max-width:none;margin:25px auto 50px;padding:32px;border:1px solid #67505f;border-radius:20px;background:#211b26f5;color:#eee2d9}
body.site-theme.db-catalog-page.game-theme-4 #database-main :is(.db-page-heading h1,.db-results-heading h2){color:#efdfd5!important}body.site-theme.db-catalog-page.game-theme-4 #database-main :is(.db-page-heading p,.db-results-heading>span){color:#cbb5c1!important}body.site-theme.db-catalog-page.game-theme-4 #database-main .db-filter-panel{background:#2b2430;border-color:#6a5363;color:#f0dfd4}body.site-theme.db-catalog-page.game-theme-4 #database-main .db-filter-label{color:#e1c0a1!important}
@media(max-width:650px){body.site-theme.db-catalog-page.game-theme-4 #database-main{padding:18px;width:calc(100% - 16px)}body.game-theme-4 #db-item-dialog:has(.ts-hero-detail){padding:16px!important;width:calc(100vw - 16px)!important}}

/* Bound full models independently of the site's generic image rules. */
.ts-hero-art>img{position:absolute!important;inset:8px!important;width:calc(100% - 16px)!important;height:calc(100% - 16px)!important;max-width:calc(100% - 16px)!important;max-height:calc(100% - 16px)!important;object-fit:contain!important;margin:0!important}
.ts-upload-preview{position:relative}.ts-upload-preview>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
.ts-detail-model>img{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important}
.studio-page .ts-editor-header h1,.studio-page .ts-editor-preview>h2,.studio-page #ts-editor-preview>h3{color:#f0dfd4!important}

body.site-theme.db-catalog-page.game-theme-4 #db-item-dialog .ts-detail-model>img,.ts-full-preview .ts-detail-model>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
.studio-page .ts-editor-header button.primary{background:#805a44!important;color:#fff6ec!important;border:1px solid #bd9476!important;margin-top:16px}

.game-record-modal .game-record-modal-body .ts-detail-model>img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}

.ts-import-dialog{width:min(1000px,calc(100vw - 28px));max-height:92vh;overflow:auto;padding:28px;background:#fff9f2;border:1px solid #bfa58e;border-radius:20px;color:#493641}.ts-import-dialog::backdrop{background:#180f23ce;backdrop-filter:blur(5px)}.ts-import-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:20px;margin-bottom:22px}.ts-import-heading h2{font-size:28px;margin:0 0 10px}.ts-import-tools,.ts-import-actions{display:flex;gap:12px;flex-wrap:wrap;margin:22px 0}.ts-import-dialog [data-json]{font:14px/1.6 ui-monospace,monospace;min-height:220px;max-height:400px}.ts-import-dialog .field-label{display:grid;gap:9px;margin-bottom:18px}.ts-import-preview>div{max-height:260px;overflow:auto;border:1px solid #dfcbbb;border-radius:10px}.ts-import-preview>div>p{display:flex;justify-content:space-between;gap:18px;padding:12px 16px;margin:0;border-bottom:1px solid #eaddd1}.ts-import-preview span{font-size:13px;color:#8c684b}.ts-import-dialog [data-status]{white-space:pre-wrap;line-height:1.6;font-size:15px}.ts-import-actions{justify-content:flex-end;position:sticky;bottom:0;background:#fff9f2;padding:12px 0}.ts-import-dialog button,.ts-import-dialog .db-upload-button{padding:11px 15px}.ts-import-dialog .primary{background:#805a44!important;color:#fff6ed!important}
@media(max-width:650px){.ts-import-dialog{padding:18px}.ts-import-heading h2{font-size:23px}.ts-import-preview>div>p{font-size:14px}}

/* Rarity colors shared by catalogue, editor preview, full model and mini portrait. */
[data-ts-rarity="ssr"],[data-ts-rarity="xssr"]{--ts-rarity-top:#ffe0a0;--ts-rarity-bottom:#efb65f;--ts-rarity-glow:#fff0c7}
[data-ts-rarity="sr"]{--ts-rarity-top:#e9c2ff;--ts-rarity-bottom:#ba8bdf;--ts-rarity-glow:#f4e0ff}
[data-ts-rarity="r"]{--ts-rarity-top:#89d8f4;--ts-rarity-bottom:#3aa9d8;--ts-rarity-glow:#ccf1ff}
.ts-hero-card[data-ts-rarity] .ts-hero-art,.ts-hero-detail[data-ts-rarity] .ts-detail-model,.ts-mini[data-ts-rarity]{background:radial-gradient(ellipse at 45% 30%,var(--ts-rarity-glow),transparent 65%),linear-gradient(155deg,var(--ts-rarity-top),var(--ts-rarity-bottom))!important}
.ts-hero-detail[data-ts-rarity] .ts-detail-model{border-radius:18px}.ts-hero-card[data-ts-rarity] .ts-rarity{color:#fff4df;background:#493544;border-color:#ffffff66}

/* One catalogue scale, shared with the editor preview. Original art stays sharp. */
body.site-theme .db-items.ts-heroes-grid,body.game-world-page .game-db-cards.ts-heroes-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))!important;justify-content:start;gap:20px!important;align-items:stretch!important}
.ts-hero-card{width:100%;min-width:0;max-width:100%;align-self:stretch}.ts-hero-card .ts-hero-art,.ts-editor-preview .ts-hero-card .ts-hero-art{height:auto!important;aspect-ratio:4/5;min-height:0!important}.ts-hero-card .ts-hero-open{height:100%;padding-bottom:18px}.ts-hero-card .db-record-actions{margin-top:auto}.ts-editor-preview .ts-hero-card{width:240px;max-width:100%}
@media(max-width:600px){body.site-theme .db-items.ts-heroes-grid,body.game-world-page .game-db-cards.ts-heroes-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}.ts-hero-card{width:100%}.ts-hero-card .ts-hero-open>strong{font-size:19px}.ts-hero-card .ts-rarity{font-size:12px;right:8px;top:8px}.ts-editor-preview .ts-hero-card{width:240px}}

/* Hero collection: a framed illustration, readable title and distinct studio tools. */
.ts-hero-card{display:flex!important;flex-direction:column;padding:0!important;border:1px solid #cbb6a766!important;border-radius:20px!important;background:#fff8ef!important;box-shadow:0 8px 24px #100a1826;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.ts-hero-card .ts-hero-open{flex:1;gap:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important;overflow:hidden;color:#45333e!important}
.ts-hero-card[data-ts-rarity] .ts-hero-art{background:radial-gradient(ellipse at 50% 30%,var(--ts-rarity-glow) 0%,transparent 70%),linear-gradient(150deg,var(--ts-rarity-top),var(--ts-rarity-bottom))!important}
.ts-hero-card .ts-hero-art::before{content:"";position:absolute;inset:16px;border:1px solid #ffffff66;border-radius:50% 50% 18px 18px;pointer-events:none;z-index:-1}
.ts-hero-card .ts-hero-art::after{content:"";position:absolute;bottom:7%;left:20%;width:60%;height:8%;background:#38253629;filter:blur(14px);border-radius:50%;pointer-events:none;z-index:-1}
.ts-hero-card .ts-hero-open>strong{align-self:stretch!important;box-sizing:border-box;width:100%!important;display:flex;align-items:center;justify-content:center;min-height:76px;padding:18px 16px;margin:0!important;font-family:inherit;font-weight:750;font-size:clamp(20px,1.5vw,25px);line-height:1.25;letter-spacing:-.025em;overflow-wrap:anywhere;background:linear-gradient(#fffaf4,#f8eee3);border-top:1px solid #fff8}
.ts-hero-card[data-ts-rarity] .ts-rarity{display:grid;place-items:center;top:14px;right:14px;min-width:50px;min-height:38px;padding:6px 10px;box-sizing:border-box;border:1px solid #fff7!important;border-radius:11px;background:#302432ed!important;color:var(--ts-rarity-glow)!important;font:800 14px/1.1 system-ui,sans-serif;letter-spacing:.04em;box-shadow:0 3px 10px #34223626}
.ts-faction{top:12px;left:12px;width:48px;height:48px;box-sizing:border-box;padding:4px;border:1px solid #fff9;border-radius:14px;background:#fff9;box-shadow:0 3px 12px #3524391a}
.ts-faction img{display:block!important;width:40px!important;height:40px!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
.ts-hero-card .db-record-actions{display:flex!important;gap:8px!important;padding:10px 12px 12px!important;border-top:1px solid #e5d7ca!important;background:#f8eee3!important;margin:0!important}
.ts-hero-card .db-record-actions>button{display:flex!important;align-items:center;justify-content:center;gap:8px;min-height:40px;padding:9px 12px!important;border:1px solid #d6c3b4!important;border-radius:10px!important;background:#fffaf4!important;color:#634654!important;font:600 13px/1.25 system-ui,sans-serif!important;box-shadow:none!important;cursor:pointer;transition:background .18s ease,border-color .18s ease}
.ts-hero-card .db-record-actions>button:first-child{flex:1;min-width:0}
.ts-hero-card .db-record-actions>button:last-child{flex:0 0 40px;padding:9px!important}
.ts-hero-card .db-record-actions svg{width:17px;height:17px;flex-shrink:0;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.ts-hero-card .db-record-actions span{pointer-events:none}
.ts-hero-card button:focus-visible{outline:3px solid #947057!important;outline-offset:-4px}
@media(hover:hover){.ts-hero-card:hover{transform:translateY(-4px);box-shadow:0 14px 30px #100a183d;border-color:#e6c49b!important}.ts-hero-card .db-record-actions>button:hover{background:#eedfce!important;border-color:#aa8570!important}}
@media(max-width:600px){.ts-hero-card{border-radius:15px!important}.ts-hero-card .ts-hero-open>strong{font-size:19px;min-height:66px;padding:14px 10px}.ts-hero-card[data-ts-rarity] .ts-rarity{top:9px;right:9px;min-width:38px;min-height:30px;font-size:11px;padding:5px 7px;border-radius:9px}.ts-hero-card .ts-faction{top:8px;left:8px;width:38px;height:38px;padding:3px;border-radius:11px}.ts-hero-card .ts-faction img{width:30px!important;height:30px!important}.ts-hero-card .db-record-actions{padding:8px!important;gap:5px!important}.ts-hero-card .db-record-actions>button{font-size:11px!important;padding:7px 5px!important;gap:4px;min-height:36px}.ts-hero-card .db-record-actions>button:last-child{flex-basis:32px}.ts-hero-card .db-record-actions>button:first-child svg{display:none}}
@media(prefers-reduced-motion:reduce){.ts-hero-card,.ts-hero-card .db-record-actions>button{transition:none}.ts-hero-card:hover{transform:none}}

.ts-star-bonus .ts-skill>.ts-skill-icon,.ts-star-bonus .ts-skill>.ts-image-crop{border-radius:10px!important;object-fit:contain;background:transparent}

.ts-upload button.ts-upload-preview{padding:0;border:1px solid #d6c3b4;color:#634654;cursor:pointer}
.ts-upload button.ts-upload-preview:hover,.ts-upload button.ts-upload-preview:focus-visible{border-color:#947057;background:#eadac9}
.ts-faction-row{grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:start}
.ts-faction-row .ts-upload{margin:0}
.ts-faction-row .ts-upload-preview{height:78px}
#studio-dialog.ts-media-dialog{width:min(880px,calc(100vw - 28px));max-height:90vh;overflow:auto}
.ts-media-dialog .media-grid{max-height:44vh;overflow:auto;padding:4px;margin-bottom:16px}
.ts-media-dialog .media-item{min-width:0;overflow-wrap:anywhere}
.ts-media-dialog .media-item[aria-pressed=true]{outline:2px solid #947057;outline-offset:-2px}
.ts-media-dialog summary{cursor:pointer}
.ts-media-dialog [data-ts-media-link]{margin-top:12px}
@media(max-width:600px){.ts-faction-row{grid-template-columns:1fr}}

.ts-tooltip{width:min(330px,calc(100vw - 48px));min-width:0;gap:10px}
.ts-tip-heading,.ts-tip-skills li{display:flex;align-items:center;gap:10px}
.ts-tip-heading .ts-mini{width:44px;height:44px}
.ts-tip-heading strong{font-size:19px;line-height:1.2}
.ts-tip-heading small,.ts-tip-skills small{display:block;color:#765947;font-size:12px}
.ts-tip-skills{display:grid;gap:0;list-style:none;margin:0;padding:0}
.ts-tip-skills li{align-items:flex-start;border-top:1px solid #eadbcb;padding:8px 0}
.ts-tip-skills li:last-child{padding-bottom:0}
.ts-tip-skills .ts-tip-skill-icon{width:34px!important;height:34px!important;flex:0 0 34px;object-fit:contain;border-radius:7px;margin:0!important}
.ts-tip-skills b{display:block;font-size:14px;line-height:1.25;overflow-wrap:anywhere}
.ts-tip-skills p{color:#645158;font-size:12px;line-height:1.4;margin:3px 0 0;overflow-wrap:anywhere}

.ts-hero-detail .ts-weapon{border:1px solid #dcc3a4;border-radius:18px;padding:clamp(14px,3vw,28px);background:linear-gradient(155deg,#fcf2e2,#fffaf4 70%)}
.ts-weapon-heading{gap:16px}
.ts-weapon-heading>img,.ts-weapon-heading>.ts-image-crop{width:88px;height:88px}
.ts-weapon-heading h3{margin:3px 0!important;overflow-wrap:anywhere}
.ts-weapon-heading p{font-size:14px;color:#765947;margin:0}
.ts-weapon-skill{margin-top:20px}
.ts-weapon-skill>h4{margin:0 0 10px;font-size:16px;color:#765947}
.ts-weapon-skill .ts-skill{background:#fffdf8}
.ts-weapon-upgrades{list-style:none;margin:16px 0 0;padding:0;display:grid;gap:8px}
.ts-weapon-upgrades li{display:grid;grid-template-columns:max-content minmax(0,1fr);align-items:start;gap:12px;border-left:3px solid #c39b6b;border-radius:10px;padding:12px 14px;background:#f5e7d4}
.ts-weapon-upgrades li>span{padding:4px 9px;border:1px solid #dfc29d;border-radius:6px;color:#6a492f;background:#fff6e6;font-size:13px;font-weight:700;white-space:nowrap}
.ts-weapon-upgrades li>p{margin:1px 0 0;line-height:1.5;overflow-wrap:anywhere}
@media(max-width:480px){.ts-weapon-heading>img,.ts-weapon-heading>.ts-image-crop{width:64px;height:64px}.ts-weapon-upgrades li{grid-template-columns:1fr;gap:5px}.ts-weapon-upgrades li>span{justify-self:start}}

@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .ts-hero-card .ts-hero-art>img,.ts-hero-card .ts-hero-art>.ts-mini{transition:transform .34s ease,filter .34s ease}
 .ts-hero-card .ts-hero-art::before,.ts-hero-card .ts-rarity{transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
 .ts-hero-card:is(:hover,:focus-within) .ts-hero-art>img,.ts-hero-card:is(:hover,:focus-within) .ts-hero-art>.ts-mini{transform:translateY(-3px) scale(1.025);filter:drop-shadow(0 8px 7px #38253633)}
 .ts-hero-card:is(:hover,:focus-within) .ts-hero-art::before{transform:scale(1.025);border-color:#fff}
 .ts-hero-card:is(:hover,:focus-within) .ts-rarity{transform:translateY(-2px);box-shadow:0 5px 14px #34223655}
 #db-material-popover .ts-tooltip{animation:ts-tooltip-appear .18s ease-out both}
}
@keyframes ts-tooltip-appear{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}

.ts-portrait-badges{position:absolute;z-index:2;top:12px;left:12px;display:flex;align-items:center;gap:6px}
.ts-portrait-badges .ts-faction{position:static}
.ts-role-badge{box-sizing:border-box;display:grid;place-items:center;width:48px;height:48px;padding:6px;border:1px solid #ffffff80;border-radius:14px;background:linear-gradient(145deg,#514251,#302432);box-shadow:0 3px 12px #35243938}
.ts-role-badge img{display:block!important;width:34px!important;height:34px!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;margin:0!important}
@media(max-width:600px){
 .ts-hero-card .ts-portrait-badges{top:8px;left:8px;gap:4px}
 .ts-hero-card .ts-role-badge{width:38px;height:38px;padding:4px;border-radius:11px}
 .ts-hero-card .ts-role-badge img{width:28px!important;height:28px!important}
}
@media(max-width:380px){
 .ts-hero-card .ts-portrait-badges :is(.ts-faction,.ts-role-badge){width:32px;height:32px}
}

.ts-article-block{container-type:inline-size;color:#493741;margin-block:1.3rem}
.ts-article-block>h3{margin:0 0 16px}
.ts-article-block :is(.ts-release-list,.ts-roster-list){list-style:none;margin:0;padding:0}
.ts-article-block :is(.ts-mini,.ts-article-avatar){width:56px;height:56px;border-radius:12px;display:grid;place-items:center}
.ts-article-avatar{background:#eedbc4;color:#654939;font-size:22px;font-weight:700}
.ts-article-block .ts-mini img{margin:0!important}
.ts-article-block .ts-mini-derived>img{inset:auto;max-width:none!important;max-height:none!important}
/* Crop the source before scaling so tiny regions are sampled at display size. */
@supports (object-view-box: inset(0%)){
 .ts-image-crop>img{inset:0!important;width:100%!important;height:100%!important;object-view-box:var(--ts-view)}
}

.ts-article-block .ts-release-list{
 display:flex;overflow-x:auto;padding:18px 14px 16px;overscroll-behavior-inline:contain;isolation:isolate;
 border:1px solid #e3cdb8;border-radius:17px;background:linear-gradient(155deg,#fffaf3,#f7ecdf);
 scrollbar-color:#be9776 transparent;
}
.ts-release-list>li{
 position:relative;flex:1 0 91px;min-width:0;display:flex;flex-direction:column;
 align-items:center;gap:8px;text-align:center;margin:0!important;padding:0 5px;line-height:1.3;
}
.ts-release-list>li+li::before{content:"";position:absolute;top:35px;right:50%;width:100%;border-top:2px solid #bc8d65}
.ts-release-list>.ts-release-gap{margin-inline-start:clamp(22px,4vw,48px)!important}
.ts-release-list>.ts-release-gap::before{width:calc(100% + clamp(22px,4vw,48px));border-top-style:dashed;opacity:.75}
.ts-release-portrait{position:relative;z-index:1;padding:4px;border:1px solid #be9879;border-radius:17px;background:#fff8ed}
.ts-article-block .ts-release-portrait :is(.ts-mini,.ts-article-avatar){width:62px;height:62px}
.ts-release-label{display:grid;justify-items:center;gap:4px;overflow-wrap:anywhere;min-width:0}
.ts-release-label strong,.ts-roster-heading>strong{font-size:17px;line-height:1.2;color:#382b34}
.ts-release-label strong{font-size:18px}
.ts-release-label>span{font-size:14px;font-weight:650;color:#60463a}
.ts-release-label small{font-size:13px;color:#6e5447}
.ts-release-label .ts-release-day{border-radius:7px;padding:2px 6px;background:#eeddc9;color:#5a3d2f;font-weight:700}

.ts-article-block .ts-roster-list{display:grid;grid-template-columns:minmax(0,1fr);gap:10px}
.ts-roster-list>li{margin:0!important;min-width:0;overflow-wrap:anywhere}
.ts-roster-card>details{border:1px solid #ddc7b1;border-radius:14px;background:#fff9f0;margin:0;padding:0}
.ts-roster-card .ts-roster-summary{
 display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;align-items:center;
 padding:11px 14px;border-radius:13px;list-style:none;cursor:pointer;color:#493741;background:#faf0e3;
}
.ts-roster-summary::-webkit-details-marker{display:none}
.ts-roster-summary:hover{background:#f5e7d7}
.ts-roster-summary:focus-visible{outline:2px solid #805a44;outline-offset:2px}
.ts-roster-heading,.ts-roster-meta,.ts-roster-stats{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 10px}
.ts-roster-heading{flex-direction:column;align-items:flex-start}
.ts-roster-meta,.ts-roster-stats{color:#684e40;font-size:13px;line-height:1.3}
.ts-roster-chevron{width:8px;height:8px;margin-inline:4px;border:solid #845a45;border-width:0 2px 2px 0;transform:rotate(45deg)}
.ts-roster-card details[open] .ts-roster-chevron{transform:rotate(225deg)}
.ts-roster-card .ts-hero-detail{padding:clamp(10px,2.3cqi,22px)}
.ts-roster-card .ts-detail-heading{grid-template-columns:minmax(100px,.65fr) minmax(0,1.35fr);gap:18px;align-items:stretch}
.ts-roster-card .ts-detail-model{height:auto;min-height:220px}
.ts-roster-card .ts-detail-model>img{position:absolute!important;inset:0!important;margin:0!important}
.ts-roster-card .ts-detail-heading h2{font-size:24px!important;margin:5px 0!important}
.ts-roster-card .ts-detail-heading p{margin:7px 0;font-size:14px}
.ts-roster-card .ts-stats{margin:8px 0}
.ts-roster-card .ts-stats>div{padding:6px 10px;gap:10px}
.ts-roster-card .ts-stats dt,.ts-roster-card .ts-stats dd{font-size:14px}
.ts-roster-card .ts-section{margin-top:16px;padding-top:14px}
.ts-roster-card .ts-section>h3,.ts-roster-card .ts-weapon-heading h3{font-size:19px!important;margin:0 0 9px!important}
.ts-roster-card .ts-skills{gap:8px}
.ts-roster-card .ts-skill{padding:10px;gap:9px}
.ts-roster-card .ts-skill>.ts-image-crop,.ts-roster-card .ts-skill>img.ts-skill-icon{width:64px;height:64px;margin:0}
.ts-roster-card .ts-skill h4{font-size:16px!important;margin:0 0 3px!important}
.ts-roster-card .ts-skill p,.ts-roster-card .ts-weapon-upgrades p{font-size:14px;line-height:1.5;margin:5px 0 0}
.ts-roster-card .ts-weapon-heading>img,.ts-roster-card .ts-weapon-heading>.ts-image-crop{width:108px;height:90px;margin:0}
.ts-canvas-tools{display:flex;justify-content:flex-start;margin:8px 0}
.ts-block-settings .studio-actions{justify-content:flex-end}
.ts-entry-toolbar{margin:14px 0}
.ts-entry-empty{color:#745748}
.ts-entry-row{min-width:0;margin:8px 0;padding:10px;border:1px solid #dbc6b0;border-radius:10px;background:#fffaf4}
div.ts-entry-row,.ts-entry-row>summary{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 14px}
.ts-entry-row>summary{cursor:pointer;list-style:none}
.ts-entry-row>summary::-webkit-details-marker{display:none}
.ts-entry-row>summary>span:last-child{font-size:13px;color:#745748}
.ts-entry-row>summary>span:last-child::after{content:" ⌄"}
.ts-entry-row[open]>summary>span:last-child::after{content:" ⌃"}
.ts-entry-identity{display:flex;align-items:center;gap:10px;min-width:0;overflow-wrap:anywhere}
.ts-entry-identity :is(.ts-mini,.ts-article-avatar){width:38px;height:38px;border-radius:8px}
.ts-entry-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),1fr));gap:8px 12px;margin:12px 0}
.ts-entry-fields .field-label{margin:0}
.ts-entry-actions{display:flex;gap:6px;flex-wrap:wrap}
.ts-article-missing{padding:10px;font-size:13px;color:#745a4b}
.ts-article-modal{box-sizing:border-box;overscroll-behavior:contain}
.ts-article-modal>button{position:sticky;top:0;z-index:3;border:1px solid #ccb399;border-radius:8px;background:#fff8ee;min-width:40px;min-height:40px}
.ts-article-modal .ts-detail-model>img{position:absolute!important;inset:0!important;margin:0!important}
@container (max-width:600px){
 .ts-article-block .ts-release-list{display:grid;gap:12px;padding:14px 14px 14px 25px;overflow:visible}
 .ts-release-list>li{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;text-align:left;padding:0 0 0 14px;gap:10px}
 .ts-release-label{justify-items:start}
 .ts-release-list>li+li::before{top:-12px;right:auto;left:-2px;width:0;height:calc(100% + 12px);border:0;border-left:2px solid #bc8d65}
 .ts-release-list>li:first-child:not(:only-child)::before{content:"";position:absolute;top:32px;bottom:0;left:-2px;border-left:2px solid #bc8d65}
 .ts-release-list>li:last-child:not(:first-child)::before{height:44px}
 .ts-release-list>li::after{content:"";position:absolute;left:-6px;top:27px;width:10px;height:10px;border-radius:50%;background:#a66d49}
 .ts-release-list>.ts-release-gap{margin-inline-start:0!important;margin-top:22px!important}
 .ts-release-list>.ts-release-gap::before{top:-34px;height:calc(100% + 34px);border-left-style:dashed}
 .ts-release-list>.ts-release-gap:last-child:not(:first-child)::before{height:66px}
 .ts-roster-card .ts-skills{grid-template-columns:minmax(0,1fr)}
}
@container (max-width:420px){
 .ts-roster-card .ts-detail-heading{grid-template-columns:minmax(0,1fr);gap:10px}
 .ts-roster-card .ts-detail-model{min-height:180px}
 .ts-roster-card .ts-skill>.ts-image-crop,.ts-roster-card .ts-skill>img.ts-skill-icon{width:54px;height:54px}
}
.ts-article-block .ts-tier-list,
.ts-article-block .ts-plan-slots,
.ts-article-block .ts-plan-upgrades{list-style:none;margin:0;padding:0}
.ts-tier-block{width:min(100%,44rem);margin-inline:auto}
.ts-tier-pair{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,24rem),1fr));gap:16px;max-width:89rem;margin-inline:auto}
.ts-tier-pair>div{min-width:0}
.ts-tier-pair>div>.article-block{margin-top:0}
.mobile-preview .ts-tier-pair{grid-template-columns:minmax(0,1fr)}
.ts-tier-block>h3{text-align:center}
body.reader-world-page #reader .reader-world-prose .ts-tier-block>h3::before{margin-inline:auto}
.ts-article-block .ts-tier-list{display:grid;gap:7px}
.ts-tier-list>.ts-tier-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;margin:0;padding:7px 9px;border:1px solid var(--tier-border);border-radius:10px;background:var(--tier-bg)}
.ts-tier-portraits{display:flex;flex-wrap:wrap;align-items:center;gap:7px;min-width:0}
.ts-tier-portrait{display:flex;flex:none}
.ts-tier-block .ts-tier-portrait :is(.ts-mini,.ts-article-avatar){width:clamp(54px,12cqi,72px);height:clamp(58px,13cqi,78px);border-radius:10px}
.ts-tier-grade{display:grid;place-items:center;min-width:2.6rem;min-height:2.3rem;border-radius:7px;background:var(--tier-accent);color:var(--tier-ink);font-size:1.15rem;line-height:1}
.ts-tier-row[data-tier="S"]{--tier-bg:#eaf9e8;--tier-border:#a6dba0;--tier-accent:#54df58;--tier-ink:#123817}
.ts-tier-row[data-tier="A"]{--tier-bg:#e7faf3;--tier-border:#a0dbc6;--tier-accent:#2fd6a3;--tier-ink:#103c2e}
.ts-tier-row[data-tier="B"]{--tier-bg:#eaf5ff;--tier-border:#a8cdec;--tier-accent:#59b7ff;--tier-ink:#11324e}
.ts-tier-row[data-tier="C"]{--tier-bg:#f2ecff;--tier-border:#d1baf2;--tier-accent:#b392ff;--tier-ink:#30164d}
.ts-tier-row[data-tier="D"]{--tier-bg:#fff8de;--tier-border:#e9d38e;--tier-accent:#ffd84c;--tier-ink:#49320b}
.ts-tier-row[data-tier="E"]{--tier-bg:#fff0e3;--tier-border:#efc09a;--tier-accent:#ff9c44;--tier-ink:#4a2108}
.ts-tier-row[data-tier="F"]{--tier-bg:#ffebeb;--tier-border:#efaeb1;--tier-accent:#f13a48;--tier-ink:#27090d}
.ts-plan-hero{display:flex;align-items:center;gap:8px;min-width:0}
.ts-plan-hero strong,.ts-plan-upgrade-name{overflow-wrap:anywhere}
.ts-plan{container-type:inline-size;--plan-accent:#674732;--plan-tint:#f5eee5;--plan-line:#e3d2be;--plan-level:#eedcc4}
.ts-weapon-plan{--plan-accent:#674432;--plan-tint:#f6ebe2;--plan-line:#dfc9b8;--plan-level:#f3e0d0}
.ts-plan-stage+.ts-plan-stage{margin-top:18px}
.ts-plan-stage{border:1px solid var(--plan-line);border-radius:11px;background:#fffdfb}
.ts-plan-stage>h4{margin:0;padding:8px 13px;border-bottom:1px solid var(--plan-line);border-radius:10px 10px 0 0;background:var(--plan-tint);color:var(--plan-accent);font-size:1rem}
.ts-article-block .ts-plan-slots{display:grid;padding:0 12px}
.ts-plan-slot{display:grid;grid-template-columns:28px minmax(136px,18%) minmax(0,1fr);align-items:center;gap:10px;min-width:0;margin:0;padding:8px 0;color:#342c35}
.ts-plan-slot+.ts-plan-slot{border-top:1px solid var(--plan-line)}
.ts-plan-priority{display:inline-grid;place-items:center;flex:none;min-width:18px;min-height:18px;border-radius:4px;background:#ecdbc6;color:#614427;font-size:.72rem;font-weight:700;font-variant-numeric:tabular-nums}
.ts-plan-slot>.ts-plan-priority{width:26px;height:26px;border-radius:7px;background:var(--plan-accent);color:#fff;font-size:.85rem}
.ts-plan-slot>.ts-plan-hero{gap:9px;font-size:1rem;line-height:1.25}
.ts-article-block .ts-plan-hero :is(.ts-mini,.ts-article-avatar){width:62px;height:66px}
.ts-article-block .ts-plan-upgrades{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,148px),1fr));gap:6px;min-width:0}
.ts-plan-upgrades>li{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto;justify-items:start;align-content:center;align-items:center;gap:3px 7px;min-width:0;margin:0;padding:6px 7px;border-radius:7px;background:var(--plan-tint);font-size:.875rem;line-height:1.25}
.ts-plan-upgrades>li:has(.ts-plan-icon){grid-template-columns:var(--ts-upgrade-icon,56px) minmax(0,1fr)}
.ts-plan-upgrades .ts-plan-icon{grid-row:span 2;display:block;width:var(--ts-upgrade-icon,56px);height:56px;margin:0;border-radius:5px;object-fit:contain}
.ts-plan-upgrade-name{max-width:100%;font-weight:650;color:#342c35}
.ts-plan-upgrades>li>b{padding:1px 6px;border-radius:4px;background:var(--plan-level);color:var(--plan-accent);font-size:.8rem;white-space:nowrap}
.ts-plan-fields .ts-plan-icon{display:block;width:30px;height:30px;border-radius:5px;object-fit:contain;flex:none}
.ts-weapon-plan .ts-plan-upgrades{--ts-upgrade-icon:88px;grid-template-columns:minmax(0,1fr);width:min(100%,21rem)}
.ts-weapon-plan .ts-plan-upgrades .ts-plan-icon{height:64px}
.ts-stage-editor{border:1px solid #dec9b3;border-radius:9px;padding:8px 10px;background:#fbf6ee}
.ts-stage-editor+.ts-stage-editor{margin-top:8px}
.ts-stage-editor>summary{cursor:pointer}
.ts-stage-editor>summary>span{float:right;color:#725943;font-size:.82rem}
.ts-stage-editor[open]>summary{margin-bottom:8px}
.ts-stage-editor>.ts-entry-actions{margin-top:8px}
.ts-plan-editor>.ts-entry-toolbar{margin-top:8px}
.ts-plan-fields .field-label>span{display:flex;align-items:center;gap:5px;min-height:30px}
.ts-tier-field{display:flex;align-items:center;gap:6px;margin:5px 0;width:max-content}
body.reader-world-page #reader .reader-world-prose .ts-plan-stage h4{font-size:1.05rem!important;color:var(--plan-accent)!important}
body.reader-world-page #reader .reader-world-prose .ts-plan-upgrades>li{font-size:.875rem!important;line-height:1.25!important}
@container (max-width:520px){
 .ts-plan-slot{grid-template-columns:26px minmax(0,1fr);gap:7px}
 .ts-plan-upgrades{grid-column:1/-1}
}
.ts-comparison{container-type:inline-size}
.ts-comparison-controls{display:flex;flex-wrap:wrap;gap:8px 14px;margin:10px 0}
.ts-comparison-controls label{display:grid;flex:0 1 16rem;gap:4px;max-width:100%;color:#5c453f;font-size:.875rem;font-weight:650}
.ts-comparison-controls select{width:100%;min-width:0;padding:8px 10px;border:1px solid #d9c2a8;border-radius:8px;background:#fffaf4;color:#493741;font:inherit}
.ts-comparison [data-ts-comparison-panel][hidden]{display:none!important}
.ts-comparison-toolbar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 16px;margin:0 0 8px;padding:9px 12px;border:1px solid #dfcdbc;border-radius:9px;background:#f6eee4;color:#604834;font-size:.86rem}
.ts-comparison-toolbar label{display:flex;flex-wrap:wrap;align-items:center;gap:7px 10px;font-weight:700;max-width:100%}
.ts-comparison-toolbar select{max-width:100%;padding:5px 9px;border:1px solid #cfb598;border-radius:6px;background:#fffaf4;color:#493741;font:inherit}
.ts-comparison-editor .ts-comparison-publish-settings{margin:10px 0}
.ts-comparison-publish-settings>summary{cursor:pointer}
.ts-comparison table.ts-comparison-table{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0 5px;margin:0}
.ts-comparison-table th:first-child{width:36%}
.ts-comparison-table :is(th,td){padding:10px;text-align:left;vertical-align:top;overflow-wrap:anywhere}
.ts-comparison-table thead th{color:#5c453f;font-size:.86rem}
.ts-comparison-table tbody :is(th,td){border:solid #eadaca;border-width:1px 0;background:#fffaf4;color:#493741}
.ts-comparison-table tbody th{border-left-width:1px;border-radius:9px 0 0 9px}
.ts-comparison-table tbody td:last-child{border-right-width:1px;border-radius:0 9px 9px 0}
.ts-comparison-table .ts-comparison-baseline :is(th,td){background:#f5e7d6;border-color:#d6bda2}
.ts-comparison-table small{display:block;margin-top:3px;color:#614b40;font-size:.82rem;font-weight:500}
.ts-comparison-table small[data-trend="1"]{color:#305e41}
.ts-comparison-table small[data-trend="-1"]{color:#8e4039}
.ts-comparison-mobile-label{display:none}
.ts-comparison-portraits{display:flex;flex-wrap:wrap;gap:4px}
.ts-comparison-portraits:not(:empty){margin-bottom:6px}
.ts-comparison-unmatched{align-self:center;max-width:100%;padding:3px 6px;border-radius:5px;background:#f2e8da;color:#614b40;font-size:.85rem;font-weight:500}
[data-ts-comparison-import-status]:not(:empty){display:block;margin:6px 0;color:#8e4039}
.ts-comparison .ts-comparison-portrait{padding:0;border:0;border-radius:8px;background:none;cursor:pointer}
.ts-comparison-portrait :is(.ts-mini,.ts-article-avatar){width:36px;height:39px;border-radius:8px}
.ts-comparison-portrait:focus-visible{outline:2px solid #69498a;outline-offset:2px}
.ts-comparison-table .ts-comparison-note,.ts-comparison-details,.ts-comparison-details p{margin:5px 0 0;font-size:.82rem!important;font-weight:400;line-height:1.35!important}
.ts-comparison-details summary{width:fit-content;cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.ts-comparison-details dl{margin:6px 0 0}
.ts-comparison-details dl>div{display:flex;flex-wrap:wrap;gap:2px 7px}
.ts-comparison-details dd{margin:0;font-weight:650}
.ts-comparison-roster{display:flex;flex-wrap:wrap;gap:10px 18px}
@container (max-width:620px){
 .ts-comparison-table,.ts-comparison-table tbody{display:block}
 .ts-comparison-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
 .ts-comparison-table tbody tr{display:block;margin:0 0 8px;padding:8px 10px;border:1px solid #eadaca;border-radius:9px;background:#fffaf4}
 .ts-comparison-table tbody .ts-comparison-baseline{background:#f5e7d6;border-color:#d6bda2}
 .ts-comparison-table tbody :is(th,td),.ts-comparison-table tbody .ts-comparison-baseline :is(th,td){width:auto;padding:4px 0;border:0;background:transparent}
 .ts-comparison-table tbody th{display:block}
 .ts-comparison-table tbody td{display:grid;grid-template-columns:5.1rem minmax(0,1fr);gap:8px}
 .ts-comparison-mobile-label{display:block;color:#614b40;font-size:.87rem}
}

/* Compact comparison layout in the article and the editor preview. */
.ts-comparison { max-width: 108rem; margin-inline: auto; }
.ts-comparison .ts-comparison-controls { gap: 6px 12px; }
.ts-comparison .ts-comparison-controls select { padding: 5px 9px; }
.ts-comparison table.ts-comparison-table { border-spacing: 0 3px; background: transparent !important; }
.ts-comparison .ts-comparison-table th:first-child { width: 36%; }
.ts-comparison .ts-comparison-table thead th { background: #efe2d3 !important; color: #604834; }
.ts-comparison .ts-comparison-table thead th:first-child { border-radius: 8px 0 0 8px; }
.ts-comparison .ts-comparison-table thead th:last-child { border-radius: 0 8px 8px 0; }
.ts-comparison .ts-comparison-table tbody th { color: #493741; }
.ts-comparison .ts-comparison-table tbody :is(th,td) { background: #fffaf4 !important; }
.ts-comparison .ts-comparison-table tbody .ts-comparison-baseline :is(th,td) { background: #f5e7d6 !important; }
.ts-comparison .ts-comparison-table tbody tr:not(.ts-comparison-baseline):nth-child(odd) :is(th,td) { background: #faf2e9 !important; }
.ts-comparison-v2 .ts-comparison-table thead th:nth-child(3) { width: 16%; }
.ts-comparison .ts-comparison-table :is(th,td) {
  padding: 9px 12px !important;
  vertical-align: middle;
  font-size: 1rem !important;
  line-height: 1.3 !important;
}
.ts-comparison .ts-comparison-table :is(th,td) strong { font-size: 1.06rem !important; line-height: 1.3 !important; }
.ts-comparison .ts-comparison-table td:nth-child(2) strong { font-size: 1.2rem !important; font-variant-numeric: tabular-nums; }
.ts-comparison-v2 .ts-comparison-table td:last-child strong { font-size: .94rem !important; font-weight: 600; }
.ts-comparison .ts-comparison-table small { font-size: .84rem !important; }
.ts-comparison-lineup { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.ts-comparison-lineup .ts-comparison-portraits { margin: 0; }
.ts-comparison .ts-comparison-portrait :is(.ts-mini,.ts-article-avatar) { width: clamp(42px, 9cqi, 54px); height: clamp(46px, 10cqi, 58px); border-radius: 8px; }
.ts-comparison .ts-comparison-table details.ts-comparison-details {
  margin: 3px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
}
.ts-comparison .ts-comparison-details > summary {
  margin: 0 !important;
  padding: 0 2px !important;
  background: transparent !important;
  border: 0 !important;
  font-size: .85rem !important;
  line-height: 1.35 !important;
  color: #734f3c;
}
@container (max-width:620px) {
  .ts-comparison .ts-comparison-table th:first-child { width: auto; }
  .ts-comparison .ts-comparison-table tbody tr { margin-bottom: 5px; padding: 5px 8px; }
  .ts-comparison .ts-comparison-table tbody tr:nth-child(odd):not(.ts-comparison-baseline) { background: #faf2e9; }
  .ts-comparison .ts-comparison-table tbody tr > :is(th,td) { padding: 3px 0 !important; }
  .ts-comparison .ts-comparison-table tbody tr:is(.ts-comparison-baseline,:not(.ts-comparison-baseline):nth-child(n)) > :is(th,td) { background: transparent !important; }
  .ts-comparison .ts-comparison-table tbody td { grid-template-columns: 6.2rem minmax(0,1fr); }
  .ts-comparison .ts-comparison-mobile-label { font-size: .8rem; }
}

/* The hero card keeps its own type scale inside articles, the database and dialogs. */
.ts-hero-detail { font-family: var(--riftery-content-font, system-ui, sans-serif); font-size: 15px; line-height: 1.5; }
:is(body, #reader .reader-world-body .reader-world-prose) .ts-hero-detail[data-ts-rarity] :is(h2,h3,h4,p,dt,dd) { font-family: inherit !important; }
:is(body, #reader .reader-world-body .reader-world-prose) .ts-hero-detail[data-ts-rarity] .ts-detail-heading h2 { font-size: clamp(23px, 2vw, 29px) !important; line-height: 1.2 !important; }
:is(body, #reader .reader-world-body .reader-world-prose) .ts-hero-detail[data-ts-rarity] :is(.ts-section>h3,.ts-weapon-heading h3) { font-size: 20px !important; line-height: 1.3 !important; }
:is(body, #reader .reader-world-body .reader-world-prose) .ts-hero-detail[data-ts-rarity] :is(.ts-skill h4,.ts-weapon-skill>h4) { font-size: 17px !important; line-height: 1.3 !important; font-weight: 700; }
:is(body, #reader .reader-world-body .reader-world-prose) .ts-hero-detail[data-ts-rarity] p { font-size: 15px !important; line-height: 1.55 !important; }
.ts-hero-detail .ts-stats :is(dt,dd) { font-size: 14px; line-height: 1.4; }
.ts-hero-detail .ts-skill small { font-size: 13px; color: #765947; }
