/* Existing mother-art palette; keep transactions visible while copy scrolls. */
.detail.tactical-detail{display:flex;flex-direction:column;gap:10px;overflow:hidden;padding:12px}
.detail-heading{display:flex;align-items:center;gap:6px;flex:0 0 88px;width:100%;padding:2px;background:#e4c68e;border:2px solid #a18148;border-radius:8px;color:#4e3b23;text-align:left}
.detail-heading>.return-arrow{font-size:24px}
.detail-heading>img{width:54px;height:72px;object-fit:contain;flex:0 0 54px}
.detail-mini-portrait{position:relative;width:60px;height:76px;flex:0 0 60px}
.detail-mini-portrait .profile-frame{position:absolute;inset:5px 0;width:60px;height:64px;object-fit:contain}
.detail .detail-mini-portrait .tower-portrait{position:absolute;left:7px;top:7px;width:48px;height:62px;margin:0;object-fit:contain}
.detail-heading .detail-name{display:block;font-weight:400;font-size:22px;letter-spacing:0;margin:0 0 4px}
.detail-heading small{display:block;font-size:12px;line-height:1.4;color:#656045}
.detail .detail-stats{display:grid;grid-template-columns:1fr 1fr;gap:5px;margin:0;padding:0;border:0;flex:0 0 auto}
.detail-stats>div{background:#ffefca88;border:1px solid #b69a62;border-radius:5px;text-align:center;padding:4px}
.detail .detail-stats dt{font-size:11px;color:#62634a}
.detail .detail-stats dd{font-size:18px;text-align:center;color:#654120}
.detail-copy{min-height:0;flex:1;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a7824e #e7cb97;padding-right:4px;border-bottom:1px solid #b99c62}
.detail-copy .desc{min-height:0;margin:0 0 8px;font-size:14px;line-height:1.7}
.detail-copy .upgrade-preview{font-size:12px;line-height:1.65;margin:0 0 6px;color:#665536}
.detail-controls{flex:0 0 auto;display:flex;flex-direction:column;gap:6px}
.target-mode-group{padding:0;border:0;margin:0}
.target-mode-group legend{font-size:12px;color:#5d6248;margin:0 0 4px}
.target-mode-buttons{display:flex;gap:6px}
.target-mode-buttons button{flex:1;min-width:0;min-height:44px;background:#dec48f;border:2px solid #a5824d;border-radius:6px;color:#54472c;font:inherit;font-size:15px}
.target-mode-buttons button[aria-pressed=true]{background:#526a41;color:#fff1c5;border-color:#375035;box-shadow:inset 0 0 0 1px #a9bd78}
.target-mode-note{margin:4px 0 0;font-size:11px;line-height:1.4;color:#5b6149}
.detail .detail-controls>.btn,.detail .detail-controls>.sell-btn{margin:0;width:100%;min-height:52px;padding:5px;font-size:15px}
.detail .detail-controls>.sell-btn{border:2px solid #a1844d}
.compact.map-full-height .detail.tactical-detail{gap:6px;padding:8px;height:641px!important}
.compact .detail-heading{min-height:88px;flex-basis:88px}
.compact .detail-heading .detail-name{display:block;font-weight:400;font-size:26px}
.compact .detail-heading small{font-size:18px}
.compact .detail .detail-stats dt{font-size:18px;line-height:22px}
.compact .detail .detail-stats dd{font-size:24px;line-height:29px}
.compact .detail-stats>div{padding:1px 2px}
.compact .detail-copy .desc{font-size:22px;line-height:1.45}
.compact .detail-copy .upgrade-preview{font-size:20px;line-height:1.45}
.compact .target-mode-group legend{font-size:20px;line-height:25px;margin-bottom:3px}
.compact .target-mode-buttons button{min-height:88px;font-size:25px}
.compact .target-mode-note{font-size:18px;line-height:23px}
.compact .detail .detail-controls>.btn,.compact .detail .detail-controls>.sell-btn{min-height:88px;font-size:24px;padding:4px}
.compact .detail .detail-controls>.btn span{font-size:23px}

/* Independent667 review: reserve at least two full lines, not only controls. */
.compact .detail .detail-stats{margin:0;padding:0;gap:4px}
.compact .detail .detail-stats dt{font-size:16px;line-height:19px}
.compact .detail .detail-stats dd{font-size:22px;line-height:24px}
.compact .detail .detail-stats>div{padding:1px 2px}
.compact .detail .detail-copy{min-height:66px}
.compact .target-mode-note{white-space:nowrap}

/* Keep the existing body and fixed44px actions; expose overflow at its edge. */
.detail-copy{scrollbar-width:auto;scrollbar-color:#765126 #d9bd83;scrollbar-gutter:stable}
.detail-copy::-webkit-scrollbar{width:10px}
.detail-copy::-webkit-scrollbar-track{background:#d9bd83;border-radius:5px}
.detail-copy::-webkit-scrollbar-thumb{background:#765126;border:2px solid #d9bd83;border-radius:5px}
.detail-copy{padding-right:15px}
.detail-copy[data-more=true]::before{content:'';position:sticky;top:calc(100% - 23px);float:right;width:13px;height:22px;margin-right:-13px;margin-bottom:-22px;background:#644322;clip-path:polygon(43% 0,57% 0,57% 66%,88% 46%,100% 57%,50% 100%,0 57%,12% 46%,43% 66%);pointer-events:none}

/* Reuses the max-level action slot; no extra HUD row. */
.transplant-action strong,.transplant-action small{display:block;line-height:1.25;font-weight:400}.transplant-action small{font-size:11px;margin-top:3px;letter-spacing:0}.compact .transplant-action small{font-size:17px}.transplant-action[aria-pressed="true"]{outline:2px solid #607b43;outline-offset:-5px}
