/* Complete the sapphire family inside menus, including previews and loadouts. */
.tm-dungeon-menu>div,.tm-revival-popup,.tm-loot-tooltip{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#e2eaf0!important;font-family:RiseDialogue,sans-serif!important}
.tm-dungeon-menu button,.tm-revival-popup button{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;color:#f5e2b2!important}
.tm-loot-tooltip{max-height:60%;overflow-y:auto;box-sizing:border-box;color:#e2eaf0!important}.tm-loot-tooltip>span{color:#f0ce83!important}.tm-loot-stats{color:#c5d8e8}
.tm-result-panel footer button{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;color:#e2eaf0!important;border:0!important;border-radius:0!important}
.tm-result-rewards>button{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;color:#e2eaf0!important;border:0!important;border-radius:0!important}.tm-result-gold,.tm-result-rank strong{color:#f0ce83!important}.tm-result-details h2{color:#f0ce83!important}
.tm-loot-panel header button{background:transparent url('../img/ui/party/close-v1.png') center/contain no-repeat!important;color:transparent!important;border:0!important;width:32px!important;height:32px!important;min-height:32px!important;padding:0!important;font-size:0!important}
#tm-armor-shop .tm-armory-info{overflow-y:auto!important;overflow-x:hidden!important;min-height:0;flex:1}
.tm-cloth-preview,.tm-cloth-basket,.tm-ob-preview{overflow-y:auto;overflow-x:hidden;min-height:0}
.tm-cloth-message{flex:1;min-width:0;max-height:100%;overflow-y:auto;line-height:16px}.tm-cloth-actions{flex-shrink:0}
.tm-ob-confirm{background:none!important;border:12px solid transparent!important;border-image:url('../img/ui/sapphire/card-v1.png') 30 fill / 12px / 0 stretch!important;border-radius:0!important;box-sizing:border-box;max-width:calc(100vw - 32px);max-height:calc(100vh - 32px);padding:20px 24px!important;overflow-y:auto;color:#e2eaf0}
.tm-ob-confirm h2{font:700 20px/26px FrontierTitle,Georgia,serif;margin:0 0 12px!important;color:#f0ce83}.tm-ob-confirm p{font-size:14px;line-height:21px;margin:0 0 16px}.tm-ob-confirm-actions{display:flex;flex-wrap:wrap;gap:8px}.tm-ob-confirm-actions button{font-size:12px!important;line-height:18px;min-height:34px;padding:7px 12px}
.tm-ui-loading-panel{background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;color:#e2eaf0!important;max-width:80vw;box-sizing:border-box;padding:24px!important;font:14px/21px RiseDialogue,sans-serif!important;overflow-wrap:anywhere}
.tm-st-header>div:first-child,.tm-eq-header>div:first-child{min-width:0;flex:1}.tm-st-header h1,.tm-eq-header h1{overflow:hidden;text-overflow:ellipsis}.tm-st-header-actions{flex-shrink:0}.tm-sk-identity{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tm-st-panel>.tm-st-body,.tm-st-panel>.tm-cloth-body{top:22%!important;bottom:18%!important}
.tm-st-panel>.tm-sk-body{top:22%!important;bottom:40%!important}
.tm-st-stage,.tm-sk-stage,.tm-ob-stage,.tm-cloth-preview .tm-ob-stage,.ew-cloud-theme .ew-forge-stage{
 background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;
 border:0!important;border-radius:0!important;box-shadow:none!important;
}
.tm-st-attributes,.tm-st-skills,.tm-sk-preview,.tm-sk-detail,.tm-ob-models,.tm-ob-preview{border-left-color:#9a8252!important}
.tm-st-radar,.tm-st-stat,.tm-st-skill-detail,.tm-st-skill,.tm-sk-loadout,.tm-sk-costs>span,.tm-st-level,.tm-st-tag,.tm-cloth-catalog,.tm-cloth-preview,.tm-cloth-basket{
 background:transparent!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;box-shadow:none!important;color:#c5d8e8!important;
}
.tm-st-stat{height:34px;padding:0 3px!important}.tm-st-stat strong{color:#f5e2b2!important}.tm-st-level{color:#f0ce83!important;padding:4px 6px!important}
.tm-st-tag{padding:1px 4px!important;font-size:10px!important}.tm-st-radar{padding:2px 0 5px!important}
.tm-st-skill-detail{padding:8px 10px!important}.tm-st-skill{padding:5px 8px!important}
.tm-st-skill.selected,.tm-st-filter.active,.tm-ob-category.active,.tm-sk-slot.selected{outline:1px solid #e7c275!important;outline-offset:-2px!important;filter:brightness(1.15)}
.tm-st-filter,.tm-st-search,.tm-st-member-select,.tm-st-pose-buttons button,.tm-st-back,.tm-sk-replay,.tm-sk-equip-actions button,.tm-sk-slot-actions button,.tm-sk-slot,.tm-ob-category,.tm-ob-variant,.tm-ob-confirm button,.tm-cloth-tabs button,.tm-cloth-directions button,.tm-option-switch{
 background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important;color:#d9e3ed!important;text-shadow:none!important;
}
.tm-st-bar{background:#10253b!important;border-color:#6f674d!important;box-shadow:none!important}.tm-st-vital.hp .tm-st-bar i{background:#dc897b!important}.tm-st-vital.mp .tm-st-bar i{background:#6bbce3!important}.tm-st-exp .tm-st-bar i{background:#d9b867!important}
#tm-status-hud .tm-st-body{grid-template-columns:280px 350px minmax(0,1fr);grid-gap:18px}
#tm-status-hud .tm-st-identity{height:44px}#tm-status-hud .tm-st-stage{height:180px;margin:8px 0 10px}#tm-status-hud .tm-st-battler{width:180px;height:180px;top:0}
#tm-status-hud .tm-st-chart{height:160px;width:254px}#tm-status-hud .tm-st-vital{margin-top:8px}#tm-status-hud .tm-st-vital>div:first-child{margin-bottom:3px}
#tm-status-hud .tm-st-skill-detail{height:100px}#tm-status-hud .tm-st-bottom-wallet{color:#f0ce83!important}
.tm-sk-loadout{top:63%!important;height:20%!important;padding:5px 10px!important}
.tm-sk-loadout-heading{height:22px}.tm-sk-equipped-count,.tm-sk-slot kbd{color:#f0ce83!important}.tm-sk-slots{grid-gap:7px!important;margin:4px 0 7px!important}
.tm-sk-slot{height:61px!important}.tm-sk-slot kbd{border:0;background:none!important;padding:0;left:5px;top:3px}.tm-sk-slot .tm-st-icon{width:30px;height:30px}.tm-sk-slot small{font-size:10px;line-height:14px}
.tm-sk-stage{height:150px!important}.tm-sk-preview-note{font-size:11px!important;line-height:16px}.tm-sk-detail-content{max-height:150px!important}.tm-sk-costs span{padding:3px 5px!important}
.tm-sk-loadout-heading span{font-size:10px!important}.tm-sk-footer{background:none!important}.tm-sk-footer-actions{align-items:center}
#tm-skill-hud .tm-sk-save{height:44px!important;min-height:44px!important;background:transparent url('../img/ui/frontend/button-primary-v1.png') center/100% 100% no-repeat!important;padding:8px 28px!important;font-size:12px!important}
/* Four dedicated quick-slot cards; labels and feedback stay inside the frame. */
.tm-inventory-doses{background:transparent url('../img/ui/sapphire/panel-v1.png') center/100% 100% no-repeat!important;color:#d9e3ed!important;font-family:RiseDialogue,sans-serif!important}
.tm-inventory-doses h2{left:10%!important;right:10%!important;top:7%!important;height:11%!important;margin:0!important;font:700 18px/24px RiseDialogue,sans-serif!important;color:#f0ce83!important;text-shadow:none!important;overflow:hidden}
.tm-inventory-dose-row{left:7%!important;right:7%!important;top:25%!important;bottom:22%!important;width:auto!important;height:auto!important;display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;grid-gap:8px!important}
.tm-inventory-dose-row>button{position:relative!important;left:auto!important;top:auto!important;width:100%!important;height:100%!important;background:none!important;border:5px solid transparent!important;border-image:url('../img/ui/sapphire/card-v1.png') 30 fill / 5px / 0 stretch!important;border-radius:0!important}
.tm-inventory-dose-row kbd{left:3px!important;top:2px!important;background:none!important;border:0!important;font:700 13px/18px RiseDialogue,sans-serif!important;color:#f0ce83!important;padding:0!important}
.tm-inventory-dose-row .tm-dose-icon{width:40px!important;height:40px!important;left:50%!important;top:42%!important;transform:translate(-50%,-50%)!important}
.tm-dose-empty{position:absolute;left:50%;top:38%;transform:translate(-50%,-50%);font:22px/28px RiseDialogue,sans-serif!important;color:#94adc3!important}
.tm-dose-owned{top:3px!important;bottom:auto!important;right:3px!important;font:10px/15px RiseDialogue,sans-serif!important;color:#d9e3ed!important}
.tm-dose-slot-name{left:2px!important;right:2px!important;top:auto!important;bottom:4px!important;height:28px!important;font:10px/14px RiseDialogue,sans-serif!important;color:#d9e3ed!important;white-space:normal!important;overflow:hidden!important;overflow-wrap:anywhere}
.tm-inventory-dose-status{left:9%!important;right:9%!important;bottom:5%!important;height:10%!important;margin:0!important;white-space:normal!important;font:10px/12px RiseDialogue,sans-serif!important;color:#b5c9da!important;overflow-y:auto!important}
.tm-inventory-dose-row>button:focus-visible,.tm-inventory-dose-row>button.is-drop-target{outline:2px solid #f0ce83!important;outline-offset:1px!important;box-shadow:none!important}
.tm-social-panel{background:transparent!important;box-shadow:none!important;text-shadow:none!important}.tm-social-panel button{text-shadow:none!important}.tm-social-panel h2{font-family:FrontierTitle,Georgia,serif;color:#f0ce83!important}
@media(max-height:520px){.ew-cloud-theme .ew-forge-stage{flex-basis:120px!important;height:120px!important}}
/* Skill actions remain fully visible; only the description scrolls. */
.tm-sk-preview{display:flex;flex-direction:column;overflow:hidden!important}.tm-sk-preview>.tm-st-section-heading{flex-shrink:0}
.tm-sk-preview .tm-sk-stage{flex:1;min-height:100px;height:auto!important;max-height:150px;margin-top:8px}.tm-sk-preview-caption{margin:4px 0!important;line-height:20px}.tm-sk-preview-actions{flex-shrink:0}.tm-sk-preview-note{flex-shrink:0;font-size:10px!important;line-height:14px!important;margin:4px 0!important}
.tm-sk-replay{min-height:28px;padding:4px 12px!important;font-size:11px!important}.tm-sk-detail{display:flex;flex-direction:column;overflow:hidden!important}.tm-sk-detail>.tm-st-section-heading{flex-shrink:0}.tm-sk-detail-content{flex:1;min-height:0;max-height:none!important;overflow:auto}.tm-sk-equip-actions{flex-shrink:0;margin-top:6px!important}.tm-sk-equip-actions button{min-height:30px!important;padding:6px 10px!important;font-size:12px!important;line-height:18px}.tm-sk-equip-actions button+button{margin-top:4px!important}.tm-sk-action-hint{flex-shrink:0;font-size:10px!important;line-height:14px!important;margin:4px 0!important}
/* Mobile menus use viewport dimensions and real text sizes, without shrinking desktop text. */
@media(orientation:landscape) and (max-height:520px){
 .tm-result-panel header{top:10%!important;height:9%!important}.tm-result-panel header small{font-size:8px!important;line-height:10px!important}.tm-result-panel header h1{font-size:18px!important;line-height:22px!important;margin:0!important}
 .tm-quest-header small,.tm-bestiary-header small{font-size:8px!important;line-height:11px!important}
 .tm-st-panel,.tm-eq-panel{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;max-width:none!important;max-height:none!important;transform:translate(-50%,-50%)!important;padding:0!important}
 .tm-st-panel,.tm-eq-panel{font-size:11px!important;line-height:16px!important;color:#d9e3ed!important}
 .tm-st-header,.tm-eq-header{height:11%!important;top:6%!important;padding-top:0!important;padding-bottom:0!important}.tm-st-header h1,.tm-eq-header h1{font-size:18px!important;line-height:23px!important;letter-spacing:.3px!important;margin:0!important;white-space:nowrap}
 .tm-st-eyebrow,.tm-eq-eyebrow,.tm-ob-header-side{font-size:8px!important;line-height:10px!important;letter-spacing:.5px!important}.tm-st-header-actions{gap:0!important}.tm-st-header-actions>*+*{margin-left:6px!important}
 .tm-st-close,.tm-eq-close{width:28px!important;height:28px!important;min-height:28px!important;font-size:21px!important}
 .tm-st-panel>.tm-st-body,.tm-st-panel>.tm-sk-body,.tm-st-panel>.tm-cloth-body,.tm-eq-body{left:6%!important;right:6%!important;grid-gap:10px!important}
 .tm-st-panel>.tm-st-footer,.tm-eq-footer{left:7%!important;right:7%!important;top:86%!important;height:8%!important;padding:0!important;line-height:14px!important;font-size:10px!important;background:none!important}
 .tm-st-footer button,.tm-eq-footer button{min-height:28px!important;padding:5px 10px!important;font-size:11px!important;line-height:16px!important}
 .tm-st-section-heading{height:24px!important;flex-shrink:0}.tm-st-section-heading h2{font-size:13px!important;line-height:18px!important}.tm-st-tag{font-size:8px!important;padding:0!important;border-width:4px!important;line-height:12px!important}
 .tm-st-search,.tm-eq-search,.tm-eq-sort{font-size:11px!important;height:28px!important;min-height:28px!important;padding:4px 8px!important;margin-top:4px!important}
 .tm-st-filters{padding:5px 0!important;min-height:29px!important}.tm-st-filter,.tm-eq-filter{font-size:10px!important;padding:4px 7px!important;line-height:14px!important}
 .tm-st-skill{min-height:46px!important;padding:3px 5px!important;margin-bottom:5px!important}.tm-st-skill .tm-st-icon{width:25px!important;height:25px!important;margin-right:6px!important}.tm-st-skill-text strong{font-size:11px!important;line-height:15px!important}.tm-st-skill-text small,.tm-st-skill-cost{font-size:9px!important;line-height:13px!important}
 .tm-st-skill-detail{padding:4px 6px!important;margin-top:5px!important}.tm-st-skill-detail p{font-size:11px!important;line-height:16px!important;margin:3px 0!important}.tm-st-skill-detail>strong{font-size:11px!important}.tm-st-detail-meta{font-size:9px!important}
 #tm-status-hud .tm-st-body{grid-template-columns:24% 31% minmax(0,1fr)!important}
 #tm-status-hud .tm-st-identity{height:30px!important}.tm-st-name{font-size:16px!important;line-height:20px!important}.tm-st-job{font-size:10px!important;line-height:14px!important;margin:0!important}
 #tm-status-hud .tm-st-stage{height:90px!important;margin:4px 0 6px!important}#tm-status-hud .tm-st-battler{width:90px!important;height:90px!important}.tm-st-level{font-size:10px!important;padding:2px 4px!important;border-width:4px!important}
 #tm-status-hud .tm-st-radar,.tm-ob-role-stats .tm-st-radar{display:none!important}.tm-st-stats{grid-gap:4px!important;margin-top:6px!important}.tm-st-stat{height:28px!important;border-width:4px!important;padding:0 2px!important}.tm-st-stat .tm-st-icon{width:18px!important;height:18px!important;margin-right:3px!important}.tm-st-stat>span:not(.tm-st-icon){font-size:10px!important}.tm-st-stat strong{font-size:11px!important}
 .tm-st-stat-note,.tm-st-observation,.tm-st-empty{font-size:10px!important;line-height:15px!important}.tm-st-vital{margin-top:5px!important}.tm-st-vital>div:first-child,.tm-st-exp>div:first-child{font-size:10px!important;line-height:13px!important;margin-bottom:2px!important}.tm-st-bar{height:5px!important}.tm-st-exp{margin-top:5px!important}.tm-st-equipment h3{font-size:11px!important;line-height:15px!important;margin:8px 0 4px!important}.tm-st-equipment-row{font-size:10px!important;line-height:15px!important}
 #tm-status-hud .tm-st-member-picker>span{font-size:9px!important;margin-right:4px!important}#tm-status-hud .tm-st-member-select{width:120px!important;min-height:28px!important;font-size:10px!important;padding:4px 18px 4px 8px!important}
 #tm-status-hud .tm-st-bottom-wallet,#tm-equipment-hud .tm-eq-bottom-gold{font-size:12px!important;right:8%!important;bottom:7%!important}.tm-st-feedback{font-size:10px!important}
 .tm-eq-body{grid-template-columns:23% minmax(0,1fr) 29%!important}.tm-eq-character{padding-right:8px!important}.tm-eq-detail{padding-left:8px!important}.tm-eq-identity h2{font-size:16px!important;line-height:20px!important;margin:2px 0!important}.tm-eq-class{font-size:10px!important;line-height:14px!important}.tm-eq-section-label{font-size:9px!important;line-height:13px!important;letter-spacing:.3px!important}
 .tm-eq-loadout{height:112px!important;margin-top:4px!important}.tm-equipment-overlay .tm-eq-slot{width:32px!important;height:32px!important}.tm-eq-slot .tm-eq-art{width:28px!important;height:28px!important}.tm-eq-slot-0,.tm-eq-slot-1{top:0!important}.tm-eq-slot-2,.tm-eq-slot-3{top:48px!important}.tm-eq-slot-4{left:50%!important;top:80px!important;margin-left:-16px!important}.tm-eq-avatar{width:48px!important;height:58px!important;top:5px!important;margin-left:-24px!important}.tm-eq-slot-label{top:33px!important;font-size:8px!important;line-height:11px!important}.tm-eq-slot-4 .tm-eq-slot-label{top:31px!important}.tm-eq-equipped-count{font-size:9px!important;margin-top:4px!important}.tm-eq-stats{grid-gap:3px 8px!important;margin-top:5px!important}.tm-eq-stat{font-size:10px!important;line-height:14px!important}
 .tm-eq-inventory{padding:0 6px!important}.tm-eq-inventory-heading h2{font-size:15px!important}.tm-eq-item-count{font-size:9px!important}.tm-eq-toolbar{margin-bottom:5px!important}.tm-eq-refresh{font-size:10px!important}.tm-eq-inventory-foot{font-size:10px!important;line-height:14px!important;padding-top:4px!important}
 .tm-eq-item-hero .tm-eq-art{width:38px!important;height:38px!important}.tm-eq-rarity{font-size:9px!important;line-height:13px!important}.tm-eq-item-name{font-size:14px!important;line-height:19px!important;margin:4px 0!important}.tm-eq-item-type,.tm-eq-description,.tm-eq-detail-hint,.tm-eq-current-name{font-size:11px!important;line-height:16px!important}.tm-equip-requirements{padding:5px 6px!important;margin:6px 0!important}.tm-equip-requirements>small{font-size:9px!important;line-height:13px!important}.tm-equip-requirements>p,.tm-equip-requirements>strong{font-size:10px!important;line-height:15px!important}.tm-eq-compare-row{font-size:11px!important;line-height:16px!important}.tm-eq-comparison-title{font-size:9px!important;line-height:13px!important}.tm-equipment-overlay .tm-eq-equip{min-height:30px!important;font-size:11px!important;padding:5px 8px!important}
 .tm-st-panel>.tm-sk-body{grid-template-columns:29% 35% minmax(0,1fr)!important;top:22%!important;bottom:41%!important}.tm-sk-preview,.tm-sk-detail{padding-left:8px!important}.tm-sk-preview .tm-sk-stage{min-height:50px!important;max-height:none!important;margin-top:4px!important}.tm-sk-preview-caption{font-size:11px!important;line-height:15px!important;margin:3px 0!important}.tm-sk-preview-note{display:none!important}.tm-sk-target-label{font-size:8px!important;right:5px!important;bottom:5px!important}.tm-sk-replay{font-size:10px!important;min-height:25px!important;padding:3px 8px!important}
 .tm-sk-detail-hero{margin-top:3px!important;gap:5px!important}.tm-sk-detail-hero h3{font-size:12px!important;line-height:16px!important}.tm-sk-detail-hero .tm-st-icon{width:25px!important;height:25px!important}.tm-sk-description{font-size:10px!important;line-height:14px!important;margin:3px 0!important}.tm-sk-costs{margin:4px 0!important}.tm-sk-costs span{font-size:9px!important;line-height:13px!important;border-width:3px!important;padding:0 2px!important}.tm-sk-equip-actions{margin-top:4px!important}.tm-sk-equip-actions button{min-height:24px!important;padding:3px 5px!important;font-size:10px!important;line-height:15px!important}.tm-sk-equip-actions button+button{margin-top:3px!important}.tm-sk-action-hint{font-size:9px!important;line-height:12px!important;margin:3px 0!important}
 .tm-sk-loadout{left:6%!important;right:6%!important;top:62%!important;height:21%!important;padding:1px 5px!important;border-width:4px!important}.tm-sk-loadout-heading{height:16px!important;line-height:14px!important}.tm-sk-loadout-heading strong{font-size:10px!important}.tm-sk-loadout-heading span{font-size:8px!important}.tm-sk-slots{grid-gap:4px!important;margin:2px 0 3px!important}.tm-sk-slot{height:36px!important;padding:0!important}.tm-sk-slot kbd{font-size:8px!important;left:3px!important;top:1px!important;line-height:10px!important}.tm-sk-slot .tm-st-icon{width:20px!important;height:20px!important}.tm-sk-slot small{font-size:8px!important;line-height:11px!important;height:11px!important}.tm-sk-slot-empty{height:20px!important;line-height:20px!important;font-size:20px!important}.tm-sk-slot-actions button{font-size:9px!important;line-height:12px!important;padding:1px 6px!important;min-height:16px!important}.tm-sk-footer-actions{margin-left:8px!important}#tm-skill-hud .tm-sk-save{width:155px!important;height:29px!important;min-height:29px!important;font-size:11px!important;padding:4px 20px!important}.tm-sk-message{font-size:10px!important;line-height:14px!important}
 .tm-cloth-body{grid-template-columns:38% 30% minmax(0,1fr)!important;grid-gap:8px!important}.tm-cloth-catalog,.tm-cloth-preview,.tm-cloth-basket{padding:4px!important;border-width:4px!important}.tm-cloth-tabs button,.tm-cloth-directions button{font-size:10px!important;padding:4px!important}.tm-cloth-tools{margin:5px 0!important}.tm-cloth-tools input,.tm-cloth-tools select{font-size:10px!important;padding:4px!important;height:26px!important}.tm-cloth-preview .tm-ob-stage{height:100px!important;min-height:0!important}.tm-cloth-battler{height:100px!important}.tm-cloth-minis{height:48px!important;gap:4px!important}.tm-cloth-minis canvas{width:45px!important;height:45px!important}.tm-cloth-basket h2{font-size:14px!important;margin:0 0 6px!important}.tm-cloth-basket h3{font-size:11px!important;margin-top:10px!important}.tm-cloth-detail{font-size:11px!important;line-height:16px!important;min-height:25px!important}.tm-cloth-preview p,.tm-cloth-basket p{font-size:10px!important;line-height:14px!important}
 .tm-armory-body{left:6%!important;right:6%!important;top:22%!important;bottom:18%!important;grid-gap:12px!important}.tm-armory-card strong,.tm-armory-card small{max-width:100%}.tm-armory-detail{overflow-y:auto!important}#tm-armor-shop .tm-armory-info h2{font-size:14px!important;line-height:18px!important}#tm-armor-shop .tm-armory-info>p{font-size:10px!important}.tm-armory-wallet,.tm-st-wallet{font-size:12px!important}.tm-armory-stats{font-size:10px!important}.tm-armory-detail input{height:27px!important;font-size:11px!important}.tm-armory-detail button{min-height:28px!important;font-size:11px!important}.tm-armory-total{font-size:12px!important}
 .tm-dose-shop .tm-dose-catalog{left:6%!important;right:6%!important;top:22%!important;bottom:23%!important;grid-auto-rows:minmax(170px,auto)!important;gap:9px!important}.tm-dose-catalog article{padding:9px!important;font-size:11px!important}.tm-dose-catalog article h2{font-size:14px!important;line-height:18px!important}.tm-dose-catalog article p{font-size:11px!important;line-height:16px!important}.tm-dose-catalog article button,.tm-dose-catalog input{font-size:11px!important}.tm-dose-shop .tm-dose-status{top:79%!important;font-size:10px!important;padding:2px 4px!important}.tm-dose-shop-actions button{font-size:11px!important;min-height:28px!important}
 .tm-ob-panel>.tm-ob-body{top:27%!important;bottom:18%!important;left:6%!important;right:6%!important;grid-gap:9px!important}.tm-ob-creator .tm-ob-body{grid-template-columns:21% 37% minmax(0,1fr)!important}.tm-ob-role .tm-ob-body{grid-template-columns:27% 34% minmax(0,1fr)!important}.tm-ob-subtitle{top:20%!important;left:6%!important;right:6%!important;font-size:10px!important;line-height:14px!important;height:24px!important}.tm-ob-category{font-size:10px!important;padding:5px!important;line-height:15px!important;margin-bottom:4px!important}.tm-ob-models,.tm-ob-preview{padding-left:8px!important}.tm-ob-variant strong,.tm-ob-variant small{font-size:9px!important;line-height:12px!important}.tm-ob-stage{height:100px!important;min-height:0!important}.tm-ob-role-battler{max-height:100px!important}.tm-ob-role-title h2{font-size:15px!important}.tm-ob-role-card{padding:5px!important;min-height:40px!important}.tm-ob-role-card strong{font-size:12px!important}.tm-ob-role-card small,.tm-ob-role-capabilities p{font-size:10px!important;line-height:14px!important}.tm-ob-footer,.tm-ob-message{font-size:10px!important;line-height:14px!important}.tm-ob-actions button{font-size:11px!important;min-height:28px!important;padding:4px 9px!important}
 .tm-system-options{left:7%!important;right:7%!important;top:22%!important;bottom:18%!important}.tm-option-row{min-height:38px!important;padding:5px 7px!important}.tm-option-row>label{font-size:12px!important;line-height:17px!important}.tm-option-volume output{font-size:11px!important}.tm-system-footer{font-size:10px!important;line-height:14px!important}
 .ew-cloud-theme .ew-pane,.ew-cloud-theme .ew-enhance-pane{border-width:4px!important;padding:5px 6px!important}.ew-cloud-theme .ew-pane-head{min-height:23px!important;margin-bottom:2px!important}.ew-cloud-theme .ew-pane-head h2{font-size:12px!important;line-height:17px!important}.ew-cloud-theme .ew-pane-head small{font-size:9px!important}.ew-cloud-theme .ew-search{font-size:11px!important;height:27px!important;min-height:27px!important;margin:2px 0 5px!important}.ew-cloud-theme .ew-item-detail{flex-basis:62px!important;padding:4px 5px!important;border-width:3px!important;margin-top:5px!important}.ew-cloud-theme .ew-item-detail h3{font-size:11px!important;line-height:15px!important;margin-bottom:3px!important}.ew-cloud-theme .ew-item-detail p{font-size:10px!important;line-height:14px!important;margin:3px 0!important}.ew-transfer>.ew-button{font-size:10px!important;line-height:14px!important;min-height:34px!important;padding:5px!important}.ew-capacity{font-size:10px!important;line-height:14px!important}.ew-transfer>small{font-size:9px!important;line-height:13px!important}.ew-cloud-theme .ew-forge-stage{flex-basis:85px!important;height:85px!important}.ew-recipe strong{font-size:11px!important;line-height:15px!important}.ew-recipe small{font-size:10px!important;line-height:14px!important}
 /* Match the actual on-screen size of Inventory cards, including labels. */
 .tm-eq-grid,.tm-armory-list,.tm-cloth-grid,.tm-loot-grid,.ew-grid,.tm-sell-list.tm-sell-grid{grid-template-columns:repeat(auto-fill,minmax(var(--rise-mobile-card-width),1fr))!important;grid-auto-rows:var(--rise-mobile-card-height)!important;grid-gap:6px!important;min-height:0!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{width:var(--rise-mobile-card-width)!important;height:var(--rise-mobile-card-height)!important;min-height:var(--rise-mobile-card-height)!important;padding:0!important;border-width:4px!important;border-image-width:4px!important}
 .tm-eq-card>.tm-eq-art,.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,.ew-grid-item .ew-art{width:var(--rise-mobile-card-icon)!important;height:var(--rise-mobile-card-icon)!important;min-height:var(--rise-mobile-card-icon)!important;flex-basis:var(--rise-mobile-card-icon)!important;background-size:var(--rise-mobile-card-icon) var(--rise-mobile-card-icon)!important}
 .tm-eq-card-name,.tm-armory-card strong,.tm-cloth-card strong,.tm-loot-card strong,.ew-grid-name,.tm-sell-grid .tm-item-card-name{font-size:var(--rise-mobile-card-font)!important;line-height:var(--rise-mobile-card-line)!important;height:var(--rise-mobile-card-name-height)!important;min-height:var(--rise-mobile-card-name-height)!important;flex-basis:var(--rise-mobile-card-name-height)!important;margin-top:2px!important}
 .tm-eq-card-type,.tm-armory-card small,.tm-cloth-card>span,.tm-loot-card small,.ew-grid-rarity,.tm-sell-grid .tm-item-card-rarity{font-size:8px!important;line-height:10px!important;margin-top:1px!important}
 /* Native canvas Inventory retains its layout, with readable logical font sizes. */
 #tm-inventory-toolbar.tm-im-toolbar{grid-auto-rows:48px!important;font-size:20px!important}#tm-inventory-toolbar.tm-im-toolbar input,#tm-inventory-toolbar.tm-im-toolbar select,#tm-inventory-toolbar.tm-im-toolbar button{font-size:20px!important;line-height:26px!important;min-height:44px!important;padding:6px 8px!important}#tm-inventory-toolbar .tm-inventory-count{font-size:18px!important}#tm-inventory-toolbar .tm-im-status{font-size:18px!important}
 #tm-inventory-detail{font-size:20px!important;line-height:28px!important}#tm-inventory-detail h2{font-size:26px!important;line-height:33px!important}#tm-inventory-detail .tm-inventory-rarity,#tm-inventory-detail .tm-inventory-item-type{font-size:18px!important;line-height:24px!important}#tm-inventory-detail h3{font-size:20px!important;line-height:26px!important}#tm-inventory-detail .tm-equip-requirements>small{font-size:18px!important;line-height:24px!important}#tm-inventory-detail .tm-equip-requirements>p,#tm-inventory-detail .tm-equip-requirements>strong{font-size:20px!important;line-height:27px!important}#tm-inventory-detail .tm-inventory-stats span{font-size:18px!important}#tm-inventory-detail .tm-inventory-stats strong{font-size:20px!important}#tm-inventory-detail .tm-inventory-description{font-size:20px!important;line-height:28px!important}
 .tm-inventory-doses h2{font-size:16px!important;line-height:22px!important;white-space:nowrap}.tm-inventory-dose-row kbd{font-size:18px!important;line-height:22px!important}.tm-dose-slot-name{font-size:18px!important;line-height:21px!important;height:42px!important}.tm-dose-owned{font-size:16px!important;line-height:20px!important}.tm-inventory-dose-row .tm-dose-icon{top:35%!important}.tm-inventory-dose-status{font-size:17px!important;line-height:20px!important;height:11%!important;bottom:4%!important}.tm-inventory-dose-row{bottom:23%!important}
 #tm-inventory-book-action button{font-size:20px!important}
 .tm-loot-panel{width:calc(100vw - 16px)!important;height:calc(100vh - 16px)!important;transform:none!important}.tm-loot-panel header{left:9%!important;right:9%!important;top:10%!important;height:11%!important;box-sizing:border-box}.tm-loot-panel header small{font-size:8px!important;line-height:11px!important}.tm-loot-panel header h2{font-size:18px!important;line-height:23px!important;margin:0!important}.tm-loot-grid{left:7%!important;right:7%!important;top:22%!important;bottom:18%!important}.tm-loot-panel footer{left:7%!important;right:7%!important;bottom:7%!important;font-size:10px!important;line-height:14px!important}.tm-loot-tooltip{font-size:11px!important;line-height:16px!important}.tm-loot-tooltip>strong{font-size:12px!important}.tm-loot-tooltip p{font-size:11px!important;line-height:16px!important}
 .tm-dungeon-menu>div{width:640px!important;box-sizing:border-box;padding:38px!important}.tm-dungeon-menu h2{font-size:32px!important;line-height:42px!important;margin:0 0 20px!important;color:#f0ce83}.tm-dungeon-menu button{font-size:26px!important;line-height:34px!important;min-height:64px!important}.tm-dungeon-menu small{font-size:20px!important;line-height:28px!important}
 .tm-revival-popup{width:640px!important;box-sizing:border-box;padding:30px!important}.tm-revival-popup h2{font-size:30px!important;line-height:38px!important}.tm-revival-popup p,.tm-revival-popup small{font-size:20px!important;line-height:28px!important}.tm-revival-popup button{font-size:22px!important;line-height:30px!important;min-height:60px!important}
 .tm-cloth-preview .tm-ob-stage{flex-shrink:0}.tm-cloth-preview-actions button{font-size:10px!important;padding:3px 5px!important}.tm-cloth-directions{flex-wrap:wrap}.tm-cloth-panel .tm-cloth-wallet{font-size:12px!important;min-width:0!important;padding:4px 9px!important;line-height:18px!important}.tm-cloth-message{font-size:10px!important;line-height:14px!important}.tm-cloth-actions>button+button{margin-left:5px!important}.tm-cloth-actions button{font-size:10px!important;padding:4px 7px!important;min-height:28px!important}.tm-cloth-reset{font-size:10px!important;min-height:26px!important;padding:4px 6px!important;flex-shrink:0}
 .tm-ob-battler,.tm-ob-role-battler{width:100px!important;height:100px!important;max-height:none!important;top:0!important;object-fit:contain!important}.tm-ob-mini-previews{grid-gap:5px!important}.tm-ob-mini-previews>div{height:49px!important;background:transparent url('../img/ui/sapphire/card-v1.png') center/100% 100% no-repeat!important;border:0!important;border-radius:0!important}.tm-ob-mini-previews canvas{width:32px!important;height:32px!important}.tm-ob-mini-previews span{font-size:9px!important;line-height:12px!important}.tm-ob-preview-modes button{font-size:9px!important;padding:3px 5px!important;line-height:14px!important}.tm-ob-preview>p{font-size:10px!important;line-height:14px!important}
 #tm-options-hud .tm-controls-tabs{top:22%!important;left:7%!important;right:7%!important;height:28px!important;gap:6px!important}#tm-options-hud .tm-controls-tabs .tm-control-button{font-size:11px!important;min-width:70px!important;height:28px!important;min-height:28px!important;padding:4px 10px!important}#tm-options-hud .tm-system-options,#tm-options-hud .tm-controls-options,#tm-options-hud .tm-combat-options{top:32%!important;left:7%!important;right:7%!important;bottom:18%!important;padding:0 5px 5px 0!important;font-size:11px!important;line-height:16px!important}#tm-options-hud .tm-controls-help,.tm-combat-help{font-size:11px!important;line-height:16px!important}.tm-combat-option-row{min-height:36px!important;font-size:11px!important;line-height:16px!important}.tm-combat-option-row select{font-size:11px!important;min-height:28px!important;padding:4px 7px!important}
 #tm-armor-shop .tm-armory-detail{overflow:hidden!important;padding-top:0!important;padding-left:10px!important}.tm-armory-quantity{flex-shrink:0!important;line-height:16px!important;margin:3px 0!important}.tm-armory-total{line-height:18px!important;margin:2px 0!important}.tm-armory-stock,.tm-armory-ack{font-size:9px!important;line-height:13px!important;margin:2px 0!important}.tm-armory-info>.tm-armory-art{width:28px!important;height:28px!important}
 /* Reserve a complete card row and avoid redundant desktop copy in compact panels. */
 .tm-eq-inventory-title h2{font-size:15px!important;line-height:20px!important;margin:3px 0 5px!important}.tm-eq-tools{margin-bottom:5px!important}.tm-eq-sort{width:112px!important}.tm-eq-tools .tm-eq-search{margin-right:5px!important}.tm-eq-filters{margin-bottom:6px!important;flex-shrink:0}.tm-equipment-overlay .tm-eq-filter{padding:4px 6px!important;font-size:10px!important;line-height:14px!important}.tm-eq-inventory-foot{display:none!important}.tm-eq-equipped-count,.tm-eq-stat-heading,.tm-eq-character .tm-eq-stats{display:none!important}
 #tm-status-hud .tm-st-skill-detail{height:62px!important}.tm-sk-action-hint{display:none!important}.tm-sk-auto-equip:disabled{min-height:18px!important;padding:0 4px!important;line-height:16px!important;background:none!important}.tm-sk-loadout-heading>span{display:none!important}.tm-sk-loadout{height:22%!important}.tm-sk-slot-actions button{font-size:9px!important;line-height:12px!important}
 .ew-cloud-theme .ew-grid{padding:0!important}.ew-bank-layout .ew-item-detail{flex-basis:42px!important;height:42px!important;max-height:42px!important;margin-top:4px!important;padding:3px 4px!important}.ew-cloud-theme .ew-item-socket{border:0!important;border-image:none!important;outline:none!important;background:none!important}.ew-stack,.ew-plus,.ew-protected{font-size:8px!important;line-height:10px!important}
 .tm-sell-body{left:6%!important;right:6%!important;top:22%!important;bottom:21%!important;grid-gap:12px!important}.tm-sell-filters{grid-gap:5px!important}.tm-sell-filters input,.tm-sell-filters select{font-size:10px!important;min-height:28px!important;padding:4px 7px!important}.tm-sell-catalog{gap:6px!important}.tm-sell-detail{padding:0 5px!important;overflow:auto!important}.tm-sell-detail h2{font-size:14px!important;line-height:19px!important}.tm-sell-detail p{font-size:11px!important;line-height:16px!important}.tm-sell-footer{left:7%!important;right:7%!important;bottom:6%!important;min-height:28px!important;font-size:10px!important;line-height:14px!important}.tm-sell-footer button{font-size:10px!important;min-height:28px!important;padding:4px 8px!important}.tm-sell-gold{font-size:12px!important}
}

/* Compact skill controls leave the vertical space to the learned-skill list. */
#tm-skill-hud .tm-sk-equip-actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
#tm-skill-hud .tm-sk-equip-actions button{margin:0!important;min-width:0}
#tm-skill-hud .tm-sk-specific-equip{background:linear-gradient(#287450,#194c37)!important;color:#e5fff0!important;border:1px solid #a6c3a2!important}
#tm-skill-hud .tm-sk-unequip-skill{background:linear-gradient(#9b4146,#672d35)!important;color:#fff0ec!important;border:1px solid #d39b8c!important}
#tm-skill-hud .tm-sk-equip-actions button:disabled{opacity:.5}
@media(orientation:landscape) and (max-height:500px){
 #tm-skill-hud .tm-st-panel>.tm-sk-body{bottom:33%!important}
 #tm-skill-hud .tm-sk-loadout{top:auto!important;bottom:16%!important;height:14%!important}
 #tm-skill-hud .tm-sk-action-hint{display:none!important}
}

@media(orientation:landscape) and (max-height:520px){
 #tm-equipment-hud .tm-eq-character{overflow-y:auto!important;min-height:0;overscroll-behavior:contain}
 #tm-equipment-hud .tm-eq-equipped-count{display:block!important;font-size:8px!important;line-height:11px!important;margin:2px 0!important}
 #tm-equipment-hud .tm-eq-stat-heading{display:block!important;font-size:9px!important;line-height:12px!important;margin-top:4px!important;padding-top:4px!important}
 #tm-equipment-hud .tm-eq-character .tm-eq-stats{display:grid!important;grid-template-columns:1fr 1fr!important;gap:2px 7px!important;margin-top:4px!important}
 #tm-equipment-hud .tm-eq-stat{font-size:9px!important;line-height:12px!important}
 #tm-equipment-hud .tm-eq-card-name{font-size:10px!important;line-height:13px!important;height:26px!important;margin-top:3px!important}
 #tm-equipment-hud .tm-eq-card-type{font-size:8px!important;line-height:11px!important}
 #tm-equipment-hud .tm-eq-forbidden{width:22px;height:22px;top:3px;border-width:2px}
 #tm-equipment-hud .tm-eq-forbidden:after{height:2px;left:-1px;right:-1px}
}

/* Compact loot cards: two clamped name lines, rarity always visible, close button on the title frame. */
@media(orientation:landscape) and (max-height:520px){
 .tm-loot-card{justify-content:flex-start!important;gap:0!important;padding-top:3px!important}
 .tm-loot-card strong{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:10px!important;line-height:12px!important;height:24px!important;min-height:24px!important;flex:0 0 24px!important;margin-top:3px!important;padding:0 3px!important;box-sizing:border-box;overflow-wrap:break-word!important;word-break:normal!important}
 .tm-loot-card small{flex-shrink:0;font-size:8px!important;line-height:11px!important;margin-top:2px!important;padding:0 3px!important}
 .tm-loot-panel header button{top:-4px!important;right:-2px!important;width:28px!important;height:28px!important;min-height:28px!important}
}

/* Equipment cards hug their content (no empty band under the rarity) so two rows fit in the compact panel. */
@media(orientation:landscape) and (max-height:520px){
 /* Fixed row height (icon + two name lines + rarity + border): an "auto" row collapses in a long scrolling list. */
 #tm-equipment-hud{--tm-eq-card-h:calc(min(var(--rise-mobile-card-icon),30px) + 2*min(var(--rise-mobile-card-line),14px) + 26px)}
 #tm-equipment-hud .tm-eq-grid{grid-auto-rows:var(--tm-eq-card-h)!important}
 #tm-equipment-hud .tm-eq-card{height:var(--tm-eq-card-h)!important;min-height:var(--tm-eq-card-h)!important;padding-bottom:3px!important}
 #tm-equipment-hud .tm-eq-card>.tm-eq-art{width:min(var(--rise-mobile-card-icon),30px)!important;height:min(var(--rise-mobile-card-icon),30px)!important;min-height:0!important;flex-basis:min(var(--rise-mobile-card-icon),30px)!important;background-size:100% 100%!important}
 #tm-equipment-hud .tm-eq-card-name{font-size:min(var(--rise-mobile-card-font),12px)!important;line-height:min(var(--rise-mobile-card-line),14px)!important;height:calc(2*min(var(--rise-mobile-card-line),14px))!important;min-height:0!important;flex-basis:auto!important}
}

/* Frontier Armory cards: icon, two clamped name lines and the rarity/price line all inside the card. */
@media(orientation:landscape) and (max-height:520px){
 #tm-armor-shop{--tm-armory-card-h:calc(min(var(--rise-mobile-card-icon),30px) + 2*min(var(--rise-mobile-card-line),14px) + 30px)}
 #tm-armor-shop .tm-armory-list{grid-auto-rows:var(--tm-armory-card-h)!important}
 #tm-armor-shop .tm-armory-card{height:var(--tm-armory-card-h)!important;min-height:var(--tm-armory-card-h)!important;justify-content:flex-start!important;gap:0!important;padding-top:4px!important}
 #tm-armor-shop .tm-armory-card>.tm-armory-art{width:min(var(--rise-mobile-card-icon),30px)!important;height:min(var(--rise-mobile-card-icon),30px)!important;min-height:0!important;flex:0 0 min(var(--rise-mobile-card-icon),30px)!important;background-size:100% 100%!important}
 #tm-armor-shop .tm-armory-card>span:not(.tm-armory-art){display:block;width:100%;min-width:0;padding:0 3px;box-sizing:border-box}
 #tm-armor-shop .tm-armory-card strong{display:-webkit-box!important;-webkit-box-orient:vertical;-webkit-line-clamp:2;font-size:min(var(--rise-mobile-card-font),12px)!important;line-height:min(var(--rise-mobile-card-line),14px)!important;height:calc(2*min(var(--rise-mobile-card-line),14px))!important;min-height:0!important;flex-basis:auto!important;margin-top:2px!important;overflow:hidden!important;overflow-wrap:break-word!important;word-break:normal!important}
 #tm-armor-shop .tm-armory-card small{font-size:8px!important;line-height:11px!important;margin-top:2px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
}

/* Requirement info in the bottom bands is plain text on the band itself: no nested card background. */
#tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements,.tm-inventory-bottom-info .tm-equip-requirements{background:none!important;border:0!important;border-image:none!important;border-radius:0!important;box-shadow:none!important;padding:0!important}
/* Skill & Hotbar: search sits in the library heading, left of the skill count. */
#tm-skill-hud .tm-sk-library-heading .tm-sk-search{flex:1 1 auto;width:auto;min-width:0;height:100%!important;min-height:0!important;margin:0!important}
#tm-skill-hud .tm-sk-library-heading .tm-sk-count{flex-shrink:0;white-space:nowrap}
@media(orientation:landscape) and (max-height:520px){
 #tm-skill-hud .tm-sk-library-heading{height:28px!important;margin-bottom:4px}
 /* Every framed menu title clears the corner ornament on phones. */
 html .tm-st-panel>.tm-st-header,html .tm-eq-header{left:12.5%!important}
 /* Equipment: drop the slot counter and the collection heading/reload row to free list space. */
 #tm-equipment-hud .tm-eq-equipped-count,#tm-equipment-hud .tm-eq-inventory-title{display:none!important}
 #tm-equipment-hud .tm-eq-tools{margin-top:4px!important}
 #tm-equipment-hud .tm-eq-bottom-info{bottom:7%!important;height:9%!important}
 #tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements{font-size:10.5px;line-height:14px}
}
/* Equipment footer, like Inventory: weapon type hidden; class list and usability stacked. */
#tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements{flex-direction:column;flex-wrap:nowrap;align-items:flex-start;justify-content:center;gap:0;min-width:0;max-width:100%}
#tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements small{display:none!important}
#tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements>p,#tm-equipment-hud .tm-eq-bottom-info .tm-equip-requirements>strong{display:block;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
/* Equipment: the left panel drops the "Karakter" label and the player nickname. */
.tm-equipment-overlay .tm-eq-character>.tm-eq-section-label:not(.tm-eq-stat-heading),.tm-equipment-overlay .tm-eq-identity{display:none!important}
@media(orientation:landscape) and (max-height:520px){.tm-equipment-overlay .tm-eq-slot-4{top:66px!important}}

/* 2026-11-03 UI polish: every menu stays inside its panel on desktop and phones (scroll instead of clipping). */
#tm-status-hud .tm-st-body{grid-template-rows:minmax(0,1fr)!important}
#tm-status-hud .tm-st-character,#tm-status-hud .tm-st-skills{min-height:0!important;max-height:100%;overflow-y:auto!important;overflow-x:hidden;scrollbar-width:thin}
#tm-options-hud .tm-system-options{overflow-y:auto!important;overflow-x:hidden;scrollbar-width:thin}
.tm-system-footer{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.tm-system-footer .tm-guide-replay{min-height:30px;padding:3px 12px;border:1px solid #9a8252;border-radius:7px;cursor:pointer;background:#102b46;font:12px/18px RiseDialogue,Nunito,sans-serif;color:#e8d7a6}
.tm-system-footer .tm-guide-replay:hover{border-color:#e7c275;color:#fff2c6}
.tm-cloth-basket,.tm-cloth-preview{overflow-y:auto;overflow-x:hidden;scrollbar-width:thin}
@media(orientation:landscape) and (max-height:520px){
 /* Readable minimum on phones: decorative eyebrows, tags, key caps and slot labels were 7-8px. */
 .tm-st-eyebrow,.tm-eq-eyebrow,.tm-st-tag,.tm-sk-slot kbd,.tm-sk-slot small,.tm-eq-slot-label,.tm-bestiary-count,.tm-sk-target-label,.tm-sk-equipped-count,.tm-atlas-panel header small,.tm-quest-header small,.tm-bestiary-header small{font-size:9px!important;line-height:12px!important}
 #tm-quest-tracker>button,#tm-quest-tracker .tm-quest-button{min-height:28px!important}
 #tm-equipment-hud .tm-eq-empty .tm-eq-art{display:none!important}
 #tm-equipment-hud .tm-eq-sort,#tm-equipment-hud .tm-eq-search{font-size:11px!important}
 .tm-cloth-tools select,.tm-cloth-tools input{font-size:10px!important;padding-left:5px!important;padding-right:18px!important;min-width:0}
 .tm-cloth-preview .tm-cloth-minis{display:none!important}
}
@media(orientation:landscape) and (max-height:380px){
 /* Small phones: the 10-slot hotbar must end above the footer. */
 #tm-skill-hud .tm-sk-loadout-heading{height:14px!important;margin:0 0 2px!important;line-height:14px!important}
 #tm-skill-hud .tm-sk-slot{height:32px!important;min-height:0!important}#tm-skill-hud .tm-sk-slot small{display:none!important}
 #tm-skill-hud .tm-sk-slot .tm-sk-slot-empty{font-size:14px!important;line-height:16px!important;margin-top:4px!important}
}
/* Player HUD and skill counter labels stay readable on every size. */
#tm-player-hud .tm-player-level,#tm-player-hud .tm-player-job,#tm-player-hud .tm-player-resource b,#tm-player-hud .tm-player-resource span,#tm-player-hud .tm-player-exp,#tm-player-hud .tm-player-exp span{font-size:9px!important}
#tm-skill-hud .tm-sk-equipped-count{font-size:9px!important}
