.system-choice-dialog { box-sizing:border-box;width:min(640px,calc(100% - 24px));max-height:85dvh;border:1px solid var(--rpg-line);border-radius:14px;background:var(--rpg-paper,#fff);color:var(--rpg-ink);padding:16px;box-shadow:0 16px 60px #0003; }
.system-choice-dialog::backdrop{background:#15291e55;}
.system-choice-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px;}
.system-choice-dialog .system-choice-close{margin:0;min-width:54px;border:0;background:transparent;color:var(--rpg-ink-soft);padding:0 6px;}
.system-choice-options{display:grid;gap:6px;max-height:65dvh;overflow:auto;overscroll-behavior:contain;}
.system-choice-option{margin:0;display:block;flex:none;width:100%;min-height:48px;padding:12px 14px;border:0;border-radius:0;border-bottom:1px solid var(--rpg-line);background:transparent;color:var(--rpg-ink);text-align:left;white-space:normal;overflow-wrap:anywhere;}
.system-choice-option[aria-pressed=true]{background:var(--rpg-tint);color:var(--rpg-purple);font-weight:700;}
.system-choice-option:disabled{opacity:.45;}
/* Existing non-native choice menus share the same title/list/close treatment. */
#examDateModal .detail-dialog,#taskTemplateModal .detail-dialog{border-radius:14px;}
.exam-date-options,.template-options{gap:6px!important;}
.exam-date-option,.template-option{border:0!important;border-bottom:1px solid var(--rpg-line)!important;border-radius:0!important;min-height:48px!important;white-space:normal;}
.exam-date-option.selected,.template-option.selected{background:var(--rpg-tint)!important;color:var(--rpg-purple)!important;}

#examDateModal,#taskTemplateModal{align-items:center;padding:12px;}
#vocabularyReviewChoice .vocabulary-review-dialog{border-radius:14px;}
.system-choice-heading{display:flex;align-items:center;justify-content:space-between;gap:14px;}
.system-choice-heading>button{margin:0;background:transparent;color:var(--rpg-ink-soft);border:0;}
.system-choice-actions{display:grid;gap:6px;margin-top:14px;}
.system-choice-actions>button{width:100%;margin:0;border:0;border-radius:0;border-bottom:1px solid var(--rpg-line);min-height:48px;text-align:left;padding:12px 14px;background:#fff;color:var(--rpg-ink);}
.system-choice-actions>button:first-child{background:var(--rpg-tint);color:var(--rpg-purple);}
