/* DPL tournament application panel; scoped to avoid touching existing pages. */
.dpl-register{margin:24px 0;padding:22px;border:1px solid rgba(121,167,224,.3);border-radius:16px;background:linear-gradient(130deg,rgba(12,20,38,.95),rgba(11,17,29,.95));color:#eaf2ff;box-shadow:0 12px 30px rgba(0,0,0,.16)}
.dpl-register *{box-sizing:border-box}.dpl-register a{color:#b6d8ff;text-decoration:none}.dpl-register a:hover{text-decoration:underline}
.dpl-register-head{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}.dpl-register-head h2{margin:3px 0 0;font-size:22px;color:#fff}.dpl-register-kicker{font-size:11px;font-weight:800;letter-spacing:.15em;color:#91abd2}.dpl-register-badge{border:1px solid #5a6070;background:#252e3e;border-radius:999px;padding:5px 12px;font-size:12px;font-weight:700}.dpl-register-badge.is-open{border-color:#337a65;background:#153e32;color:#81ebc2}
.dpl-register-counters{display:flex;gap:10px;flex-wrap:wrap;margin:14px 0}.dpl-register-counters>div{display:flex;gap:18px;align-items:center;justify-content:space-between;background:rgba(114,145,194,.1);border:1px solid rgba(124,155,201,.17);padding:10px 14px;border-radius:10px;min-width:190px}.dpl-register-counters span,.dpl-register-hint{color:#afc1dc}.dpl-register-counters strong{color:#f9fcff}.dpl-register-message{padding:12px 14px;border-radius:10px;background:rgba(71,146,122,.13);border:1px solid rgba(90,184,151,.3);margin:10px 0}.dpl-register-message strong{color:#d5fff0}
.dpl-register-button{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:40px;padding:10px 18px;border:1px solid #668fd0;border-radius:10px;color:#fff!important;background:linear-gradient(125deg,#2252a1,#3167ad);font-weight:750;cursor:pointer;text-decoration:none!important;font:inherit;font-weight:700;margin:7px 8px 7px 0}.dpl-register-button.secondary{background:#273447;border-color:#657b99}.dpl-register-button:hover{filter:brightness(1.18)}
.dpl-register-edit{border:1px solid rgba(140,176,222,.22);border-radius:10px;padding:10px 14px;margin-top:12px}.dpl-register-edit summary{font-weight:750;cursor:pointer;color:#d4e7ff}.dpl-register-edit form{display:grid;gap:10px;margin-top:12px}.dpl-register-edit label{display:grid;gap:5px;color:#c6d5eb;font-size:13px}.dpl-register-edit input,.dpl-register-edit select{max-width:100%;min-width:0;width:100%;padding:9px 11px;border-radius:8px;background:#101a2e;color:#f3f7ff;border:1px solid #476181;font:inherit}.dpl-register-edit select option{background:#101a2e;color:#fff}
.dpl-register-roster{margin-top:16px;border-top:1px solid rgba(142,174,215,.2);padding-top:14px}.dpl-register-roster h3{font-size:15px;margin:8px 0}.dpl-register-roster ol,.dpl-register-roster ul{padding-left:24px}.dpl-register-roster li{margin:6px 0}.dpl-register-empty{list-style:none;color:#9eafc5}.dpl-register-team{padding:12px 14px;background:rgba(99,134,184,.09);border:1px solid rgba(124,158,204,.19);border-radius:10px;margin:8px 0}.dpl-register-team>div{display:flex;justify-content:space-between;align-items:center;gap:9px;flex-wrap:wrap}.dpl-register-team>div span{font-size:12px;color:#a6bedc}.dpl-register-team ul{margin:6px 0 0}.dpl-register-link{display:inline-block;margin-top:10px}
.dpl-register-flash{margin:12px 0;padding:12px 16px;border-radius:10px;border:1px solid rgba(152,192,236,.4);background:#14243b;color:#f0f5ff}.dpl-register-flash.error{border-color:#bd5566;background:#3a1e2a}
@media(max-width:600px){.dpl-register{padding:15px;margin:15px 0}.dpl-register-head h2{font-size:18px}.dpl-register-counters>div{flex:1 1 100%}.dpl-register-button{width:100%;margin:7px 0}}


/* Premade builder UI */
.dpl-builder-edit{margin-top:14px}.dpl-builder-edit summary{cursor:pointer;font-weight:700;color:#fff;list-style:none;display:flex;align-items:center;justify-content:space-between;padding:14px 16px;border-radius:12px;background:rgba(19,30,52,.9);border:1px solid rgba(120,151,198,.18)}
.dpl-builder-edit[open] summary{margin-bottom:14px}.dpl-builder-edit summary::-webkit-details-marker{display:none}
.dpl-team-builder{display:flex;flex-direction:column;gap:16px}
.dpl-team-builder-grid{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:18px;align-items:start}
.dpl-team-picked,.dpl-team-catalog{border:1px solid rgba(120,151,198,.18);border-radius:14px;background:rgba(8,18,34,.72);padding:16px}
.dpl-team-picked-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.dpl-team-picked-head h3{margin:0;font-size:18px;color:#fff}.dpl-team-picked-count{padding:6px 10px;border-radius:999px;background:rgba(58,91,153,.2);border:1px solid rgba(112,146,202,.28);font-size:12px;font-weight:700;color:#d4e4ff}
.dpl-picked-list{display:flex;flex-direction:column;gap:10px}.dpl-picked-slot{border:1px solid rgba(110,143,191,.2);border-radius:12px;padding:12px 14px;background:rgba(17,28,47,.95);min-height:88px;display:flex;flex-direction:column;justify-content:center;gap:6px}.dpl-picked-slot.is-empty{border-style:dashed;background:rgba(14,23,39,.55)}.dpl-picked-slot.is-captain{margin-bottom:10px;border-color:rgba(98,160,124,.45);background:linear-gradient(140deg,rgba(24,52,43,.72),rgba(18,29,49,.95))}
.dpl-picked-slot-top{display:flex;align-items:center;justify-content:space-between;gap:8px}.dpl-picked-label{font-size:11px;font-weight:800;letter-spacing:.08em;color:#8ea7cb;text-transform:uppercase}.dpl-picked-rating{display:inline-flex;align-items:center;justify-content:center;min-width:34px;height:26px;padding:0 8px;border-radius:999px;background:rgba(52,85,143,.24);border:1px solid rgba(97,134,199,.24);font-size:12px;font-weight:800;color:#f5fbff}.dpl-picked-slot strong{font-size:15px;color:#fff}.dpl-picked-slot small{font-size:12px;color:#aebed8;line-height:1.4}
.dpl-picked-remove{width:28px;height:28px;border-radius:8px;border:1px solid rgba(201,102,120,.4);background:rgba(84,28,39,.5);color:#fff;font-size:18px;line-height:1;cursor:pointer}
.dpl-team-total{margin-top:14px;padding:14px;border-radius:12px;background:rgba(19,30,52,.95);border:1px solid rgba(120,151,198,.18);display:flex;align-items:center;justify-content:space-between;gap:12px}.dpl-team-total span{color:#aebed8;font-size:13px}.dpl-team-total strong{font-size:28px;color:#fff;line-height:1}
.dpl-team-catalog-toolbar{display:grid;grid-template-columns:minmax(180px,1.5fr) minmax(150px,.8fr) auto auto;gap:10px;align-items:end;margin-bottom:12px}.dpl-team-catalog-toolbar label{display:flex;flex-direction:column;gap:6px}.dpl-team-catalog-toolbar label>span{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#8ea7cb}.dpl-team-catalog-toolbar input,.dpl-team-catalog-toolbar select{width:100%;min-height:42px;padding:10px 12px;border-radius:10px;border:1px solid rgba(120,151,198,.22);background:rgba(10,20,36,.95);color:#f2f7ff;outline:none}.dpl-team-catalog-toolbar input:focus,.dpl-team-catalog-toolbar select:focus{border-color:#6b90d0;box-shadow:0 0 0 2px rgba(88,130,208,.15)}.dpl-register-button.small{min-height:42px;padding:10px 14px}.dpl-team-found{justify-self:end;align-self:center;font-size:13px;color:#9eb2d3}.dpl-team-found strong{color:#fff}
.dpl-team-table-head,.dpl-team-player-row{display:grid;grid-template-columns:minmax(180px,1.6fr) minmax(120px,1fr) 110px 90px 84px;gap:10px;align-items:center}.dpl-team-table-head{padding:0 0 8px;border-bottom:1px solid rgba(120,151,198,.14);margin-bottom:8px}.dpl-team-sort{display:flex;align-items:center;gap:6px;border:0;background:none;padding:0;color:#93a7c7;font:inherit;font-size:12px;font-weight:800;letter-spacing:.04em;text-transform:uppercase;cursor:pointer;text-align:left}.dpl-team-sort.is-active,.dpl-team-sort:hover{color:#eaf3ff}.dpl-sort-indicator{font-size:12px}.dpl-sort-indicator-static{opacity:.4}
.dpl-team-player-list{display:flex;flex-direction:column}.dpl-team-player-row{padding:10px 0;border-bottom:1px solid rgba(120,151,198,.12)}.dpl-team-player-row:last-child{border-bottom:0}.dpl-team-player-row.is-selected{background:linear-gradient(90deg,rgba(46,75,131,.16),rgba(46,75,131,0));margin:0 -8px;padding:10px 8px;border-radius:10px}.dpl-team-player-main{display:flex;flex-direction:column;gap:3px;min-width:0}.dpl-team-player-main strong{font-size:14px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dpl-team-player-main small a{color:#8eb9ff;text-decoration:none}.dpl-team-player-role,.dpl-team-player-tourneys{font-size:13px;color:#c7d4e8}.dpl-team-player-rating{font-size:15px;font-weight:800;color:#fff}.dpl-team-player-toggle{display:flex;justify-content:flex-end}
.dpl-player-pick-button{width:34px;height:34px;border-radius:10px;border:1px solid rgba(91,139,214,.42);background:linear-gradient(130deg,#18345d,#2b5fa1);color:#fff;font-size:20px;line-height:1;cursor:pointer}.dpl-player-pick-button.is-selected{border-color:rgba(211,111,125,.5);background:linear-gradient(130deg,#61213a,#954766)}.dpl-player-pick-button:disabled{opacity:.45;cursor:not-allowed}
.dpl-team-empty{padding:16px 0 4px;color:#aebed8}.dpl-builder-submit{width:100%;margin-top:2px}
@media (max-width: 980px){.dpl-team-builder-grid{grid-template-columns:1fr}.dpl-team-catalog-toolbar{grid-template-columns:1fr 1fr}.dpl-team-found{justify-self:start}}
@media (max-width: 760px){.dpl-team-catalog-toolbar{grid-template-columns:1fr}.dpl-team-table-head{display:none}.dpl-team-player-row{grid-template-columns:1fr auto;grid-template-areas:"main toggle" "meta meta";gap:6px 10px;padding:12px 0}.dpl-team-player-main{grid-area:main}.dpl-team-player-toggle{grid-area:toggle}.dpl-team-player-role{grid-area:meta}.dpl-team-player-rating,.dpl-team-player-tourneys{display:inline-flex;align-items:center;gap:6px;margin-right:10px}.dpl-team-player-role::after{content:' · ';opacity:.5}.dpl-team-player-row .dpl-team-player-tourneys::before{content:'Турниров:';font-size:12px;color:#8ea7cb}.dpl-team-player-row .dpl-team-player-rating::before{content:'Rating:';font-size:12px;color:#8ea7cb}.dpl-team-player-row .dpl-team-player-role{display:flex;flex-wrap:wrap;align-items:center}.dpl-team-player-row .dpl-team-player-role::before{content:'Роль:';font-size:12px;color:#8ea7cb;margin-right:6px}.dpl-picked-slot strong{font-size:14px}}


/* Premade builder compact v3 — layout scoped to this builder only. */
.dpl-builder-edit form.dpl-team-builder{display:flex;flex-direction:column;min-width:0}
.dpl-team-builder-grid{grid-template-columns:minmax(0,360px) minmax(0,1fr);align-items:start}
.dpl-team-builder-left{min-width:0;display:flex;flex-direction:column;gap:12px}
.dpl-team-catalog{min-width:0;display:flex;flex-direction:column;height:760px;min-height:0;overflow:hidden}
.dpl-team-catalog-toolbar,.dpl-team-table-head{flex:0 0 auto;min-width:0}
.dpl-team-catalog-toolbar{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto auto}
.dpl-team-catalog-toolbar label{min-width:0}
.dpl-team-table-head,.dpl-team-player-row{grid-template-columns:minmax(0,1.5fr) minmax(0,1.1fr) minmax(70px,.58fr) 42px;column-gap:8px}
.dpl-team-table-head{padding-right:10px}
.dpl-team-sort{white-space:nowrap;font-size:11px}
.dpl-team-sort:last-child{justify-content:center}
.dpl-team-player-list{flex:1 1 auto;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;padding-right:7px;scrollbar-color:#506d9a rgba(20,32,51,.6);scrollbar-width:thin}
.dpl-team-player-list::-webkit-scrollbar{width:7px}
.dpl-team-player-list::-webkit-scrollbar-thumb{background:#506d9a;border-radius:999px}
.dpl-team-player-list::-webkit-scrollbar-track{background:rgba(20,32,51,.6);border-radius:999px}
.dpl-team-player-row[hidden],.dpl-team-empty[hidden]{display:none!important}
.dpl-team-player-row{min-width:0}
.dpl-team-player-role{min-width:0;overflow-wrap:anywhere;line-height:1.35}
.dpl-team-player-toggle{min-width:0;justify-content:center;align-items:center}
.dpl-player-pick-button{flex:0 0 34px;width:34px;height:34px;padding:0;display:inline-flex;align-items:center;justify-content:center}
.dpl-reg-page .dpl-register .dpl-builder-submit{width:100%!important;max-width:none!important;margin:0!important;flex:0 0 auto;min-height:44px}
@media(max-width:980px){
  .dpl-team-builder-grid{grid-template-columns:minmax(0,1fr)}
  .dpl-team-catalog{height:480px}
  .dpl-team-catalog-toolbar{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr) auto auto}
}
@media(max-width:760px){
  .dpl-team-catalog-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
  .dpl-team-found{justify-self:start}
  .dpl-team-table-head{display:none}
  .dpl-team-player-row{display:grid;grid-template-columns:minmax(0,1fr) 70px 42px;grid-template-areas:'main main toggle' 'role rating toggle';gap:6px 8px;padding:11px 2px;align-items:center}
  .dpl-team-player-main{grid-area:main}
  .dpl-team-player-role{grid-area:role;display:block;min-width:0}
  .dpl-team-player-rating{grid-area:rating;display:block;text-align:center;margin:0}
  .dpl-team-player-toggle{grid-area:toggle;align-self:center}
  .dpl-team-player-row .dpl-team-player-role::before{content:none}
  .dpl-team-player-row .dpl-team-player-rating::before{content:none}
  .dpl-team-player-row .dpl-team-player-role::after{content:none}
}

/* DPL Premade rating cap + registration-only description */
.dpl-register .dpl-registration-event-description{margin:14px 0 15px;padding:14px 16px;border-radius:11px;border:1px solid rgba(96,132,187,.34);background:linear-gradient(135deg,rgba(18,34,58,.88),rgba(13,24,44,.83));color:#e5efff;}
.dpl-register .dpl-registration-event-description-label{font-size:10px;letter-spacing:.13em;font-weight:800;color:#94afd5;margin-bottom:9px}
.dpl-register .dpl-registration-event-description-content{font-size:13px;line-height:1.7;overflow-wrap:anywhere;white-space:normal}
.dpl-register .dpl-team-total.is-within-limit{border-color:rgba(56,177,124,.75);background:rgba(17,79,58,.26)}
.dpl-register .dpl-team-total.is-within-limit strong{color:#7defbd}
.dpl-register .dpl-team-total.is-over-limit{border-color:rgba(242,81,97,.9);background:rgba(116,28,47,.29)}
.dpl-register .dpl-team-total.is-over-limit strong{color:#ff737d}
.dpl-register .dpl-rating-summary-label{display:flex;flex-direction:column;gap:3px;min-width:0}
.dpl-register .dpl-rating-summary-label small{font-size:11px;font-weight:650;color:#a8bfdc}
.dpl-register .dpl-rating-limit-note{font-size:12px;line-height:1.45;margin:8px 0 0;color:#76d6a8}
.dpl-register .dpl-team-total.is-over-limit + .dpl-rating-limit-note{color:#ff8b9b}
.dpl-register .dpl-rating-limit-note[hidden]{display:none!important}
.dpl-register .dpl-builder-submit:disabled{opacity:.48;cursor:not-allowed;filter:grayscale(.35)}


/* Explicit Core/Support choice in Premade signup. */
.dpl-register .dpl-fantasy-role-label{display:flex;flex-direction:column;gap:5px;max-width:100%;font-size:11px;font-weight:700;color:#a9bfdb}
.dpl-register .dpl-fantasy-role-select{width:100%;min-width:0;max-width:100%;padding:8px 10px;border:1px solid rgba(112,157,211,.5);border-radius:8px;background:#142744;color:#f2f7ff;font-size:12px;font-weight:650}
.dpl-register .dpl-fantasy-role-select:focus{outline:2px solid #6d9bd9;outline-offset:1px}
.dpl-register .dpl-fantasy-role-label[hidden]{display:none!important}
.dpl-register .dpl-fantasy-role-summary{margin:9px 0 0;font-size:12px;color:#9edfc0;font-weight:700}
.dpl-register .dpl-fantasy-role-summary.is-invalid{color:#ff9da7}
.dpl-register .dpl-team-roster-fantasy-role{display:inline-flex;margin-top:5px;padding:2px 7px;border:1px solid #6284a9;border-radius:7px;color:#dbebff;background:rgba(37,74,119,.28);font-size:11px;font-weight:750}
