body.stat-reforge-open { overflow: hidden; }
.stat-reforge-backdrop { z-index: 310; padding: 8px; }
.stat-reforge-dialog { width: min(100%, 620px); max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain; border-radius: 4px; }
.stat-reforge-dialog h2 { font-size: var(--ga-font-page, 1.125rem); }
.stat-reforge-dialog p { margin: 0; line-height: 1.6; font-size: var(--ga-font-body, .875rem); overflow-wrap: anywhere; }
.stat-reforge-item { display: block; font-size: var(--ga-font-item-name, .8125rem); overflow-wrap: anywhere; }
.stat-reforge-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-reforge-options button { display: flex; flex-direction: column; align-items: stretch; gap: 4px; text-align: left; min-width: 0; padding: 12px; overflow-wrap: anywhere; white-space: normal; }
.stat-reforge-options small { font-size: var(--ga-font-note, .75rem); }
.stat-reforge-options [aria-pressed="true"] { border-color: var(--selected-border, var(--text)); background: var(--selected-bg, var(--surface)); }
.stat-reforge-cost, .stat-reforge-comparison { padding: 12px; border: 1px solid var(--border); border-radius: 4px; background: var(--surface); }
.stat-reforge-comparison { display: grid; gap: 12px; }
.stat-reforge-comparison b { font-size: var(--ga-font-section, .9375rem); }
.stat-reforge-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.stat-reforge-dialog button { overflow-wrap: anywhere; white-space: normal; }
.stat-reforge-dialog > .workshop-enhance-hold, .stat-reforge-close { width: 100%; margin-top: 12px; }
.stat-reforge-dialog > .workshop-enhance-hold { display: flex; align-items: center; justify-content: center; gap: 8px; touch-action: pan-y pinch-zoom; -webkit-touch-callout: none; user-select: none; }
@media (max-width: 360px) { .stat-reforge-options, .stat-reforge-choices { grid-template-columns: minmax(0, 1fr); } }
