/* Original painted navigation is shared by desktop and mobile. */
body[data-layout=sidebar] .layout-topbar .layout-navigation>button,
body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button{background:none!important;box-shadow:none!important;color:#ead3aa!important;isolation:isolate}
body[data-layout=sidebar] .layout-topbar .layout-navigation button>.smith-button-skin{display:grid!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation button>.smith-button-skin.normal{opacity:1!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation button:is(:hover,:focus-visible,.active)>.smith-button-skin.hover{opacity:1!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation>button.active>.smith-button-label{color:#2e1c09!important;font-weight:bold!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation button:before{display:none!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation button .woodland-nav-icon{display:inline-block!important;width:27px!important;height:27px!important;flex:none}
body[data-layout=sidebar] .layout-topbar .layout-navigation button .painted-icon{display:inline-block!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation button>.smith-button-label{padding-left:0!important;gap:7px!important;justify-content:flex-start!important}
body[data-layout=sidebar] .layout-topbar .layout-navigation .layout-language{background:url('assets/citadel-design-v115/buttons/nav-bronze-normal-v1.svg') center/100% 100% no-repeat!important}
/* More of the item, less empty space; retain a safe margin around all edges. */
.approved-market .approved-art>.isolated-equipment-svg{inset:17px 5px 17px!important;width:calc(100% - 10px)!important;height:calc(100% - 34px)!important;padding:0!important}
.attribute-screen{width:100%;min-width:0;color:#e3d1ac;display:flex;flex-direction:column;gap:12px;box-sizing:border-box}
.attribute-screen *{box-sizing:border-box}
.attribute-screen .page-title{margin:0!important;min-height:0;flex:none}
.attribute-screen .page-title h1{margin:2px 0 0;font-size:25px}
.attribute-screen .point-pill{white-space:nowrap;font-size:13px;padding:7px 10px}
.attribute-main{display:grid;grid-template-columns:minmax(150px,.56fr) minmax(0,1.44fr);gap:14px;min-height:0;flex:none}
.attribute-main>.panel{margin:0!important;min-width:0;padding:12px!important}
.attribute-portrait{position:relative;overflow:hidden;display:flex;flex-direction:column;padding:0!important}
.attribute-main>.attribute-portrait{padding:0!important}
.attribute-portrait>.hero-loadout-figure{position:absolute;inset:0;width:100%;height:calc(100% - 40px);object-fit:contain}
.attribute-portrait>div{position:absolute;bottom:0;left:0;right:0;height:40px;padding:5px 10px;border-top:1px solid #8e774b;background:#182016;display:flex;justify-content:space-between;align-items:center;gap:5px}
.attribute-portrait strong{font:14px Georgia}.attribute-portrait small{font:11px Georgia;color:#b9ad8e}
.attribute-list{display:flex;flex-direction:column;gap:0}
.attribute-row{display:grid;grid-template-columns:minmax(0,1fr) max-content 44px;gap:12px;align-items:center;padding:9px 0;border-bottom:1px solid #8b764744;min-width:0}
.attribute-row:last-child{border-bottom:0}.attribute-row>div{min-width:0}
.attribute-row strong{display:flex;align-items:center;gap:7px;flex-wrap:wrap;font:17px Georgia;color:#d8c49b}
.attribute-row em{font:8px Georgia;text-transform:uppercase;letter-spacing:.4px;border:1px solid #b1975c;padding:1px 3px;color:#e5c67c}
.attribute-row.class-primary strong,.attribute-row.class-primary>b{color:#f2d587}
.attribute-row small{font:10px/1.4 Georgia;color:#b5ab90;display:block;margin-top:3px}
.attribute-row .attribute-next{display:block;font:10px/1.4 Georgia;color:#b6c59d;margin-top:2px}
.attribute-row>b{font:bold 24px Georgia;color:#e3c78d}
.attribute-list .attribute-row>button{width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;font-size:24px!important;touch-action:manipulation}
.attribute-row button>.smith-button-label{padding:0!important;justify-content:center!important}
.attribute-breakdown{padding:12px 15px!important;flex:none;margin:0!important}
.attribute-breakdown header{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin-bottom:8px}
.attribute-breakdown h2{margin:0;font:19px Georgia}.attribute-breakdown header>small{font:11px Georgia;color:#bcae8c}
.attribute-breakdown table{border-collapse:collapse;width:100%;table-layout:fixed;font:12px Georgia;text-align:right}
.attribute-breakdown th,.attribute-breakdown td{padding:7px 4px;border-bottom:1px solid #8d784944;white-space:nowrap}
.attribute-breakdown th:first-child{text-align:left;width:22%}.attribute-breakdown thead th{font-size:10px;color:#baa77f;font-weight:normal}
.attribute-breakdown tbody th{color:#d4c49f;font-weight:normal}.attribute-breakdown td:last-child{color:#f2d587;font-size:18px}
.attribute-breakdown .positive{color:#b8d498}.attribute-breakdown .negative{color:#e69d82}
.attribute-breakdown>p{font:10px/1.4 Georgia;color:#b8ad90;margin:8px 0 0}
.attribute-actions{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none}
.attribute-actions>p{font:12px/1.4 Georgia;color:#c3b99a;margin:0;max-width:65%}
.attribute-actions>button{min-height:36px!important;font-size:12px!important;flex:none}
@media(min-width:901px){
 body[data-layout=sidebar]:has(.attribute-screen) .main-content{overflow-y:auto!important;overflow-x:hidden!important;min-height:0!important}
 body[data-layout=sidebar]:has(.attribute-screen) .view-content{height:auto!important;min-height:100%!important}
 .current-hero-section:has(.attribute-screen){height:auto!important;min-height:0;max-width:1280px;margin:auto}
 .current-hero-section:has(.attribute-screen)>h1{display:none}
 .current-hero-section:has(.attribute-screen)>.growth-screen{height:auto!important;max-width:none!important;padding:0!important}
 .attribute-main{grid-template-columns:minmax(150px,.52fr) minmax(0,1.48fr)}
}
@media(max-width:900px){
 body[data-layout=sidebar] .layout-topbar .layout-navigation>button,body[data-layout=sidebar] .layout-topbar .layout-navigation .top-actions>button{height:42px!important;min-height:42px!important;padding:6px 10px!important;font-size:13px!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation button>.smith-button-label{font-size:13px!important;line-height:1.1!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation button .woodland-nav-icon{width:24px!important;height:24px!important}
 body[data-layout=sidebar] .layout-topbar .layout-navigation{gap:5px!important;align-content:start!important;padding-top:75px!important;padding-bottom:max(12px,env(safe-area-inset-bottom))!important}
 .approved-market .approved-stock{grid-auto-rows:245px}
 .approved-market .approved-art>.isolated-equipment-svg{inset:17px 3px 14px!important;width:calc(100% - 6px)!important;height:calc(100% - 31px)!important}
 body[data-layout=sidebar]:has(.attribute-screen) #app{grid-template-rows:62px minmax(0,1fr)!important;height:100dvh!important;min-height:0!important;overflow:hidden!important}
 body[data-layout=sidebar]:has(.attribute-screen) .layout-footer{display:none!important}
 body[data-layout=sidebar]:has(.attribute-screen) .main-content{height:100%!important;max-height:none!important;min-height:0!important;overflow:auto!important;touch-action:pan-y!important;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;padding-bottom:max(16px,env(safe-area-inset-bottom))!important}
 body[data-layout=sidebar]:has(.attribute-screen) .view-content,.current-hero-section:has(.attribute-screen),.current-hero-section:has(.attribute-screen)>.growth-screen{height:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important}
 .current-hero-section:has(.attribute-screen)>.growth-screen{padding:0!important;max-width:none!important}
 .current-hero-section:has(.attribute-screen)>h1{display:none}
 .current-hero-section:has(.attribute-screen)>.current-tabs{margin-bottom:7px!important}
 .attribute-screen{gap:8px}.attribute-screen .page-title h1{font-size:20px}.attribute-screen .eyebrow{font-size:8px}
 .attribute-screen .point-pill{font-size:11px;padding:6px}
 .attribute-main{grid-template-columns:minmax(82px,.65fr) minmax(0,1.35fr);gap:7px}
 .attribute-main>.attribute-list{padding:5px 7px!important}
 .attribute-portrait>div{height:37px;flex-direction:column;justify-content:center;padding:3px;gap:2px}.attribute-portrait strong{font-size:11px}.attribute-portrait small{font-size:9px}
 .attribute-row{grid-template-columns:minmax(0,1fr) max-content 36px;gap:5px;padding:5px 0;min-height:51px}
 .attribute-row strong{font-size:13px;gap:4px}.attribute-row em{font-size:6px;padding:1px 2px}
 .attribute-row small{font-size:8px;line-height:1.25;margin-top:2px}.attribute-row .attribute-next{font-size:8px;line-height:1.25}
 .attribute-row>b{font-size:19px}
 .attribute-list .attribute-row>button{width:36px!important;min-width:36px!important;max-width:36px!important;height:44px!important;min-height:44px!important;font-size:21px!important}
 .attribute-breakdown{padding:8px!important}.attribute-breakdown header{display:block;margin-bottom:5px}.attribute-breakdown h2{font-size:16px}.attribute-breakdown header>small{font-size:9px}
 .attribute-breakdown table{font-size:10px}.attribute-breakdown th,.attribute-breakdown td{padding:5px 2px}.attribute-breakdown thead th{font-size:8px}.attribute-breakdown td:last-child{font-size:15px}.attribute-breakdown th:first-child{width:20%}
 .attribute-breakdown>p{font-size:8px;line-height:1.3;margin-top:6px}
 .attribute-actions{align-items:stretch;flex-direction:column;gap:6px}.attribute-actions>p{max-width:none;font-size:10px}.attribute-actions>button{width:100%!important;min-height:36px!important;font-size:12px!important}
}

/* All ordinary controls use the painted nine-slice atlas, including Settings and login. */
body button[data-smith-control="true"]{position:relative!important;isolation:isolate;border:0!important;border-radius:0!important;background:none!important;box-shadow:none!important;color:#ead3aa;}
body button[data-smith-control="true"]>.smith-button-skin{display:grid!important;pointer-events:none;}
body button[data-smith-control="true"]>.smith-button-skin.normal{opacity:1!important;}
body button[data-smith-control="true"]:enabled:is(:hover,:focus-visible)>.smith-button-skin.hover{opacity:1!important;}
body button[data-smith-control="true"]:enabled:active>.smith-button-skin.pressed{opacity:1!important;}
body button[data-smith-control="true"]:disabled>.smith-button-skin.disabled{opacity:1!important;}
body button[data-smith-control="true"]>.smith-button-label{position:relative;z-index:2;}
body button[data-smith-control="true"].primary{color:#2e1c09!important;}
body[data-layout=sidebar] .layout-topbar .layout-navigation .layout-language{background:none!important;}
body[data-layout=sidebar] .layout-topbar .layout-navigation .layout-language>.smith-button-skin{display:grid!important;}
body[data-layout=sidebar] .layout-topbar .layout-navigation .layout-language>.smith-button-skin.normal{opacity:1!important;}
@media(max-width:900px){body button[data-smith-control="true"]{touch-action:manipulation;} .settings-combat-audio>button{min-height:44px;}}

.building-level-comparison{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;min-width:0}.building-level-comparison>section{min-width:0}.building-level-comparison strong{font-size:13px}.building-level-comparison .building-facts{display:block!important;margin:5px 0!important}.building-level-comparison .building-facts>div{display:flex;justify-content:space-between;gap:4px;font-size:11px!important;padding:3px 0}.building-level-comparison dt{font-size:11px!important}.building-level-comparison dd{margin:0;font-size:12px!important;white-space:nowrap}
@media(min-width:901px){
 body[data-layout=sidebar] .live-village>.live-building-drawer{height:calc(100dvh - 200px)!important;max-height:calc(100dvh - 200px)!important;min-height:0!important;padding:9px!important;}
 .live-building-drawer .smith-design{gap:6px!important;min-height:0;}
 .live-building-drawer .smith-card-heading h2{font-size:23px!important;}
 .live-building-drawer .smith-interior{height:clamp(95px,18dvh,170px)!important;max-height:170px!important;min-height:0!important;flex:none;aspect-ratio:auto;}
 .live-building-drawer .smith-interior img{object-fit:cover;object-position:center 57%;}
 .live-building-drawer .smith-tagline{font-size:12px!important;margin:1px 0!important;}
 .live-building-drawer .smith-actions{gap:5px;margin:0;}
 .live-building-drawer .smith-actions button.smith-action-tile{min-height:66px!important;height:66px!important;padding:4px!important;}
 .live-building-drawer .smith-action-tile img{width:32px!important;height:29px!important;}
 .live-building-drawer .smith-action-tile strong{font-size:12px!important;}
 .live-building-drawer .smith-action-tile small{display:none!important;}
 .live-building-drawer .smith-action-tile .smith-button-label{gap:2px!important;}
 .live-building-drawer .progression-building{padding:8px!important;margin:0!important;}
 .live-building-drawer .progression-building .cost{margin:5px 0!important;gap:5px!important;}
 .live-building-drawer .progression-building .cost-value{height:36px!important;padding:4px!important;}
 .live-building-drawer .progression-building>p{margin:4px 0!important;font-size:10px!important;}
 .live-building-drawer .progression-building>button{min-height:32px!important;height:32px!important;font-size:12px!important;}
 .live-building-drawer .progression-building>details{margin-top:6px!important;padding-top:4px!important;}
 .live-building-drawer .progression-building>details>summary{min-height:24px!important;font-size:11px!important;}
 .live-building-drawer .smith-information{padding:4px 6px!important;border-width:3px!important;border-image-width:3px!important;}
 .live-building-drawer .smith-information summary{min-height:24px!important;}
 .live-building-drawer .smith-information summary>img{width:23px;height:23px;}
 .live-building-drawer .smith-information summary strong{font-size:13px;}
 .live-building-drawer .smith-open-workshop{min-height:32px!important;height:32px!important;font-size:13px!important;}
 .live-building-drawer .smith-production-strip{padding-top:5px!important;gap:3px!important;}
 .live-building-drawer .smith-production-strip>div{font-size:12px!important;}
 .live-building-drawer .smith-production-strip small{font-size:9px!important;}
 .live-building-drawer .smith-production-strip button{min-height:28px!important;height:28px!important;font-size:11px!important;}
 .live-building-drawer .smith-design>.building-facts{display:none!important;}
}

body[data-layout=sidebar] .layout-topbar .layout-nav-heading{display:none!important;}
body[data-layout=sidebar] .layout-topbar .layout-navigation>button.layout-notifications{width:100%!important;max-width:none!important;grid-column:1/-1;min-width:0;position:relative;}
.layout-notifications>.smith-button-label{width:100%;display:flex;align-items:center;gap:8px;justify-content:flex-start;}
.layout-notifications .smith-button-label>svg{width:21px!important;height:23px!important;flex:none;}
.layout-notifications .notification-menu-label{position:static!important;width:auto!important;height:auto!important;border:0!important;border-radius:0!important;background:none!important;font:inherit!important;letter-spacing:normal;}
.layout-notifications [data-notification-count]{position:static!important;display:grid;place-items:center;margin-left:auto!important;min-width:20px;width:auto!important;height:20px!important;padding:1px 5px;background:#a65019!important;color:#ffe4aa!important;border:1px solid #e4ba6a;border-radius:12px!important;font:11px Georgia!important;}
.layout-notifications [data-notification-count][hidden]{display:none!important;}
.layout-notifications:has([data-notification-count]:not([hidden])){filter:drop-shadow(0 0 5px #f5bb4a88);}
.layout-notifications:has([data-notification-count]:not([hidden]))>.smith-button-skin.normal{filter:brightness(1.32) saturate(1.2);}
.layout-notifications:has([data-notification-count]:not([hidden])) .notification-menu-label{color:#ffe19b!important;}
.layout-notifications:has([data-notification-count]:not([hidden])) .smith-button-label>svg{color:#ffe7a5;filter:drop-shadow(0 0 4px #e7a63a);}
@media(max-width:900px){body[data-layout=sidebar] .layout-topbar .layout-nav-heading{display:flex!important;position:absolute;right:0;top:7px;padding:0!important;height:44px;z-index:4;}body[data-layout=sidebar] .layout-topbar .layout-navigation{padding-top:55px!important;}body[data-layout=sidebar] .layout-topbar .layout-navigation>.layout-notifications{grid-column:1/-1!important;}}
.layout-notifications>.smith-button-skin>svg{width:100%!important;height:100%!important;} @media(min-width:901px){body[data-layout=sidebar] .layout-topbar .layout-navigation>button.layout-notifications{height:auto!important;min-height:28px!important;max-height:58px!important;flex:1 1 0!important;}}

@media(min-width:901px){
 .live-building-drawer .smith-interior{height:clamp(80px,12dvh,135px)!important;max-height:135px!important;}
 .live-building-drawer .smith-tagline,.live-building-drawer [data-smith-page=overview]>.smith-open-workshop{display:none!important;}
 .live-building-drawer [data-smith-job=false]>.smith-production-strip{display:none!important;}
 .live-building-drawer .smith-actions button.smith-action-tile{height:60px!important;min-height:60px!important;}
}

/* Light belongs to the equipped weapon silhouette, never a rectangle around it. */
.hero-held-equipment[data-weapon-quality="1"]{filter:drop-shadow(0 0 3px #d9c08777);--hero-glint-speed:6s}
.hero-held-equipment[data-weapon-quality="2"]{filter:drop-shadow(0 0 6px #edc16d88);--hero-glint-speed:4.8s}
.hero-held-equipment[data-weapon-quality="3"]{filter:drop-shadow(0 0 9px #f5d58daa);--hero-glint-speed:3.8s}
.hero-weapon-shine{transform-box:fill-box;transform-origin:center;opacity:0;animation:hero-weapon-glint var(--hero-glint-speed,5s) ease-in-out infinite;pointer-events:none}
@keyframes hero-weapon-glint{0%,48%{opacity:0;transform:translate(-110%,15%)}58%{opacity:.8}72%{opacity:.8;transform:translate(110%,-15%)}82%,100%{opacity:0;transform:translate(110%,-15%)}}
.hero-loadout-figure[data-hero-motion=false] .hero-weapon-shine{animation:none!important;opacity:0}
@media(prefers-reduced-motion:reduce){.hero-weapon-shine{animation:none!important;opacity:0}}
@media(min-width:901px){.live-building-drawer .progression-building .cost-value>span{display:flex;flex-direction:column;gap:1px;line-height:1!important;}.live-building-drawer .progression-building .cost-value small{font-size:9px!important;line-height:1!important;}.live-building-drawer .progression-building .cost-value b{font-size:17px!important;line-height:1!important;}.live-building-drawer .progression-building .cost-value .icon{width:23px!important;height:23px!important;}}
@media(min-width:901px){body[data-layout=sidebar]:has(.attribute-screen) .layout-footer{display:none!important;}.attribute-row{padding:4px 0;min-height:52px;}.attribute-row strong{font-size:16px;line-height:18px;}.attribute-row small,.attribute-row .attribute-next{font-size:10px;line-height:12px;margin-top:1px;}.attribute-main>.attribute-list{padding:7px 12px!important;}.attribute-breakdown th,.attribute-breakdown td{padding:5px 4px;}.attribute-screen{gap:9px;}.attribute-actions>p{font-size:11px;}}
