/* Shared finish: quiet chrome, readable values, item colour as the focal point. */
:root{--ui-radius-panel:18px;--ui-radius-card:12px;--ui-radius-control:10px;--ui-radius-dialog:20px;--ui-shadow-panel:none}
body{font-family:var(--font-geologica);font-weight:400;-webkit-font-smoothing:antialiased}
body .topbar.fusion-header{height:64px;border-bottom-color:#262429;background:#141315;gap:18px}
.topbar .fusion-wordmark {display:inline-flex;align-items:center;min-height:44px;flex:none}
.fusion-wordmark picture,.fusion-wordmark img,.rail-logo img {display:block}
.fusion-wordmark img {width:93px;height:23px}
.rail-logo img {width:32px;height:32px}
@media (max-width:640px) {.fusion-wordmark img {width:97px;height:21px}}
@media (max-width:370px) {.fusion-wordmark img {width:78px;height:17px}}
.topbar .exchange-environment{font-size:var(--type-caption);border-color:#39333c;border-radius:6px;color:#a49aa8;background:none;padding:3px 7px}
.topbar .markets-link{font-size:var(--type-label)}
.topbar .header-account>small{font-size:var(--type-caption)}
.topbar .header-account strong{font-size:18px;font-weight:550;letter-spacing:-.35px}
body .topbar.fusion-header>.brand-btn{min-height:36px;font-size:var(--type-label);padding:8px 14px;border:1px solid #3a3038;border-radius:10px;background:#231d24;color:#e3c2d0;box-shadow:none}
body .topbar.fusion-header>.brand-btn:hover{background:#33232e;border-color:#755063}
.exchange-rail{background:#141315;border-right-color:#262429}
.exchange-rail nav a{border-radius:12px;font-size:var(--type-caption)}
.exchange-rail nav a.active{background:#28202a;box-shadow:none;border-color:transparent}
.exchange-rail nav a.active::before{height:26px;border-radius:0 3px 3px 0}
.fusion-shell .simple-page-heading h1{font-size:22px;line-height:30px;font-weight:550;letter-spacing:-.6px}
.fusion-shell .simple-page-heading{min-height:36px;gap:12px;margin-bottom:16px}
.fusion-shell .mode-picker{border-color:#353039;background:#19171c;box-shadow:none}
.fusion-shell .mode-picker button{font-weight:500;min-width:50px}
.fusion-shell .footer{font-size:var(--type-caption);line-height:18px;color:#89848d;border-top-color:#27242b}
.fusion-shell .footer button{font-size:var(--type-caption);color:#b1a8b5}

/* Repeatable catalogue proportions; the image gets light, the text stays calm. */
.fusion-shell :is(.shop-card,.inventory-card){border-color:#353039;border-radius:14px;box-shadow:none}
.fusion-shell .shop-card{background:#1b191e}
.fusion-shell .shop-card .skin-art{background:radial-gradient(ellipse at 50% 70%,rgba(var(--item-tone),.14),transparent 74%)}
.fusion-shell .shop-card .skin-card-content h3{font-size:var(--type-lead);line-height:20px;font-weight:500;letter-spacing:-.25px;min-height:40px}
.fusion-shell .shop-card .skin-card-content h3 span{font-size:var(--type-label);line-height:16px;margin-bottom:3px;color:#a9a0af}
.fusion-shell .shop-card .skin-card-content>small{font-size:var(--type-caption);color:#a39aa9}
.fusion-shell .shop-card-bottom .item-price{font-size:21px;line-height:28px;letter-spacing:-.55px;font-weight:550}
.fusion-shell .shop-card-bottom button{font-size:var(--type-label);font-weight:500;border-color:#443b48;box-shadow:none}
.fusion-shell .shop-card.in-cart{border-color:var(--skin-selected-border)}
.fusion-shell .shop-cart{background:#1a181d;box-shadow:0 8px 24px #00000018;border-color:#3a333e}
.fusion-shell .shop-cart .cart-heading h2{font-size:var(--type-subhead);font-weight:550}
.fusion-shell .shop-cart .cart-item-info strong{font-size:var(--type-body);line-height:19px}
.fusion-shell .shop-cart .cart-item-info small{font-size:var(--type-caption);line-height:15px}
.cart-empty-art{background:none;color:#b587a0}
.cart-empty-art>svg{transform:none}
.cart-empty-art>span{display:none}
.cart-empty h3{font-size:var(--type-lead)}
.cart-empty p{font-size:var(--type-label)}

.fusion-shell .simple-inventory-bar{border:0;border-bottom:1px solid #302b34;border-radius:0;background:none;box-shadow:none;padding:4px 0 16px;margin-bottom:16px}
.fusion-shell .simple-inventory-bar strong{font-size:22px;line-height:30px;font-weight:550}
.fusion-shell .simple-inventory-bar strong small{font-size:var(--type-label);line-height:20px;font-weight:400}
.fusion-shell .simple-inventory-bar>div>span{font-size:var(--type-label);color:#a39aa9}
.fusion-shell .simple-inventory-bar button{min-height:40px;font-size:var(--type-label);border-radius:10px}
.fusion-shell .inventory-card .skin-art{border-bottom-color:#ffffff06;background:radial-gradient(ellipse at 50% 64%,rgba(var(--inventory-glow),.14),transparent 74%)}
.fusion-shell .inventory-card .skin-art img{width:88%;height:90%}
.fusion-shell .inventory-card .skin-card-content{padding:14px;gap:8px}
.fusion-shell .inventory-card .skin-card-content h3{font-size:var(--type-subhead);line-height:22px}
.fusion-shell .inventory-card .skin-card-content>small{font-size:var(--type-caption);line-height:16px;color:#a39aa9}
.inventory-ended{display:flex;align-items:center;font-size:var(--type-caption);color:#918895;border-top:1px solid #ffffff08}
.fusion-shell .inventory-card[data-status=withdrawn]{background:#161519;border-color:#2d2930}
.fusion-shell .inventory-card[data-status=withdrawn] .skin-art{background:none}
.fusion-shell .inventory-card[data-status=withdrawn] .item-price{color:#aaa2af}

/* The ledger is a reading surface; colour only carries gain, loss or selection. */
.activity-overview,.activity-overview:has(.positive){border:0;border-bottom:1px solid #302b34;border-radius:0;background:none;box-shadow:none;padding:4px 0 18px;margin-bottom:18px}
.activity-overview::before,.activity-overview::after{display:none}
.activity-overview-main>.positive,.activity-overview-main>.negative{text-shadow:none}
.activity-overview-main{gap:18px;font-size:var(--type-label)}
.activity-overview-main>strong{font-size:30px;line-height:38px;letter-spacing:-.65px}
.activity-overview-note{font-size:var(--type-label)}.activity-overview-note>small{font-size:var(--type-caption)}
.activity-group{border-color:#302b34;background:#151417;border-radius:12px;box-shadow:none}
.activity-group>summary{background:#1b191e;font-size:var(--type-label);padding-block:12px}
.activity-group-name small{font-size:var(--type-caption)}
.activity-filters button{font-size:var(--type-label);min-height:38px}
.activity-filters button[aria-pressed=true]{background:#2c2029;box-shadow:none;border-color:#61374d}
.activity-description>strong{font-size:var(--type-body);line-height:20px}
.activity-description>span,.activity-time{font-size:var(--type-label);line-height:17px}
.activity-amount>strong{font-size:var(--type-lead);line-height:21px}
.activity-art.has-skin::before{display:none}
.activity-amount.positive>strong,.activity-amount.negative>strong{border:0;background:none;padding:3px 0}

/* Dialogs use one frame and one action row, without stacked ornamental borders. */
#modal{border-color:#3a333e;box-shadow:0 22px 70px #0008}
#modal .modal-head h2{font-weight:550;letter-spacing:-.4px}
#modal .close-x{border:0;background:#211e25;border-radius:9px;color:#aaa1af}
#modal .close-x:hover{background:#302831;color:#e8dce8}
#modal .close-x:focus-visible{outline:2px solid #ce7393;outline-offset:2px}
#modal .modal-actions>button{font-weight:500}
#modal:not(.picker-dialog):not(.trade-dialog) .modal-body p{font-size:var(--type-body);line-height:21px}
#modal .notice{border-radius:10px;box-shadow:none}
@media(hover:hover) and (prefers-reduced-motion:no-preference){
 .fusion-shell .shop-card:hover{transform:none;box-shadow:none;border-color:#6e596e}
 .fusion-shell .shop-card.in-cart:hover{border-color:var(--skin-selected-border)}
 .fusion-shell .inventory-card:hover{box-shadow:none}
 .fusion-shell .inventory-card:hover .skin-art img{transform:scale(1.025)}
}
@media(max-width:640px){
 body .topbar.fusion-header{height:58px;gap:10px}
 .topbar .header-account strong{font-size:var(--type-lead)}
 body .topbar.fusion-header>.brand-btn{min-height:32px;font-size:var(--type-caption);padding:7px 10px}
 .fusion-shell .simple-page-heading h1{font-size:20px;line-height:28px}
 .fusion-shell .simple-page-heading{margin-bottom:14px}
 .fusion-shell .shop-card .skin-card-content h3{font-size:var(--type-body);line-height:19px}
 .fusion-shell .shop-card .skin-card-content h3 span{font-size:var(--type-caption)}
 .fusion-shell .shop-card-bottom .item-price{font-size:20px}
 .fusion-shell .inventory-card .skin-card-content{padding:11px;gap:7px}
 .fusion-shell .inventory-card .skin-card-content h3{font-size:var(--type-body);line-height:20px}
 .fusion-shell .inventory-card .item-price{font-size:20px}
 .fusion-shell .simple-inventory-bar strong{font-size:20px}
 .activity-overview-main>strong{font-size:26px;line-height:34px}
 .activity-description>strong{font-size:var(--type-label);line-height:18px}
 .activity-description>span,.activity-time{font-size:var(--type-caption);line-height:16px}
 .activity-amount>strong{font-size:var(--type-label);line-height:20px}
 .activity-filters button{font-size:var(--type-label)}
}
