/* Shared sapphire / antique gold family. All frames reuse imagegen artwork. */
.tm-eq-header,.tm-st-panel>.tm-st-header,.tm-portal-header,.tm-bestiary-header{left:9%!important;right:7%!important;background:none!important;padding-left:0!important;padding-right:0!important}
.tm-eq-body{top:22%!important;bottom:18%!important}
#tm-equipment-hud .tm-eq-bottom-gold{color:#f0ce83!important}
.tm-equipment-overlay .tm-eq-card,.tm-armory-card,.tm-cloth-card,.tm-loot-card,.ew-grid-item,.tm-sell-grid>button.tm-im-button{padding:0!important}
.tm-status-overlay,.tm-equipment-overlay,.ew-overlay,.tm-social-overlay,.tm-portal-overlay,.tm-bestiary-overlay{font-family:RiseDialogue,sans-serif!important}
#tm-chat-container.tm-open{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;color:#e2eaf0!important}
.tm-inventory-dose-row>button{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;border-radius:0!important}.tm-dose-slot-name,.tm-inventory-dose-status{color:#c5d8e8!important}
:root{--rise-ink:#e2eaf0!important;--rise-muted:#b5c9da!important;--rise-gold:#f0ce83!important}
@font-face{font-family:FrontierTitle;src:url('../fonts/Cinzel-Variable.ttf') format('truetype');font-weight:400 900;font-display:swap}
.tm-inventory-detail{position:fixed!important;z-index:109!important;box-sizing:border-box!important;transform-origin:0 0!important;overflow-y:auto!important;overflow-x:hidden!important;overscroll-behavior:contain!important;touch-action:pan-y!important;color:var(--rise-ink)!important;font:14px/21px RiseDialogue,sans-serif!important;padding:0 10px 12px 0!important;scrollbar-color:#ab8a49 #102b46!important;scrollbar-width:thin!important;overflow-wrap:anywhere!important}
.tm-inventory-item-hero{display:flex!important;align-items:center!important;margin-bottom:8px!important}.tm-inventory-item-hero>.tm-eq-art{width:56px!important;height:56px!important;margin-right:12px!important}.tm-inventory-item-hero>div{min-width:0!important;flex:1!important}.tm-inventory-item-hero h2{font-size:18px!important;line-height:24px!important;margin:3px 0!important;color:#f6e7c5!important;overflow-wrap:anywhere!important}.tm-inventory-rarity{font-size:10px!important;letter-spacing:1px!important;color:var(--rise-gold)!important}
.tm-inventory-item-type{font-size:12px!important;margin:4px 0 10px!important;color:var(--rise-muted)!important}.tm-inventory-detail h3{font-size:12px!important;line-height:18px!important;color:var(--rise-gold)!important;margin:12px 0 7px!important}.tm-inventory-description{font-size:13px!important;line-height:20px!important;color:var(--rise-muted)!important;white-space:pre-line!important}
.tm-inventory-stats{display:grid!important;grid-template-columns:1fr 1fr!important;grid-gap:6px 12px!important}.tm-inventory-stats>div{display:flex!important;justify-content:space-between!important;padding:6px 9px!important;background:url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important}.tm-inventory-stats span{font-size:11px!important;color:var(--rise-muted)!important}.tm-inventory-stats strong{font-size:13px!important;color:#f6e7c5!important}
.tm-inventory-detail .tm-equip-requirements,.tm-equip-requirements{background:#102b46!important;color:#c5d8e8!important;border-color:#7d704f!important}.tm-equip-requirements>small{color:#b5c9da!important}.tm-equip-requirements.compatible>strong{color:#8dd9b1!important}.tm-equip-requirements.incompatible>strong{color:#f4a29b!important}
.tm-equipment-overlay .tm-eq-card{box-sizing:border-box!important;width:112px!important;max-width:100%!important;height:120px!important;min-height:120px!important;justify-self:center!important;padding:6px!important;border:6px solid transparent!important;border-image:url('../img/ui/sapphire/card-v1.png') 30 fill / 6px / 0 stretch!important;background:none!important;border-radius:0!important}
.tm-eq-card .tm-eq-art{width:52px!important;height:52px!important;flex-shrink:0!important}.tm-eq-card-name{font-size:12px!important;line-height:16px!important;height:32px!important;min-height:32px!important;margin-top:4px!important;color:#f0e9d8!important}.tm-eq-card-type{font-size:10px!important;line-height:14px!important;margin-top:3px!important;color:#bccbd8!important}.tm-eq-card.rare .tm-eq-card-type,.tm-eq-rarity.rare{color:#83ccff!important}.tm-eq-card.epic .tm-eq-card-type,.tm-eq-rarity.epic{color:#d8adff!important}.tm-eq-card.legendary .tm-eq-card-type,.tm-eq-rarity.legendary{color:#f4d07b!important}
.tm-eq-header,.tm-eq-footer{background:none!important}.tm-eq-header h1,.tm-st-header h1{font-family:FrontierTitle,Georgia,serif!important;color:#ffe2a1!important;text-shadow:0 2px 3px #020e23!important}.tm-eq-footer,.tm-eq-current,.tm-eq-comparison{color:#c5d8e8!important}.tm-eq-message.error{color:#f4a29b!important}
.tm-social-panel{border-image-source:url('../img/ui/sapphire/panel-v1.png')!important;border-image-slice:210 130 170 fill!important}
.tm-quest-header{left:6%!important;right:6%!important;top:6%!important;height:11%!important;gap:12px!important;color:#f6e7c5!important}.tm-quest-header>div{flex:1!important;min-width:0!important;margin:0!important}.tm-quest-header h1{font:700 25px/31px FrontierTitle,Georgia,serif!important;margin:2px 0 0!important;color:#ffe2a1!important;white-space:nowrap!important}.tm-quest-header small{font-size:9px!important;line-height:13px!important;letter-spacing:1.4px!important;color:#c4d2df!important}.tm-quest-header .tm-quest-close{flex:0 0 auto!important}
.tm-quest-emblem{position:relative!important;display:block!important;width:44px!important;height:44px!important;overflow:hidden!important;flex:0 0 44px!important}.tm-quest-emblem img{position:absolute!important;width:400%!important;height:400%!important;max-width:none!important;left:-100%!important;top:-300%!important}
.tm-quest-summary{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;grid-gap:6px!important;margin-bottom:12px!important;flex-shrink:0!important}.tm-quest-summary>div{background:url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;padding:6px 3px!important;text-align:center!important}.tm-quest-summary strong{display:block!important;font-size:19px!important;line-height:23px!important;color:#f0ce83!important}.tm-quest-summary small{display:block!important;font-size:10px!important;line-height:14px!important;color:#c5d8e8!important}
.tm-quest-row{background-image:url('../img/ui/sapphire/card-v1.png')!important;padding:11px 14px!important;min-height:94px!important}.tm-quest-row[aria-pressed=true]{filter:brightness(1.3)!important;text-decoration:none!important;outline:1px solid #d5b36c!important;outline-offset:-3px!important}.tm-quest-row-meta{display:flex!important;justify-content:space-between!important;align-items:center!important;margin-bottom:3px!important}.tm-quest-row small{font-size:10px!important;line-height:15px!important;color:#b5c9da!important}.tm-quest-row .tm-quest-badge{color:#f0ce83!important}.tm-quest-row[data-status=READY] .tm-quest-badge{color:#8dd9b1!important}.tm-quest-row strong{font-size:14px!important;line-height:19px!important;color:#f6e7c5!important}.tm-quest-row-progress{display:block!important;font-size:10px!important;line-height:16px!important;margin-top:4px!important;color:#a8c4db!important}
.tm-quest-detail{color:#d7e2eb!important;padding-right:10px!important}.tm-quest-detail h2{color:#ffe2a1!important}.tm-quest-detail h3{color:#f0ce83!important;font-size:12px!important;letter-spacing:.5px!important}.tm-quest-chapter{color:#a8c4db!important}.tm-quest-detail-status{display:flex!important;justify-content:space-between!important;background:url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;padding:8px 12px!important;margin:0 0 12px!important;font-size:11px!important;line-height:18px!important;color:#c5d8e8!important}.tm-quest-detail-status strong{color:#f0ce83!important}.tm-quest-detail-status[data-status=READY] strong{color:#8dd9b1!important}
.tm-quest-objective,.tm-quest-location,.tm-quest-reward{background:url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;padding:9px 13px!important;color:#d7e2eb!important}.tm-quest-objective.is-done{color:#8dd9b1!important}.tm-quest-reward{color:#f0ce83!important}.tm-quest-prose{color:#c5d8e8!important}.tm-quest-actions button{color:#f6e7c5!important}.tm-quest-footer{color:#b5c9da!important}.tm-quest-button{color:#d7e2eb!important}.tm-quest-catalog input{color:#d7e2eb!important}.tm-quest-catalog input::placeholder{color:#a8bed1!important}
@media(max-height:520px){.tm-quest-header{top:6%!important;height:11%!important;gap:8px!important}.tm-quest-header h1{font-size:18px!important;line-height:23px!important;letter-spacing:.3px!important}.tm-quest-header small{font-size:7px!important;line-height:10px!important;letter-spacing:.7px!important}.tm-quest-emblem{width:28px!important;height:28px!important;flex-basis:28px!important}.tm-quest-header .tm-quest-close{min-height:30px!important;padding:4px 14px!important;font-size:11px!important}.tm-quest-summary{margin-bottom:7px!important;grid-gap:3px!important}.tm-quest-summary>div{padding:2px!important}.tm-quest-summary strong{font-size:14px!important;line-height:17px!important}.tm-quest-summary small{font-size:8px!important;line-height:11px!important}.tm-quest-row{min-height:80px!important;padding:7px 10px!important}.tm-quest-row strong{font-size:12px!important;line-height:17px!important}.tm-quest-row small,.tm-quest-row-progress{font-size:9px!important;line-height:13px!important}.tm-quest-detail h2{font-size:18px!important;line-height:24px!important}.tm-quest-detail-status{padding:5px 9px!important;margin-bottom:8px!important;font-size:10px!important}.tm-quest-objective,.tm-quest-location,.tm-quest-reward{padding:7px 10px!important}.tm-quest-actions button{font-size:11px!important;min-height:34px!important;padding:6px 12px!important}}

/* Item catalog cards share Equipment dimensions and generated frame. */
.tm-quest-body{top:22%!important;bottom:18%!important}
.tm-quest-detail::-webkit-scrollbar,.tm-quest-list::-webkit-scrollbar,.tm-inventory-detail::-webkit-scrollbar{width:5px}
.tm-quest-detail::-webkit-scrollbar-thumb,.tm-quest-list::-webkit-scrollbar-thumb,.tm-inventory-detail::-webkit-scrollbar-thumb{background:#9e824a;border-radius:4px}
.tm-armory-card,.tm-cloth-card,.tm-loot-card,.ew-grid-item,.tm-sell-grid>button.tm-im-button{box-sizing:border-box!important;position:relative!important;display:flex!important;flex-direction:column!important;align-items:center!important;width:112px!important;max-width:100%!important;height:120px!important;min-height:120px!important;padding:6px!important;margin:0!important;background:none!important;border:6px solid transparent!important;border-image:url('../img/ui/sapphire/card-v1.png') 30 fill / 6px / 0 stretch!important;border-radius:0!important;justify-self:center!important;color:#f0e9d8!important;overflow:hidden!important}
.tm-armory-list,.tm-cloth-grid,.tm-loot-grid,.ew-grid,.tm-sell-list.tm-sell-grid{display:grid!important;grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;grid-auto-rows:120px!important;grid-gap:9px!important;align-content:start!important;overflow-y:auto!important}
.tm-armory-card>.tm-armory-art,.tm-cloth-card>.tm-cloth-thumb,.tm-loot-card>.tm-reward-icon,.ew-grid-item>.ew-item-socket,.tm-sell-grid .tm-sell-art{position:relative!important;left:auto!important;top:auto!important;transform:none!important;width:52px!important;height:52px!important;min-height:52px!important;flex:0 0 52px!important;margin:0!important;background-size:52px 52px!important}
.ew-grid-item .ew-art{width:52px!important;height:52px!important}.tm-armory-card>span:not(.tm-armory-art){display:contents!important}.tm-armory-card .tm-armory-compatible,.tm-armory-card .tm-armory-incompatible{display:none!important}
.tm-armory-card strong,.tm-cloth-card strong,.tm-loot-card strong,.ew-grid-name,.tm-sell-grid .tm-item-card-name{display:block!important;flex:0 0 32px!important;width:100%!important;height:32px!important;min-height:32px!important;margin:4px 0 0!important;font:600 12px/16px RiseDialogue,sans-serif!important;color:#f0e9d8!important;text-align:center!important;overflow:hidden!important;overflow-wrap:anywhere!important}
.tm-armory-card small,.tm-cloth-card>span,.tm-loot-card small,.ew-grid-rarity,.tm-sell-grid .tm-item-card-rarity{display:block!important;max-width:100%!important;margin:3px 0 0!important;font:600 10px/14px RiseDialogue,sans-serif!important;color:#c6d5e3!important;white-space:nowrap!important;text-overflow:ellipsis!important;overflow:hidden!important}.ew-grid-price{position:absolute!important;right:2px!important;top:1px!important;font-size:9px!important;color:#f0ce83!important}.tm-cloth-card>small{display:none!important}

/* Border already supplies each card padding. */
.tm-equipment-overlay .tm-eq-card,.tm-armory-card,.tm-cloth-card,.tm-loot-card,.ew-grid-item,.tm-sell-grid>button.tm-im-button{padding:0!important}

/* Keep small action frames legible without changing button dimensions. */
.tm-quest-button,.tm-social-panel button:not(.tm-social-close):not(.tm-party-kick){box-shadow:inset 0 0 0 2px #a88b52!important}

/* Bank cards keep the artwork, quantity and preview in separate spaces. */
.ew-bank-layout .ew-grid{grid-template-columns:repeat(auto-fill,minmax(112px,1fr))!important;grid-auto-rows:148px!important;grid-gap:10px!important}.ew-bank-card{position:relative;width:112px;height:148px;justify-self:center}.ew-bank-card>.ew-grid-item{width:112px!important;height:148px!important;min-height:148px!important;padding:30px 6px 6px!important;box-shadow:inset 0 0 0 1px #a88b52!important}.ew-bank-card>.ew-grid-item>.ew-item-socket{width:48px!important;height:48px!important;min-height:48px!important;flex-basis:48px!important;border:0!important;border-image:none!important;outline:none!important;background:none!important}.ew-bank-card .ew-item-socket>.ew-art{left:0!important;top:0!important;width:48px!important;height:48px!important}.ew-bank-card .ew-stack{right:-22px!important;bottom:0!important;padding:1px 3px!important;background:#0a1a2ce8!important;border-radius:3px;color:#f8e3ae!important;font:700 10px/14px RiseDialogue,sans-serif!important;text-shadow:none!important}.ew-bank-card .ew-plus{left:-20px!important;bottom:0!important;color:#f0ce83!important;text-shadow:none!important}.ew-bank-card .ew-protected{left:-20px!important;top:-10px!important;text-shadow:none!important;font-size:8px!important}.ew-bank-card>.ew-item-preview{position:absolute;right:3px;top:3px;width:32px;min-width:32px;height:28px;min-height:28px;padding:3px;border:1px solid #a88b52;background:#102b46;cursor:pointer;color:#f0ce83;z-index:2}.ew-item-preview svg{display:block;width:22px;height:20px;margin:auto;fill:none;stroke:currentColor;stroke-width:1.8}.ew-bank-card>.ew-grid-item[aria-pressed=true]{outline:2px solid #e2b957!important;outline-offset:-3px!important}.ew-bank-card .ew-grid-name{margin-top:5px!important}.ew-bank-card .ew-grid-rarity{margin-top:3px!important}
