/* DartsX Competition UI — scoped presentation; no scorer, billing or rule overrides. */
.dx-competitions{--dx-line:#2a3341;--dx-muted:#a5b4c7;--dx-card:#111922;max-width:1440px;margin:0 auto;color:#f5f7fc}
.dx-competitions *,.dx-create-dialog *,.dx-result *{box-sizing:border-box}
.dx-competitions svg,.dx-result svg{width:24px;height:24px;flex:none}
.dx-competitions button,.dx-result button{font:inherit;cursor:pointer}
.dx-competitions .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.dx-competition-hero{position:relative;display:flex;align-items:center;justify-content:space-between;gap:24px;min-height:204px;margin:-8px 0 16px;padding:28px;border:1px solid var(--dx-line);border-radius:18px;background:linear-gradient(95deg,#111922 0%,#101820ed 62%,#10182066 100%),url('/assets/dartsx-hero-t20.jpg') right 43%/cover no-repeat}
.dx-kicker{display:block;font-size:11px;font-weight:800;letter-spacing:.16em;color:#ff778d}
.dx-hero-copy h1{font-size:clamp(26px,3vw,40px);line-height:1.12;margin:10px 0 12px;letter-spacing:-.025em;max-width:680px}
.dx-hero-copy p{margin:0;color:#b7c5d7;font-size:16px;line-height:1.6}
.dx-create-button{display:inline-flex;align-items:center;justify-content:center;gap:9px;white-space:nowrap;flex:none;min-height:48px}
.dx-section-nav{display:flex;flex-wrap:wrap;gap:24px;border-bottom:1px solid var(--dx-line);margin:0 0 22px}
.dx-section-nav a{position:relative;padding:14px 0 16px;color:var(--dx-muted);text-decoration:none;font-size:14px;font-weight:700}
.dx-section-nav a[aria-current=page]{color:#fff}
.dx-section-nav a[aria-current=page]:after{position:absolute;content:'';height:3px;background:#ff405f;bottom:-1px;left:0;right:0;border-radius:3px}
.dx-format-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;margin-bottom:12px}
.dx-format-heading h2{font-size:17px;margin:0;letter-spacing:0}
.dx-type-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.dx-competitions .dx-type-card{display:flex;flex-direction:column;min-width:0;min-height:156px;text-align:left;gap:12px;padding:19px 21px;background:linear-gradient(135deg,#14202a,#111720);color:#f5f7fc;border:1px solid var(--dx-line);border-radius:13px;transition:border-color .15s,box-shadow .15s,background .15s}
.dx-type-card.dx-type-singles{--type-accent:#ff6c85;--type-surface:#47222ed4}
.dx-type-card.dx-type-pairs{--type-accent:#65b4ff;--type-surface:#183550d4}
.dx-type-card.dx-type-teams{--type-accent:#58d0a4;--type-surface:#153e32d4}
.dx-competitions .dx-type-card:hover{border-color:var(--type-accent);background:linear-gradient(135deg,var(--type-surface),#111720)}
.dx-competitions .dx-type-card[aria-pressed=true]{border-color:var(--type-accent);box-shadow:0 0 0 1px var(--type-accent);background:linear-gradient(135deg,var(--type-surface),#111720)}
.dx-type-top{display:flex;justify-content:space-between;align-items:center;color:var(--type-accent)}
.dx-type-top>svg{height:27px;width:27px}
.dx-type-count{display:flex;align-items:center;justify-content:center;min-width:27px;padding:2px 8px;font-size:12px;color:#d2dbe8;background:#ffffff09;border:1px solid #ffffff1a;border-radius:7px}
.dx-type-card>strong{font-size:21px;line-height:1.2;font-weight:750}
.dx-type-bottom{display:flex;justify-content:space-between;align-items:center;gap:10px;color:#b9c6d5;font-size:12px;line-height:1.5}
.dx-type-bottom>svg{height:18px;width:18px;color:var(--type-accent)}
.dx-list-toolbar{display:flex;gap:12px;align-items:center;margin:24px 0 18px;flex-wrap:wrap}
.dx-search{display:flex;align-items:center;gap:10px;flex:1;min-width:220px;padding:0 14px;background:#0e151e;border:1px solid var(--dx-line);border-radius:9px}
.dx-search svg{height:18px;width:18px;color:var(--dx-muted)}
.dx-search input{width:100%;min-width:0;background:transparent!important;border:0!important;box-shadow:none!important;color:#edf2f8;padding:13px 0!important;min-height:46px;font-size:14px;outline:0!important}
.dx-search:focus-within{outline:2px solid #8197b2;outline-offset:2px}
.dx-status-select select{background:#0e151e;border:1px solid var(--dx-line);border-radius:9px;min-height:46px;max-width:100%;font-size:13px;min-width:170px}
.dx-list-toolbar .btn{font-size:13px;min-height:46px}
.dx-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:22px}
.dx-metric{display:flex;align-items:center;gap:14px;min-height:84px;padding:16px 18px;border:1px solid var(--dx-line);border-radius:11px;background:#111922}
.dx-metric>svg{padding:8px;width:40px;height:40px;color:#c0ccdc;border-radius:11px;background:#2631417a}
.dx-metric:nth-child(2)>svg{color:#83b7fc}.dx-metric:nth-child(3)>svg{color:#67d5a9}.dx-metric:nth-child(4)>svg{color:#c5cfdf}
.dx-metric strong{display:block;font-size:26px;line-height:1.15;font-weight:750}
.dx-metric span{display:block;font-size:11px;color:var(--dx-muted);margin-top:4px}
.dx-competition-workspace{display:grid;grid-template-columns:minmax(0,1fr) 246px;gap:18px;align-items:start}
.dx-list-panel,.dx-plan-card{border:1px solid var(--dx-line);background:#101720;border-radius:13px;min-width:0;padding:20px}
.dx-list-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:16px}
.dx-list-heading h2{font-size:18px;margin:0}.dx-list-heading>span{font-size:12px;color:var(--dx-muted)}
.dx-competitions .list{gap:10px;margin:0}
.dx-competitions .list-row{display:flex!important;align-items:center;gap:14px;background:#141d28;border:1px solid #2a3442;border-radius:10px;padding:14px 16px;text-decoration:none;min-width:0}
.dx-competitions .list-row:hover{border-color:#6a7d97;background:#182432}
.dx-row-icon{display:flex;align-items:center;justify-content:center;width:42px;height:42px;flex:none;border:1px solid #344153;border-radius:10px;background:#101720;color:#ccd8e8}
.dx-row-icon.dx-type-singles{color:#ff8598}.dx-row-icon.dx-type-pairs{color:#80baff}.dx-row-icon.dx-type-teams{color:#74d6b4}
.dx-competitions .management-competition-row-main,.dx-competitions .competition-row-main{min-width:0;flex:1}
.dx-competitions .list-row .title{font-size:15px;line-height:1.45;overflow-wrap:anywhere}
.dx-competitions .list-row .meta{color:var(--dx-muted);font-size:11px;line-height:1.6;margin-top:3px;overflow-wrap:anywhere}
.dx-competitions .list-row small{color:#8e9eb5;font-size:11px}
.dx-competitions .management-competition-row-side,.dx-competitions .competition-row-side{display:flex;align-items:flex-end;flex-direction:column;gap:6px;min-width:140px;max-width:45%}
.dx-competitions .management-competition-entry-count,.dx-competitions .competition-entry-count{font-size:11px}
.dx-competitions .badges{gap:5px;justify-content:flex-end}.dx-competitions .pill{font-size:10px;padding:3px 7px}
.dx-competitions .management-open-label{font-size:11px;color:#c9d7e9}
.dx-plan-card{position:sticky;top:16px}.dx-plan-heading{display:flex;flex-direction:column;gap:5px;margin-bottom:12px}
.dx-plan-heading>span{font-size:12px;color:#adbbce}.dx-plan-heading>strong{font-size:19px}
.dx-plan-card p,.dx-create-plan p{font-size:12px;line-height:1.6;margin:9px 0}
.dx-plan-card .btn{width:100%;font-size:12px;margin-top:10px;min-height:42px}
.dx-muted{color:#a8b7cb}.dx-plan-capacity{color:#e1e9f4}
.dx-plan-card progress,.dx-create-plan progress{display:block;width:100%;height:6px;accent-color:#ff405f;border:0;border-radius:6px;background:#263445;overflow:hidden}
.dx-plan-card progress::-webkit-progress-bar,.dx-create-plan progress::-webkit-progress-bar{background:#263445}
.dx-plan-card progress::-webkit-progress-value,.dx-create-plan progress::-webkit-progress-value{background:#ff405f}
.dx-plan-card .text-link,.dx-create-plan .text-link{font-size:12px;color:#ff8ea1}
.dx-competitions :is(button,a,select):focus-visible,.dx-create-dialog :is(button,a,input,select,textarea,summary):focus-visible,.dx-result button:focus-visible{outline:2px solid #afcff9;outline-offset:4px}
/* Scoped modal: one scrolling body, persistent actions, native form controls. */
#dialog.dx-create-dialog{width:min(880px,calc(100vw - 32px));max-width:880px;max-height:calc(100dvh - 40px);padding:0;background:#111923;border:1px solid #405065;border-radius:17px;overflow:hidden;color:#edf3fc}
.dx-create-dialog .dialog-body{padding:0;display:flex;flex-direction:column;max-height:calc(100dvh - 44px)}
.dx-create-dialog .dialog-head{flex:none;display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #2a3645;margin:0}
.dx-create-dialog .dialog-head h2{font-size:23px;margin:0}
.dx-create-dialog #dialog-form{display:flex;flex-direction:column;min-height:0;gap:0;margin:0}
.dx-create-scroll{overflow:auto;overscroll-behavior:contain;padding:22px 26px;min-height:0}
.dx-create-intro p{font-size:14px;color:#b5c2d4;margin:7px 0 0}
.dx-create-dialog .dx-create-section,.dx-create-dialog fieldset{margin:22px 0 0;padding:18px;border:1px solid #2c3a4b;border-radius:11px;min-width:0;background:#0f1721}
.dx-create-dialog h3{font-size:15px;margin:0 0 16px}
.dx-create-dialog legend{padding:0 7px;font-size:15px;font-weight:750;color:#f6f8fc}
.dx-create-dialog .form-grid{gap:12px 18px}
.dx-create-dialog .field{font-size:12px;line-height:1.5;margin:0 0 12px}
.dx-create-dialog .field>span{color:#c9d5e4;font-size:12px}
.dx-create-dialog :is(input:not([type=checkbox]),select,textarea){font:inherit;font-size:14px;min-height:44px;background:#111d29;color:#fff;border:1px solid #3b4a60;border-radius:8px;padding:10px 12px;width:100%;min-width:0}
.dx-create-dialog textarea{min-height:85px;resize:vertical}
.dx-create-dialog .help{font-size:12px;color:#a8b8cc;line-height:1.6;margin:0 0 14px}
.dx-create-dialog [hidden]{display:none!important}
.dx-rule-chips{display:flex;gap:7px;flex-wrap:wrap;margin:5px 0 12px}
.dx-rule-chips span{border:1px solid #354353;color:#d6e1ef;border-radius:5px;font-size:11px;padding:5px 9px}
.dx-create-plan{border:1px solid #354559;background:#18232f;border-radius:9px;padding:14px 16px;margin:6px 0 18px;font-size:13px}
.dx-create-plan .dx-plan-heading{flex-direction:row;align-items:center;justify-content:space-between;gap:12px;margin:0 0 10px}
.dx-create-plan .dx-plan-heading strong{font-size:14px}
.dx-create-plan .dx-muted{margin-bottom:8px}
.dx-create-options{margin:2px 0 18px}.dx-create-options summary{font-size:13px;color:#b9c8dc;cursor:pointer;margin-bottom:12px;min-height:28px}
.dx-create-actions{flex:none;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;padding:15px 26px;border-top:1px solid #2f3c4e;background:#151e29}
.dx-create-actions .form-error{width:100%;margin:0;font-size:13px}.dx-create-actions .form-error:empty{display:none}
.dx-create-actions .btn{min-height:44px;font-size:13px}
/* Completed Team Match only; not the active keypad or leg-scoring surface. */
.dx-result{max-width:840px;margin:3vh auto 0;padding:26px 32px 30px;border:1px solid #364355;border-radius:19px;text-align:center;background:radial-gradient(ellipse at 50% 0%,#59263266,transparent 60%),#121b26;color:#f6f8fe}
.dx-result-status{display:flex;justify-content:space-between;align-items:center;gap:12px;font-size:11px;color:#b5c4d6;text-transform:uppercase;letter-spacing:.12em}
.dx-result-status>span{display:flex;align-items:center;gap:7px}.dx-result-status svg{height:16px;width:16px;color:#7bd5b1}
.dx-result-saved{padding:4px 8px;background:#153c3066;border:1px solid #33624e;border-radius:5px;color:#8cddbc;font-size:10px}
.dx-result-heading{margin:22px 0 16px}.dx-result-heading>svg{height:32px;width:32px;color:#ff8e9f}
.dx-result-heading>p{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#ff8ea1;margin:12px 0 5px}
.dx-result-heading h1{font-size:clamp(26px,4vw,45px);line-height:1.2;overflow-wrap:anywhere;margin:0;font-weight:800}
.dx-result-scoreboard{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:24px;max-width:580px;margin:24px auto 14px}
.dx-result-team{display:flex;flex-direction:column;align-items:center;min-width:0}
.dx-team-badge{width:68px;height:68px;display:flex;align-items:center;justify-content:center;border:1px solid #536073;background:#1b2735;border-radius:50%;font-size:22px;font-weight:750;color:#c6d2e2;letter-spacing:.02em}
.dx-result-winner .dx-team-badge{background:#541e3066;border-color:#ee4363;color:#ff7891}
.dx-result-team h2{font-size:16px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;max-width:100%;margin:12px 0 0;min-height:24px}
.dx-result-team>strong{font-size:clamp(62px,8vw,100px);line-height:1.05;letter-spacing:-.04em;display:block;margin-top:8px}
.dx-result-winner>strong{color:#ff5a76}.dx-result-dash{color:#65778e;font-size:46px;line-height:1.7}
.dx-result-detail{font-size:13px;color:#c6d1e0;line-height:1.6;margin:14px 0 0}
.dx-result .dx-muted{font-size:12px}.dx-result-actions{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:26px;padding-top:20px;border-top:1px solid #303c4e}
.dx-result-actions .btn{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:46px;font-size:13px}
.dx-result-actions svg{width:17px;height:17px}
@media(max-width:1100px){.dx-competition-workspace{grid-template-columns:minmax(0,1fr) 210px}.dx-metric{padding:13px 12px;gap:10px}.dx-metric>svg{height:34px;width:34px}.dx-type-card>strong{font-size:19px}.dx-competition-hero{padding:24px;min-height:178px}.dx-row-icon{display:none}}
@media(max-width:800px){.dx-competition-workspace{grid-template-columns:1fr}.dx-plan-card{position:static}.dx-plan-card .btn{width:auto;min-width:180px}.dx-competitions .dx-type-card{padding:16px;min-height:146px}.dx-type-bottom{font-size:11px}.dx-competition-hero{align-items:flex-start;flex-direction:column;gap:18px;background-position:center}.dx-hero-copy h1{font-size:30px}.dx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dx-metric span{font-size:12px}.dx-competitions .management-competition-row-side,.dx-competitions .competition-row-side{min-width:125px}.dx-list-panel{padding:16px}}
@media(max-width:560px){.dx-type-grid{gap:8px}.dx-competitions .dx-type-card{padding:12px 9px;min-height:154px;gap:9px}.dx-type-card>strong{font-size:15px;min-height:36px;display:flex;align-items:center}.dx-type-top>svg{width:23px;height:23px}.dx-type-count{font-size:10px;min-width:21px;padding:1px 5px}.dx-type-bottom>svg{display:none}.dx-type-bottom{font-size:10px;line-height:1.5}.dx-competition-hero{border-radius:12px;margin-top:0;padding:20px}.dx-hero-copy h1{font-size:27px}.dx-hero-copy p{font-size:13px}.dx-create-button{width:100%}.dx-section-nav{gap:25px}.dx-section-nav a{font-size:13px}.dx-format-heading h2{font-size:15px}.dx-list-toolbar{gap:8px;margin-top:18px}.dx-search{min-width:100%;flex-basis:100%}.dx-status-select{flex:1}.dx-status-select select{width:100%;min-width:0}.dx-list-toolbar .btn{font-size:12px}.dx-list-heading h2{font-size:16px}.dx-list-heading>span{font-size:10px}.dx-competitions .list-row{padding:12px;flex-wrap:wrap;gap:10px}.dx-competitions .list-row .title{font-size:14px}.dx-competitions .management-competition-row-main,.dx-competitions .competition-row-main{flex-basis:100%}.dx-competitions .management-competition-row-side,.dx-competitions .competition-row-side{max-width:100%;width:100%;display:flex;flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px}.dx-competitions .management-open-label{margin-left:auto}.dx-metric{min-height:78px}.dx-metric strong{font-size:24px}.dx-metric span{font-size:10px}.dx-list-panel{padding:13px}.dx-result{padding:20px 15px;margin:10px auto;border-radius:14px}.dx-result-heading{margin:20px 0 12px}.dx-result-heading h1{font-size:29px}.dx-result-scoreboard{gap:14px;margin-top:20px}.dx-team-badge{height:54px;width:54px;font-size:18px}.dx-result-team h2{font-size:14px}.dx-result-team>strong{font-size:76px}.dx-result-dash{font-size:37px;line-height:1.9}.dx-result-actions{gap:9px;margin-top:18px;padding-top:18px}.dx-result-actions .btn{width:100%}.dx-result-status{font-size:10px}#dialog.dx-create-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px);border-radius:12px}.dx-create-dialog .dialog-body{max-height:calc(100dvh - 20px)}.dx-create-dialog .dialog-head{padding:15px 16px}.dx-create-dialog .dialog-head h2{font-size:20px}.dx-create-scroll{padding:16px}.dx-create-dialog .dx-create-section,.dx-create-dialog fieldset{padding:13px;margin-top:18px}.dx-create-dialog .form-grid{grid-template-columns:1fr;gap:0}.dx-create-actions{padding:12px 16px;gap:8px}.dx-create-actions>.btn.primary{flex:1}.dx-create-actions>.btn.quiet{min-width:78px}.dx-create-plan{padding:12px}.dx-create-plan .dx-plan-heading{align-items:flex-start;flex-direction:column;gap:4px}.dx-create-dialog .field{margin-bottom:13px}}
@media(prefers-reduced-motion:reduce){.dx-competitions .dx-type-card{transition:none}}
