/* RT Protocol application surfaces: dark, responsive, touch-friendly. */
.rtpr-chip.is-leader{background:#463819;color:#ffe0a0;box-shadow:inset 0 0 0 1px #8c6b33}
.rtpr-metrics.is-roster-summary{grid-template-columns:repeat(4,minmax(0,1fr))}
@media(max-width:760px){.rtpr-metrics.is-roster-summary{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rtpr-app,.rtpr-dialog{--rtpr-bg:#081116;--rtpr-card:#111d25;--rtpr-line:#2b414f;--rtpr-text:#eef6fa;--rtpr-muted:#a2b4bf;--rtpr-blue:#45a9e2;color:var(--rtpr-text);font:14px/1.5 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;box-sizing:border-box}
.rtpr-app{width:100%;max-width:1460px;margin:0 auto;padding:clamp(12px,2.4vw,28px);background:#081116;border-radius:18px;position:relative}.rtpr-app *,.rtpr-dialog *{box-sizing:border-box}.rtpr-app h1,.rtpr-app h2,.rtpr-app h3,.rtpr-app h4,.rtpr-dialog h2{color:#eef6fa;margin:0 0 12px;line-height:1.2}.rtpr-app h1{font-size:clamp(30px,5vw,48px)}.rtpr-app h2{font-size:24px}.rtpr-app h3{font-size:18px}.rtpr-app p,.rtpr-dialog p{color:#a2b4bf;margin:8px 0 16px}.rtpr-app small{display:block;color:#a2b4bf}.rtpr-muted{color:#a2b4bf}.rtpr-eyebrow{display:block;font-size:10px;letter-spacing:.17em;font-weight:900;color:#65bceb;text-transform:uppercase;margin-bottom:8px}.rtpr-hero{padding:clamp(20px,3vw,34px);background:linear-gradient(135deg,#183244,#101a22);border:1px solid #345364;border-radius:16px;margin-bottom:22px;border-top:3px solid #45a9e2;position:relative}.rtpr-hero:after{content:"";position:absolute;right:0;top:-3px;width:24%;height:3px;background:#d85862}.rtpr-hero p{margin-bottom:0}
.rtpr-metrics{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:12px;margin:16px 0}.rtpr-metrics>div{padding:18px;border:1px solid #2b414f;background:#101d26;border-radius:12px;display:flex;flex-direction:column}.rtpr-metrics strong{font-size:clamp(24px,3vw,36px);line-height:1.2}.rtpr-metrics span{font-size:11px;color:#a2b4bf;letter-spacing:.04em;text-transform:uppercase;margin-top:6px}.rtpr-progress{margin:12px 0 20px}.rtpr-progress>div{display:flex;justify-content:space-between;gap:12px;color:#a2b4bf;font-size:12px}.rtpr-progress strong{color:#cbeafa}.rtpr-progress progress{display:block;appearance:none;width:100%;height:7px;border:0;border-radius:6px;margin-top:8px;background:#1d3340;overflow:hidden}.rtpr-progress progress::-webkit-progress-bar{background:#1d3340}.rtpr-progress progress::-webkit-progress-value{background:linear-gradient(90deg,#217fae,#6ed0ef)}.rtpr-progress progress::-moz-progress-bar{background:#45a9e2}
.rtpr-toolbar,.rtpr-filters,.rtpr-bulk{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:16px;background:#0c1820;border:1px solid #2b414f;border-radius:12px;margin:18px 0}.rtpr-toolbar>label:not(.rtpr-check){flex:1 1 210px}.rtpr-filters>label{flex:1 1 160px}.rtpr-app label:not(.rtpr-check),.rtpr-dialog label:not(.rtpr-check){display:grid;gap:6px;min-width:0}.rtpr-app label>span,.rtpr-dialog label>span{font-size:12px;color:#b3c9d5}.rtpr-app input:not([type=checkbox]),.rtpr-app select,.rtpr-app textarea,.rtpr-dialog input:not([type=checkbox]),.rtpr-dialog select,.rtpr-dialog textarea{width:100%;min-width:0;max-width:100%;padding:11px 12px;min-height:44px;border:1px solid #3a5364;border-radius:8px;background:#07121a;color:#eef6fa;font:inherit;box-shadow:none}.rtpr-app option,.rtpr-dialog option{background:#102431;color:#fff}.rtpr-app input:focus-visible,.rtpr-app select:focus-visible,.rtpr-dialog input:focus-visible,.rtpr-dialog select:focus-visible,.rtpr-dialog textarea:focus-visible{outline:2px solid #65bceb;outline-offset:2px}.rtpr-check{display:flex;align-items:center;gap:9px;min-height:44px;font-size:13px;cursor:pointer}.rtpr-check input[type=checkbox],.rtpr-history-item input{accent-color:#45a9e2;width:20px;height:20px;margin:0;flex:none}.rtpr-bulk{align-items:center}.rtpr-bulk select{width:auto;max-width:200px}.rtpr-text-link{color:#8bd2ff;text-decoration:underline;min-height:44px;display:inline-flex;align-items:center}
.rtpr-tabs{display:flex;gap:6px;border-bottom:1px solid #345364;overflow-x:auto;margin:22px 0;scrollbar-width:thin}.rtpr-tabs button{color:#acc2cf;font-family:inherit;font-size:11px;font-weight:800;line-height:1.2;text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;background:#101e27;border:1px solid #2c4555;border-bottom:3px solid transparent;border-radius:8px 8px 0 0;padding:16px;min-height:48px;cursor:pointer}.rtpr-tabs button.is-active{color:#fff;background:#173548;border-bottom-color:#57b8eb}.rtpr-section-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin:22px 0 18px}.rtpr-section-head p{margin-bottom:0}.rtpr-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));gap:16px;margin:16px 0 24px}.rtpr-card{padding:22px;border:1px solid #2b414f;border-radius:14px;background:linear-gradient(145deg,#152631,#101a22);min-width:0;overflow-wrap:anywhere}.rtpr-card h4{font-size:17px}.rtpr-card details{margin:14px 0;border-top:1px solid #2b414f;padding-top:12px}.rtpr-app summary{cursor:pointer;color:#d3e7f1;padding:10px 0;min-height:44px;font-weight:650}.rtpr-card.is-selected{border-color:#58bcf0;box-shadow:inset 0 0 0 1px #58bcf0}.rtpr-card-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:16px}.rtpr-section-head>.rtpr-card-actions{margin-top:0}.rtpr-button{display:inline-flex;justify-content:center;align-items:center;min-height:44px;padding:11px 15px;border:1px solid #64b9e8;border-radius:8px;background:linear-gradient(135deg,#2581b2,#175577);color:#fff!important;text-decoration:none!important;font:800 11px/1.2 Inter,ui-sans-serif,system-ui,sans-serif;text-transform:uppercase;letter-spacing:.05em;cursor:pointer}.rtpr-button.is-ghost{background:#132630;border-color:#3f5c6d;color:#d4e9f4!important}.rtpr-button:disabled{opacity:.5;cursor:wait}.rtpr-button:hover{filter:brightness(1.14)}.rtpr-button:focus-visible,.rtpr-tabs button:focus-visible{outline:2px solid #81d4ff;outline-offset:3px}.rtpr-chips{display:flex;gap:6px;flex-wrap:wrap}.rtpr-chip{display:inline-block;font-size:10px;line-height:1.4;font-weight:750;padding:5px 8px;border-radius:30px;background:#203d50;color:#bce2f6;text-transform:uppercase;letter-spacing:.02em;margin:3px 3px 3px 0}.rtpr-chip.is-success{color:#b4f1d2;background:#174233}.rtpr-chip.is-warning{color:#ffe1ac;background:#4b391f}.rtpr-chip.is-magnetized{background:#372b54;color:#dbcfff}.rtpr-model-top{display:flex;gap:8px;flex-wrap:wrap;justify-content:space-between;align-items:center;margin-bottom:12px}.rtpr-model-top .rtpr-check span{font-size:10px;text-transform:uppercase}.rtpr-model h3{margin-bottom:4px}.rtpr-nickname{font-size:19px;color:#9cdbff!important;margin-top:4px!important}.rtpr-config{min-height:22px;font-size:12px}.rtpr-requirements{list-style:none;padding:0;margin:0}.rtpr-requirements li{margin:12px 0;padding-bottom:8px;border-bottom:1px solid #263d4a}.rtpr-requirements small{margin-top:4px}.rtpr-large{font-size:42px}.rtpr-result{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:14px;border-bottom:1px solid #2b414f}.rtpr-entry{display:grid;grid-template-columns:1fr minmax(180px,40%);gap:16px;align-items:center;margin-bottom:12px}.rtpr-group-title{margin-top:24px!important}.rtpr-alert{margin:16px 0;padding:14px 16px;border:1px solid #346b85;border-radius:9px;background:#143346;overflow-wrap:anywhere}.rtpr-alert:empty{display:none}.rtpr-alert.is-error{border-color:#9a4a56;background:#48242c;color:#ffd3d7}.rtpr-alert.is-success{border-color:#346957;background:#15382c;color:#c0f0d5}.rtpr-alert.is-warning{border-color:#836335;background:#3b2e1d;color:#f9ddb0}.rtpr-loading{padding:24px}.rtpr-app.is-loading:before{content:"";position:absolute;z-index:15;top:0;left:0;right:0;height:3px;background:linear-gradient(90deg,transparent,#6fcefa,transparent);background-size:200% 100%;animation:rtpr-load 1s infinite}.rtpr-app.is-loading>[data-rtpr-content]{opacity:.6;pointer-events:none}@keyframes rtpr-load{to{background-position:-200% 0}}
.rtpr-dialog{width:min(920px,calc(100vw - 24px));max-height:calc(100dvh - 32px);padding:22px;border:1px solid #46718a;border-radius:16px;background:#0b1720;overflow-y:auto;box-shadow:0 30px 100px #000b}.rtpr-dialog::backdrop{background:#030910d9;backdrop-filter:blur(4px)}.rtpr-dialog .rtpr-section-head{margin-top:0}.rtpr-dialog .rtpr-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:18px 0}.rtpr-dialog textarea{resize:vertical}.rtpr-slot{border:1px solid #2b414f;border-radius:10px;padding:14px;margin:16px 0;background:#101f29}.rtpr-slot .rtpr-form-grid{grid-template-columns:1fr 1fr;margin-top:0}.rtpr-slot .rtpr-form-grid>label:last-child{grid-column:1/-1}.rtpr-savebar{position:sticky;bottom:-22px;display:flex;gap:16px;align-items:center;justify-content:space-between;padding:14px;margin-top:22px;background:#101f29f5;border-top:1px solid #3e5c6e;z-index:2}.rtpr-savebar p{margin:0;color:#ffc4cb;max-width:75%}.rtpr-recipe-field{display:grid;grid-template-columns:120px 1fr auto;gap:10px;margin:10px 0}.rtpr-history-item{display:flex!important;gap:12px;align-items:center;padding:14px;border:1px solid #2b414f;border-radius:10px;margin-bottom:10px}.rtpr-history-item span{font-size:14px!important}.rtpr-history-item small{display:block;color:#a2b4bf}.rtpr-account-wide{grid-column:1/-1}.rtpr-account-wide .rtpr-app{padding:0;background:transparent}.rtpr-empty{padding:32px}.rtpr-print-slots>div{display:flex;justify-content:space-between;gap:24px;padding:15px 0;border-bottom:1px solid #324b5b}.rtpr-print-slots span{color:#bed4e0}.rtpr-export{margin:0;background:#071117}.rtpr-export main{max-width:1050px}.rtpr-export .rtpr-print-card{border-top:4px solid #57b8eb;padding:34px}.rtpr-export canvas{display:block;width:min(260px,100%);height:auto;margin:14px auto}.rtpr-export canvas[hidden]{display:none}.rtpr-export [data-rtpr-qr-print] canvas{width:150px}
@media(max-width:760px){.rtpr-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rtpr-metrics>div{padding:13px}.rtpr-section-head{flex-direction:column}.rtpr-filters>label{flex-basis:calc(50% - 12px)}.rtpr-entry{grid-template-columns:1fr}.rtpr-dialog .rtpr-form-grid,.rtpr-slot .rtpr-form-grid{grid-template-columns:1fr}.rtpr-dialog .rtpr-section-head{flex-direction:row}.rtpr-recipe-field{grid-template-columns:95px 1fr auto}.rtpr-dialog{padding:16px}.rtpr-result{flex-wrap:wrap}.rtpr-card{padding:18px}.rtpr-print-slots>div{flex-direction:column;gap:4px}}
@media(max-width:420px){.rtpr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rtpr-tabs button{padding:14px 12px}.rtpr-filters>label{flex-basis:100%}.rtpr-card-actions .rtpr-button{flex:1 1 auto}.rtpr-bulk select{max-width:100%;width:100%}.rtpr-recipe-field{grid-template-columns:90px 1fr}.rtpr-recipe-field .rtpr-button{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.rtpr-app.is-loading:before{animation:none}}
/* Match the width of Accounts and Tournaments without widening embedded widgets. */
body.rtp-rosters-page main.site-main.narrow-container,
body.rtp-rosters-page .site-main.narrow-container,
body.rtp-rosters-page main#primary{width:min(1440px,calc(100% - 44px))!important;max-width:1440px!important;margin-inline:auto!important}
body.rtp-rosters-page .entry-single,
body.rtp-rosters-page .page-entry,
body.rtp-rosters-page .entry-content,
body.rtp-rosters-page .wp-block-post-content,
body.rtp-rosters-page .wp-block-shortcode{max-width:none!important;overflow:visible!important}
body.rtp-rosters-page .rtpr-app[data-rtpr-app]{position:relative;left:50%;width:min(1320px,calc(100vw - 32px));max-width:none;margin-inline:0;transform:translateX(-50%)}
.rtpr-hero{overflow:hidden;border-top-width:1px}
.rtpr-hero:before{content:"";position:absolute;inset:0 0 auto;height:3px;background:linear-gradient(90deg,#45a9e2 0 76%,#d85862 76% 100%);pointer-events:none}
.rtpr-hero:after{display:none}
.rtpr-metrics{grid-template-columns:repeat(var(--rtpr-metric-count,5),minmax(0,1fr))}
.rtpr-list-grid{grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
.rtpr-squad-logo{float:right;width:64px;height:64px;object-fit:contain;margin:0 0 12px 12px}
.rtpr-model-pick{border:1px solid #46647a;border-radius:7px;background:#102633;color:#b6ddf1;padding:8px 10px;min-height:36px;font-family:inherit;font-size:11px;font-weight:700;line-height:1.2;cursor:pointer}.rtpr-model-pick[aria-pressed=true]{background:#164461;border-color:#69ceff;color:#e5f8ff;box-shadow:inset 0 0 10px #45baff30}.rtpr-model-team{color:#a2b4bf;font-size:12px}
.rtpr-selection-actions{display:flex;flex-wrap:wrap;align-items:center;gap:8px;flex-basis:100%;padding-top:12px;border-top:1px solid #345364}.rtpr-selection-actions[hidden],.rtpr-carousel-controls[hidden]{display:none!important}
.rtpr-model-top{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}.rtpr-model-pick{font:inherit;font-size:11px;font-weight:700;line-height:1.2;grid-column:1;grid-row:1}.rtpr-model-flags{grid-column:2;grid-row:1;justify-self:end;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:4px}.rtpr-model-team{grid-column:1/-1;grid-row:2;min-width:0;overflow-wrap:anywhere}
.rtpr-stat-section{margin:28px 0 36px}.rtpr-stat-section>.rtpr-section-head{flex-direction:row;align-items:center;margin:0 0 12px}.rtpr-stat-section h3{margin:0}
.rtpr-carousel{display:flex;gap:14px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:#458bb0 #132734;padding:4px 0 15px;max-width:100%;min-width:0}.rtpr-carousel:focus-visible{outline:2px solid #6aceff;outline-offset:3px;border-radius:10px}.rtpr-carousel>.rtpr-stat-card{flex:0 0 calc((100% - 28px)/3);scroll-snap-align:start;min-width:0;margin:0}
.rtpr-carousel-controls{display:flex;gap:8px;flex-shrink:0}.rtpr-carousel-controls .rtpr-button{font-size:25px;width:44px;padding:4px;min-height:44px}.rtpr-carousel-controls .rtpr-button:disabled{cursor:default;filter:none}.rtpr-stat-card-head{display:flex;align-items:center;gap:12px;min-width:0;min-height:48px}.rtpr-stat-card-head>div{min-width:0}.rtpr-stat-card-head h3{font-size:20px;overflow-wrap:anywhere}.rtpr-stat-card-head img{width:48px;height:48px;object-fit:contain;flex-shrink:0}.rtpr-stat-card-head img[hidden]{display:none}
.rtpr-stat-chips{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:16px 0}.rtpr-stat-chips .rtpr-outcome{min-width:0;width:100%;font-size:10px;white-space:normal;min-height:36px;padding:6px 4px}
.rtpr-stat-card{container-type:inline-size}.rtpr-vp-row{display:flex;align-items:baseline;justify-content:space-between;gap:14px;font-family:Bahnschrift,"DIN Alternate",ui-monospace,"SFMono-Regular","Cascadia Code",monospace;font-variant-numeric:tabular-nums slashed-zero;font-size:25px;font-size:clamp(10px,calc((100cqi - 76px)/var(--rtpr-vp-width-units,6)),30px);letter-spacing:.025em;margin:16px 0 8px}.rtpr-vp-row strong{font-weight:700;line-height:1.2}.rtpr-vp-pair{display:flex;align-items:baseline;gap:9px;font-family:inherit;font-variant-numeric:inherit;font-size:inherit;letter-spacing:inherit;margin:0}.rtpr-vp-balance{display:flex;flex-direction:column;align-items:flex-end;gap:4px;flex-shrink:0;color:#ffe2a1}.rtpr-vp-balance>strong{font-size:inherit;text-shadow:0 0 15px #eabf6044}.rtpr-vp-balance>small{color:#ffe2a1;font-family:ui-sans-serif,system-ui,sans-serif;font-size:9px;line-height:1.2;letter-spacing:.05em;text-transform:uppercase}.rtpr-vp-pair strong:first-child{color:#91dfff;text-shadow:0 0 15px #45baff44}.rtpr-vp-pair strong:nth-of-type(2){color:#ffadb9}.rtpr-vp-pair>span{font-size:.67em;color:#7995a8}.rtpr-vp-pair>small{font-family:inherit;font-size:11px}
.rtpr-app .rtpr-results-table{width:100%;table-layout:fixed;border-collapse:collapse;background:transparent;color:#dbeaf2;margin:16px 0;border:0;font-size:13px}.rtpr-results-table th:nth-child(1){width:40%}.rtpr-results-table th:nth-child(2){width:24%}.rtpr-results-table th:nth-child(3){width:24%}.rtpr-results-table th:nth-child(4){width:12%}.rtpr-app .rtpr-results-table th,.rtpr-app .rtpr-results-table td{padding:16px 10px;text-align:center;border:0;border-bottom:1px solid #2c4557;vertical-align:middle;background:transparent;overflow-wrap:anywhere}.rtpr-app .rtpr-results-table th{font-size:10px;letter-spacing:.08em;text-transform:uppercase;color:#7bbce0;background:#102431}.rtpr-results-table .rtpr-result{display:table-row}.rtpr-results-table .rtpr-result-score{text-align:center!important;justify-self:stretch;font-family:Bahnschrift,"DIN Alternate",ui-monospace,monospace;white-space:nowrap}.rtpr-results-table .rtpr-outcome{min-width:0;width:100%;max-width:128px;font-size:10px}.rtpr-results-table .rtpr-result-zone{color:#a8d6ec}.rtpr-results-table tbody tr:hover{background:#12314555}.rtpr-tournament-links summary{color:#b7ddf1;font-weight:700}
@media(max-width:1000px){.rtpr-carousel>.rtpr-stat-card{flex-basis:calc((100% - 14px)/2)}}
@media(max-width:650px){.rtpr-list-grid{grid-template-columns:minmax(0,1fr)}.rtpr-carousel>.rtpr-stat-card{flex-basis:100%}.rtpr-app .rtpr-results-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.rtpr-results-table,.rtpr-results-table tbody{display:block}.rtpr-results-table .rtpr-result{display:grid;grid-template-columns:minmax(0,1fr) 100px 54px;gap:12px;align-items:center;padding:16px 0;border-bottom:1px solid #2c4557}.rtpr-app .rtpr-results-table .rtpr-result td{display:block;padding:0;border:0;min-width:0}.rtpr-results-table .rtpr-result-players{grid-column:1/-1}.rtpr-results-table .rtpr-result-zone::before{content:"Killzone";display:block;text-transform:uppercase;letter-spacing:.08em;color:#7692a5;font-size:9px;margin-bottom:3px}.rtpr-results-table .rtpr-result-score{font-size:15px}}
.rtpr-model-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,285px),1fr));align-items:stretch}
.rtpr-model-grid .rtpr-model{display:flex;flex-direction:column}
.rtpr-model-grid .rtpr-model>.rtpr-card-actions{margin-top:auto;padding-top:16px}
.rtpr-card-actions{max-width:100%}
.rtpr-app .rtpr-button,.rtpr-dialog .rtpr-button,.rtpr-app .rtpr-tabs button{max-width:100%;white-space:normal;transform:none!important;translate:none!important;scale:none!important;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease,color .16s ease}
.rtpr-app .rtpr-tabs button{white-space:nowrap}
.rtpr-app .rtpr-button:hover,.rtpr-dialog .rtpr-button:hover,.rtpr-app .rtpr-tabs button:hover{transform:none!important;translate:none!important;scale:none!important;filter:none;border-color:#78d5ff;background-color:#173f54;box-shadow:inset 0 0 0 1px #64c8f455,inset 0 0 18px #37b7f42e;color:#eefaff!important}
.rtpr-dialog[aria-busy=true] .rtpr-modal-body{opacity:.65;pointer-events:none}
.rtpr-button.is-danger{background:#3b202c;border-color:#b3637b;color:#ffe4ec!important}
.rtpr-app .rtpr-button.is-danger:hover,.rtpr-dialog .rtpr-button.is-danger:hover{background-color:#52263a;border-color:#ef8ca8;box-shadow:inset 0 0 0 1px #ef8ca866,inset 0 0 18px #da527e30}
.rtpr-removal-list{max-height:260px;overflow:auto;padding-left:24px;color:#d7e7ef}
.rtpr-removal-list li{margin:6px 0}
.rtpr-dialog .rtpr-roster-section{margin:26px 0 0;padding-top:22px;border-top:1px solid #345364}
.rtpr-dialog .rtpr-roster-section h3{color:#eef6fa;margin:0 0 12px;font-size:19px}
.rtpr-slot-add{margin:18px 0 4px}
.rtpr-slot-footer{display:flex;align-items:end;justify-content:space-between;gap:16px;flex-wrap:wrap;margin-top:16px}
.rtpr-quantity-field{display:grid;gap:6px;min-width:0}
.rtpr-quantity-field>span{color:#b3c9d5;font-size:12px}
.rtpr-quantity{display:grid;grid-template-columns:44px minmax(48px,72px) 44px;gap:6px;align-items:center}
.rtpr-quantity .rtpr-button{padding:8px;width:44px;min-height:44px;font-size:20px}
.rtpr-dialog .rtpr-quantity input{appearance:textfield;text-align:center;padding-inline:4px;cursor:default}
.rtpr-quantity input::-webkit-inner-spin-button,.rtpr-quantity input::-webkit-outer-spin-button{appearance:none;margin:0}
.rtpr-dialog [data-roster-validation] ul{padding-left:20px;margin-bottom:0}
.rtpr-dialog [data-modal-message]{white-space:pre-line;max-height:120px;overflow-y:auto}
.rtpr-dialog[data-roster-editor="1"]{height:min(900px,calc(100dvh - 32px))}
.rtpr-dialog[data-roster-editor="1"]>form{min-height:100%;display:flex;flex-direction:column}
.rtpr-dialog[data-roster-editor="1"] .rtpr-modal-body{flex:1}
.rtpr-dialog[data-roster-editor="1"]{height:calc(100dvh - 24px);max-height:calc(100dvh - 24px);overflow:hidden;padding:18px}
.rtpr-dialog[data-roster-editor="1"]>form{height:100%;min-height:0;gap:12px}
.rtpr-dialog[data-roster-editor="1"] .rtpr-section-head{flex-shrink:0;margin:0;align-items:center}
.rtpr-dialog[data-roster-editor="1"] .rtpr-section-head h2{margin:0;font-size:24px}
.rtpr-dialog[data-roster-editor="1"] .rtpr-modal-body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:4px 8px 8px 2px;scrollbar-gutter:stable}
.rtpr-dialog[data-roster-editor="1"] .rtpr-savebar{position:static;flex-shrink:0;margin:0;padding:12px}
.rtpr-roster-rules{flex-shrink:0;min-width:0;padding:12px 14px;border:1px solid #518db0;border-left:3px solid #71d4ff;border-radius:10px;background:#102b3b;box-shadow:inset 0 0 22px #44baff13}
.rtpr-roster-rules h3{margin:0 0 8px;color:#a5e5ff;font-size:16px}
.rtpr-rule-chips{display:flex;flex-wrap:wrap;gap:6px}.rtpr-rule-chips .rtpr-chip{margin:0;white-space:normal}
.rtpr-roster-rules details{margin-top:8px;color:#c9e4f4;font-size:12px}.rtpr-roster-rules summary{cursor:pointer;min-height:24px}
.rtpr-rule-details{max-height:15dvh;overflow-y:auto;display:flex;flex-wrap:wrap;gap:5px 14px;padding-top:6px}
.rtpr-rule-details p{flex-basis:100%;margin:4px 0;font-size:12px}
.rtpr-roster-rules [data-roster-validation]{height:clamp(80px,10dvh,100px);min-height:clamp(80px,10dvh,100px);max-height:clamp(80px,10dvh,100px);box-sizing:border-box;margin:8px 0 0;padding:8px 10px;border:1px solid #456477;border-radius:8px;font-size:12px;line-height:1.4;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none}
.rtpr-roster-rules [data-roster-validation][aria-busy="true"]{opacity:.65}
.rtpr-dialog[data-roster-editor="1"] .rtpr-savebar [data-modal-message]{height:48px;min-height:48px;max-height:48px;min-width:0;flex:1;margin:0;overflow-y:auto;scrollbar-gutter:stable;overflow-anchor:none;font-size:12px;line-height:16px}
.rtpr-roster-rules [data-roster-validation] ul{margin:6px 0 0}
.rtpr-overview-preparation{margin:12px 0}.rtpr-overview-preparation>span{display:flex;justify-content:space-between;gap:10px;font-size:12px}.rtpr-overview-preparation progress{display:block;width:100%;height:8px;margin-top:6px;accent-color:#66c8fa;border-radius:5px}
.rtpr-overview-preparation progress::-webkit-progress-bar{background:#243e4d;border-radius:5px}.rtpr-overview-preparation progress::-webkit-progress-value{background:linear-gradient(90deg,#218ab6,#71d5ef);border-radius:5px}.rtpr-overview-preparation progress::-moz-progress-bar{background:linear-gradient(90deg,#218ab6,#71d5ef);border-radius:5px}
.rtpr-app .rtpr-overview-recent{list-style:none!important;margin:12px 0 0!important;padding:0!important;width:100%}.rtpr-app .rtpr-overview-recent li{display:flex;flex-direction:column;gap:5px;margin:0 0 12px!important;padding:0!important;min-width:0;width:100%;list-style:none!important}.rtpr-app .rtpr-overview-recent li::before{content:none}.rtpr-app .rtpr-overview-recent .rtpr-button{display:flex;width:100%;margin:0;justify-content:center;text-align:center;white-space:normal;overflow-wrap:anywhere}.rtpr-overview-recent li>span{color:#a6bdcb;font-size:12px}
.rtpr-theoretical{margin-top:14px;padding:12px;border:1px solid #345364;border-radius:9px;background:#101f29}
.rtpr-theoretical small{display:block;color:#a2b4bf;font-size:12px;margin-top:3px}
@media(max-width:600px){.rtpr-dialog[data-roster-editor="1"]{padding:12px}.rtpr-dialog[data-roster-editor="1"]>form{gap:8px}.rtpr-roster-rules{padding:10px}.rtpr-rule-chips .rtpr-chip{font-size:10px}.rtpr-dialog[data-roster-editor="1"] .rtpr-section-head h2{font-size:20px}.rtpr-dialog[data-roster-editor="1"] .rtpr-savebar{gap:8px;padding:10px}.rtpr-dialog[data-roster-editor="1"] .rtpr-savebar p{max-width:65%;font-size:12px}}
.rtpr-card-team,.rtpr-card-title{display:block;max-width:100%;min-height:44px;padding:4px 0;border:0;background:transparent;color:#83cfff;font:inherit;text-align:left;cursor:pointer;overflow-wrap:anywhere;transition:color .15s, text-shadow .15s}
.rtpr-card-team{font-size:12px;font-weight:750;margin-bottom:4px}
.rtpr-card-title{font-size:clamp(25px,2.5vw,32px);font-weight:800;line-height:1.2;color:#eef6fa}
.rtpr-card-team:hover,.rtpr-card-title:hover{color:#a6e3ff;text-shadow:0 0 14px #45bbfa88}
.rtpr-card-team:focus-visible,.rtpr-card-title:focus-visible{outline:2px solid #65bceb;outline-offset:3px;border-radius:4px}
.rtpr-model .rtpr-chips,.rtpr-model-flags{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.rtpr-model .rtpr-chips .rtpr-chip,.rtpr-model-flags .rtpr-chip{margin:0;max-width:100%;overflow-wrap:anywhere}
.rtpr-model-flags:empty{display:none}
.rtpr-metric-link{display:flex;flex-direction:column;width:100%;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer;transform:none!important}
.rtpr-metric-link:hover{color:#a6e3ff;text-shadow:0 0 12px #45baff44}
.rtpr-metric-link:focus-visible{outline:2px solid #65bceb;outline-offset:6px;border-radius:4px}
.rtpr-overview-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
.rtpr-overview-card{display:flex;flex-direction:column}
.rtpr-match-card{grid-column:span 2;background:radial-gradient(ellipse at 50% 45%,#173d4e66,transparent 65%),linear-gradient(145deg,#152631,#101a22)}
.rtpr-match-lineup{display:grid;grid-template-columns:minmax(0,1fr) minmax(110px,.9fr) minmax(0,1fr);gap:14px;align-items:start;margin:12px 0 18px}
.rtpr-match-player{display:flex;flex-direction:column;align-items:center;gap:6px;text-align:center;min-width:0}.rtpr-match-player>strong{font-size:17px;line-height:1.3;overflow-wrap:anywhere}.rtpr-match-team{font-size:12px;line-height:1.35;color:#a6bdcb;overflow-wrap:anywhere}
.rtpr-match-logo{width:clamp(48px,7vw,84px);height:clamp(48px,7vw,84px);flex-shrink:0;display:grid;place-items:center;border:1px solid #4f8aa6;border-radius:12px;background:#0b1a24;box-shadow:inset 0 0 15px #47b9f015,0 0 15px #45baff15;position:relative;margin-bottom:4px}.rtpr-match-logo img{position:absolute;inset:8%;width:84%;height:84%;object-fit:contain;display:block}.rtpr-match-logo img[hidden]{display:none}.rtpr-logo-fallback{color:#89d8ff;font-size:clamp(16px,2vw,25px);font-weight:800}.rtpr-match-logo.is-image .rtpr-logo-fallback{visibility:hidden}
.rtpr-match-result{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;align-self:center;min-width:0}.rtpr-match-result>div{width:100%;text-align:center}.rtpr-match-score{display:flex;align-items:center;justify-content:center;gap:8px;font-size:clamp(24px,3.5vw,44px);line-height:1.1;font-variant-numeric:tabular-nums;text-shadow:0 0 20px #57c3ed44}.rtpr-match-score>span{color:#8ca6b6;font-size:.6em}.rtpr-match-card .rtpr-outcome{min-width:0;width:100%;max-width:150px;font-size:10px;padding:7px 5px;white-space:normal}.rtpr-match-card>.rtpr-card-actions{justify-content:center}.rtpr-match-empty{flex:1;text-align:center;padding:36px 0}
.rtpr-last-squad{margin:18px 0}.rtpr-last-squad>strong{display:block;font-size:18px;line-height:1.35;overflow-wrap:anywhere}.rtpr-last-squad .rtpr-eyebrow{margin-bottom:6px}
.rtpr-overview-preparation>span{align-items:center}.rtpr-overview-preparation>span>strong{white-space:nowrap;font-variant-numeric:tabular-nums}.rtpr-overview-preparation small{font-size:10px;line-height:1.3;margin-top:2px}
.rtpr-overview-card>.rtpr-card-actions{margin-top:auto;padding-top:20px}
.rtpr-overview-number{display:block;font-size:48px;line-height:1.2;color:#eef6fa}
.rtpr-overview-number small{font-size:13px;font-weight:500;margin-top:5px}
.rtpr-overview-value{font-size:21px;line-height:1.35;overflow-wrap:anywhere}
.rtpr-overview-result{display:flex;gap:12px;align-items:center;justify-content:space-between;margin:18px 0 0}
.rtpr-outcome{display:inline-flex;align-items:center;justify-content:center;min-width:128px;min-height:30px;margin:0;text-align:center;border:1px solid currentColor;white-space:nowrap}
.rtpr-outcome.is-result-win{color:#89d8ff;background:#123d56;border-color:#49baff;box-shadow:inset 0 0 10px #45baff26,0 0 12px #45baff3b}
.rtpr-outcome.is-result-loss{color:#ff9caa;background:#431d2a;border-color:#ff5d7c;box-shadow:inset 0 0 10px #ff5d7c26,0 0 12px #ff5d7c3b}
.rtpr-outcome.is-result-draw{color:#ffe2a1;background:#3f321c;border-color:#eabf60;box-shadow:inset 0 0 10px #eabf6026,0 0 12px #eabf6030}
.rtpr-result-players{min-width:0;overflow-wrap:anywhere}
.rtpr-result-players>span{color:#8ea8b8;font-size:12px;font-weight:500;margin-inline:5px}
.rtpr-result-score{justify-self:end;font-variant-numeric:tabular-nums;font-size:17px}
.rtpr-tournament-links{margin-top:36px;padding-top:26px;border-top:1px solid #345364}
.rtpr-tournament-links .rtpr-entry{margin-top:18px}
@media(max-width:1100px){.rtpr-overview-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.rtpr-overview-grid{grid-template-columns:1fr}.rtpr-match-card{grid-column:auto}.rtpr-match-lineup{grid-template-columns:minmax(0,1fr) minmax(82px,1.1fr) minmax(0,1fr);gap:6px}.rtpr-match-player>strong{font-size:13px}.rtpr-match-team{font-size:10px}.rtpr-match-card .rtpr-outcome{font-size:9px}.rtpr-match-score{font-size:26px;gap:5px}.rtpr-match-result{gap:10px}.rtpr-result-players{grid-column:1/-1}.rtpr-results .rtpr-outcome{justify-self:start}.rtpr-tournament-links{margin-top:30px;padding-top:22px}}
/* Three-step physical model creator. */
.rtpr-dialog-wizard{width:min(980px,calc(100vw - 24px))}
.rtpr-dialog-wizard [hidden]{display:none!important}
.rtpr-dialog-wizard .rtpr-section-head{position:sticky;top:-22px;z-index:3;background:#0b1720;padding-block:10px;margin-top:-10px}
.rtpr-dialog-wizard h3,.rtpr-dialog-wizard h4{margin:0 0 10px;color:#eef6fa;line-height:1.3;overflow-wrap:anywhere}
.rtpr-dialog-wizard h3{font-size:21px}.rtpr-dialog-wizard h4{font-size:16px}
.rtpr-wizard-steps{list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0;margin:18px 0 24px}
.rtpr-wizard-steps li{display:flex;align-items:center;gap:9px;min-width:0;padding:12px;border:1px solid #2b414f;border-radius:9px;background:#101e27;color:#a2b4bf;font-size:12px;font-weight:700;overflow-wrap:anywhere}
.rtpr-wizard-steps li span{display:grid;place-items:center;flex:none;width:25px;height:25px;border-radius:50%;background:#203848;color:#cee9f7}
.rtpr-wizard-steps li.is-active{border-color:#65bceb;background:#173548;color:#eefaff}.rtpr-wizard-steps li.is-active span{background:#45a9e2;color:#071117}
.rtpr-wizard-agents,.rtpr-wizard-models{display:grid;gap:10px;margin:18px 0}
.rtpr-wizard-agent{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:16px;align-items:center;padding:14px 16px;border:1px solid #2b414f;border-radius:10px;background:#101f29}
.rtpr-wizard-agent strong{display:block;overflow-wrap:anywhere}.rtpr-wizard-agent>div>label{margin-top:8px}
.rtpr-wizard-quantity{display:grid;grid-template-columns:44px 66px 44px;gap:6px;align-items:center}
.rtpr-wizard-quantity .rtpr-button{width:44px;padding:8px;font-size:19px}.rtpr-wizard-quantity input{text-align:center;padding-inline:5px!important;appearance:textfield}.rtpr-wizard-quantity input::-webkit-inner-spin-button{appearance:none}
.rtpr-wizard-model{padding:18px;border:1px solid #2b414f;border-radius:12px;background:linear-gradient(145deg,#152631,#101a22);min-width:0;overflow-wrap:anywhere}
.rtpr-wizard-model-head{display:flex;justify-content:space-between;align-items:center;gap:14px}.rtpr-wizard-model-head h4{margin:0}.rtpr-wizard-model-head .rtpr-button{font-size:10px;max-width:280px}
.rtpr-wizard-loadouts,.rtpr-wizard-status-all{min-width:0;margin:14px 0;padding:12px;border:1px solid #345364;border-radius:9px}.rtpr-wizard-loadouts legend,.rtpr-wizard-status-all legend{padding:0 6px;color:#bce2f6;font-size:12px;font-weight:750}
.rtpr-wizard-config{padding:8px;border-radius:7px;align-items:flex-start}.rtpr-wizard-config:hover{background:#1a3343}.rtpr-wizard-config:has(input:checked){background:#173c50;box-shadow:inset 0 0 0 1px #459dca}
.rtpr-wizard-config input[type=radio]{appearance:auto;width:20px;height:20px;min-height:20px;max-width:20px;margin:0;padding:0;accent-color:#45a9e2;flex:none}.rtpr-wizard-config input{margin-top:1px!important}
.rtpr-wizard-nickname{margin-top:16px}.rtpr-wizard-statuses{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.rtpr-wizard-statuses .rtpr-check{min-width:0;padding:10px;border:1px solid #2b414f;border-radius:8px;background:#0c1b25}.rtpr-wizard-statuses .rtpr-check:has(input:checked){background:#163d30;border-color:#387a60}.rtpr-wizard-statuses .rtpr-check span{overflow-wrap:anywhere}
.rtpr-wizard-config-summary{font-size:12px;margin-bottom:12px!important}.rtpr-wizard-model details{margin-top:14px;border-top:1px solid #2b414f;padding-top:8px}.rtpr-wizard-model summary{color:#bce2f6;cursor:pointer;min-height:44px;padding:10px 0;font-size:12px}.rtpr-wizard-model details .rtpr-form-grid{margin-bottom:0}
.rtpr-wizard-footer>div:first-child{flex:1;min-width:0}.rtpr-wizard-footer strong{color:#bce2f6;font-size:13px}.rtpr-wizard-footer p{max-width:100%;margin-top:6px!important}.rtpr-wizard-footer p:empty{display:none}.rtpr-wizard-buttons{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-end}.rtpr-wizard-buttons .rtpr-button{min-height:48px}
.rtpr-dialog-wizard[aria-busy=true] .rtpr-wizard-footer strong:after{content:" · proszę czekać";color:#a2b4bf}
@media(max-width:680px){.rtpr-dialog-wizard .rtpr-section-head{top:-16px}.rtpr-wizard-model-head{align-items:flex-start;flex-direction:column}.rtpr-wizard-model-head .rtpr-button{max-width:100%}.rtpr-wizard-steps li{flex-direction:column;align-items:flex-start;font-size:11px;padding:9px;gap:6px}.rtpr-wizard-footer{bottom:-16px;display:block;padding:12px;margin-inline:-6px}.rtpr-wizard-buttons{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));margin-top:10px}.rtpr-wizard-buttons button[hidden]+button{grid-column:1/-1}.rtpr-wizard-model{padding:14px}.rtpr-wizard-statuses{gap:5px}.rtpr-wizard-statuses .rtpr-check{flex-direction:column;align-items:flex-start;padding:9px;gap:7px}}
@media(max-width:420px){.rtpr-wizard-agent{grid-template-columns:1fr;gap:10px;padding:12px}.rtpr-wizard-quantity{justify-self:end}.rtpr-dialog-wizard h2{font-size:22px}.rtpr-wizard-statuses .rtpr-check span{font-size:11px}.rtpr-wizard-steps{gap:5px}.rtpr-wizard-footer .rtpr-button{padding:10px 7px;font-size:10px}}
@media(max-width:760px){.rtpr-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}body.rtp-rosters-page main.site-main.narrow-container,body.rtp-rosters-page .site-main.narrow-container,body.rtp-rosters-page main#primary{width:calc(100% - 22px)!important}.rtpr-toolbar>label:not(.rtpr-check){flex-basis:100%}}
@media(prefers-reduced-motion:reduce){.rtpr-app .rtpr-button,.rtpr-dialog .rtpr-button,.rtpr-app .rtpr-tabs button{transition:none}}
@media print{body.rtpr-export{background:#071117!important;color:#eef6fa!important;print-color-adjust:exact;-webkit-print-color-adjust:exact}.rtpr-export .rtpr-app{width:100%;padding:0}.rtpr-export .rtpr-no-print{display:none!important}.rtpr-export .rtpr-hero{padding:18px}.rtpr-export .rtpr-print-card{break-inside:avoid;box-shadow:none}.rtpr-export .rtpr-print-slots>div{break-inside:avoid}.rtpr-export h1{font-size:30px}.rtpr-export canvas{break-inside:avoid}@page{margin:12mm}}

/* Statistics ordering and recent-match reports. */
.rtpr-stats-sort{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:18px 0 24px}.rtpr-stats-sort>span{font-size:12px;color:#a2c3d7;margin-right:4px}.rtpr-stats-sort .is-active{color:#e4f5ff!important;border-color:#65c6fb;box-shadow:inset 0 0 12px #45baff28,0 0 12px #45baff22}.rtpr-recent-tools{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px;margin-top:20px}.rtpr-recent-tools>label{flex:0 1 240px}.rtpr-result-date{display:block;color:#7fa9bf;font-size:10px;margin-top:5px}.rtpr-dialog[data-recent-report]{width:min(1040px,calc(100vw - 24px))}.rtpr-report-summary{max-width:460px;margin:20px 0}.rtpr-report-summary .rtpr-card{margin:0}.rtpr-dialog[data-recent-report] .rtpr-stat-card{container-type:inline-size}

/* Member view uses the same cards, fonts and layout as the owner app. */
.rtpr-member-view [hidden]{display:none!important}.rtpr-member-view .rtpr-hero{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}.rtpr-member-view .rtpr-hero>div{min-width:0;max-width:100%}.rtpr-member-view .rtpr-hero h1{overflow-wrap:anywhere}.rtpr-member-view .rtpr-card h3,.rtpr-member-view .rtpr-config{overflow-wrap:anywhere}.rtpr-member-achievements{margin:0 0 28px}.rtpr-member-view .rtpr-card-title,.rtpr-member-view .rtpr-card-team{display:block;text-decoration:none}.rtpr-member-view .rtpr-roster-content{margin-top:16px}.rtpr-member-view .rtpr-roster-content li{margin-bottom:8px}@media(max-width:650px){.rtpr-member-view .rtpr-hero>.rtpr-button{width:100%}}

body.rtp-rosters-page .rtpr-app[data-rtpr-member]{position:relative;left:50%;width:min(1320px,calc(100vw - 32px));max-width:none;margin-inline:0;transform:translateX(-50%)}
