/* The helper shares the existing process row on every screen. */
.hud-process-row{display:flex;align-items:stretch;gap:0;min-width:0;background:#162b3a;border-top:1px solid #3b5567}
.game-shell .hud-process-row .process-drawer{flex:1 1 auto;min-width:0;margin:0;border:0;border-radius:0;background:transparent}
.hud-process-row .process-drawer>summary>b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hud-process-row .process-drawer>summary>span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.development-button{position:relative;display:flex;flex:0 0 auto;align-items:center;justify-content:center;gap:6px;min-width:110px;align-self:stretch;min-height:30px;padding:4px 12px;border:0;border-left:1px solid #3b5567;border-radius:0;background:transparent;color:#dbbf70;font-family:inherit;font-size:11px;font-weight:600;line-height:1.2;cursor:pointer;white-space:nowrap}
.development-button>.icon{width:14px;height:14px;flex:none}.development-button:hover,.development-button:active{background:#304957}
.development-button>i{flex:none;width:5px;height:5px;border-radius:50%;background:#e7bd68;box-shadow:0 0 0 2px #e7bd6818}.development-button>i[hidden]{display:none}
.development-button:focus-visible,.development-section>summary:focus-visible{outline:2px solid #e7c36f;outline-offset:2px}
.modal[data-dialog="development"],.modal[data-dialog="development-fill"]{width:min(620px,calc(100vw - 24px));max-height:calc(100dvh - 28px);padding:0;display:flex;flex-direction:column;overflow:hidden}
.development-heading{flex:none;margin:0!important;padding:22px 52px 16px 22px;border-bottom:1px solid #41545d;background:#203541}
.development-heading h2{font-size:25px;line-height:1.25;margin:4px 0 6px}.development-heading p{margin:0;color:#b4c7cf;font-size:12px;line-height:1.5}
.development-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;padding:14px 18px 20px;display:flex;flex-direction:column;gap:9px}
.development-section{border:1px solid #3c5361;background:#1a303e;border-radius:9px;overflow:hidden;flex:none}
.development-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;cursor:pointer;list-style:none}
.development-section>summary::-webkit-details-marker{display:none}.development-section>summary>.development-section-copy{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px}.development-section-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 10px}.development-section>summary b{font-size:15px;color:#e4e7df}.development-section>summary small{font-size:11px;color:#a9c0c9;line-height:1.4}
.development-section,.development-item{--development-status:#9bbccf;--development-status-bg:#263f50}
.development-section.is-attention,.development-item.is-attention{--development-status:#efc474;--development-status-bg:#493e28}.development-section.is-ok,.development-item.is-ok{--development-status:#aed397;--development-status-bg:#2c4439}
.development-section.is-attention{border-color:#806b43}.development-section.is-ok{border-color:#496552}
.development-section>summary>.development-status-icon{width:24px;height:24px;font-size:15px}
.development-status-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:16px;height:16px;border:1px solid var(--development-status);border-radius:50%;color:var(--development-status);background:var(--development-status-bg);font-size:11px;font-weight:700;line-height:1}
.development-status{color:var(--development-status);font-size:10px;line-height:1.4;font-style:normal;font-weight:500}
.development-item .development-item-status{display:flex;align-items:center;gap:5px;color:var(--development-status);margin-top:7px}.development-item .development-effect{color:#d0dadd}
.development-section>summary>.icon{width:15px;height:15px;flex:none;transition:transform .15s}.development-section[open]>summary>.icon{transform:rotate(90deg)}
.development-section-body{border-top:1px solid #3c5361;padding:12px 14px}.development-section-body>p{font-size:12px;line-height:1.6;color:#b6c8cf;margin:0 0 10px}.development-section-body>.btn{margin:4px 6px 0 0}
.development-item{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:11px 0;border-bottom:1px solid #314a57}.development-item:first-child{padding-top:0}.development-item:last-child{padding-bottom:0;border-bottom:0}.development-item>div{min-width:0}.development-item>div>b{display:block;font-size:13px;color:#e3e7df;overflow-wrap:anywhere}.development-item small{display:block;color:#acc0cb;font-size:11px;line-height:1.5;margin-top:4px}.development-item>.btn{flex:none}
.development-gain{display:flex;gap:6px;flex-wrap:wrap;margin:8px 0}.development-gain>.development-stat{min-width:0;max-width:100%;display:flex;align-items:center;gap:5px;border-radius:5px;background:#122733;padding:5px 7px;font-size:11px}.development-gain small{margin:0!important;color:#acc0cb;font-size:10px}.development-gain strong{font-size:12px}.development-gain .positive{color:#b9d990}.development-gain .negative{color:#efa593}
.development-gain.full{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.development-gain.full>.development-stat{flex-direction:column;align-items:flex-start;padding:10px;gap:6px}.development-gain.full .development-stat-label{font-size:12px;font-weight:600;color:#d5dfdf}
.development-comparison{display:grid;gap:9px;width:100%;min-width:0}.development-comparison>span{display:grid;gap:3px;min-width:0}
.development-gain.full b{display:block;max-width:100%;font-size:14px;line-height:1.35;font-weight:600;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.development-gain.full strong{display:block;max-width:100%;font-size:17px;line-height:1.3;white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.development-gain.full>.development-stat{align-items:stretch}.development-gain.full strong{border-top:1px solid #344b55;padding-top:7px;margin-top:2px}
.development-potential{flex:none;margin-top:5px;padding:15px;border:1px solid #657065;border-radius:10px;background:linear-gradient(120deg,#2b4148,#1a303b)}.development-potential-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.development-potential-heading>span{display:flex;align-items:center;gap:7px;min-width:0}.development-potential-heading .icon{width:18px;height:18px}.development-potential-heading b{font-size:14px}.development-potential p{font-size:12px;line-height:1.6;color:#c5d1d3;margin:12px 0}.development-potential>small{display:block;color:#9db3bf;font-size:10px;line-height:1.6;margin-top:8px}
.development-moves{display:flex;flex-direction:column;gap:0}.development-moves>div{padding:11px 0;border-bottom:1px solid #3c5361;display:flex;flex-direction:column;gap:5px;font-size:12px}.development-moves span{color:#b8c9d1}.development-footer{display:flex;justify-content:space-between;gap:10px;flex:none;padding:13px 18px;border-top:1px solid #41545d;background:#203541}.development-footer>.btn{margin:0}
@media(max-width:420px){.hud-process-row .process-drawer>summary>span{display:none}.development-button{min-width:101px;font-size:11px;padding-inline:10px}.development-heading{padding:18px 44px 13px 15px}.development-heading h2{font-size:23px}.development-scroll{padding:10px 11px 15px}.development-section>summary{padding:11px 12px}.development-potential-heading{align-items:flex-start;flex-direction:column;gap:9px}.development-gain.full{gap:5px}.development-gain.full>.development-stat{padding:8px 6px}.development-gain.full b{font-size:12px}.development-gain.full strong{font-size:14px}}
@media(min-width:640px) and (min-aspect-ratio:1/1){
 .game-shell .hud-process-row{flex:1 1 188px;min-width:156px;gap:0;background:#243e4b;border:1px solid #3b5567;border-radius:5px;padding:0;height:28px}
 .game-shell .hud-process-row .process-drawer{flex:1 1 90px}
 .game-shell .development-button{height:auto;min-height:24px;min-width:96px;padding:3px 9px;font-size:11px}
 .game-shell .hud-process-row .process-drawer>summary{padding-inline:6px;overflow:hidden}
 .game-shell .hud-process-row .process-drawer>summary>.icon{flex:none;width:12px}
 .game-shell .hud-utilities .daily-strip{flex:0 1 120px}
}
@media(min-width:640px) and (min-aspect-ratio:1/1) and (max-width:1000px){
 .game-shell .hud-utilities{gap:4px}.game-shell .hud-utilities .energy-bar{flex-basis:94px;width:94px}
 .game-shell .hud-process-row{min-width:150px}.game-shell .hud-process-row .process-drawer>summary{gap:0;padding-inline:4px}
 .game-shell .hud-process-row .process-drawer>summary>.icon{display:none}.game-shell .development-button{min-width:90px;padding-inline:7px;font-size:10px;gap:4px}
 .game-shell .hud-utilities .daily-strip{flex-basis:27px;min-width:27px;padding:3px;justify-content:center}.game-shell .hud-utilities .daily-strip>b,.game-shell .hud-utilities .daily-strip>.icon{display:none}
}
@media(min-width:640px) and (min-aspect-ratio:1/1) and (max-height:500px){.game-shell .hud-process-row,.game-shell .development-button{height:25px;min-height:25px}.game-shell .hud-process-row .development-button{height:23px;min-height:23px}.modal[data-dialog="development"],.modal[data-dialog="development-fill"]{max-height:calc(100dvh - 12px)}.development-heading{padding-top:12px;padding-bottom:10px}}
.keyboard-open .hud-process-row{display:none}

.development-help{margin:16px 0;padding:16px;border:1px solid #526a65;border-radius:9px;background:#203541}.development-help h3{font-size:17px;margin:0 0 10px;color:#e4e7df}.development-help p{font-size:12px;line-height:1.7;color:#b6c8cf;margin:9px 0}.development-help>.btn{margin-top:12px}

/* Shared, full-height development panel for base and collectible players. */
.game-shell #team-panel .roster-player-compact .roster-description>.roster-player-actions>.player-development-tile{
 position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:0;min-height:96px!important;padding:10px 12px!important;
 border-color:#64818a;background:linear-gradient(110deg,#173445,#0a202d);box-shadow:inset 0 1px #d7e9ef15;text-align:left;container-type:inline-size;
}
.player-development-tile::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:url('/assets/player-development-v1.webp?v=68cf3597e7816476') right center/auto 100% no-repeat;mask-image:linear-gradient(90deg,transparent 0%,transparent 34%,#000 92%);opacity:.82}
.player-development-tile::after{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;background:linear-gradient(0deg,#0b243251,transparent 22%,transparent 80%,#102b3840)}
.game-shell #team-panel .player-development-tile>.development-tile-copy{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:9px;width:calc(100% - 48px);min-width:0;max-width:260px;text-align:left}
.game-shell #team-panel .player-development-tile .development-tile-heading{display:flex;flex-direction:column;align-items:flex-start;justify-content:flex-start;gap:4px;min-width:0;white-space:normal;font-size:11px;line-height:1.25;color:#e4edf1}
.player-development-tile .development-tile-heading>b{font-size:15px;font-weight:700;line-height:1.2;text-shadow:0 1px 6px #051823}
.player-development-tile .development-tile-heading>small{margin:0;color:#bdced6;font-size:11px;white-space:nowrap}
.game-shell #team-panel .player-development-tile .development-tile-footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-start;gap:5px 10px;min-width:0}
.game-shell #team-panel .player-development-tile .development-tile-price{display:inline-flex;flex:none;align-items:center;justify-content:flex-start;gap:5px;white-space:nowrap;line-height:1;color:#f2dda1;font-variant-numeric:tabular-nums}
.player-development-tile .development-tile-price>b{font-size:20px;font-weight:700;line-height:1.1}
.player-development-tile .development-tile-price>.icon{width:16px;height:16px;flex:none;color:#70d4b2;margin:0}
.player-development-tile .development-tile-price.is-gold>.icon{color:#f4d576}
.game-shell #team-panel .player-development-tile .development-tile-time{display:inline-flex;align-items:center;gap:3px;margin:0;min-width:0;font-size:11px;line-height:1.2;color:#b8ced8;white-space:nowrap;font-variant-numeric:tabular-nums}
.player-development-tile .development-tile-time>.icon{width:12px;height:12px;flex:none;margin:0}
.player-development-tile .development-tile-heading>.icon{width:12px;height:12px;flex:none;color:#b5c5cb}
.game-shell #team-panel .roster-player-compact .roster-description>.roster-player-actions>.player-development-tile.is-running{padding:10px 12px!important}
.game-shell #team-panel .player-development-tile.is-running>.development-tile-copy{gap:5px}
.game-shell #team-panel .player-development-tile .finish-job-button{display:flex;align-items:center;justify-content:flex-start;gap:8px;align-self:flex-start;width:auto;height:auto;min-height:24px;min-width:0;max-width:100%;margin:0;padding:4px 7px;border:1px solid #cbb16c80;border-radius:4px;background:#152a36ed;color:#ead799;font-size:10px;line-height:1.1}
.player-development-tile .development-tile-finish-label{min-width:0;font-weight:600}
.player-development-tile .finish-job-button .development-tile-price>b{font-size:13px}
.player-development-tile .finish-job-button .development-tile-price>.icon{width:13px;height:13px}
.game-shell #team-panel .player-development-tile.is-running .progress{position:relative;inset:auto;flex:none;width:100%;height:3px;margin:0;background:#061b29;overflow:hidden;border-radius:3px}
.game-shell #team-panel .player-development-tile.is-locked{opacity:1}
.game-shell #team-panel .player-development-tile .development-tile-note{display:flex;align-items:flex-start;gap:5px;font-size:11px;line-height:1.35;color:#c6d4da;margin:0}
.player-development-tile .development-tile-note>.icon{width:13px;height:13px;flex:none;margin-top:1px}
.player-development-tile.is-locked .development-tile-heading>b{color:#bcced6}
.player-development-tile:focus-visible{outline:2px solid #f4d37f;outline-offset:2px}
@container(max-width:165px){.game-shell #team-panel .player-development-tile>.development-tile-copy{width:calc(100% - 28px)}.player-development-tile .development-tile-heading>b{font-size:14px}.player-development-tile .development-tile-heading>small,.game-shell #team-panel .player-development-tile .development-tile-time{font-size:9px}.game-shell #team-panel .player-development-tile .development-tile-footer{gap:5px 8px}.player-development-tile .development-tile-price>b{font-size:17px}.player-development-tile .development-tile-price>.icon{width:14px;height:14px}}
@media(hover:hover) and (pointer:fine){.game-shell #team-panel .player-development-tile:not(:disabled):hover{border-color:#adc7c5}.player-development-tile:not(:disabled):hover::after{background:#d7e8df0b}}
