.event-dupr-review{width:min(680px,calc(100vw - 24px));max-height:88dvh;overflow:auto;margin:auto;padding:20px;border:1px solid #cbd5e1;border-radius:16px;background:white;color:#123047;box-sizing:border-box;font:16px/1.5 system-ui,sans-serif}.event-dupr-review::backdrop{background:#001b32a8}.event-dupr-review h2{font-size:22px}.event-dupr-review h3{font-size:17px}.event-dupr-match{border-bottom:1px solid #dae2ea;padding:8px 0}.event-dupr-review p{overflow-wrap:anywhere;margin:8px 0}.event-dupr-actions{display:flex;gap:10px;justify-content:flex-end;position:sticky;bottom:-20px;padding:12px 0;background:white}.event-dupr-review button{border:0;border-radius:8px;padding:12px 16px;background:#0066ff;color:white;cursor:pointer}.event-dupr-review button:first-child{background:#e6edf3;color:#123047}.event-dupr-review button:disabled{opacity:.55;cursor:wait}.event-dupr-review details{padding:12px 0}.event-dupr-review summary{cursor:pointer;font-weight:600}

.dupr-auto-setting{grid-column:1/-1;border:1px solid #ccd9e6;border-radius:10px;padding:12px;margin:0 0 12px}.dupr-auto-setting legend{font-weight:600}.dupr-auto-setting label{display:inline-flex!important;align-items:center;gap:6px;margin-right:24px}.dupr-auto-setting input{width:auto!important;min-height:0!important}.dupr-auto-setting small{display:block;margin-top:8px}.dupr-auto-setting:disabled{opacity:.55}

.dupr-auto-choice{display:flex;position:relative;width:180px;padding:4px;border-radius:24px;background:#e7edf5;margin:8px 0;isolation:isolate}.dupr-auto-choice::before{content:"";position:absolute;inset:4px auto 4px 4px;width:calc(50% - 4px);border-radius:20px;background:#0066ff;transform:translateX(100%);transition:transform .2s ease}.dupr-auto-choice:has(label:first-child input:checked)::before{transform:translateX(0)}.dupr-auto-choice label{position:relative;z-index:1;flex:1;justify-content:center;padding:8px 0!important;margin:0!important;font-weight:700;cursor:pointer;color:#17324c;line-height:1.5}.dupr-auto-choice label:has(input:checked){color:white}.dupr-auto-choice input{position:absolute;opacity:0;width:1px!important;height:1px!important}.dupr-auto-choice label:has(input:focus-visible){outline:2px solid #123e75;outline-offset:2px;border-radius:20px}.dupr-auto-setting:disabled label{cursor:not-allowed}@media(prefers-reduced-motion:reduce){.dupr-auto-choice::before{transition:none}}

.dupr-setup-field{display:grid;gap:6px;margin:16px 0;font-weight:600}.dupr-setup-field input,.dupr-setup-field select{width:100%;box-sizing:border-box;padding:12px;border:1px solid #bdcddb;border-radius:8px;background:white;color:#123047;font:inherit;font-weight:400}

.dupr-submission-notice{position:fixed;top:max(12px,env(safe-area-inset-top));left:12px;right:12px;z-index:9999;max-width:680px;margin:auto;padding:14px;display:flex;align-items:center;gap:10px;background:#07344e;color:white;border-radius:12px;box-shadow:0 3px 14px #0004;font:15px/1.4 system-ui}.dupr-submission-notice button{background:transparent;color:white;border:0;font-size:26px;padding:8px;cursor:pointer}

/* Shared DUPR presentation for Rally Up and Match Studio. */
section.dupr-submission-card{box-sizing:border-box;display:grid;gap:16px;min-width:0;margin:20px 0;padding:26px;border:1px solid #346ee6;border-radius:24px;background:radial-gradient(ellipse at top right,#478efa 0,transparent 65%),linear-gradient(135deg,#096bd8,#071754);color:#fff;box-shadow:0 10px 28px #073b831c;text-align:left}
section.dupr-submission-card[hidden]{display:none}
.dupr-submission-card .dupr-card-brand{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.dupr-submission-card .dupr-card-wordmark{display:inline-block;border-radius:999px;background:#fff;color:#071754;padding:7px 20px;font:900 28px/1.1 Arial,sans-serif;letter-spacing:-2px}
.dupr-submission-card .dupr-card-environment{font-size:12px;font-weight:600;letter-spacing:.03em;color:#fff;background:#ffffff1a;border:1px solid #ffffff40;border-radius:999px;padding:6px 10px}
.dupr-submission-card h3{margin:4px 0 -8px;color:#fff;font-size:24px;font-weight:700;line-height:1.25}
.dupr-submission-card p{margin:0;color:#f0f6ff;font-size:15px;line-height:1.5}
.dupr-submission-card .dupr-card-actions{display:flex;flex-wrap:wrap;gap:10px}
.dupr-submission-card button{display:flex;justify-content:center;align-items:center;gap:14px;min-height:48px;margin:0;padding:12px 18px;border-radius:12px;font-family:inherit;font-size:14px;font-weight:700;line-height:1.4;letter-spacing:0;text-transform:none;cursor:pointer;box-shadow:none;transition:background .15s,transform .15s}
.dupr-submission-card button.dupr-card-submit{background:#fff;color:#082a78;border:1px solid #fff}
.dupr-submission-card button.dupr-card-history{background:#ffffff14;color:#fff;border:1px solid #ffffff65}
.dupr-submission-card button:hover:not(:disabled){background:#dceaff;color:#071754}
.dupr-submission-card button:active:not(:disabled){transform:translateY(1px)}
.dupr-submission-card button:focus-visible{outline:3px solid #fff;outline-offset:4px}
.dupr-submission-card button:disabled{opacity:.65;cursor:wait}
.dupr-submission-card small{display:block;margin:0;max-width:65ch;font-size:12px;line-height:1.6;color:#e0eaff}
@media(max-width:540px){section.dupr-submission-card{padding:20px;gap:14px;border-radius:20px}.dupr-submission-card h3{font-size:22px}.dupr-submission-card .dupr-card-actions{flex-direction:column}.dupr-submission-card button{width:100%}}

/* DUPR identity across account linking, administration and shared dialogs. */
.dupr-profile-header{padding:24px;border-radius:20px;background:radial-gradient(ellipse at top right,#478efa,transparent 70%),linear-gradient(135deg,#096bd8,#071754);color:#fff;margin-bottom:20px}
.dupr-brand-pill{display:inline-block;background:#fff;color:#071754;border-radius:999px;padding:8px 20px;font:900 28px/1.1 Arial,sans-serif;letter-spacing:-2px}
.dupr-env-pill{display:inline-block;margin:8px 0 8px 12px;padding:5px 10px;border:1px solid #ffffff60;border-radius:999px;color:#fff;font-size:12px;font-weight:600}
.dupr-profile-header h1,.dupr-profile-header h2{color:#fff!important;font-size:26px!important;line-height:1.2;margin:20px 0 8px!important}
.dupr-profile-header p{color:#edf4ff!important;margin:0!important;font-size:15px!important}
section.dupr-profile-card{border:1px solid #cbdcf7;border-radius:24px;overflow:hidden;background:#fff;box-shadow:0 8px 28px #082b7110}
.dupr-profile-card p{line-height:1.6;overflow-wrap:anywhere}
.dupr-profile-card .dupr-rating-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:18px 0}
.dupr-rating-tiles>div{display:grid;gap:8px;padding:18px;border-radius:16px;background:linear-gradient(135deg,#eaf3ff,#f6f9ff);border:1px solid #d6e5ff;color:#08276e}
.dupr-rating-tiles span{font-size:14px;font-weight:600}.dupr-rating-tiles strong{font-size:32px;line-height:1.15;font-variant-numeric:tabular-nums}
.dupr-profile-card button,.dupr-dashboard button,.dupr-branded-dialog button:not([data-slot="dialog-close"]),.dupr-import-card button,button.dupr-blue-button,button#duprClubSetupButton{min-height:44px;padding:11px 16px;border-radius:12px;border:1px solid #c4d8f5;background:#edf4ff;color:#082a78;font-weight:700;box-shadow:none}
.dupr-profile-card button.primary,.dupr-dashboard button.primary,.dupr-branded-dialog button.primary,.dupr-import-card button.primary,button.dupr-blue-button,button#duprClubSetupButton{background:linear-gradient(135deg,#0874eb,#1545b7);color:#fff;border-color:#1261d0}
.dupr-profile-card button:disabled,.dupr-dashboard button:disabled,.dupr-branded-dialog button:disabled{cursor:not-allowed;opacity:.6}
.dupr-profile-card a,.dupr-dashboard a{color:#075bc9;text-underline-offset:3px}
.dupr-profile-card [role="alert"],.dupr-dashboard [role="alert"],.dupr-branded-dialog [role="alert"]{background:#fff0ef;color:#a32622;border-radius:10px;padding:12px}
.dupr-dashboard .profile-details-card,.dupr-import-card{border:1px solid #d5e3f6;border-radius:18px;box-shadow:0 5px 20px #082b710a}
.dupr-branded-dialog{border:1px solid #c4d8f5!important;border-radius:22px!important;border-top:6px solid #096bd8!important;background:#fff;color:#123047}
.dupr-branded-dialog h2{color:#09276c}.dupr-branded-dialog iframe{border-radius:12px}
dialog.event-dupr-review{border:1px solid #c9dcf6;border-top:6px solid #096bd8;border-radius:22px;padding:22px;background:#f7faff;box-shadow:0 20px 70px #07175440}
.event-dupr-review>h2{margin:0 0 16px;padding:20px;border-radius:15px;background:linear-gradient(130deg,#096bd8,#071754);color:white;font-size:21px;line-height:1.3}
.event-dupr-review .event-dupr-match{padding:16px;margin:12px 0;border:1px solid #d7e4f6;border-radius:14px;background:#fff;font-size:14px}
.event-dupr-review .event-dupr-match h3{color:#092c78;font-size:16px;margin:0 0 10px}
.event-dupr-review .event-dupr-actions{background:#f7faff;gap:10px;bottom:-22px;padding:16px 0}
.event-dupr-review button{min-height:44px;border-radius:12px;font-weight:600;font-size:14px;background:#096bd8}
.event-dupr-review .event-dupr-actions button{flex:1}
.event-dupr-review .dupr-setup-field input:focus,.event-dupr-review .dupr-setup-field select:focus{outline:2px solid #096bd8;outline-offset:2px}
.dupr-submission-notice{background:linear-gradient(130deg,#096bd8,#071754);border:1px solid #ffffff50;border-radius:16px;box-shadow:0 10px 30px #07175433}
fieldset.dupr-auto-setting{background:#f3f7ff;border-color:#c8dbfa;border-radius:14px;color:#123b79}
span.dupr-badge:not(.off),span.match-dupr-status:not(.guest-excluded):not(.pending):not(.internal),.source-pill.dupr{background:#e8f1ff;color:#0758c9;border:1px solid #c6dcff;border-radius:999px}
.dupr-badge:not(.off) .dupr-dot{background:#096bd8}
.dupr-profile-card button:focus-visible,.dupr-dashboard button:focus-visible,.dupr-branded-dialog button:focus-visible,button.dupr-blue-button:focus-visible,.event-dupr-review button:focus-visible{outline:3px solid #609ef6;outline-offset:3px}
@media(max-width:540px){.dupr-profile-header{padding:20px}.dupr-profile-header h1,.dupr-profile-header h2{font-size:23px!important}.dupr-profile-card button{width:100%}.dupr-rating-tiles>div{padding:14px}.dupr-rating-tiles strong{font-size:28px}dialog.event-dupr-review{padding:16px}.event-dupr-review .event-dupr-actions{bottom:-16px}.event-dupr-review>h2{padding:16px;font-size:19px}}

.dupr-score-confirmed{display:inline-flex!important;align-items:center;justify-content:center;gap:3px;margin:5px 0 0;padding:3px 6px;border-radius:6px;background:#e8f1ff;color:#075bc9!important;font:800 11px/1.25 system-ui,sans-serif;white-space:nowrap;vertical-align:middle}.dupr-score-confirmed svg{width:12px;height:12px;stroke-width:3}.rally-score-sides>b .dupr-score-confirmed{display:flex!important;width:fit-content;margin:5px auto 0}

.score-team-player-line{display:block;line-height:1.45}.rally-score-sides>strong{align-self:center}
/* Allow the automatic-send question to wrap inside narrow event cards. */
fieldset.dupr-auto-setting{box-sizing:border-box;min-width:0;min-inline-size:0;width:100%;max-width:100%;margin:14px 0 0;padding:14px}
fieldset.dupr-auto-setting legend{box-sizing:border-box;max-width:100%;white-space:normal;overflow-wrap:anywhere;padding:0 4px;font-size:14px;line-height:1.5}
fieldset.dupr-auto-setting .dupr-auto-choice{box-sizing:border-box;width:min(180px,100%);max-width:100%;margin:10px 0}
fieldset.dupr-auto-setting .dupr-auto-choice label{min-width:0;min-height:44px;box-sizing:border-box;white-space:nowrap;font-size:14px}
fieldset.dupr-auto-setting small{white-space:normal;overflow-wrap:anywhere;line-height:1.5;font-size:12px}
[data-event-form-section="dupr"]{min-width:0;max-width:100%;box-sizing:border-box}
fieldset.dupr-auto-setting legend{float:left;width:100%;padding:0;margin:0 0 8px}
fieldset.dupr-auto-setting .dupr-auto-choice{clear:both}

/* Admin actions are siblings of score buttons, never nested inside them. */
.match-card-shell,.rally-score-match.has-dupr-control{position:relative;min-width:0}
.match-card-shell>.match-card{width:100%;height:100%;box-sizing:border-box;margin:0}
.match-card-shell.has-dupr-control>.match-card{padding-right:48px}
.rally-score-match.has-dupr-control>.rally-score-match-heading{padding-right:36px}
.match-dupr-menu{position:absolute;top:6px;right:6px;z-index:3;font:14px/1.4 system-ui,sans-serif}
.match-dupr-menu[open]{z-index:5}
.match-dupr-menu>summary{display:flex;align-items:center;justify-content:center;list-style:none;width:36px;height:36px;border-radius:9px;background:#f0f4f8;color:#34475a;font-size:25px;font-weight:800;cursor:pointer;user-select:none}
.match-dupr-menu>summary::-webkit-details-marker{display:none}
.match-dupr-menu>summary:focus-visible{outline:3px solid #82b9f9;outline-offset:2px}
.match-dupr-menu>div{position:absolute;right:0;top:40px;min-width:210px;max-width:calc(100vw - 64px);padding:5px;border:1px solid #d3dfed;border-radius:10px;background:#fff;box-shadow:0 8px 25px #12304725}
.match-dupr-menu>div>button{width:100%;min-height:44px;border:0;border-radius:6px;padding:10px 12px;text-align:left;background:#fff;color:#163557;font:600 14px/1.4 system-ui,sans-serif;cursor:pointer}
.match-dupr-menu>div>button:hover{background:#edf4ff}
.match-dupr-excluded{display:inline-flex;width:fit-content;padding:3px 7px;border:1px solid #d8dfe8;border-radius:6px;background:#f0f3f7;color:#526172;font:700 11px/1.3 system-ui,sans-serif}
.match-dupr-policy-dialog textarea{width:100%;box-sizing:border-box;border:1px solid #bdcddb;border-radius:10px;padding:12px;background:#fff;color:#163557;font:inherit;resize:vertical}

.dupr-submission-card a.dupr-card-more{color:#e0eaff;font-size:12px;text-decoration:underline;text-underline-offset:3px;width:fit-content}

.event-dupr-review .dupr-event-receipts{display:block;margin-top:16px;color:#075bc9;text-decoration:underline;text-underline-offset:3px;font-size:13px}

/* Rally Up dark appearance — generated by scripts/generate-theme-styles.mjs */
@media screen {
html[data-rally-theme="dark"] .event-dupr-review {border:1px solid #6485aa;background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .event-dupr-match {border-bottom:1px solid #6485aa
}
html[data-rally-theme="dark"] .event-dupr-actions {background:#152733
}
html[data-rally-theme="dark"] .event-dupr-review button:first-child {background:#17354c;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-auto-setting {border:1px solid #6485aa
}
html[data-rally-theme="dark"] .dupr-auto-choice {background:#17354c
}
html[data-rally-theme="dark"] .dupr-auto-choice label {color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-auto-choice label:has(input:focus-visible) {outline:2px solid #6485aa
}
html[data-rally-theme="dark"] .dupr-setup-field input,html[data-rally-theme="dark"] .dupr-setup-field select {border:1px solid #6485aa;background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] section.dupr-submission-card {border:1px solid #6485aa;background:radial-gradient(ellipse at top right,#214e80 0,transparent 65%),linear-gradient(135deg,#096bd8,#071754)
}
html[data-rally-theme="dark"] .dupr-submission-card .dupr-card-wordmark {background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-submission-card button.dupr-card-submit {background:#152733;color:#b6d5ff;border:1px solid #536c7d
}
html[data-rally-theme="dark"] .dupr-submission-card button:hover:not(:disabled) {background:#17354c;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-submission-card button:focus-visible {outline:3px solid #536c7d
}
html[data-rally-theme="dark"] .dupr-profile-header {background:radial-gradient(ellipse at top right,#214e80,transparent 70%),linear-gradient(135deg,#096bd8,#071754)
}
html[data-rally-theme="dark"] .dupr-brand-pill {background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] section.dupr-profile-card {border:1px solid #6485aa;background:#152733
}
html[data-rally-theme="dark"] .dupr-rating-tiles>div {background:linear-gradient(135deg,#17354c,#152733);border:1px solid #6485aa;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-profile-card button,html[data-rally-theme="dark"] .dupr-dashboard button,html[data-rally-theme="dark"] .dupr-branded-dialog button:not([data-slot="dialog-close"]),html[data-rally-theme="dark"] .dupr-import-card button,html[data-rally-theme="dark"] button.dupr-blue-button,html[data-rally-theme="dark"] button#duprClubSetupButton {border:1px solid #6485aa;background:#17354c;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-profile-card button.primary,html[data-rally-theme="dark"] .dupr-dashboard button.primary,html[data-rally-theme="dark"] .dupr-branded-dialog button.primary,html[data-rally-theme="dark"] .dupr-import-card button.primary,html[data-rally-theme="dark"] button.dupr-blue-button,html[data-rally-theme="dark"] button#duprClubSetupButton {background:linear-gradient(135deg,#214e80,#1545b7);border-color:#6485aa
}
html[data-rally-theme="dark"] .dupr-profile-card a,html[data-rally-theme="dark"] .dupr-dashboard a {color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-profile-card [role="alert"],html[data-rally-theme="dark"] .dupr-dashboard [role="alert"],html[data-rally-theme="dark"] .dupr-branded-dialog [role="alert"] {background:#49262f;color:#ffc1c8
}
html[data-rally-theme="dark"] .dupr-dashboard .profile-details-card,html[data-rally-theme="dark"] .dupr-import-card {border:1px solid #6485aa
}
html[data-rally-theme="dark"] .dupr-branded-dialog {border:1px solid #6485aa!important;border-top:6px solid #6485aa!important;background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .dupr-branded-dialog h2 {color:#b6d5ff
}
html[data-rally-theme="dark"] dialog.event-dupr-review {border:1px solid #6485aa;border-top:6px solid #6485aa;background:#152733
}
html[data-rally-theme="dark"] .event-dupr-review .event-dupr-match {border:1px solid #6485aa;background:#152733
}
html[data-rally-theme="dark"] .event-dupr-review .event-dupr-match h3 {color:#b6d5ff
}
html[data-rally-theme="dark"] .event-dupr-review .event-dupr-actions {background:#152733
}
html[data-rally-theme="dark"] .event-dupr-review .dupr-setup-field input:focus,html[data-rally-theme="dark"] .event-dupr-review .dupr-setup-field select:focus {outline:2px solid #6485aa
}
html[data-rally-theme="dark"] fieldset.dupr-auto-setting {background:#17354c;border-color:#6485aa;color:#b6d5ff
}
html[data-rally-theme="dark"] span.dupr-badge:not(.off),html[data-rally-theme="dark"] span.match-dupr-status:not(.guest-excluded):not(.pending):not(.internal),html[data-rally-theme="dark"] .source-pill.dupr {background:#17354c;color:#b6d5ff;border:1px solid #6485aa
}
html[data-rally-theme="dark"] .dupr-profile-card button:focus-visible,html[data-rally-theme="dark"] .dupr-dashboard button:focus-visible,html[data-rally-theme="dark"] .dupr-branded-dialog button:focus-visible,html[data-rally-theme="dark"] button.dupr-blue-button:focus-visible,html[data-rally-theme="dark"] .event-dupr-review button:focus-visible {outline:3px solid #6485aa
}
html[data-rally-theme="dark"] .dupr-score-confirmed {background:#17354c;color:#b6d5ff!important
}
html[data-rally-theme="dark"] .match-dupr-menu>summary {background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .match-dupr-menu>summary:focus-visible {outline:3px solid #6485aa
}
html[data-rally-theme="dark"] .match-dupr-menu>div {border:1px solid #6485aa;background:#152733
}
html[data-rally-theme="dark"] .match-dupr-menu>div>button {background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .match-dupr-menu>div>button:hover {background:#17354c
}
html[data-rally-theme="dark"] .match-dupr-excluded {border:1px solid #6485aa;background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .match-dupr-policy-dialog textarea {border:1px solid #6485aa;background:#152733;color:#b6d5ff
}
html[data-rally-theme="dark"] .event-dupr-review .dupr-event-receipts {color:#b6d5ff
}
}
