#deck-builder dialog.pt-nauseam-dialog{width:min(680px,calc(100vw - 24px));max-height:calc(100dvh - 24px);overflow:auto}
#deck-builder .pt-nauseam-dialog form{display:flex;flex-direction:column;gap:16px}
#deck-builder .pt-nauseam-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;padding-block:12px;border-bottom:1px solid var(--border)}
#deck-builder .pt-nauseam-stats>div{display:flex;flex-direction:column;gap:3px}
#deck-builder .pt-nauseam-stats strong{font-size:28px;line-height:1.2;font-variant-numeric:tabular-nums}
#deck-builder .pt-nauseam-stats span{font-size:12px;color:var(--text-2)}
#deck-builder .pt-nauseam-latest{display:flex;align-items:center;gap:24px;min-height:180px}
#deck-builder .pt-nauseam-latest .pt-card{width:130px;flex-shrink:0}
#deck-builder .pt-nauseam-latest>div{display:flex;flex-direction:column;gap:8px;min-width:0}
#deck-builder .pt-nauseam-latest strong{font-size:19px;line-height:1.4;overflow-wrap:anywhere}
#deck-builder .pt-nauseam-latest span{font-size:13px;color:var(--text-2)}
#deck-builder .pt-nauseam-latest b{font-size:17px;color:var(--accent)}
#deck-builder .pt-nauseam-history{display:flex;gap:14px;overflow:auto;padding:4px 3px 10px;}
#deck-builder .pt-nauseam-history article{flex:0 0 84px;min-width:0;display:flex;flex-direction:column;gap:4px}
#deck-builder .pt-nauseam-history .pt-card{width:84px}
#deck-builder .pt-nauseam-history strong{font-size:10px;line-height:1.4;overflow-wrap:anywhere}
#deck-builder .pt-nauseam-history small,#deck-builder .pt-nauseam-library{font-size:11px;color:var(--text-2)}
#deck-builder .pt-nauseam-library{margin:0}
#deck-builder .pt-nauseam-dialog footer{position:sticky;bottom:-18px;background:var(--surface);padding-block:12px;margin-top:auto;display:flex;gap:8px;flex-wrap:wrap;border-top:1px solid var(--border)}
#deck-builder .pt-nauseam-dialog footer [data-life-close]{margin-right:auto}
@media(max-width:420px){#deck-builder .pt-nauseam-dialog{padding:14px}#deck-builder .pt-nauseam-stats{gap:8px}#deck-builder .pt-nauseam-stats strong{font-size:24px}#deck-builder .pt-nauseam-stats span{font-size:10px}#deck-builder .pt-nauseam-latest{gap:16px}#deck-builder .pt-nauseam-latest .pt-card{width:108px}#deck-builder .pt-nauseam-latest strong{font-size:16px}#deck-builder .pt-nauseam-dialog footer{bottom:-14px}#deck-builder .pt-nauseam-dialog footer button{font-size:12px;padding:8px}}

/* Life choices use distinct sections and spaced controls rather than joined boxes. */
body.ms-playtest-page #deck-builder #pt-abilities-dialog.pt-necro-dialog {width:min(640px,calc(100vw - 24px))}
body.ms-playtest-page #deck-builder .pt-necro-dialog #pt-activation-form {display:grid;gap:20px}
body.ms-playtest-page #deck-builder .pt-necro-dialog .pt-activation-summary {margin:0;padding-bottom:16px}
body.ms-playtest-page #deck-builder .pt-necro-setup {display:grid;gap:14px;min-width:0}
body.ms-playtest-page #deck-builder .pt-necro-setup>label {font-size:13px;font-weight:600}
body.ms-playtest-page #deck-builder .pt-necro-count {display:grid;grid-template-columns:44px minmax(80px,120px) 44px;gap:12px;align-items:center}
body.ms-playtest-page #deck-builder #pt-abilities-dialog .pt-necro-count :is(button,input) {width:100%;min-width:0;min-height:44px;margin:0;box-sizing:border-box;text-align:center}
body.ms-playtest-page #deck-builder .pt-necro-count input {font-size:20px;font-weight:700;font-variant-numeric:tabular-nums}
body.ms-playtest-page #deck-builder .pt-necro-totals {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;padding:16px 0;border-block:1px solid var(--border)}
body.ms-playtest-page #deck-builder .pt-necro-totals>div {display:grid;gap:6px;min-width:0}
body.ms-playtest-page #deck-builder .pt-necro-totals span {font-size:12px;color:var(--text-2)}
body.ms-playtest-page #deck-builder .pt-necro-totals strong {font-size:24px;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
body.ms-playtest-page #deck-builder .pt-necro-totals [data-necro-cost] {color:var(--accent-soft)}
body.ms-playtest-page #deck-builder .pt-necro-setup p {margin:0;font-size:12px;line-height:1.6;color:var(--text-2)}
body.ms-playtest-page #deck-builder .pt-necro-dialog #pt-activation-form footer {margin:0;padding-top:16px;gap:12px}
body.ms-playtest-page #deck-builder .pt-necro-dialog #pt-activation-form footer button {min-height:44px}
body.ms-playtest-page #deck-builder .pt-necro-dialog .pt-ability-error:empty {display:none}
body.ms-playtest-page #deck-builder :is(#pt-life-dialog,#pt-ability-life-dialog).pt-nauseam-dialog {width:min(720px,calc(100vw - 24px));padding:20px;box-sizing:border-box}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-stats {padding:0 0 18px;gap:20px}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-stats strong {font-size:30px}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-latest {gap:24px;padding:4px 0;min-height:170px}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-latest .pt-card {height:auto;aspect-ratio:63/88;max-width:40%;position:relative;display:block}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-empty {gap:10px;max-width:420px}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-empty strong {font-size:18px}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-history {padding:12px 4px;gap:16px;border-top:1px solid var(--border)}
body.ms-playtest-page #deck-builder :is(#pt-life-dialog,#pt-ability-life-dialog).pt-nauseam-dialog footer {bottom:-20px;margin:0;padding:16px 0 4px;gap:12px;justify-content:flex-end;flex-wrap:wrap;align-items:center;background:var(--surface-1,#111115)}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog footer button {min-height:44px;margin:0;white-space:normal}
body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-ability-error:empty {display:none}
@media(max-width:600px) {
 body.ms-playtest-page #deck-builder :is(#pt-life-dialog,#pt-ability-life-dialog).pt-nauseam-dialog {padding:16px}
 body.ms-playtest-page #deck-builder .pt-necro-totals {gap:12px}
 body.ms-playtest-page #deck-builder .pt-necro-totals strong {font-size:22px}
 body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-stats {gap:12px}
 body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-stats strong {font-size:26px}
 body.ms-playtest-page #deck-builder .pt-nauseam-dialog .pt-nauseam-latest {gap:16px}
 body.ms-playtest-page #deck-builder :is(#pt-life-dialog,#pt-ability-life-dialog).pt-nauseam-dialog footer {bottom:-16px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;padding-top:16px}
 body.ms-playtest-page #deck-builder .pt-nauseam-dialog footer [data-life-close] {grid-column:1/-1;justify-self:start;margin:0}
 body.ms-playtest-page #deck-builder .pt-nauseam-dialog footer button {font-size:12px;padding:8px}
}
