/* Game-inspired investment colours, scoped to the T4 guide. */
.t4-page{--t4-purple:#c5a2f5;--t4-purple-rgb:197,162,245;--t4-blue:#83bfff;--t4-green:#8bd49c}
.tier-economy{--tier:#e1bd72;--tier-rgb:225,189,114}
.tier-core{--tier:#a8bccb;--tier-rgb:168,188,203}
.tier-final{--tier:#e3ad8b;--tier-rgb:227,173,139}
.tier-t2{--tier:#8bd49c;--tier-rgb:139,212,156}
.tier-t3{--tier:#83bfff;--tier-rgb:131,191,255}
.tier-t4{--tier:#c5a2f5;--tier-rgb:197,162,245}
.t4-ui-icon{display:inline-block;width:21px;height:21px;flex:0 0 auto;vertical-align:middle}
.t4-tier-emblem{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:44px;height:48px;position:relative;color:var(--tier);border:1px solid rgba(var(--tier-rgb),.45);border-radius:3px 3px 12px 3px;background:linear-gradient(145deg,rgba(var(--tier-rgb),.2),rgba(var(--tier-rgb),.035));box-shadow:inset 0 0 0 3px #10111280}
.t4-tier-emblem>span{font-family:Georgia,serif;font-size:25px;line-height:1;letter-spacing:-2px;padding-right:2px}
.t4-tier-emblem .t4-ui-icon{width:25px;height:25px}
#investments{padding-top:58px}
#investments>.t4-section-heading h2{font-size:clamp(36px,4.2vw,50px)}
.t4-controls{position:relative;overflow:hidden;background:radial-gradient(ellipse at 100% 0,rgba(152,104,220,.12),transparent 65%),#181a1c;border:1px solid #45404c;border-top:2px solid #a282c6;padding:26px;gap:24px}
.t4-controls label{color:#c4c0c9}
.t4-controls select,.t4-controls input{border-color:#55515e;background-color:#111215;min-height:50px}
.t4-controls label:first-child select{border-color:#8c6ead}
.t4-presets{gap:10px;margin-top:22px}
.t4-preset-button{border-radius:3px;padding:11px 18px;transition:background .15s,border-color .15s}
#crew-level-nine{border-color:#687c8c;background:#a8bccb0b;color:#c1d0db}
#crew-level-nine:hover{background:#a8bccb1c;border-color:#a8bccb}
.t4-plan-heading{margin-top:30px}
.t4-totals{gap:10px;background:none;border:0;margin:20px 0}
.t4-totals>div{border:1px solid #34383a;border-radius:3px;padding:20px 21px;background:linear-gradient(140deg,#202326,#17191b)}
.t4-totals dt{display:flex;gap:9px;align-items:center;color:#b2b7ba}
.t4-totals dt .t4-ui-icon{color:#a4acb4;width:19px;height:19px}
.t4-totals dd{margin-top:11px;font-size:29px;letter-spacing:-.7px;font-weight:600}
.t4-totals dd small{margin-top:4px;color:#999fa4}
.t4-totals .resource-diamonds{border-color:#64527d;background:radial-gradient(ellipse at 100% 0,#9c6bdc20,transparent 75%),#1d1a24}
.t4-totals .resource-diamonds dt .t4-ui-icon,.t4-totals .resource-diamonds dd{color:var(--t4-purple)}
.t4-totals .t4-time{background:#1a1d21;border-color:#41414a}
.t4-totals .t4-time dd{font-size:24px;color:#dfd2f1;letter-spacing:-.4px}
.t4-progress-label{margin-top:24px}
#progress-text{color:#d3c6e3}
.t4-page #investment-progress{height:8px;border-radius:2px;overflow:hidden}
.t4-page #investment-progress::-webkit-progress-value{background:linear-gradient(90deg,#d5b66f,#baa2da)}
.t4-page #investment-progress::-moz-progress-bar{background:linear-gradient(90deg,#d5b66f,#baa2da)}
.t4-library-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;border-top:1px solid var(--line);padding-top:34px;margin:32px 0 22px}
.t4-library-heading .eyebrow{font-size:13px;margin:0 0 9px;color:#a6a8ad;letter-spacing:1.6px}
.t4-library-heading h3{font-size:34px}
.t4-library-heading>p{margin:0;color:var(--muted);font-size:14px}
.t4-stage-overview{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.t4-stage-card{min-width:0;display:flex;flex-direction:column;justify-content:space-between;gap:18px;background:linear-gradient(135deg,rgba(var(--tier-rgb),.1),transparent 75%),#171a1c;color:var(--text);padding:18px 15px 15px;border:1px solid rgba(var(--tier-rgb),.28);border-top:2px solid rgba(var(--tier-rgb),.65);border-radius:3px;cursor:pointer;text-align:left;transition:border-color .15s,background-color .15s}
.t4-stage-card:hover,.t4-stage-card[aria-pressed="true"]{border-color:var(--tier);background-color:#23262a}
.t4-stage-card[aria-pressed="true"]{box-shadow:0 0 0 1px rgba(var(--tier-rgb),.2),inset 0 -2px 0 var(--tier)}
.t4-stage-card-head{display:flex;align-items:center;gap:11px}
.t4-stage-card .t4-tier-emblem{width:34px;height:38px;border-radius:3px 3px 9px 3px}
.t4-stage-card .t4-tier-emblem>span{font-size:21px}
.t4-stage-card .t4-tier-emblem .t4-ui-icon{width:20px;height:20px}
.t4-stage-card-head strong{font-family:'Barlow Condensed',Impact,sans-serif;text-transform:uppercase;font-size:24px;font-weight:600;line-height:1.1;color:var(--tier);display:block}
.t4-stage-card-head small{display:block;font-size:12px;line-height:1.4;margin-top:5px;color:#a9adb2}
.t4-stage-card-count{display:flex;justify-content:space-between;align-items:baseline;gap:6px;font-size:12px;color:#afb2b7;line-height:1.4;min-height:29px}
.t4-stage-card-count strong{color:var(--tier);font-family:'Barlow Condensed',Impact,sans-serif;font-size:26px;line-height:1;font-weight:500}
.t4-stage-track{display:block;width:100%;height:3px;background:rgba(var(--tier-rgb),.13);margin-top:-10px}
.t4-stage-track>span{height:100%;display:block;background:var(--tier)}
.t4-stage-card.outside-goal{border-style:dashed;background-color:#141619}
.t4-stage-card.outside-goal .t4-stage-card-count{color:#c0b4cd;align-items:center}
.t4-filter-row{margin-top:24px;padding:20px;background:#16191b;border:1px solid #303538;border-radius:3px;gap:20px;grid-template-columns:minmax(0,1fr) 270px}
.t4-filter-row input,.t4-filter-row select{border-color:#3c4448;border-radius:2px;background-color:#101315}
.t4-results-row{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:16px 0 0}
.t4-results-row .t4-small{margin:0}
.t4-results-row button{white-space:nowrap}
.t4-investment-list{border:0;display:block}
.t4-investment-group{margin:30px 0 0;scroll-margin-top:24px}
.t4-group-header{display:flex;justify-content:space-between;align-items:center;gap:20px;border-bottom:1px solid rgba(var(--tier-rgb),.32);padding:0 0 16px}
.t4-group-header>div{display:flex;align-items:center;gap:16px}
.t4-group-header h3{font-size:34px;color:var(--tier)}
.t4-group-label{font-size:12px;text-transform:uppercase;letter-spacing:1.6px;color:#9cabb0;margin:0 0 4px}
.t4-group-header>p{font-size:14px;text-align:right;color:#d0d2d3;margin:0}
.t4-group-header>p span{display:block;color:#939ca3;margin-top:3px;font-size:12px}
.t4-group-description{font-size:14px;color:#929ca5;margin:12px 0 18px}
.t4-investment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.t4-investment-row{min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:0;padding:22px 24px 0;border:1px solid rgba(var(--tier-rgb),.24);border-radius:4px;background:radial-gradient(ellipse at 0 0,rgba(var(--tier-rgb),.055),transparent 65%),#191d20;position:relative;overflow:hidden;transition:border-color .15s,background-color .15s}
.t4-investment-row:before{content:'';position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--tier);opacity:.65}
.t4-investment-row:hover{border-color:rgba(var(--tier-rgb),.6);background-color:#1e2327}
.t4-card-top{display:flex;align-items:center;gap:10px;min-height:34px}
.t4-card-top .t4-tier-emblem{width:26px;height:29px;box-shadow:none;border-radius:2px 2px 7px 2px}
.t4-card-top .t4-tier-emblem .t4-ui-icon{width:17px;height:17px}
.t4-card-top .t4-tier-emblem>span{font-size:17px;letter-spacing:-1px;padding-right:1px}
.t4-investment-type{font-size:13px;margin:0;color:var(--tier);line-height:1.3}
.t4-card-state{display:inline-flex;gap:4px;align-items:center;font-size:12px;color:#b1b9bf;margin-left:auto;white-space:nowrap}
.t4-card-state .t4-ui-icon{width:15px;height:15px}
.t4-investment-row h4{margin:18px 0 14px;min-width:0}
.t4-investment-name{color:#f0f2f1;font-size:29px;display:flex;justify-content:space-between;gap:14px;align-items:center;width:100%;line-height:1.12;font-weight:500}
.t4-investment-name:hover{color:var(--tier)}
.t4-detail-hint{flex:0 0 auto;color:#9ca8ae;font:400 12px/1.5 Inter,Arial,sans-serif;border-bottom:1px solid #56626a;text-transform:none}
.t4-level-track{display:grid;grid-template-columns:repeat(var(--steps),minmax(0,1fr));gap:4px;margin-bottom:19px;height:5px}
.t4-level-track>span{display:block;background:rgba(var(--tier-rgb),.12);border-radius:1px}
.t4-level-track>span.filled{background:var(--tier)}
.t4-card-controls{display:flex;justify-content:space-between;align-items:flex-end;gap:18px;padding-bottom:20px}
.t4-investment-row label{width:150px;max-width:48%;font-size:12px;color:#a5afb6}
.t4-investment-row select{border-color:#465158;color:#e7ecef;min-height:42px;border-radius:2px;padding:9px 32px 9px 11px;font-size:14px;margin-top:5px;background-color:#12171a}
.t4-row-cost{display:flex;flex-direction:column;gap:4px;align-items:flex-end;text-align:right;color:#a7afb6;font-size:12px}
.t4-row-cost strong{display:flex;align-items:center;gap:6px;color:#eee9f8;font-size:21px;font-weight:500;line-height:1.4}
.t4-row-cost strong .t4-ui-icon{color:#b9a1d9;width:18px;height:18px}
.t4-row-cost>span{display:block;font-size:12px;margin:0}
.t4-card-footer{margin:0 -24px;padding:12px 24px;background:#0a0f1238;border-top:1px solid #6e7a8024;display:flex;align-items:center;justify-content:space-between;gap:10px;color:#a8b3ba;font-size:12px}
.t4-card-footer>span:first-child{display:flex;align-items:center;gap:7px}
.t4-card-footer .t4-ui-icon{width:15px;height:15px;color:var(--tier)}
.t4-investment-row.is-complete{background:linear-gradient(120deg,rgba(var(--tier-rgb),.07),transparent),#171c1e}
.t4-investment-row.is-complete .t4-investment-name,.t4-investment-row.is-complete .t4-card-state{color:var(--tier)}
.t4-investment-row.is-complete .t4-row-cost strong{color:#afb9bf}
.t4-investment-row.is-excluded{opacity:1;border-style:dashed;background:#15171b}
.t4-investment-row.is-excluded .t4-card-state{color:#b8a7c9}
.t4-investment-row.is-excluded .t4-row-cost strong{font-size:17px;color:#a8a1b4}
.t4-investment-row.is-excluded .t4-investment-name{color:#c1b8ce}
.t4-dialog{--tier:#d9b977;--tier-rgb:217,185,119;border-color:rgba(var(--tier-rgb),.65);border-radius:4px;background:radial-gradient(ellipse at 0 0,rgba(var(--tier-rgb),.09),transparent 55%),#171b1e}
.t4-dialog.tier-economy{--tier:#e1bd72;--tier-rgb:225,189,114}.t4-dialog.tier-core{--tier:#a8bccb;--tier-rgb:168,188,203}.t4-dialog.tier-t2{--tier:#8bd49c;--tier-rgb:139,212,156}.t4-dialog.tier-t3{--tier:#83bfff;--tier-rgb:131,191,255}.t4-dialog.tier-t4{--tier:#c5a2f5;--tier-rgb:197,162,245}
.t4-dialog-identity{display:flex;align-items:center;gap:18px;min-width:0}
.t4-dialog-identity>span{display:flex}
.t4-dialog .eyebrow{color:var(--tier);font-size:13px}
.t4-dialog .t4-dialog-heading{border-bottom:1px solid rgba(var(--tier-rgb),.3);padding-bottom:22px;margin-bottom:18px}
.t4-dialog .t4-close{border-radius:3px;color:var(--tier);border-color:rgba(var(--tier-rgb),.35);flex:0 0 auto}
.t4-dialog .t4-table-scroll th{background:rgba(var(--tier-rgb),.08);border-bottom-color:rgba(var(--tier-rgb),.4)}
.t4-dialog .t4-table-scroll tr.t4-done td,.t4-dialog .t4-table-scroll tr.t4-done th{background:rgba(var(--tier-rgb),.04);color:var(--tier)}
.t4-dialog .t4-table-scroll tfoot td,.t4-dialog .t4-table-scroll tfoot th{color:var(--tier)}
@media(max-width:1050px){.t4-stage-overview{gap:9px}.t4-stage-card{padding:15px 12px}.t4-stage-card-head{gap:8px}.t4-stage-card .t4-tier-emblem{display:none}.t4-investment-row{padding:20px 20px 0}.t4-card-footer{margin:0 -20px;padding:12px 20px}.t4-detail-hint{display:none}.t4-totals dd{font-size:27px}.t4-stage-card-count{flex-wrap:wrap;gap:4px}}
@media(max-width:760px){.t4-stage-overview{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.t4-stage-card{padding:16px}.t4-stage-card-head strong{font-size:24px}.t4-stage-card-count{flex-wrap:nowrap}.t4-stage-card .t4-tier-emblem{display:inline-flex}.t4-stage-card-head small{font-size:12px}.t4-stage-card:nth-last-child(-n+2){grid-column:span 1}.t4-filter-row{grid-template-columns:minmax(0,1fr) 200px}.t4-investment-grid{gap:12px}.t4-investment-row{padding:18px 18px 0}.t4-card-top{flex-wrap:wrap;gap:6px}.t4-card-state{font-size:12px}.t4-investment-name{font-size:26px}.t4-investment-row label{max-width:48%;width:135px}.t4-row-cost strong{font-size:19px}.t4-card-footer{margin:0 -18px;padding:12px 18px;flex-wrap:wrap;font-size:12px}.t4-group-header h3{font-size:31px}.t4-library-heading>p{max-width:180px}.t4-totals>div{padding:18px}.t4-totals .t4-time dd{font-size:22px}}
@media(max-width:600px){.t4-controls{padding:20px}.t4-stage-overview{grid-template-columns:repeat(2,minmax(0,1fr))}.t4-stage-card:last-child{grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:12px 20px}.t4-stage-card:last-child .t4-stage-track{grid-column:1/-1;margin:0}.t4-stage-card:last-child .t4-stage-card-count{justify-content:flex-end;gap:12px}.t4-stage-card{padding:16px}.t4-stage-card-head{gap:10px}.t4-stage-card .t4-tier-emblem{width:31px;height:35px}.t4-stage-card-head strong{font-size:24px}.t4-library-heading{align-items:flex-start;flex-direction:column;gap:10px;margin-top:26px;padding-top:28px}.t4-library-heading h3{font-size:31px}.t4-library-heading>p{max-width:none}.t4-filter-row{grid-template-columns:1fr;padding:16px;gap:16px}.t4-results-row{align-items:flex-start;flex-direction:column;gap:10px}.t4-investment-grid{grid-template-columns:1fr}.t4-investment-row{padding:20px 20px 0}.t4-card-top{gap:10px;flex-wrap:nowrap}.t4-investment-name{font-size:29px}.t4-detail-hint{display:block}.t4-card-footer{margin:0 -20px;padding:12px 20px;flex-wrap:nowrap}.t4-card-controls{gap:15px}.t4-group-header{align-items:center;gap:12px}.t4-group-header>div{gap:11px}.t4-group-header .t4-tier-emblem{width:36px;height:40px}.t4-group-header>p{font-size:12px;max-width:110px}.t4-group-header>p span{font-size:12px}.t4-group-label{font-size:11px;letter-spacing:1px}.t4-group-header h3{font-size:29px}.t4-totals>div{padding:16px 14px}.t4-totals dd{font-size:26px}.t4-totals dt{font-size:13px;gap:7px}.t4-totals dt .t4-ui-icon{width:17px;height:17px}.t4-totals .t4-time dd{font-size:20px}.t4-totals dd small{font-size:12px}.t4-dialog-identity{gap:12px}.t4-dialog .t4-dialog-heading h2{font-size:30px}.t4-dialog-identity .t4-tier-emblem{width:36px;height:42px}.t4-dialog .eyebrow{font-size:12px;letter-spacing:1px}}
@media(prefers-reduced-motion:reduce){.t4-stage-card,.t4-preset-button,.t4-investment-row{transition:none}}
.t4-investment-row label,.t4-row-cost>span,.t4-card-footer,.t4-totals dt{font-size:14px}
.t4-method-details{margin-top:18px;color:#9ca8b0;font-size:14px}
.t4-method-details summary{cursor:pointer;width:fit-content;color:#b7b4c5;text-underline-offset:4px;padding:4px 0}
.t4-method-details[open]{padding:14px 18px;background:#181c20;border-left:2px solid #8b77a8}
.t4-method-details[open] summary{color:#d7c7eb}
.t4-method-details .t4-small{margin-bottom:0}
.t4-dialog.tier-final{--tier:#e3ad8b;--tier-rgb:227,173,139}
@media(max-width:600px){.t4-stage-card:last-child{grid-column:auto;display:flex;gap:18px}.t4-stage-card:last-child .t4-stage-track{grid-column:auto;margin-top:-10px}.t4-stage-card:last-child .t4-stage-card-count{justify-content:space-between;gap:6px}}
