/* BigDill Events. Colors and type come from the BigDill theme. */
.bde-hero { background: var(--black, #231F20); color: #fff; padding: 48px 24px 40px; }
.bde-hero .wrap { display: flex; flex-direction: column; gap: 10px; }
.bde-hero .eyebrow { color: var(--lime, #D9F24B); }
.bde-hero p { margin: 0; font-size: 19px; color: var(--off, #F3F5F0); }
.bde-hero a { color: #fff; }
.bde-note { border-left: 4px solid var(--lime, #D9F24B); padding-left: 12px; font-weight: 600; }
.bde-links { font-size: 16px; }
.bde-status--live { color: var(--lime, #D9F24B); }
.bde-body { padding: 28px 24px 72px; display: flex; flex-direction: column; gap: 22px; }
.bde.is-busy .bde-body { opacity: 0.6; pointer-events: none; }
.bde-tabs, .bde-divs { display: flex; flex-wrap: wrap; gap: 8px; }
.bde-tabs button, .bde-divs button { font: inherit; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 11px 18px; border: 2px solid var(--black, #231F20); background: #fff; color: var(--black, #231F20); cursor: pointer; }
.bde-tabs button.is-on { background: var(--black, #231F20); color: #fff; }
.bde-divs button { font-size: 14px; padding: 8px 14px; text-transform: none; letter-spacing: 0; }
.bde-divs button.is-on { background: var(--lime, #D9F24B); }
.bde-block { display: flex; flex-direction: column; gap: 12px; }
.bde-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; align-items: start; }
.bde-match { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #fff; border: 2px solid var(--black, #231F20); text-align: left; font: inherit; color: inherit; width: 100%; }
button.bde-match { cursor: pointer; }
button.bde-match:hover { box-shadow: 4px 4px 0 var(--black, #231F20); }
.bde-match-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #4A4F4C); font-weight: 600; }
.bde-side { display: flex; justify-content: space-between; gap: 12px; font-size: 18px; }
.bde-side.is-win { font-weight: 700; }
.bde-side.is-win > span:first-child::after { content: " \2713"; color: var(--green, #2E6B34); }
.bde-pts { font-family: var(--head, inherit); font-weight: 700; font-size: 22px; letter-spacing: 0.08em; white-space: nowrap; }
.bde-match--playing { border-color: var(--green, #2E6B34); box-shadow: inset 6px 0 0 var(--lime, #D9F24B); }
.bde-match--done { background: #FAFBF8; }
.bde-now { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--green, #2E6B34); }
.bde-bracket { display: flex; gap: 18px; overflow-x: auto; padding-bottom: 10px; align-items: stretch; }
.bde-col { display: flex; flex-direction: column; justify-content: space-around; gap: 12px; min-width: 250px; flex: 0 0 250px; }
.bde-col-head { font-family: var(--head, inherit); font-weight: 700; text-transform: uppercase; font-size: 18px; }
.bde-table td, .bde-table th { text-align: left; }
.bde-table tr.is-out td { opacity: 0.55; }
.bde-sit { margin: 0; padding-left: 20px; }
.bde-linked { font-size: 12px; font-weight: 700; text-transform: uppercase; background: var(--lime, #D9F24B); padding: 1px 6px; }
.bde-tools, .bde-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.bde-danger { margin-top: 4px; }
.bde-danger .linklike { color: #A3320B; }
.bde-division { border-top: 4px solid var(--black, #231F20); padding-top: 18px; }
.bde-div-head { display: flex; flex-direction: column; gap: 4px; }
.bde-panel { border: 2px solid var(--black, #231F20); background: #fff; }
.bde-panel > summary { cursor: pointer; padding: 13px 16px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bde-panel[open] > summary { border-bottom: 2px solid var(--black, #231F20); }
.bde-panel > .bde-form, .bde-panel > form, .bde-panel > .table-scroll { padding: 16px; }
.bde-form { display: flex; flex-direction: column; gap: 14px; }
.bde-form p { margin: 0; }
.bde-row { display: flex; flex-wrap: wrap; gap: 14px; }
.bde-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 180px; min-width: 0; font-weight: 600; font-size: 15px; }
.bde-field small { font-weight: 400; }
.bde-form input[type="text"], .bde-form input[type="number"], .bde-form input[type="date"], .bde-form input[type="time"], .bde-form select, .bde-form textarea { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #8C938A; background: #fff; width: 100%; min-height: 46px; }
.bde-inline { flex-direction: row; flex-wrap: wrap; align-items: center; border-top: 1px solid #C9CEC6; }
.bde-inline input[type="text"] { flex: 1 1 220px; width: auto; }
.bde-check { display: inline-flex; gap: 8px; align-items: center; }
.bde-fieldset { border: 1px solid #8C938A; padding: 12px; display: flex; flex-direction: column; gap: 10px; margin: 0; }
.bde-fieldset legend { font-weight: 700; padding: 0 6px; }
.bde-fieldset .bde-row > select { flex: 1 1 160px; width: auto; }
.bde-event { text-decoration: none; color: inherit; gap: 6px; }
.bde-dialog { border: 3px solid var(--black, #231F20); padding: 22px; width: min(560px, calc(100vw - 24px)); max-height: calc(100vh - 24px); overflow-y: auto; box-shadow: 8px 8px 0 var(--black, #231F20); }
.bde-dialog::backdrop { background: rgba(35, 31, 32, 0.7); }
.bde-vs { font-size: 19px; }
.bde-scores { display: flex; flex-direction: column; gap: 8px; }
.bde-score-head, .bde-score-row { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 10px; align-items: center; }
.bde-score-head { font-size: 14px; font-weight: 700; }
.bde-score-row input { font-size: 26px !important; font-weight: 700 !important; text-align: center; min-height: 60px !important; }
.my-events { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.my-event { text-decoration: none; color: inherit; gap: 6px; }
.my-event .go { font-weight: 600; text-decoration: underline; color: var(--green, #2E6B34); }
.bde .linklike, .bde-dialog .linklike { background: none; border: 0; padding: 0; font: inherit; text-decoration: underline; cursor: pointer; color: inherit; }
@media (max-width: 640px) {
	.bde-hero { padding: 32px 16px 28px; }
	.bde-body { padding: 20px 16px 56px; }
	.bde-tabs button { flex: 1 1 auto; padding: 11px 10px; font-size: 14px; }
	.bde-score-head, .bde-score-row { grid-template-columns: 56px 1fr 1fr; }
}

.bde-dialog .btn--outline { background: #fff; color: var(--black, #231F20); }
.bde-dialog .h-sm { font-size: 26px; line-height: 1.1; }
.bde-dialog .bde-actions .linklike { padding: 8px 0; }

.bde-rules { margin: 0; font-weight: 600; }
.bde-about { margin: 0; color: var(--muted, #4A4F4C); white-space: pre-line; }
.bde-warn { margin-top: 4px; padding: 6px 8px; background: #FFF1D6; border-left: 4px solid #C77700; font-size: 14px; font-weight: 600; }
.bde-roster { font-size: 15px; color: var(--muted, #4A4F4C); }
.bde-match.is-out { opacity: 0.55; }
.bde-scores.has-lines .bde-score-head, .bde-scores.has-lines .bde-score-row { grid-template-columns: minmax(96px, 1.1fr) 1fr 1fr; }
.bde-scores.has-lines .bde-score-row > span { font-weight: 600; font-size: 15px; }
.bde-row { align-items: flex-start; }
.bde-field > select, .bde-field > input { flex: none; height: 46px; }
.bde-fieldset .bde-row select { height: 46px; }

/* Courts board, check-in, undo */
.bde-undo { font: inherit; font-weight: 700; background: var(--lime, #D9F24B); color: var(--black, #231F20); border: 0; padding: 8px 14px; cursor: pointer; margin-top: 6px; }
.bde-undo::before { content: "\21B6  "; }
.bde-count { font-family: var(--head, inherit); font-weight: 700; font-size: 22px; text-transform: uppercase; }
.bde-courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; align-items: start; }
.bde-court { border: 3px solid var(--black, #231F20); background: #fff; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.bde-court p { margin: 0; }
.bde-court-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.bde-court-num { font-family: var(--head, inherit); font-weight: 700; font-size: 28px; text-transform: uppercase; line-height: 1; }
.bde-court-state { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; padding: 3px 8px; border: 2px solid var(--black, #231F20); }
.bde-court--open .bde-court-state { background: var(--lime, #D9F24B); }
.bde-court--busy { border-color: var(--green, #2E6B34); }
.bde-court--busy .bde-court-state { background: var(--green, #2E6B34); border-color: var(--green, #2E6B34); color: #fff; }
.bde-court--closed { background: #E6E8E3; }
.bde-court--closed .bde-court-state { background: #fff; }
.bde-court .bde-match { border-width: 1px; box-shadow: none; }
.bde-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.bde-check-row { display: flex; gap: 12px; align-items: center; text-align: left; font: inherit; color: inherit; background: #fff; border: 2px solid var(--black, #231F20); padding: 12px; cursor: pointer; min-height: 60px; }
.bde-check-row.is-in { background: #F6FBD9; border-color: var(--green, #2E6B34); }
.bde-tick { flex: none; width: 30px; height: 30px; border: 2px solid var(--black, #231F20); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 20px; background: #fff; }
.is-in .bde-tick { background: var(--green, #2E6B34); border-color: var(--green, #2E6B34); color: #fff; }
.bde-print-links a { font-weight: 600; }
.bde-lineup { align-items: center; flex-wrap: nowrap; gap: 8px; }
.bde-lineup > span { flex: 0 0 110px; font-weight: 600; font-size: 14px; }
.bde-lineup input { flex: 1 1 0; min-width: 0; }

/* Printing */
body.bde-printing .site-header, body.bde-printing .site-footer, body.bde-printing .skip-link, body.bde-printing #wpadminbar { display: none !important; }
body.bde-printing { background: #fff; }
html:has(body.bde-printing) { margin-top: 0 !important; }
.bp-page { max-width: 1100px; margin: 0 auto; padding: 16px; color: #000; display: flex; flex-direction: column; gap: 14px; }
.bp-brand { font-family: var(--head, 'Arial Narrow', Arial, sans-serif); font-weight: 700; font-style: italic; font-size: 34px; text-transform: uppercase; line-height: 1; color: #231F20; }
.bp-brand span { color: #2E6B34; }
.bp-brand--sm { font-size: 20px; }
.bp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; border-bottom: 4px solid #231F20; padding-bottom: 8px; }
.bp-event { font-size: 17px; text-align: right; }
.bp-foot { border-top: 2px solid #231F20; padding-top: 6px; font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.bp-table, .bp-score { width: 100%; border-collapse: collapse; }
.bp-table th, .bp-table td { border: 1px solid #231F20; padding: 6px 8px; text-align: left; font-size: 14px; }
.bp-sheets { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.bp-sheet { border: 2px solid #231F20; padding: 12px; display: flex; flex-direction: column; gap: 8px; break-inside: avoid; page-break-inside: avoid; }
.bp-sheet-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 600; text-transform: uppercase; }
.bp-score th, .bp-score td { border: 1.5px solid #231F20; padding: 6px; font-size: 14px; text-align: center; }
.bp-score tbody th { text-align: left; width: 30%; font-weight: 600; }
.bp-score tbody td { height: 38px; }
.bp-rule { font-size: 12px; }
.bp-sign { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; margin-top: 6px; }
.bp-page .bde-match { border-width: 1.5px; padding: 8px 10px; break-inside: avoid; }
.bp-page .bde-bracket { overflow: visible; gap: 12px; }
.bp-page .bde-col { min-width: 0; flex: 1 1 0; }
.bp-page .bde-side { font-size: 14px; }
.bp-page .bde-pts { font-size: 16px; }
@media print {
	.bp-bar { display: none; }
	.bp-page { padding: 0; max-width: none; }
	.bp-brand span { color: #231F20; }
}

/* Print buttons and player search */
.bde-printbar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.bde-print-btn::before { content: ""; display: inline-block; width: 14px; height: 12px; margin-right: 8px; border: 2px solid currentColor; border-top-width: 5px; vertical-align: -1px; }
.bde-search { display: block; max-width: 520px; margin-top: 6px; }
.bde-search input { width: 100%; height: 52px; padding: 0 16px 0 46px; font: inherit; font-size: 18px; border: 2px solid var(--lime, #D9F24B); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l6 6'/%3E%3C/svg%3E") no-repeat 16px center; color: var(--black, #231F20); }
.bde-found { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: #fff; border: 3px solid var(--black, #231F20); box-shadow: 6px 6px 0 var(--lime, #D9F24B); }
.bde-found mark { background: var(--lime, #D9F24B); color: inherit; padding: 0 1px; }
.bde-found-card { display: flex; flex-direction: column; gap: 6px; border: 2px solid var(--black, #231F20); padding: 12px; }
.bde-found-head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 18px; }
.bde-found-now { font-weight: 700; color: #fff; background: var(--green, #2E6B34); padding: 4px 8px; align-self: flex-start; }
.bde-found-next { font-weight: 700; background: var(--lime, #D9F24B); padding: 4px 8px; align-self: flex-start; }
.bde-found-list { margin: 4px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; font-size: 15px; }
.bde-found-list li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #DADDD6; padding-top: 4px; }
.bde-found-res { font-weight: 700; white-space: nowrap; }
.bde-found-playing { color: var(--green, #2E6B34); }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================= Public view ================= */
.bde-pub { --pad: 16px; padding-bottom: 84px; background: var(--off, #F3F5F0); }
.bde-top { background: var(--black, #231F20); color: #fff; padding: 22px var(--pad) 20px; }
.bde-top-in, .bde-pub-main, .bde-picker { max-width: 1120px; margin: 0 auto; }
.bde-top-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bde-title { font-family: var(--head, inherit); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: clamp(34px, 7vw, 64px); line-height: 0.95; margin: 10px 0 6px; }
.bde-sub { color: var(--off, #F3F5F0); font-size: 17px; }
.bde-status-pill { font-family: var(--head, inherit); font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 15px; padding: 3px 10px; border: 2px solid #fff; }
.bde-status-pill--live { background: var(--lime, #D9F24B); border-color: var(--lime, #D9F24B); color: var(--black, #231F20); }
.bde-sync { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--off, #F3F5F0); }
.bde-sync i { width: 9px; height: 9px; border-radius: 50%; background: var(--lime, #D9F24B); box-shadow: 0 0 0 0 rgba(217, 242, 75, 0.7); animation: bde-pulse 2s infinite; }
.bde-sync.is-stale i { background: #F0A43A; animation: none; }
@keyframes bde-pulse { 0% { box-shadow: 0 0 0 0 rgba(217, 242, 75, 0.7); } 70% { box-shadow: 0 0 0 9px rgba(217, 242, 75, 0); } 100% { box-shadow: 0 0 0 0 rgba(217, 242, 75, 0); } }
.bde-alert { margin-top: 12px; padding: 10px 12px; border-left: 5px solid var(--lime, #D9F24B); background: #34302F; font-weight: 600; }
.bde-alert--lime { background: var(--lime, #D9F24B); color: var(--black, #231F20); border-left-color: var(--black, #231F20); }
.bde-picker { display: flex; gap: 8px; overflow-x: auto; padding: 12px var(--pad); position: sticky; top: 0; z-index: 20; background: var(--off, #F3F5F0); border-bottom: 2px solid var(--black, #231F20); max-width: none; scrollbar-width: none; }
.bde-picker::-webkit-scrollbar { display: none; }
.bde-picker button { flex: none; font: inherit; font-weight: 700; font-size: 15px; padding: 8px 14px; border: 2px solid var(--black, #231F20); background: #fff; color: var(--black, #231F20); cursor: pointer; white-space: nowrap; }
.bde-picker button.is-on { background: var(--black, #231F20); color: var(--lime, #D9F24B); }
.bde-pub-main { padding: 18px var(--pad) 28px; display: flex; flex-direction: column; gap: 26px; }
.bde-sec { display: flex; flex-direction: column; gap: 12px; }
.bde-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.bde-sec-head h2 { font-family: var(--head, inherit); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; margin: 0; }
.bde-round { font-family: var(--head, inherit); font-weight: 700; text-transform: uppercase; font-size: 19px; letter-spacing: 0.04em; margin: 8px 0 0; color: var(--green, #2E6B34); }
.bde-pub-foot { text-align: center; font-size: 15px; color: var(--muted, #4A4F4C); }
/* Rows */
.bde-rows { display: flex; flex-direction: column; background: #fff; border: 2px solid var(--black, #231F20); }
.bde-mr { display: grid; grid-template-columns: 74px 1fr; gap: 12px; padding: 11px 14px; border-top: 1px solid #DADDD6; align-items: center; }
.bde-mr:first-child { border-top: 0; }
.bde-mr[data-tap] { cursor: pointer; }
.bde-mr[data-tap]:hover { background: #FAFBF8; }
.bde-mr.is-f { box-shadow: inset 5px 0 0 var(--lime, #D9F24B); background: #FCFEF2; }
.bde-mr--playing { background: #F4FAE0; }
.bde-mr-meta { display: flex; flex-direction: column; gap: 2px; font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--muted, #4A4F4C); }
.bde-meta-court { color: var(--black, #231F20); font-size: 15px; }
.bde-mr-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #4A4F4C); margin-bottom: 2px; }
.bde-mr-side { display: flex; justify-content: space-between; gap: 10px; font-size: 17px; line-height: 1.35; }
.bde-mr-side.is-win { font-weight: 700; }
.bde-mr-side.is-win .bde-mr-names::after { content: " \2713"; color: var(--green, #2E6B34); }
.bde-mr-pts { display: inline-flex; gap: 10px; font-family: var(--head, inherit); font-weight: 700; font-size: 20px; }
.bde-mr-pts b.is-now { color: var(--green, #2E6B34); }
.bde-plink { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: #B9BEB5; text-underline-offset: 3px; }
.bde-plink:hover { text-decoration-color: currentColor; }
.bde-plink.is-f { background: linear-gradient(transparent 55%, var(--lime, #D9F24B) 55%); }
.bde-tbd { color: var(--muted, #4A4F4C); font-style: italic; }
.bde-pill { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 7px; background: var(--black, #231F20); color: #fff; align-self: flex-start; white-space: nowrap; }
.bde-pill--live { background: var(--green, #2E6B34); }
/* Court tiles */
.bde-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.bde-tile { background: #fff; border: 2px solid var(--black, #231F20); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; min-height: 140px; }
.bde-tile[data-tap] { cursor: pointer; }
.bde-tile--busy { border-color: var(--green, #2E6B34); box-shadow: 5px 5px 0 var(--green, #2E6B34); }
.bde-tile--closed { background: #E6E8E3; }
.bde-tile.is-f { box-shadow: 5px 5px 0 var(--lime, #D9F24B); }
.bde-tile-head { display: flex; justify-content: space-between; align-items: center; font-family: var(--head, inherit); font-weight: 700; font-size: 24px; text-transform: uppercase; line-height: 1; }
.bde-tile-div { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #4A4F4C); }
.bde-tile-side { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 17px; }
.bde-tile-pts { font-family: var(--head, inherit); font-weight: 700; font-size: 38px; line-height: 1; min-width: 44px; text-align: right; }
.bde-tile-games { font-size: 13px; color: var(--muted, #4A4F4C); }
.bde-tile-empty { margin: auto 0; font-family: var(--head, inherit); font-size: 22px; font-weight: 700; text-transform: uppercase; color: var(--green, #2E6B34); }
.bde-tile--closed .bde-tile-empty { color: var(--muted, #4A4F4C); }
/* Following */
.bde-follow { gap: 10px; }
.bde-follow-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.bde-fchip { flex: none; font: inherit; text-align: left; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border: 2px solid var(--black, #231F20); background: var(--lime, #D9F24B); cursor: pointer; min-width: 170px; color: var(--black, #231F20); }
.bde-fchip span { font-size: 14px; }
.bde-fchip.is-live { background: var(--green, #2E6B34); border-color: var(--green, #2E6B34); color: #fff; }
.bde-star { flex: none; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer; padding: 0; }
.bde-star svg { width: 24px; height: 24px; fill: none; stroke: var(--black, #231F20); stroke-width: 1.8; }
.bde-star.is-on svg { fill: var(--lime, #D9F24B); }
.bde-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.bde-person { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #fff; border: 2px solid var(--black, #231F20); padding: 6px 12px 6px 6px; font-weight: 600; }
.bde-person.is-f { background: #FCFEF2; border-color: var(--green, #2E6B34); }
.bde-person .muted { flex-basis: 100%; padding-left: 44px; margin-top: -6px; font-weight: 400; }
.bde-bigsearch input { width: 100%; height: 58px; padding: 0 16px 0 50px; font: inherit; font-size: 20px; border: 3px solid var(--black, #231F20); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%23231F20' stroke-width='2.5'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='M16 16l6 6'/%3E%3C/svg%3E") no-repeat 16px center; }
/* Champion */
.bde-champ { display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--black, #231F20); color: #fff; border-left: 8px solid var(--lime, #D9F24B); }
.bde-champ-k { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--lime, #D9F24B); }
.bde-champ-n { font-family: var(--head, inherit); font-weight: 700; font-style: italic; font-size: 32px; text-transform: uppercase; line-height: 1.05; }
/* Player page */
.bde-back { align-self: flex-start; font: inherit; font-weight: 700; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; }
.bde-phead { display: flex; align-items: center; gap: 10px; }
.bde-phead > div { flex: 1; min-width: 0; }
.bde-phead h2 { font-family: var(--head, inherit); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 36px; line-height: 1; margin: 0; overflow-wrap: anywhere; }
.bde-phead .bde-star { width: 44px; height: 44px; }
.bde-phead .bde-star svg { width: 32px; height: 32px; }
.bde-pstats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.bde-pstats > div { background: #fff; border: 2px solid var(--black, #231F20); padding: 10px; display: flex; flex-direction: column; }
.bde-pstats b { font-family: var(--head, inherit); font-size: 30px; line-height: 1; }
.bde-pstats span { font-size: 13px; color: var(--muted, #4A4F4C); text-transform: uppercase; font-weight: 600; }
.bde-pstatus { padding: 12px 14px; background: var(--lime, #D9F24B); font-size: 17px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bde-pstatus.is-live { background: #E7F3D6; border-left: 5px solid var(--green, #2E6B34); }
/* Standings */
.bde-stand { width: 100%; border-collapse: collapse; background: #fff; border: 2px solid var(--black, #231F20); }
.bde-stand th { font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; text-align: left; padding: 8px; background: var(--black, #231F20); color: #fff; }
.bde-stand td { padding: 8px; border-top: 1px solid #DADDD6; font-size: 16px; vertical-align: middle; }
.bde-stand td:nth-child(2) { width: 36px; padding: 0; }
.bde-stand tr.is-f td { background: #FCFEF2; }
.bde-stand tr.is-out td { opacity: 0.55; }
.bde-st-rank { font-family: var(--head, inherit); font-weight: 700; font-size: 20px; width: 34px; }
.bde-st-name { font-weight: 600; }
.bde-st-note { font-size: 12px; font-weight: 400; color: var(--muted, #4A4F4C); }
/* Brackets with lines */
.bde-bk { display: flex; overflow-x: auto; padding: 4px 0 12px; scroll-snap-type: x proximity; }
.bde-bk-col { flex: 0 0 236px; display: flex; flex-direction: column; scroll-snap-align: start; }
.bde-bk-head { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted, #4A4F4C); padding: 0 0 8px; }
.bde-bk-slots { flex: 1; display: flex; flex-direction: column; }
.bde-bk-slot { flex: 1; display: flex; align-items: center; padding: 6px 20px 6px 0; position: relative; }
.bde-bk--lines .bde-bk-col:not(:last-child) .bde-bk-slot::after { content: ""; position: absolute; right: 0; width: 20px; top: 50%; border-top: 2px solid var(--black, #231F20); }
.bde-bk--lines .bde-bk-col:not(:last-child) .bde-bk-slot:nth-child(odd)::before { content: ""; position: absolute; right: 0; top: 50%; bottom: 0; border-right: 2px solid var(--black, #231F20); }
.bde-bk--lines .bde-bk-col:not(:last-child) .bde-bk-slot:nth-child(even)::before { content: ""; position: absolute; right: 0; top: 0; bottom: 50%; border-right: 2px solid var(--black, #231F20); }
.bde-bk--lines .bde-bk-col:not(:first-child) .bde-bk-slot { padding-left: 14px; }
.bde-bk--lines .bde-bk-col:not(:first-child) .bde-bk-slot > :first-child::before { content: ""; position: absolute; left: 0; width: 14px; top: 50%; border-top: 2px solid var(--black, #231F20); }
.bde-bk-m { width: 100%; background: #fff; border: 2px solid var(--black, #231F20); position: relative; z-index: 1; }
.bde-bk-m[data-tap] { cursor: pointer; }
.bde-bk-m.is-f { box-shadow: 4px 4px 0 var(--lime, #D9F24B); border-color: var(--green, #2E6B34); }
.bde-bk-m.is-live { border-color: var(--green, #2E6B34); }
.bde-bk-side { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; font-size: 15px; }
.bde-bk-side + .bde-bk-side { border-top: 1px solid #DADDD6; }
.bde-bk-side.is-win { font-weight: 700; background: #F6FBD9; }
.bde-bk-pts { font-family: var(--head, inherit); font-weight: 700; white-space: nowrap; }
.bde-bk-meta { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted, #4A4F4C); padding: 4px 8px; border-top: 1px solid #DADDD6; }
.bde-bk-m.is-live .bde-bk-meta { color: #fff; background: var(--green, #2E6B34); }
.bde-bk-bye { width: 100%; padding: 6px 8px; border: 1px dashed #8C938A; font-size: 14px; position: relative; z-index: 1; background: var(--off, #F3F5F0); }
.bde-bk-third { max-width: 420px; }
.bde-swipe { display: none; }
/* Bottom tab bar on phones, top bar on bigger screens */
.bde-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; background: var(--black, #231F20); border-top: 3px solid var(--lime, #D9F24B); padding-bottom: env(safe-area-inset-bottom); }
.bde-nav button { flex: 1 1 0; min-width: 0; font: inherit; background: none; border: 0; color: #fff; padding: 8px 2px 9px; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.bde-nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bde-nav button.is-on { color: var(--lime, #D9F24B); }
.bde-printbar .bde-print-btn { background: #fff; }
.bde-flash { animation: bde-flash 1.6s ease-out 1; }
@keyframes bde-flash { 0% { background-color: var(--lime, #D9F24B); } 100% { background-color: inherit; } }
@media (max-width: 720px) {
	.bde-swipe { display: block; }
	.bde-mr { grid-template-columns: 58px 1fr; padding: 10px 12px; }
	.bde-sec-head h2 { font-size: 26px; }
	.bde-sec-head .bde-printbar { display: none; }
	body.bde-pub-on .site-footer { padding-bottom: 90px; }
}
@media (min-width: 900px) {
	.bde-pub { padding-bottom: 0; }
	.bde-nav { position: sticky; top: 0; bottom: auto; justify-content: center; border-top: 0; border-bottom: 3px solid var(--lime, #D9F24B); }
	.bde-nav button { flex: 0 0 auto; flex-direction: row; gap: 8px; font-size: 14px; padding: 14px 18px; }
	.bde-nav svg { width: 20px; height: 20px; }
	.bde-pub { display: flex; flex-direction: column; }
	.bde-pub .bde-top { order: 0; } .bde-pub .bde-nav { order: 1; } .bde-pub .bde-picker { order: 2; top: 54px; } .bde-pub .bde-pub-main { order: 3; }
}
/* Live scoring in the score window */
.bde-live-ctrl { border: 3px solid var(--green, #2E6B34); padding: 12px; display: flex; flex-direction: column; gap: 10px; background: #F4FAE0; }
.bde-live-head { font-weight: 700; display: flex; flex-direction: column; }
.bde-live-game { font-family: var(--head, inherit); font-weight: 700; font-size: 18px; text-transform: uppercase; }
.bde-live-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bde-live-btns button { font: inherit; font-weight: 700; min-height: 84px; border: 3px solid var(--black, #231F20); background: #fff; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px; overflow-wrap: anywhere; }
.bde-live-btns button span { font-family: var(--head, inherit); font-size: 32px; line-height: 1; color: var(--green, #2E6B34); }
.bde-live-btns button:active { background: var(--lime, #D9F24B); }
/* TV mode */
body.bde-tv-body .site-header, body.bde-tv-body .site-footer, body.bde-tv-body #wpadminbar { display: none !important; }
body.bde-tv-body { background: var(--black, #231F20); }
.bde-tv { min-height: 100vh; background: var(--black, #231F20); color: #fff; padding: 2vw 3vw; display: flex; flex-direction: column; gap: 1.6vw; }
.bde-tv .bp-brand { color: #fff; font-size: 3vw; }
.bde-tv .bp-brand span { color: var(--lime, #D9F24B); }
.bde-tv-top { display: flex; justify-content: space-between; align-items: center; gap: 2vw; }
.bde-tv-event { font-family: var(--head, inherit); font-weight: 700; font-size: 2.4vw; text-transform: uppercase; }
.bde-tv-clock { font-family: var(--head, inherit); font-size: 2.4vw; color: var(--lime, #D9F24B); }
.bde-tv-title { font-family: var(--head, inherit); font-weight: 700; font-style: italic; font-size: 4vw; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; line-height: 1; }
.bde-tv-dots { display: flex; gap: 0.6vw; }
.bde-tv-dots i { width: 1vw; height: 1vw; border: 2px solid #fff; }
.bde-tv-dots i.is-on { background: var(--lime, #D9F24B); border-color: var(--lime, #D9F24B); }
.bde-tv-body { flex: 1; }
.bde-tv-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(22vw, 1fr)); gap: 1.4vw; }
.bde-tv .bde-tile { color: var(--black, #231F20); min-height: 0; }
.bde-tv .bde-tile-head { font-size: 2.2vw; }
.bde-tv .bde-tile-side { font-size: 1.6vw; }
.bde-tv .bde-tile-pts { font-size: 3.4vw; }
.bde-tv .bde-rows { color: var(--black, #231F20); }
.bde-tv .bde-mr { font-size: 1.5vw; grid-template-columns: 8vw 1fr; }
.bde-tv .bde-mr-side { font-size: 1.7vw; }
.bde-tv .bde-plink { text-decoration: none; pointer-events: none; }
.bde-tv-table { display: inline-block; vertical-align: top; width: 48%; margin: 0 1% 1vw 0; }
.bde-tv-table h3 { color: var(--lime, #D9F24B); font-size: 2vw; margin: 0 0 0.6vw; }
.bde-tv .bde-stand td { font-size: 1.7vw; color: var(--black, #231F20); }
.bde-tv .bde-champ-n { font-size: 6vw; }
.bde-champ--tv { padding: 3vw; }
.bde-tv-wait { font-size: 4vw; }
.bde-tv-foot { font-size: 1.3vw; text-transform: uppercase; letter-spacing: 0.08em; color: var(--lime, #D9F24B); }
.bde-tv-note { font-size: 1.8vw; }

/* ---------- Sign-up ---------- */
.bde-signup { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.bde-signup-off { font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 14px; border: 2px solid currentColor; padding: 8px 12px; }
.bde-signup-note { font-size: 14px; opacity: 0.85; }
.bde-regbox { border-left: 6px solid var(--lime, #D9F24B); }
.bde-regbox-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.bds-wrap { max-width: 860px; display: flex; flex-direction: column; gap: 22px; }
.bds-when { font-weight: 600; }
.bds-closes { color: var(--lime, #D9F24B); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 14px; }
.bds .notice-bad ul { margin: 8px 0 0; padding-left: 20px; }
.bds .notice-bad p { margin: 8px 0 0; }
.bds-form { gap: 18px; }
.bds-step { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.bds-step h2 { margin: 0; }
.bds-num { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; background: var(--black, #231F20); color: var(--lime, #D9F24B); font-weight: 800; font-size: 17px; flex: 0 0 auto; }
.bds-divs { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.bds-div { position: relative; cursor: pointer; display: block; }
.bds-div input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.bds-div-in { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 14px 16px; background: #fff; border: 2px solid var(--black, #231F20); }
.bds-div:hover .bds-div-in { border-color: var(--green, #2E6B34); }
.bds-div input:checked + .bds-div-in { background: var(--lime, #D9F24B); box-shadow: 6px 6px 0 var(--green, #2E6B34); }
.bds-div input:focus-visible + .bds-div-in { outline: 3px solid var(--green, #2E6B34); outline-offset: 2px; }
.bds-div input:disabled + .bds-div-in { opacity: 0.55; cursor: not-allowed; }
.bds-div-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.bds-div-top b { font-size: 18px; }
.bds-fee { font-weight: 800; white-space: nowrap; }
.bds-sum { font-size: 14px; color: #4a4547; }
.bds-spots { margin-top: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--green, #2E6B34); }
.bds-spots.is-full { color: #9b2c2c; }
.bds-rest { display: flex; flex-direction: column; gap: 16px; scroll-margin-top: 16px; }
.bds-rest[hidden], .bds-player[hidden], .bds-team[hidden], .bds-amount[hidden], .bds-extra[hidden], .bds-extra [hidden], [data-for-mode][hidden] { display: none; }
.bds-player { background: #fff; }
.bds-player legend { font-weight: 800; }
.bde-form input[type="email"], .bde-form input[type="tel"] { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #8C938A; background: #fff; width: 100%; min-height: 46px; }
.bds-amount { display: flex; flex-direction: column; gap: 8px; background: #fff; }
.bds-opt { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 2px solid #d8d4d5; cursor: pointer; }
.bds-opt:has(input:checked) { border-color: var(--black, #231F20); background: #f6fbe0; }
.bds-opt input { margin-top: 4px; accent-color: var(--green, #2E6B34); }
.bds-opt span { display: flex; flex-direction: column; gap: 2px; }
.bds-opt small { color: #5c5658; font-size: 14px; }
.bds-waiver { background: #fff; border: 2px solid var(--black, #231F20); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.bds-waiver-text { max-height: 180px; overflow: auto; font-size: 14px; background: var(--off, #F3F4EF); padding: 10px 12px; }
.bds-go { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.bds-done { background: #fff; border: 3px solid var(--black, #231F20); box-shadow: 8px 8px 0 var(--lime, #D9F24B); padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.bds-done p { margin: 0; }
.bds-done-k { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--green, #2E6B34); }
.bds-done-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.bds-share { background: var(--off, #F3F4EF); padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.bds-share input { font: inherit; padding: 8px 10px; border: 1px solid #8C938A; width: 100%; }
.bds-help { font-size: 15px; }
.bds-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.bds-stats > div { background: #fff; border: 2px solid var(--black, #231F20); padding: 12px 14px; display: flex; flex-direction: column; }
.bds-stats b { font-size: 30px; line-height: 1.1; }
.bds-stats span { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.bds-divtable input[type="text"], .bds-divtable input[type="number"] { width: 110px; min-height: 40px; }
.bds-post { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border: 2px dashed var(--black, #231F20); }
.bds-post form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bds-regs { display: flex; flex-direction: column; gap: 8px; }
.bds-reg { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; background: #fff; border: 2px solid var(--black, #231F20); padding: 12px 14px; }
.bds-reg.is-canceled { opacity: 0.6; }
.bds-reg.is-waitlist, .bds-reg.is-offered { border-style: dashed; }
.bds-reg-main { display: flex; flex-direction: column; gap: 3px; flex: 1 1 360px; min-width: 0; }
.bds-reg-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bds-pill { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 2px 8px; background: var(--lime, #D9F24B); }
.is-waitlist .bds-pill, .is-offered .bds-pill { background: var(--off, #F3F4EF); border: 1px solid var(--black, #231F20); }
.is-canceled .bds-pill { background: #eee; }
.bds-reg-acts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.bds-reg-acts form { margin: 0; }
@media (max-width: 640px) {
	.bds-divs { grid-template-columns: 1fr; }
	.bds-done { padding: 18px; box-shadow: 5px 5px 0 var(--lime, #D9F24B); }
}
.bds .small { font-size: 14px; }
.bds .btn--outline { background: #fff; color: var(--black, #231F20); border: 2px solid var(--black, #231F20); }
.bds .btn--outline:hover { background: var(--black, #231F20); color: var(--lime, #D9F24B); }
.bde .linklike.bde-danger { color: #A3320B; }

/* Refund rules */
.bds-rules { border: 2px solid var(--black, #231F20); background: #F7FAEC; padding: 12px 16px; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.bds-rules p { margin: 0; }
.bds-rules-admin .bds-rule { align-items: flex-end; }
.bds-rule-preview { padding: 8px 10px; background: #F3F5F0; border-left: 3px solid var(--green, #2E6B34); }
.bds-cancel h3 { margin: 0 0 4px; }
.bde-danger-btn { background: #B3261E !important; border-color: #B3261E !important; color: #fff !important; }
.my-events-wd { margin-top: 10px; }
.bds-rule [hidden], .bds-amount[hidden] { display: none !important; }
.bds-rules-admin > .bde-field { flex: none; }
.bds-cancel > .bde-row { padding: 16px; }
.bds-cancel .bde-form > .bde-field { flex: none; }
.bds-kidfill { font-size: 14px; margin: -2px 0 4px; } .bds-kidfill .linklike { font-weight: 600; }

/* ---------- Event page: landing (Info) ---------- */
.bde-ballline { display: inline-block; margin-top: 8px; font-weight: 700; font-size: 15px; color: var(--black, #231F20); background: var(--lime, #D9F24B); padding: 3px 10px; }
.bde-landing { gap: 16px; }
.bde-cover-img { margin: 0 calc(-1 * var(--pad)); max-width: none; }
.bde-cover-img img { display: block; width: 100%; max-width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 3px solid var(--black, #231F20); }
@media (min-width: 760px) { .bde-cover-img { margin: 0; } .bde-cover-img img { border: 3px solid var(--black, #231F20); max-height: 380px; } }
.bde-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.bde-chips li { background: var(--black, #231F20); color: #fff; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.bde-chips b { font-family: var(--head, inherit); font-weight: 700; font-size: 26px; line-height: 1; color: var(--lime, #D9F24B); text-transform: uppercase; }
.bde-chips span { font-size: 14px; color: var(--off, #F3F5F0); }
.bde-chips li.is-full b { color: #FFB4A8; }
.bde-chips li.bde-chip-wide { grid-column: span 2; }
@media (max-width: 420px) { .bde-chips { grid-template-columns: 1fr 1fr; } }
.bde-facts { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0; background: #fff; border: 2px solid var(--black, #231F20); }
.bde-fact { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-bottom: 1px solid var(--line, #D9DDD4); min-width: 0; }
.bde-fact dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; color: var(--muted, #4A4F4C); }
.bde-fact dd { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.bde-fact strong { font-size: 18px; }
.bde-fact span { color: var(--muted, #4A4F4C); }
.bde-fact a { font-weight: 600; }
.bde-h3 { font-family: var(--head, inherit); font-weight: 700; text-transform: uppercase; font-size: 20px; letter-spacing: 0.02em; margin: 0; }
.bde-about-box { display: flex; flex-direction: column; gap: 6px; }
.bde-about-box p { margin: 0; max-width: 68ch; font-size: 17px; line-height: 1.55; }
.bde-cta { align-self: flex-start; }
.bde-divcard { background: #fff; border: 2px solid var(--black, #231F20); padding: 14px 14px 16px; }
.bde-divmeta { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; color: var(--muted, #4A4F4C); }
.bde-divmeta .bde-fee { font-weight: 700; color: var(--black, #231F20); }
.bde-spot { font-weight: 700; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--green, #2E6B34); }
.bde-spot.is-full { color: #A3261B; }
.bde-how { background: var(--off, #F3F5F0); padding: 10px 12px; border-left: 5px solid var(--lime, #D9F24B); }
.bde-how b { display: block; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 2px; }
.bde-how p { margin: 0; }
.bde-div-go { font-weight: 700; align-self: flex-start; }
.bde-entered summary { cursor: pointer; font-weight: 700; padding: 4px 0 8px; }
.bde-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.bde-ask, .bde-cal { background: #fff; border: 2px solid var(--black, #231F20); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.bde-ask ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bde-ask p { margin: 0; }
.bde-sel { font-weight: 700; user-select: all; word-break: break-word; }
.bde-cal .bde-actions { display: flex; flex-wrap: wrap; gap: 8px; }
/* organizer: cover photo */
.bde-cover-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bde-cover-row img { width: 200px; max-width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; border: 2px solid var(--black, #231F20); }
.bde-cover-none { color: var(--muted, #4A4F4C); font-size: 14px; max-width: 280px; }
.bde-cover { display: flex; flex-direction: column; gap: 6px; }

/* My events: tap a card for details and options (0.9.0). */
.my-event > summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 6px; }
.my-event > summary::-webkit-details-marker { display: none; }
.my-event-more { font-weight: 700; color: var(--green, #2E6B34); }
.my-event-more::after { content: " +"; }
.my-event[open] .my-event-more::after { content: " \2212"; }
.my-event-body { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--black, #231F20); }
.my-event-dl { margin: 0; display: grid; gap: 8px; }
.my-event-dl dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--green, #2E6B34); }
.my-event-dl dd { margin: 0; }
.my-event-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- 0.10.0: QR check-in, DUPR, league season and make-ups ---------- */
.bde-mk { display: block; font-size: 13px; font-weight: 700; color: #8a5a00; margin: 2px 0 4px; }
.bde-match--postponed, .bde-mr--postponed { opacity: .8; border-style: dashed; }
.bde-qr { display: grid; grid-template-columns: 200px 1fr; gap: 20px; align-items: start; }
.bde-qr-box { background: #fff; border: 2px solid var(--black, #231F20); padding: 8px; }
.bde-qr-box svg { display: block; width: 100%; height: auto; }
.bde-qr-text p { margin: 0 0 10px; }
@media (max-width: 640px) { .bde-qr { grid-template-columns: 1fr; } .bde-qr-box { max-width: 220px; } }
.bde-dupr-list { display: flex; flex-direction: column; gap: 8px; }
.bde-dupr-row { display: grid; grid-template-columns: 1fr minmax(120px, 200px); gap: 10px; align-items: center; }
.bde-dupr-row input { font: inherit; padding: 8px 10px; border: 1px solid #b9bfb3; }
@media (max-width: 480px) { .bde-dupr-row { grid-template-columns: 1fr; } }
.bde-season tr.is-now td { background: var(--lime, #D9F24B); }
.bde-season tr.is-off td { color: #6b706c; font-style: italic; }
.bde-season tr.is-mk td:first-child { font-weight: 700; color: #8a5a00; }

/* ---------- 0.11.0: program (agenda, dates), open play line, clinics ---------- */
.bde-ag, [data-ss] { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.bde-ag-row { display: grid; grid-template-columns: 110px 120px minmax(160px, 2fr) minmax(100px, 1fr) 90px minmax(140px, 1.2fr); gap: 6px; }
.bde-ss-row { display: grid; grid-template-columns: 170px 1fr; gap: 6px; }
.bde-ag-row input, .bde-ag-row select, .bde-ss-row input { font: inherit; padding: 7px 8px; border: 1px solid #b9bfb3; min-width: 0; }
@media (max-width: 900px) { .bde-ag-row { grid-template-columns: 1fr 1fr; padding-bottom: 8px; border-bottom: 1px dashed #d9ddd4; } .bde-ag-row input[name=ag_title] { grid-column: 1 / -1; } .bde-ss-row { grid-template-columns: 1fr; } }
.bde-agenda { list-style: none; margin: 0 0 10px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bde-agenda li { display: grid; grid-template-columns: 76px 1fr; gap: 10px; align-items: baseline; }
.bde-agenda li b { font-variant-numeric: tabular-nums; }
.bde-agenda .bde-ag--drill strong { color: var(--dill, #2E6B34); }
.bde-sessions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.bde-sessions li { display: flex; gap: 10px; flex-wrap: wrap; }
.bde-sessions li.is-past { color: #8a8f8b; text-decoration: line-through; }
.bde-sessions li.is-now b { background: var(--lime, #D9F24B); padding: 0 4px; }
.bde-op-courts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 12px 0; }
.bde-op-court { background: #fff; border: 2px solid var(--black, #231F20); padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.bde-op-ct { font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.bde-op-court ol, .bde-op-line { margin: 0; padding-left: 22px; }
.bde-op-line { display: flex; flex-direction: column; gap: 4px; }
.bde-op .is-me { font-weight: 800; background: var(--lime, #D9F24B); }
.bde-op-me { background: var(--lime, #D9F24B); padding: 10px 12px; border: 2px solid var(--black, #231F20); }
.bde-op .bde-inline input[name=name] { font-size: 18px; }

/* ---------- Match day tools (matchday.js): My match for players, Match day for the organizer ---------- */
.bde.is-busy { cursor: progress; }
.bde.is-busy [data-md], .bde.is-busy [data-md-form] button { opacity: 0.6; pointer-events: none; }
.bde .small { font-size: 14px; }
.md-badge { display: inline-block; min-width: 22px; padding: 1px 6px; margin-left: 4px; background: #A3320B; color: #fff; font-size: 13px; line-height: 20px; text-align: center; border-radius: 11px; }
.md-card { padding: 16px; background: #fff; border: 3px solid var(--black, #231F20); }
.md-card--playing { box-shadow: 6px 6px 0 var(--lime, #D9F24B); }
.md-card--done { border-width: 2px; opacity: 0.9; }
.md-top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.md-court { font-family: var(--head, inherit); font-weight: 700; font-style: italic; text-transform: uppercase; font-size: 30px; line-height: 1; padding: 6px 12px; background: var(--black, #231F20); color: var(--lime, #D9F24B); }
.md-state { font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 13px; padding: 4px 8px; border: 2px solid var(--black, #231F20); }
.md-card--playing .md-state { background: var(--lime, #D9F24B); }
.md-time { font-weight: 700; margin-left: auto; }
.md-vs { margin: 0; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.md-vs span { font-weight: 400; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; padding: 0 2px; }
.md-meta { font-weight: 600; font-size: 15px; }
.md-how { margin: 0; font-size: 15px; padding: 8px 10px; background: #F4F4F0; border-left: 4px solid var(--black, #231F20); }
.md-final { margin: 0; font-weight: 700; font-size: 18px; }
.md-sub { margin: 8px 0 0; font-size: 15px; text-transform: uppercase; letter-spacing: 0.08em; }
.md-foot { text-align: center; }
.md-block { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 2px solid #E4E4DE; }
.md-block p { margin: 0; }
.md-h { font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; }
.md-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.md-fold > summary { cursor: pointer; font-weight: 700; text-decoration: underline; padding: 6px 0; min-height: 32px; }
.md-form { display: flex; flex-direction: column; gap: 10px; padding-top: 8px; align-items: stretch; }
.md-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 15px; }
.md-form select, .md-form input[type="number"] { font: inherit; font-size: 17px; min-height: 46px; padding: 6px 10px; border: 2px solid var(--black, #231F20); background: #fff; max-width: 100%; }
.md-form .btn { align-self: flex-start; }
.md-line { border: 2px solid #E4E4DE; padding: 8px 10px 10px; margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.md-line legend { font-weight: 700; padding: 0 4px; }
.md-flip { display: flex; gap: 12px; align-items: center; }
.md-coin { flex: none; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 24px; background: var(--lime, #D9F24B); border: 3px solid var(--black, #231F20); }
.md-coin.is-spin { animation: md-spin 1.2s ease-out 1; }
@keyframes md-spin { from { transform: rotateY(1440deg) scale(0.6); } to { transform: rotateY(0) scale(1); } }
@media (prefers-reduced-motion: reduce) { .md-coin.is-spin { animation: none; } }
.md-bands { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.md-band { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 2px solid var(--black, #231F20); border-top-width: 10px; min-width: 0; overflow-wrap: anywhere; }
.md-band.is-first { border-color: var(--green, #2E6B34); background: #FCFEF2; }
.md-band-team { font-size: 13px; font-weight: 600; }
.md-band strong { font-size: 19px; line-height: 1.15; }
.md-band em { font-style: normal; font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; background: var(--lime, #D9F24B); align-self: flex-start; padding: 1px 6px; }
.md-warn { padding: 10px 12px; border-left: 5px solid #A3320B; background: #FBEDE7; }
.md-bad { color: #A3320B; font-weight: 600; }
.md-lu { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.md-lu-side { padding: 10px; border: 2px solid #E4E4DE; min-width: 0; overflow-wrap: anywhere; }
.md-lu-side.is-mine { border-color: var(--black, #231F20); }
.md-lu-side ol { margin: 6px 0; padding-left: 20px; }
.md-lu-tag { font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.md-push { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 14px; background: var(--black, #231F20); color: #fff; font-weight: 600; }
.md-pushon { margin: 0; }
.md-check { align-items: flex-start; }
.md-check input { margin-top: 5px; flex: none; width: 20px; height: 20px; }
.md-inline { flex-direction: row !important; flex-wrap: wrap; align-items: center; gap: 8px !important; font-weight: 400 !important; padding-left: 30px; }
.md-inline input { width: 84px; }
.md-run-row { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; padding: 12px; border: 2px solid var(--black, #231F20); background: #fff; }
.md-run-row--lu { flex-direction: column; align-items: stretch; }
.md-need .md-run-row { border-color: #A3320B; box-shadow: inset 6px 0 0 #A3320B; }
@media (max-width: 560px) {
	.md-lu, .md-bands { grid-template-columns: 1fr; }
	.md-court { font-size: 26px; }
}
.md-form label.md-check { flex-direction: row; gap: 10px; font-weight: 400; }
.md-more > summary { border-top: 2px solid #E4E4DE; padding-top: 12px; }
.md-more[open] > summary { margin-bottom: 4px; }
@media (max-width: 480px) {
	.bde-nav:has(button:nth-child(6)) button { font-size: 10px; letter-spacing: 0; }
	.bde-nav button span { white-space: nowrap; }
}

/* ---------- The event desk: pause, announcements, replies, what's next ---------- */
.md-hold { margin: 0; padding: 14px var(--pad, 16px); background: #A3320B; color: #fff; font-size: 18px; line-height: 1.35; }
.md-hold-when { font-weight: 700; white-space: nowrap; }
.md-ann { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; padding: 12px var(--pad, 16px); background: var(--lime, #D9F24B); color: var(--black, #231F20); font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.md-ann button { flex: none; font: inherit; font-weight: 700; background: none; border: 2px solid var(--black, #231F20); padding: 4px 10px; min-height: 36px; cursor: pointer; color: inherit; }
.md-ann-k { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; opacity: 0.75; }
.md-anns .md-ann-row { padding: 10px 12px; background: #fff; border-left: 5px solid var(--lime, #D9F24B); overflow-wrap: anywhere; }
.md-ann-log { display: flex; flex-direction: column; gap: 8px; }
.md-late { gap: 8px; }
.md-late-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px; background: #fff; border: 2px solid var(--black, #231F20); }
.md-late-row.is-set { border-color: var(--green, #2E6B34); background: #FCFEF2; }
.md-late-row select { font: inherit; min-height: 40px; padding: 4px 8px; border: 2px solid var(--black, #231F20); background: #fff; }
.md-next { margin: 0; font-weight: 600; font-size: 15px; }
.md-form textarea, .md-form input[type="text"] { font: inherit; font-size: 17px; padding: 8px 10px; border: 2px solid var(--black, #231F20); background: #fff; width: 100%; box-sizing: border-box; }
.bde-tv .md-hold { font-size: 34px; padding: 18px 28px; }
.bde-tv .md-ann { font-size: 28px; padding: 16px 28px; }
.bde-tv .md-ann button { display: none; }
.bde-tv .md-ann-k { font-size: 16px; }

/* ---------- League: who's in, moving a match, subs, rosters ---------- */
.md-av-sum { font-weight: 600; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.md-av-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; padding: 6px 0; border-top: 1px solid #E4E4DE; }
.md-av-n { font-weight: 600; overflow-wrap: anywhere; }
.md-av-b { display: inline-flex; }
.md-av-btn { font: inherit; font-size: 15px; font-weight: 700; min-height: 40px; min-width: 64px; padding: 4px 10px; border: 2px solid var(--black, #231F20); background: #fff; color: var(--black, #231F20); cursor: pointer; }
.md-av-btn + .md-av-btn { border-left-width: 0; }
.md-av-in.is-on { background: var(--lime, #D9F24B); }
.md-av-maybe.is-on { background: #FFE9A8; }
.md-av-out.is-on { background: #A3320B; color: #fff; }
.md-form input[type="date"], .md-form input[type="email"] { font: inherit; font-size: 17px; min-height: 46px; padding: 6px 10px; border: 2px solid var(--black, #231F20); background: #fff; box-sizing: border-box; max-width: 100%; }
.md-subs ul { margin: 6px 0 8px; padding-left: 20px; }
.md-subs .bde-h3 { margin: 10px 0 0; }
.md-subs form.md-row { flex-wrap: wrap; align-items: stretch; }
.md-subs form input { flex: 1 1 200px; font: inherit; min-height: 42px; padding: 6px 10px; border: 2px solid var(--black, #231F20); }
.md-lg { border: 2px solid var(--black, #231F20); padding: 10px 14px; background: #fff; }
.md-lg > summary { font-size: 17px; }
.md-sub-add { flex-wrap: wrap; }
.md-sub-add input { flex: 1 1 180px; min-width: 0; font: inherit; min-height: 42px; padding: 6px 10px; border: 2px solid var(--black, #231F20); }
.md-rosters { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.md-roster { border: 2px solid #E4E4DE; padding: 8px 10px; }
.md-roster ul { margin: 4px 0 0; padding-left: 18px; }
.md-roster li.is-short { color: #A3320B; }

/* ---------- Courts: time on court, long matches, pick and drop ---------- */
.bde-tile-time, .bde-court-time { font-size: 13px; font-weight: 700; padding: 2px 8px; background: #F4F4F0; color: var(--black, #231F20); white-space: nowrap; }
.bde-tile-time.is-long, .bde-court-time.is-long { background: #A3320B; color: #fff; }
.bde-court.is-long { border-color: #A3320B; box-shadow: inset 6px 0 0 #A3320B; }
.bde-long { margin: 0; color: #A3320B; font-weight: 700; font-size: 15px; }
.bde-court.is-target { outline: 3px dashed var(--green, #2E6B34); outline-offset: 2px; background: #FCFEF2; }
.bde-pickwrap { display: flex; flex-direction: column; gap: 6px; cursor: grab; }
.bde-pickwrap.is-picked > :first-child { outline: 3px solid var(--lime, #D9F24B); }
.bde-pickwrap .btn { align-self: flex-start; }
/* ---------- No signal ---------- */
.bde-offline { margin: 0; padding: 12px var(--pad, 16px); background: #FFE9A8; color: var(--black, #231F20); font-weight: 600; line-height: 1.35; }
/* ---------- TV: sponsors, QR code, champion moment ---------- */
.bde-tv-spons { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; align-items: center; padding: 20px 0; }
.bde-tv-spon { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; padding: 24px; background: #fff; color: var(--black, #231F20); min-height: 200px; justify-content: center; }
.bde-tv-spon img { max-width: 100%; max-height: 180px; object-fit: contain; }
.bde-tv-spon-n { font-size: 32px; font-weight: 800; line-height: 1.1; }
.bde-tv-spon-l { font-size: 20px; }
.bde-tv-qr { display: flex; gap: 48px; align-items: center; justify-content: center; padding: 20px 0; }
.bde-tv-qr-code { width: min(42vh, 420px); background: #fff; padding: 12px; }
.bde-tv-qr-code svg { display: block; width: 100%; height: auto; }
.bde-tv-qr-t { display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.bde-tv-qr-t strong { font-size: 56px; line-height: 1; color: var(--lime, #D9F24B); text-transform: uppercase; font-style: italic; }
.bde-tv-qr-t span { font-size: 28px; line-height: 1.3; }
.bde-tv-moment { position: fixed; inset: 0; z-index: 99; display: grid; place-items: center; background: rgba(35, 31, 32, 0.94); animation: bde-fade 0.6s ease-out; }
.bde-tv-moment-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; padding: 40px; overflow: hidden; }
.bde-tv-moment-k { font-size: 34px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--lime, #D9F24B); }
.bde-tv-moment-n { font-size: clamp(48px, 9vw, 120px); font-weight: 800; font-style: italic; text-transform: uppercase; line-height: 1; color: #fff; animation: bde-pop 0.9s cubic-bezier(.2,1.6,.4,1); }
.bde-tv-moment-c { position: fixed; inset: 0; pointer-events: none; }
.bde-tv-moment-c i { position: absolute; top: -20px; width: 12px; height: 18px; background: var(--lime, #D9F24B); animation: bde-fall 3.2s linear infinite; }
.bde-tv-moment-c i:nth-child(3n) { background: #fff; } .bde-tv-moment-c i:nth-child(4n) { background: var(--green, #2E6B34); }
.bde-tv-moment-c i:nth-child(1) { left: 4%; animation-delay: 0s; } .bde-tv-moment-c i:nth-child(2) { left: 9%; animation-delay: 1.1s; } .bde-tv-moment-c i:nth-child(3) { left: 14%; animation-delay: 0.4s; } .bde-tv-moment-c i:nth-child(4) { left: 19%; animation-delay: 2.0s; } .bde-tv-moment-c i:nth-child(5) { left: 24%; animation-delay: 0.8s; } .bde-tv-moment-c i:nth-child(6) { left: 29%; animation-delay: 1.6s; } .bde-tv-moment-c i:nth-child(7) { left: 34%; animation-delay: 0.2s; } .bde-tv-moment-c i:nth-child(8) { left: 39%; animation-delay: 2.4s; } .bde-tv-moment-c i:nth-child(9) { left: 44%; animation-delay: 1.3s; } .bde-tv-moment-c i:nth-child(10) { left: 49%; animation-delay: 0.6s; } .bde-tv-moment-c i:nth-child(11) { left: 54%; animation-delay: 1.9s; } .bde-tv-moment-c i:nth-child(12) { left: 59%; animation-delay: 0.1s; } .bde-tv-moment-c i:nth-child(13) { left: 64%; animation-delay: 2.7s; } .bde-tv-moment-c i:nth-child(14) { left: 69%; animation-delay: 1.0s; } .bde-tv-moment-c i:nth-child(15) { left: 74%; animation-delay: 0.5s; } .bde-tv-moment-c i:nth-child(16) { left: 79%; animation-delay: 2.2s; } .bde-tv-moment-c i:nth-child(17) { left: 84%; animation-delay: 1.4s; } .bde-tv-moment-c i:nth-child(18) { left: 89%; animation-delay: 0.3s; } .bde-tv-moment-c i:nth-child(19) { left: 94%; animation-delay: 1.8s; } .bde-tv-moment-c i:nth-child(20) { left: 97%; animation-delay: 0.9s; } .bde-tv-moment-c i:nth-child(n+21) { left: 50%; animation-delay: 2.9s; }
@keyframes bde-fall { from { transform: translateY(0) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
@keyframes bde-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes bde-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .bde-tv-moment, .bde-tv-moment-n { animation: none; } .bde-tv-moment-c { display: none; } }
/* ---------- Score sheets: QR code ---------- */
.bp-qr { display: flex; gap: 10px; align-items: center; margin: 6px 0; font-size: 11px; line-height: 1.3; }
.bp-qr svg { width: 22mm; height: 22mm; flex: none; }
.md-spon { display: flex; gap: 12px; align-items: center; }
.md-spon img, .md-spon-pre img { max-width: 90px; max-height: 50px; object-fit: contain; background: #fff; }
.bde-tile-head .bde-tile-time { margin-left: auto; margin-right: 8px; text-transform: none; font-family: system-ui, -apple-system, sans-serif; font-size: 13px; line-height: 1.4; }
.bde-tv .bde-tile-head .bde-tile-time { font-size: 1.3vw; }

/* ---------- Results: share cards, My record, match details ---------- */
.bde-share { margin: 4px 0; }
.bde-card-sheet { position: fixed; inset: 0; z-index: 99996; background: rgba(0,0,0,0.6); display: flex; align-items: center; justify-content: center; padding: 16px; }
.bde-card-box { background: #fff; padding: 14px; max-width: 420px; width: 100%; display: flex; flex-direction: column; gap: 12px; max-height: 94vh; overflow: auto; }
.bde-card-box img { width: 100%; height: auto; display: block; border: 2px solid var(--black, #231F20); }
.bde-card-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.bde-card-btns .btn { text-decoration: none; text-align: center; flex: 1 1 auto; }
.bde-card-tip { margin: 0; font-size: 14px; color: #5b5b5b; }
.bde-rec-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 8px 0 14px; }
.bde-rec-stats div { background: var(--black, #231F20); color: #fff; padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.bde-rec-stats b { font-size: 28px; line-height: 1; color: var(--lime, #D9F24B); }
.bde-rec-stats span { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.bde-medals { list-style: none; margin: 6px 0 14px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bde-medal { display: flex; gap: 12px; align-items: center; padding: 10px 12px; background: #fff; border: 2px solid var(--black, #231F20); }
.bde-medal > span:nth-child(2) { flex: 1; min-width: 0; }
.bde-medal-dot { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: var(--black, #231F20); border: 3px solid rgba(0,0,0,0.25); }
.bde-medal--1 .bde-medal-dot { background: #F2CF4A; } .bde-medal--2 .bde-medal-dot { background: #D9DEE5; } .bde-medal--3 .bde-medal-dot { background: #D9955A; }
.bde-rec-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.bde-rec-list { list-style: none; margin: 6px 0 14px; padding: 0; }
.bde-rec-list li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid #E4E4DE; }
.bde-rec-recent { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.bde-rec-recent li { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 8px 10px; background: #fff; border-left: 5px solid #E4E4DE; }
.bde-rec-recent li.is-w { border-left-color: var(--lime, #D9F24B); } .bde-rec-recent li.is-l { border-left-color: #A3320B; }
.bde-rec-recent li > span:last-child { flex-basis: 100%; }
.bde-mi { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.bde-mi-side { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border: 2px solid #E4E4DE; font-weight: 600; }
.bde-mi-side.is-won { border-color: var(--black, #231F20); background: #FCFEF2; }
.bde-mi-side b { background: var(--lime, #D9F24B); padding: 0 8px; }
.bde-mi-vs { text-align: center; font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: #5b5b5b; }
.bde-mi-games { width: 100%; border-collapse: collapse; margin: 6px 0; }
.bde-mi-games th, .bde-mi-games td { padding: 6px; border-bottom: 1px solid #E4E4DE; text-align: center; }
.bde-mi-games th:first-child { text-align: left; }
.bde-mi-next { font-weight: 700; }
.bde-mi-list { margin: 4px 0; padding-left: 18px; }
.bde-bk-m[data-match], .bde-mr[data-match], .bde-tile[data-match] { cursor: pointer; }

/* 0.18 / 0.19: partner finder and survey */
.md-pt { margin: 14px 0 4px; border: 2px solid #231F20; background: #fff; }
.md-pt > summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; font-weight: 800; }
.md-pt > summary::-webkit-details-marker { display: none; }
.md-pt > summary::after { content: '+'; font-size: 22px; line-height: 1; margin-left: 4px; }
.md-pt[open] > summary::after { content: '\2212'; }
.md-pt > summary > span:first-child { flex: 1; }
.md-pt-count { font-size: .85em; font-weight: 700; color: #2c4a00; background: #e9f7c9; border-radius: 999px; padding: 2px 10px; }
.md-pt > :not(summary) { margin-left: 14px; margin-right: 14px; }
.md-pt > :last-child { margin-bottom: 14px; }
.md-pt ul { list-style: none; padding-left: 0; margin-top: 0; }
.md-pt-row { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-top: 1px solid rgba(0,0,0,.08); }
.md-pt-row > div { flex: 1; min-width: 0; }
.md-pt-skill { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: #e9f7c9; color: #2c4a00; font-size: .8em; font-weight: 700; }
.md-pt .md-row input { flex: 1 1 140px; min-width: 0; }
.bde-top-find { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 2px solid rgba(243,245,240,.5); color: var(--off, #F3F5F0); border-radius: 999px; padding: 5px 12px 5px 9px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.bde-top-find svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.bde-top-find.is-on, .bde-top-find:hover { border-color: var(--lime, #D9F24B); color: var(--lime, #D9F24B); }
.md-setup-in { padding: 0 16px 16px; }
.md-setup-in > .bde-block { margin-top: 18px; }
.md-setlink { margin-top: 18px; }
.md-sv fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.md-sv legend { font-weight: 700; margin-bottom: 6px; }
.md-stars { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.md-stars input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.md-stars label { font-size: 40px; line-height: 1; color: #cfd6cc; cursor: pointer; transition: color .12s, transform .12s; }
.md-stars input:checked ~ label, .md-stars label:hover, .md-stars label:hover ~ label { color: #f5b301; }
.md-stars input:focus-visible + label { outline: 2px solid #1f6f3f; outline-offset: 2px; border-radius: 4px; }
.md-stars label:active { transform: scale(.9); }
.md-sv-pill input { position: absolute; opacity: 0; }
.md-sv-pill span { display: inline-block; padding: 8px 18px; border-radius: 999px; border: 2px solid #cfd6cc; font-weight: 700; cursor: pointer; }
.md-sv-pill input:checked + span { background: #1f6f3f; border-color: #1f6f3f; color: #fff; }
.md-sv-pill input:focus-visible + span { outline: 2px solid #1f6f3f; outline-offset: 2px; }
.md-sv-thanks { font-size: 1.1em; }
.md-sv-bars { max-width: 360px; margin: 8px 0 12px; }
.md-sv-bar { display: grid; grid-template-columns: 34px 1fr 28px; align-items: center; gap: 8px; font-size: .9em; }
.md-sv-bar i { display: block; height: 10px; border-radius: 6px; background: #f5b301; min-width: 2px; }
.md-sv-bar b { text-align: right; }
.md-sv-list { margin: 6px 0 10px; padding-left: 20px; }
.md-sv-list li { margin: 4px 0; }

/* 0.19.1: "Saved" on a match that just finished, the score sent line, the notification ask */
.md-card--saved { border-color: #5d8f12; }
.md-saved { margin-top: 12px; padding: 12px 14px; background: #e9f7c9; border-left: 5px solid #5d8f12; }
.md-saved strong { display: block; font-size: 1.1em; }
.md-saved span { display: block; font-size: .9em; color: #2c4a00; margin-top: 2px; }
.md-sent { padding: 10px 12px; background: #e9f7c9; border-left: 5px solid #5d8f12; }
.md-askbox:empty { display: none; }
.md-askbox .bdk-ask { margin-bottom: 14px; }
.bds-ask { margin: 14px 0; }
.bds-ask-note { margin: 14px 0; padding: 10px 12px; background: #f4fbe3; border-left: 5px solid #9cc93a; }
