/* "Amélioration d'équipement" (GearXpWindow, a compact window) and its button on the paper doll of the Character window. Plates and bars in the colours of the interface theme. */
.cw-gxbtn { position: absolute; left: 0; top: 0; width: 44px; height: 44px; box-sizing: border-box; padding: 0; border-radius: 3px; border: 2px solid var(--gf-tile-edge, #716c94); background: linear-gradient(#d1cfdf, #a19dbd); color: #343149; font-size: var(--fs-display); font-weight: 800; line-height: 1; cursor: pointer; }
.cw-gxbtn:hover { filter: brightness(1.08); }
.cw-gxbtn.on { background: linear-gradient(#bff0b4, #7ed36d); border-color: #2f7a2a; color: #12501a; }
.gx-body { padding: 6px; }
.gx-info { display: flex; gap: 6px; align-items: center; padding: 5px; background: var(--gf-paper-dark, #bcb9ce); border: 1px solid #716c94; border-radius: 5px; }
.gx-info .gf-tile { flex: none; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.gx-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; font-size: calc(11.5px * var(--ui-text)); line-height: 1.2; }
.gx-name { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.gx-name b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gx-state { flex: none; font-weight: 800; font-size: calc(10.5px * var(--ui-text)); color: #4a6a2a; }
.gx-state.bad { color: #b3262b; }
.gx-state.on { color: #1f7a34; }
.gx-bar { position: relative; height: 13px; border-radius: 3px; background: var(--gf-plate-dark, #23222b); border: 1px solid #121117; overflow: hidden; }
.gx-bar i { position: absolute; inset: 0 auto 0 0; background: linear-gradient(#ada9c6, #7c76a4); transition: width 0.2s; }
.gx-bar span { position: absolute; inset: 0; text-align: center; font-size: var(--fs-caption); font-weight: 800; line-height: 13px; color: #fff; text-shadow: 0 1px 2px #000; }
.gx-bonus { display: grid; grid-template-columns: 1fr 44px 44px; gap: 3px; margin: 3px 0 0; align-items: center; }
.gx-stat { min-width: 0; padding: 2px 4px; font-size: calc(11.5px * var(--ui-text)); font-weight: 800; text-transform: uppercase; }
.gx-stat.fixed { border-radius: 3px; background: var(--gf-plate-dark, #23222b); color: #d3d1e0; border: 1px solid #121117; }
.gx-cell { padding: 2px 3px; border-radius: 3px; background: var(--gf-plate-dark, #23222b); border: 1px solid #121117; color: #d3d1e0; font-size: var(--fs-small); font-weight: 700; text-align: center; white-space: nowrap; }
.gx-cell.val { color: var(--gf-green, #5ff27a); }
.gx-actions { display: flex; gap: 4px; justify-content: stretch; margin-top: 6px; }
.gx-actions .gf-btn { flex: 1; padding: 2px 4px; font-size: var(--fs-small); font-weight: 700; }
.gx-actions .gf-btn:disabled { opacity: 0.5; cursor: default; }
