/* v0.3: landscape rooms, each with a task-specific work surface. */
:root{--top:46px;--nav:0px}html,body,#app{height:100%;overflow:hidden}.game{height:100dvh!important;grid-template-rows:46px minmax(0,1fr)!important;padding:0 env(safe-area-inset-right) 0 env(safe-area-inset-left)}.topbar{height:46px!important;min-height:0;padding:4px 14px}.topbar .brand{min-height:34px;padding:0}.topbar .brand small{font-size:10px}.topbar .money{font-size:23px}.topbar .icon-button{width:34px;height:34px;min-height:34px}.topbar .time-badge{font-size:10px}.main{min-height:0;height:100%;overflow:hidden}.bottom-nav{display:none}.d-room{height:100%;min-height:0;display:flex;flex-direction:column;padding:8px 12px;gap:8px;background:radial-gradient(ellipse at 30% 30%,#758467,#435d4e);color:#f4edce;overflow:hidden}.d-room h1,.d-room h2,.d-room h3,.d-room p{margin:0}.d-room h1{font-size:20px}.d-room h2{font-size:17px}.d-room small{font-size:11px}.d-room button,.depth-modal button{min-height:36px;font-size:12px;padding:5px 10px}.d-room button.selected,.depth-modal .selected{background:#e1c179;color:#253f38;border:2px solid #f4db9b}.d-title{height:36px;flex:none;display:flex;align-items:center;justify-content:space-between;gap:10px}.d-title>div{display:flex;gap:8px}.d-title>span{font-size:11px;color:#e4e6c8}.d-prep-layout{display:grid;grid-template-columns:1.15fr 1fr;gap:12px;flex:1;min-height:0}.d-board{display:grid;grid-template-rows:32px 19px minmax(0,1fr) 30px 36px;gap:4px;min-height:0}.d-team-tabs{display:flex;gap:5px;align-items:center}.d-team-tabs>span{margin-left:auto;font-size:12px}.d-team-tabs button{min-height:30px;padding:3px 10px}.d-orientation{font-size:11px;color:#e6e8c8;display:flex;justify-content:space-between}.d-orientation b{color:#f4b698}.d-cells{display:grid;grid-template-columns:repeat(4,1fr);grid-template-rows:repeat(3,1fr);min-height:0;gap:3px;border:1px solid #a9b786;background:#2b4338;padding:3px}.d-cells button{position:relative;min-height:0;border-radius:2px;border:1px solid #80966f;background:#697f5d;padding:1px;display:flex;align-items:center;gap:3px;overflow:hidden;color:#f8edc9}.d-cells button:nth-child(2n){background:#748566}.d-cells button.selected{background:#b7b779;border:2px solid #f4d489}.d-cells .portrait{height:calc(100% - 2px);width:30px;max-height:52px;flex:none}.d-cells span{font-size:10px}.d-emptycell{opacity:.25;font-size:22px!important}.d-cells .front:after{content:'';position:absolute;right:0;top:0;height:100%;width:3px;background:#d7b57177}.d-synergies{display:flex;gap:4px;overflow:hidden}.d-synergies button{background:#435d4d;color:#aebda0;font-size:10px;min-height:27px;padding:3px 7px;white-space:nowrap}.d-synergies button.active{background:#c5c488;color:#213a2f;border-color:#e8cf89}.d-trial{display:flex;align-items:center;gap:8px}.d-trial select{height:34px;min-height:0;margin:0;padding:3px 7px;font-size:11px;width:145px}.d-trial small{font-size:10px}.d-gear{background:#f0e7c9;border:2px solid #a6ac83;color:#2c463b;border-radius:8px;display:flex;flex-direction:column;min-height:0;padding:7px;gap:5px}.d-gear>header{display:flex;align-items:center;gap:7px;flex:none}.d-gear>header>.portrait{height:34px;width:29px}.d-gear>header>div{flex:1;min-width:0}.d-gear>header small{font-size:9px}.d-gear>header button{min-height:30px;font-size:11px}.d-slots{display:flex;gap:5px;height:34px;flex:none}.d-slots button{flex:1;min-height:0;background:#d5d8b7}.d-slots .item-art{width:24px;height:26px}.d-equipped{background:#d9dcc0;padding:5px 8px;font-size:11px;flex:none;border-left:3px solid #a28a40}.d-equipped p{font-size:10px;line-height:1.3}.d-equipped small{font-size:10px}.d-gear-candidates{display:grid;grid-template-columns:1fr 1fr;gap:6px;flex:1;min-height:0}.d-gear-candidates article{border:1px solid #a8ae89;padding:5px;display:flex;flex-direction:column;gap:4px;min-height:0;background:#e2dfbd;overflow:hidden}.d-gear-candidates article>div{display:grid;grid-template-columns:26px 1fr;align-items:center;font-size:11px}.d-gear-candidates .item-art{grid-row:span 2;width:24px;height:27px}.d-gear-candidates small{font-size:9px}.d-gear-candidates p{font-size:10px;line-height:1.3;flex:1}.d-gear-candidates button{min-height:28px;padding:3px;font-size:11px}.d-gear>footer{display:flex;justify-content:space-between;align-items:center;font-size:10px;flex:none;height:26px}.d-gear>footer button{height:25px;min-height:0;padding:1px 12px}.d-empty{grid-column:1/-1;align-self:center;font-size:12px;line-height:1.7;text-align:center}.d-dungeon-layout{display:grid;grid-template-columns:1.2fr 1fr;gap:12px;min-height:0;flex:1}.d-route{display:flex;flex-direction:column;gap:6px;min-height:0}.d-route-map{position:relative;min-height:0;flex:1;background:radial-gradient(ellipse at center,#647555,#344c42);border:1px solid #8c9f7c;border-radius:9px;overflow:hidden}.d-route-map svg{position:absolute;width:100%;height:100%;inset:0}.d-route-map button{position:absolute;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:1px;background:#243f36;border:2px solid #a5aa75;color:#f1e6bd;width:115px;min-height:58px;font-size:10px;padding:5px}.d-route-map button:active{transform:translate(-50%,-50%)}.d-node-symbol{font-size:20px;line-height:1}.d-route-map small{font-size:9px}.d-route-map .cleared{background:#5d7654}.d-route-rule{font-size:10px;color:#e2e4c2}.d-neighbors{height:51px;flex:none;font-size:10px;padding:4px 7px;background:#28483d;line-height:1.5}.d-neighbors div{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.d-neighbors span{font-size:9px;opacity:.7}.d-route>button{align-self:flex-start;min-height:28px;font-size:10px}.d-node-sheet{background:#f0e7c9;color:#2c463b;border:2px solid #a6ac83;border-radius:8px;display:flex;flex-direction:column;min-height:0;padding:8px;gap:5px}.d-node-sheet header{flex:none}.d-node-sheet p{font-size:11px;line-height:1.4}.d-node-sheet header small{font-size:10px}.d-enemies{display:flex;align-items:center;gap:9px;height:39px;flex:none}.d-enemies>span{display:flex;align-items:center;gap:2px}.d-enemies .portrait{height:35px;width:24px}.d-enemies small{font-size:9px;max-width:63px}.d-enemies>b{color:#8a7057;font-size:13px}.d-intel-actions{display:flex;align-items:center;gap:4px}.d-intel-actions button{min-height:25px;font-size:10px;padding:3px 7px}.d-loot-preview{background:#dedfc2;padding:5px;display:flex;flex-direction:column;gap:2px;flex:1;min-height:0;justify-content:center}.d-loot-preview>div:first-child{display:flex;align-items:center;gap:5px;font-size:11px}.d-loot-preview .item-art{height:24px;width:24px}.d-loot-preview small{font-size:9px}.d-loot-pool{display:flex;gap:3px}.d-loot-pool button{flex:1;min-height:35px;font-size:8px;padding:2px;flex-direction:column;gap:0}.d-loot-pool .item-art{height:21px;width:21px}.d-loot-pool small{font-size:8px}.d-node-sheet footer{flex:none;display:flex;flex-direction:column;gap:3px}.d-node-sheet .departure-cost{display:flex;justify-content:space-between;align-items:center;margin:0;font-size:11px}.d-node-sheet .departure-cost small{font-size:8px}.d-node-sheet .large{min-height:34px;font-size:13px;padding:5px}.d-node-sheet footer>small,.d-node-sheet .disabled-reason{font-size:9px;margin:0}.d-node-sheet .d-team-tabs button{min-height:27px;font-size:10px}.d-world-sheet{position:absolute;right:16px;bottom:16px;width:300px;max-width:40%;padding:15px;background:#f2e7ccec;border:2px solid #819170;border-radius:8px}.d-world-sheet h2{margin:0;font-size:21px}.d-world-sheet p{margin:8px 0;font-size:12px}.d-world-sheet .primary{width:100%}.d-world-resources{display:flex;gap:7px;margin:10px 0}.d-world-resources span{display:flex;flex-direction:column;align-items:center;font-size:10px}.d-world-resources .item-art{height:29px;width:29px}.d-investments{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;min-height:0;flex:1}.d-investments article{padding:12px;background:#ece5c4;color:#294438;border:2px solid #b5b688;border-radius:8px;display:flex;flex-direction:column;gap:8px}.d-investments article>span{font-size:11px}.d-investments article>p{font-size:12px;line-height:1.6;flex:1}.d-building-art{height:55px;background:#859870;border-radius:4px;display:flex;align-items:center;justify-content:center;color:#f7deb1}.d-building-art .icon{width:48px;height:48px}.d-invest-pager{display:flex;justify-content:center;align-items:center;gap:15px;flex:none;font-size:11px}.depth-modal{width:min(1050px,calc(100vw - 24px));height:calc(100dvh - 20px);max-height:calc(100dvh - 20px);display:flex;flex-direction:column}.depth-modal>header{padding:8px 12px;height:45px;min-height:45px}.depth-modal .eyebrow{display:none}.depth-modal>header h2{font-size:18px}.depth-modal>.modal-body{padding:10px 14px;display:flex;flex-direction:column;gap:8px;flex:1;min-height:0;overflow:hidden}.d-report-head{display:flex;justify-content:space-between;align-items:center;font-size:12px}.d-report-tabs{display:flex;gap:8px}.d-report-loot{display:grid;grid-template-columns:1fr 1fr;gap:15px;min-height:0;flex:1}.d-report-loot section{background:#e0dfbd;padding:9px;min-height:0}.d-report-loot h3{font-size:13px;margin:0 0 7px}.d-report-loot section>div,.d-report-loot section>button{display:flex;align-items:center;gap:9px;font-size:12px}.d-report-loot p{font-size:11px;line-height:1.5}.d-report-loot .item-art{height:33px;width:33px}.d-report-actions{display:flex;gap:8px;justify-content:flex-end}.d-evidence{flex:1;min-height:0;display:flex;flex-direction:column;gap:7px}.d-score{display:flex;justify-content:space-between;align-items:center;background:#d7d9b7;padding:8px;font-size:12px}.d-combat-rows{display:flex;flex-direction:column;gap:4px;flex:1;min-height:0}.d-combat-rows>div{display:flex;gap:8px;align-items:center;flex:1;min-height:0;border-bottom:1px solid #b8be97;font-size:11px}.d-combat-rows .portrait{height:27px;width:22px}.d-combat-rows b{width:75px;font-size:11px}.d-procs{display:flex;flex-wrap:wrap;gap:4px;font-size:10px}.d-procs>span{background:#d9d8b3;padding:4px}.d-evidence>small{font-size:10px}.battle-modal{height:calc(100dvh - 16px)!important;max-height:calc(100dvh - 16px)!important;width:min(1100px,calc(100vw - 16px))!important;display:flex;flex-direction:column}.battle-modal>header{height:40px;padding:5px 12px;min-height:40px}.battle-modal>header .eyebrow{display:none}.battle-modal>header h2{font-size:17px}.battle-modal>.modal-body{display:flex;flex-direction:column;gap:5px;overflow:hidden;padding:7px 10px;min-height:0;flex:1}.battle-heading{font-size:11px;margin:0!important}.d-battle-layout{display:grid;grid-template-columns:1.5fr 1fr;gap:10px;flex:1;min-height:0}.d-battle-layout #battle-canvas{width:100%!important;height:100%!important;min-height:0!important;aspect-ratio:auto!important}.d-battle-evidence{padding:5px;display:flex;flex-direction:column;min-height:0;background:#e4e2c3}.d-battle-evidence p{font-size:12px}.d-battle-evidence .d-combat-rows>div{font-size:9px;gap:4px}.d-battle-evidence .d-combat-rows b{width:60px;font-size:10px}.d-battle-evidence .d-score{font-size:10px;padding:5px}.d-battle-evidence>small{font-size:9px}.battle-controls{margin:0!important;height:29px;flex:none}.battle-controls button{min-height:27px;font-size:10px;padding:3px 10px}#battle-end{display:flex;align-items:center;justify-content:space-between;gap:10px;height:32px;font-size:10px;flex:none}#battle-end p{margin:0}#battle-end button{min-height:30px;font-size:10px}.d-intel-layout{display:grid;grid-template-columns:1fr 1fr;gap:14px;min-height:0;flex:1}.d-intel-layout section{display:flex;flex-direction:column;min-height:0}.d-intel-layout p{font-size:12px;margin:0 0 8px}.d-enemy-board{display:grid;grid-template-columns:repeat(5,1fr);grid-template-rows:repeat(3,1fr);flex:1;gap:3px;min-height:0}.d-enemy-board>span{background:#859777;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:0;color:#f3e8bf}.d-enemy-board .portrait{height:40px;width:30px}.d-enemy-board small{font-size:9px}.d-enemy-specs{justify-content:center;gap:8px}.d-enemy-specs>div{display:flex;flex-direction:column;gap:3px;padding:8px;background:#dedfbb;font-size:13px}.d-enemy-specs small{font-size:11px}.d-item-explain{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;flex:1}.d-item-explain>.item-art{height:70px;width:70px}.d-roster-entry{display:flex;gap:14px;align-items:center;justify-content:center;height:100%}
/* The exchange presents goods densely; demand uses rows and a supply ledger. */
.m-room{grid-template-rows:34px 35px 19px minmax(0,1fr) 28px;padding:7px 12px;gap:4px}.m-grid{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:6px}.m-card{padding:6px 8px;gap:4px;justify-content:flex-start;min-height:0;border-radius:5px;background:#efe5c5}.m-card-top{gap:5px}.m-card-top>div{min-width:0}.m-card h3{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-card-top>.item-art{height:29px;width:27px}.m-card-top small{font-size:8px}.m-card-top .m-price{font-size:13px}.m-card p.m-effect{font-size:10px;white-space:normal;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:24px}.m-card .m-affix{font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin:0}.m-card-bottom{margin-top:auto;font-size:9px}.m-card-bottom span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.m-card-bottom span:last-child{display:none}.m-summary{font-size:10px}.m-tabs button{min-height:32px;font-size:11px}.m-heading h1{font-size:20px}.m-heading small{font-size:9px}.m-heading button{min-height:32px;font-size:11px}.m-pager{height:27px}.m-pager button{min-height:25px;height:25px}.m-demand-grid{display:flex;flex-direction:column;gap:3px}.m-demand-grid .m-order{display:grid;grid-template-columns:1.15fr 1.1fr .65fr;align-items:center;gap:8px;flex:1;min-height:0;text-align:left}.m-demand-grid .m-card-top{min-width:0}.m-demand-grid .m-card-top .m-price{margin-left:auto}.m-demand-grid .m-order .m-card-bottom{margin:0;align-items:center}.m-demand-grid .m-order .m-card-bottom span:last-child{display:inline}.m-demand-grid .m-order .m-affix{font-size:11px;white-space:normal}.m-market-layout{display:grid;grid-template-columns:minmax(0,1fr) 174px;gap:8px;min-height:0}.m-ledger{background:#d9dec0;padding:8px;display:flex;flex-direction:column;gap:8px;min-height:0;color:#2a463a;font-size:10px;overflow:hidden}.m-ledger h3{font-size:12px;margin:0}.m-ledger>div{display:flex;flex-direction:column;gap:3px;border-bottom:1px solid #a7b591;padding-bottom:5px}.m-ledger .m-ledger-note{font-size:9px;margin-top:auto}.m-forge{grid-template-rows:34px minmax(0,1fr)}.m-recipe-grid{grid-template-columns:repeat(2,1fr);grid-template-rows:repeat(4,1fr)}.m-recipe-grid button{flex-direction:row;gap:5px;min-height:0;padding:4px}.m-recipe-grid .item-art{height:25px;width:25px}.m-recipe-grid b{font-size:11px}.m-recipe-grid small{display:none}.m-inherit-row{display:flex;gap:6px;align-items:center;font-size:10px}.m-inherit-row button{min-height:28px;font-size:10px;padding:3px 7px}.m-inherit-row select{font-size:10px;height:28px}.m-craft-desk{gap:5px}.m-craft-title .item-art{height:33px;width:33px}.m-craft-title h2{font-size:17px}.m-craft-title small{font-size:10px}.m-focus-label{font-size:11px}.m-focus-label select{height:29px;font-size:11px}.m-forge .m-materials .item-art{height:24px;width:24px}.m-craft-actions button{min-height:32px;font-size:11px}.m-craft-copy{font-size:11px}.m-craft-copy small{font-size:9px}.m-price-research{display:grid;grid-template-columns:1fr 1fr;gap:8px;font-size:11px}.m-price-research>div{background:#dde0c0;padding:7px;display:flex;flex-direction:column;gap:4px}.m-price-research b{font-size:12px}.m-price-research span{font-size:10px}.m-price-research .m-note{margin:0;padding:0;font-size:9px}.commerce-modal{height:calc(100dvh - 20px)!important;max-height:calc(100dvh - 20px)!important}.commerce-modal .m-modal-actions{flex-wrap:nowrap;gap:5px}.commerce-modal .m-modal-actions button{font-size:10px;min-height:32px;padding:4px 8px}.commerce-modal .m-object-art{max-height:38px}.commerce-modal .m-object h2{font-size:19px}.commerce-modal .m-object p{font-size:12px}.commerce-modal .m-object strong{font-size:12px}.commerce-modal .m-object small{font-size:10px}.commerce-modal .m-form .m-list-object .item-art{height:36px;width:36px}.commerce-modal .m-form .m-list-object h2{font-size:18px}.commerce-modal .m-form .m-list-object p{margin:3px 0;font-size:11px}.commerce-modal .m-form-grid label{font-size:11px}.commerce-modal .m-form-grid input,.commerce-modal .m-form-grid select{font-size:12px;min-height:30px;height:30px;padding:4px}.commerce-modal .m-form-grid{gap:5px 10px}.commerce-modal .m-form>.m-note{font-size:10px;margin:2px 0;padding:5px}.city-shortcuts{bottom:55px!important}.city-paper{top:15px!important;bottom:auto!important}.news-ribbon{bottom:8px!important}.fleet{bottom:55px!important}.map-controls{bottom:12px!important}
@media(max-width:780px){.m-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.m-market-layout{grid-template-columns:minmax(0,1fr) 135px}.d-prep-layout{grid-template-columns:1.05fr 1fr}.d-room{padding:5px 8px;gap:5px}.d-room h1{font-size:17px}.d-cells .portrait{width:25px}.d-cells span{font-size:9px}.d-gear{padding:5px;gap:4px}.d-gear-candidates p{font-size:9px}.d-gear-candidates article{padding:3px;gap:2px}.d-dungeon-layout{grid-template-columns:1fr 1fr;gap:7px}.d-node-sheet{padding:5px;gap:3px}.d-route-map button{width:94px}.d-route-map b{font-size:9px}.d-node-symbol{font-size:16px}.d-node-sheet p{font-size:10px}.d-node-sheet h2{font-size:16px}.d-loot-preview{padding:3px}.d-loot-pool button{min-height:30px}.d-loot-pool .item-art{height:17px;width:17px}.d-loot-pool small{font-size:7px}.d-title>span{font-size:9px}.d-investments article{padding:8px;gap:5px}.d-investments article>p{font-size:11px}.d-building-art{height:40px}.d-battle-layout{grid-template-columns:1.2fr 1fr}.d-trial{gap:4px}.d-trial select{width:130px}.d-trial small{font-size:8px}.d-gear>header small{font-size:8px}.d-gear-candidates .item-art{width:21px}.d-demand-grid .m-order .m-affix{font-size:10px}}
@media(max-height:380px){.d-board{grid-template-rows:28px 16px minmax(0,1fr) 26px 31px}.d-title{height:29px}.d-gear>header>.portrait{height:27px}.d-gear>header h2{font-size:15px}.d-equipped{padding:3px 6px}.d-equipped p{font-size:9px}.d-gear-candidates p{font-size:9px;line-height:1.15}.d-slots{height:30px}.d-gear>footer{height:22px}.d-gear>footer button{height:22px}.d-trial button,.d-trial select{min-height:29px;height:29px}.d-enemies{height:30px}.d-enemies .portrait{height:28px}.d-node-sheet header small{font-size:9px}.d-node-sheet footer .large{min-height:29px}.d-node-sheet .d-team-tabs button{min-height:24px}.d-route-rule{font-size:9px}.d-neighbors{height:43px;font-size:9px}.d-loot-preview>div:first-child{font-size:10px}.d-loot-preview>small{font-size:8px}.m-room{grid-template-rows:30px 32px 16px minmax(0,1fr) 25px;padding:5px 9px}.m-card{gap:2px;padding:5px}.m-card h3{font-size:10px}.m-card p.m-effect{font-size:9px;min-height:22px}.m-card .m-affix{font-size:9px}.m-card-top>.item-art{height:25px;width:23px}.m-forge{grid-template-rows:30px minmax(0,1fr)}.m-craft-title h2{font-size:15px}.m-craft-title small{font-size:9px}.m-forge-layout{gap:8px}.m-craft-desk{padding:6px;gap:3px}.m-inherit-row select{height:24px}.m-forge .m-materials button{min-height:28px}.m-forge .m-materials .item-art{height:20px;width:20px}}
.d-gear>header{height:32px}.d-gear>header h2{line-height:1.1}.d-gear>header small{line-height:1.15;display:block}.d-slots{height:30px}.d-equipped{padding:4px 6px;line-height:1.15}.d-equipped b{font-size:11px}.d-equipped p{line-height:1.2}.d-gear-candidates article{gap:3px;padding:4px;display:grid;grid-template-rows:29px minmax(0,1fr) 28px}.d-gear-candidates article>div{line-height:1.1}.d-gear-candidates article>div small{font-size:8px}.d-gear-candidates p{overflow:hidden;line-height:1.2}.d-gear>footer{height:23px}.d-gear>footer button{height:23px}.m-results{min-height:0;height:100%}.m-results>.m-grid,.m-market-layout>.m-grid{height:100%;min-height:0}.m-market-layout .m-demand-grid{grid-template-columns:none;grid-template-rows:none}.m-order .m-card-bottom{flex-direction:column;align-items:flex-start;font-size:9px}.m-demand-grid .m-order .m-card-bottom span:last-child{white-space:normal}.m-market-layout .m-card h3{font-size:11px}.m-forge .m-recipe-book{min-height:0}.m-forge .m-recipe-grid{height:100%;min-height:0}.d-battle-layout+.battle-controls{padding:0}.battle-modal #battle-end{padding:0;min-height:32px}#toast{top:auto!important;bottom:7px!important;font-size:11px;padding:8px 12px;max-width:60%;pointer-events:none}
.m-grid:not(.m-demand-grid)>.m-card{display:grid;grid-template-rows:27px 26px 12px 11px;gap:2px;padding:5px 7px;align-content:start}.m-grid:not(.m-demand-grid) .m-card>*{min-height:0;max-height:100%;margin:0;line-height:1.2}.m-grid:not(.m-demand-grid) .m-card-bottom{margin:0;line-height:1.1}.m-grid:not(.m-demand-grid) .m-affix{font-size:9px;line-height:12px}.m-demand-grid .m-order{padding:2px 6px;grid-template-columns:1.2fr 1.1fr .65fr}.m-demand-grid .m-card-bottom{gap:1px;line-height:1.1}.m-demand-grid .m-card-top>.item-art{height:24px;width:24px}.m-ledger{gap:5px;padding:6px;line-height:1.2}.m-ledger>div{gap:2px;padding-bottom:4px}.m-ledger .m-ledger-note{font-size:8px;line-height:1.2}.m-ledger h3{font-size:11px}
.d-node-sheet{display:grid;grid-template-rows:31px 22px 27px 24px minmax(59px,1fr) 80px;gap:3px;padding:5px}.d-node-sheet>*{min-height:0;max-height:100%;margin:0}.d-node-sheet header h2{line-height:1.2}.d-node-sheet header small{line-height:1.1}.d-node-sheet p{line-height:1.2}.d-enemies{height:27px}.d-enemies .portrait{height:27px}.d-intel-actions{height:24px}.d-intel-actions button{height:24px;min-height:24px}.d-loot-preview{padding:2px;display:grid;grid-template-rows:19px minmax(30px,1fr) 9px;gap:0}.d-loot-preview>div:first-child>.item-art{height:18px;width:18px}.d-loot-pool{min-height:0}.d-loot-pool button{min-height:0;height:100%;padding:1px}.d-loot-pool .item-art{height:19px;width:19px}.d-loot-pool small{font-size:8px;line-height:1}.d-loot-preview>small{line-height:1;font-size:8px}.d-node-sheet footer{display:grid;grid-template-rows:25px 13px 29px 10px;gap:1px;padding:0}.d-node-sheet footer .d-team-tabs button{min-height:24px;height:24px;padding:2px 8px}.d-node-sheet footer .departure-cost{height:13px;min-height:0;padding:0;line-height:1}.d-node-sheet footer .large{min-height:29px;height:29px;padding:2px 8px}.d-node-sheet footer>small,.d-node-sheet footer>.disabled-reason{line-height:1;height:10px;font-size:8px}
@media(max-height:380px){.d-node-sheet{grid-template-rows:29px 19px 24px 24px minmax(54px,1fr) 77px;gap:2px}.d-node-sheet header small{font-size:8px}.d-loot-preview{grid-template-rows:17px minmax(28px,1fr) 8px}.d-enemies{height:24px}.d-enemies .portrait{height:24px}.d-node-sheet footer{grid-template-rows:24px 12px 28px 9px}.d-node-sheet footer .large{height:28px;min-height:28px}}
.d-roster-toolbar,.d-roster-pager{display:flex;align-items:center;gap:8px;flex:none}.d-roster-toolbar span{font-size:10px}.d-roster-cards{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr;gap:8px;flex:1;min-height:0}.d-roster-cards article{display:grid;grid-template-columns:1fr 100px;grid-template-rows:30px minmax(0,1fr) 23px;gap:3px 8px;padding:5px 8px;background:#dce0c0;border:1px solid #99aa81;min-height:0}.d-roster-cards header{display:flex;align-items:center;gap:5px;grid-column:1/-1}.d-roster-cards .portrait{height:27px;width:22px}.d-roster-cards b{font-size:12px}.d-roster-cards header small{font-size:9px;margin-left:auto}.d-roster-cards p{font-size:10px;line-height:1.3;margin:0;grid-column:1/-1}.d-roster-cards article>small{font-size:9px}.d-roster-cards article>button{min-height:23px;height:23px;font-size:10px;padding:2px}.d-roster-pager{justify-content:center}.d-roster-pager button{min-height:26px;height:26px}
.m-demand-grid .m-order{flex:none;height:calc((100% - 12px)/5)}
.d-node-sheet>header{display:grid;grid-template-rows:19px 10px;align-content:start;gap:0}.d-node-sheet>header h2{font-size:16px;line-height:19px}.d-node-sheet>header small{display:block;font-size:9px;line-height:10px}.d-enemy-specs{gap:4px}.d-enemy-specs>div{padding:4px 6px;font-size:12px;gap:1px}.d-enemy-specs small{font-size:10px}
.d-fund-layout{display:grid;grid-template-columns:1fr 1fr;gap:16px;flex:1;min-height:0}.d-fund-layout section{background:#e3e1bf;padding:8px;display:flex;flex-direction:column;gap:5px}.d-fund-layout h2{font-size:16px;margin:0}.d-fund-layout h3{font-size:13px;margin:0}.d-fund-layout p{font-size:11px;line-height:1.4;margin:0}.d-fund-layout section>div{display:flex;justify-content:space-between;font-size:11px}.d-fund-layout small{font-size:9px}.d-contributor{padding:5px;border-bottom:1px solid #a6b18b}
.d-empty>small{display:block;font-size:10px}.d-empty>button{font-size:10px;min-height:27px;height:27px;padding:3px 8px;margin:2px}.d-slots span small{display:inline;color:#85703b}
