
/* Restored full finance panel; scoped to new Economy Edition */
#finance-modal.modal-backdrop{position:fixed;inset:0;z-index:150;background:rgba(0,0,0,.83);display:flex;align-items:center;justify-content:center;padding:max(10px,env(safe-area-inset-top)) 10px max(10px,env(safe-area-inset-bottom))}
#finance-modal.is-hidden{display:none!important}
.finance-open{overflow:hidden}
.finance-panel{display:flex;flex-direction:column;width:min(100%,920px);height:min(94dvh,950px);min-height:0;max-height:calc(100dvh - 24px);border:1px solid #8d6839;border-radius:20px;background:#0d0c0a;color:#f8f4eb;box-shadow:0 20px 90px #000e;overflow:hidden}
.finance-header{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:15px 18px;border-bottom:1px solid #57452c}
.finance-header small{color:#d7ad61;font-size:10px;letter-spacing:.13em}.finance-header h2{margin:3px 0;font-size:25px}
.finance-header button{border:1px solid #695137;background:#211b14;color:#e8c884;border-radius:12px;width:48px;height:48px;font-size:27px}
.finance-panel #finance-nav{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;padding:9px;border-bottom:1px solid #483a2a}
.finance-panel #finance-nav button{border:1px solid transparent;border-radius:11px;background:#17140f;color:#d2c6b1;min-height:48px;padding:5px 3px;font-weight:700}
.finance-panel #finance-nav button.is-active{border-color:#bb9958;background:#4b371c;color:#ffdc95}
#finance-content{overflow-y:auto;overscroll-behavior:contain;flex:1;min-height:0;padding:15px 18px 28px;scrollbar-gutter:stable}
.finance-panel h3{font-size:19px;margin:18px 0 10px}.finance-panel h4{font-size:15px;margin:0 0 8px}
.finance-panel p{line-height:1.6}.finance-panel small,.finance-panel .muted{color:#b8aa96}
.finance-capital{background:linear-gradient(130deg,#32220f,#15120e);border:1px solid #72562b;padding:20px;border-radius:18px}
.finance-capital strong{display:block;font-size:clamp(25px,4vw,38px);color:#ffde96;overflow-wrap:anywhere}
.finance-capital span{color:#cbbd9f}
.finance-metrics{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.finance-metrics>div{border:1px solid #4b3922;background:#15110e;border-radius:13px;padding:12px;min-width:0}
.finance-metrics dt{color:#bba989;font-size:12px}.finance-metrics dd{margin:5px 0;color:#f7d995;font-weight:800;font-size:17px;overflow-wrap:anywhere}
.finance-panel .button{min-height:48px;border-radius:12px;padding:11px 15px}
.finance-panel .button-primary{background:linear-gradient(125deg,#ffe1a0,#c89646);color:#201409;border:0}
.finance-panel .button-secondary{background:#221b13;border:1px solid #795d37;color:#f0d49c}
.finance-panel form{display:grid;gap:12px;background:#17130e;border:1px solid #4f3c26;padding:16px;border-radius:15px;margin:12px 0}
.finance-panel label{display:grid;gap:6px;font-size:13px;color:#d1c0a6}
.finance-panel input,.finance-panel select{font-size:16px;min-height:48px;width:100%;min-width:0;background:#0c0c0b;border:1px solid #795d35;color:#fff3da;border-radius:11px;padding:10px}
.finance-card{background:#19150f;border:1px solid #584225;padding:15px;border-radius:14px;margin:12px 0;overflow-wrap:anywhere}
.finance-card h4{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap}
.finance-actions,.finance-more{display:flex;flex-wrap:wrap;gap:10px;margin:13px 0}
.finance-actions>button,.finance-more>button{flex:1 1 135px}
.finance-warning{padding:12px;border-radius:12px;border:1px solid #a97631;color:#ffce80}
.finance-history{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #51402a}
.finance-history span{color:#ebca8c;white-space:nowrap}.finance-history small{display:block;margin-top:5px}
.finance-panel summary{min-height:48px;display:flex;align-items:center;cursor:pointer;color:#f0cf93}
@media(max-width:480px){#finance-modal.modal-backdrop{padding:0}.finance-panel{width:100%;height:100dvh;max-height:100dvh;border-radius:0}.finance-header{padding:12px}.finance-header h2{font-size:22px}#finance-content{padding:12px}.finance-panel #finance-nav{gap:2px;padding:6px}.finance-panel #finance-nav button{font-size:11px;min-height:50px}.finance-card{padding:12px}.finance-actions>button{flex:1 1 100%}}
