:root {
  color-scheme:light; font:16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif;
  --ink:#19251e; --muted:#516156; --forest:#174635; --surface:#fff; --line:#d7e1d8; --bg:#f4f7f2;
  color:var(--ink); background:var(--bg);
}
*,*::before,*::after {box-sizing:border-box}
[hidden] {display:none!important}
body {margin:0}
.shell {width:min(980px,calc(100% - 44px)); margin-inline:auto}
.top {border-bottom:1px solid var(--line); background:#fcfdfb}
.header,.header-tools,.head-actions,.session,.inline {display:flex; align-items:center; gap:10px; flex-wrap:wrap}
.header {justify-content:space-between; min-height:64px}
.brand {display:inline-flex; align-items:center; gap:9px; color:var(--forest); font-size:1.08rem; font-weight:760; text-decoration:none}
.mark {display:grid; place-items:center; width:28px; height:28px; background:var(--forest); border-radius:7px; color:#e6f2c2}
.state {display:inline-block;max-width:100%;border:1px solid transparent;border-radius:7px;padding:2px 6px;font-size:.78rem;font-weight:700;color:#394852;background:#edf0f2;overflow-wrap:anywhere}
.state--searching {background:#f8fafb;border-color:#778591}
.state--progress {background:#e7f0fa;color:#234a73}
.state--action {background:#fff0c9;color:#633900}
.state--success {background:#e1f0e2;color:#215432}
.state--intervention {background:#fbe7e5;color:#7a2e27}
.metadata-line {display:flex;flex-wrap:wrap;align-items:center;gap:5px 8px;overflow-wrap:anywhere}
main {padding-top:27px; padding-bottom:22px; min-height:72vh}
h1,h2,p {margin:0}
h1,h2 {line-height:1.17; letter-spacing:-.027em}
h1 {font-size:clamp(1.95rem,4.3vw,3rem); overflow-wrap:anywhere}
h2 {font-size:1.23rem}
p,small {color:var(--muted)}
p {max-width:72ch}
small {font-size:.85rem}
a {color:var(--forest)}
:focus-visible {outline:3px solid #2163b0; outline-offset:3px}
.page-head,.event-head {margin-bottom:22px}
.page-head p,.event-head p {margin-top:6px}
.event-head {display:flex; justify-content:space-between; align-items:end; gap:12px; flex-wrap:wrap}
.event-head .kicker,.kicker {margin:0 0 5px; text-transform:uppercase; letter-spacing:.09em; font-size:.77rem; font-weight:760; color:var(--forest)}
.card {min-width:0; background:var(--surface); border:1px solid var(--line); border-radius:12px; padding:17px; margin-bottom:12px}
.columns {display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); gap:12px; align-items:start}
.results {grid-template-columns:repeat(2,minmax(0,1fr))}
.sample {background:#eef5e9; display:grid; gap:9px; justify-items:start}
.narrow {max-width:680px}
.stack {display:grid; gap:12px}
.block {margin:18px 0}
.block>h2,.block>p {margin-bottom:8px}
.split {display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px}
label {display:grid; gap:4px; font-size:.9rem; font-weight:650}
input,select,button,textarea {font:inherit}
input:not([type=checkbox]),select {width:100%; min-width:0; min-height:43px; padding:7px 9px; border:1px solid #a8b9ab; border-radius:7px; background:#fff; color:var(--ink)}
input[type=checkbox] {width:19px; height:19px; accent-color:var(--forest); flex:none}
fieldset {margin:0; min-width:0; padding:8px 10px; border:1px solid var(--line); border-radius:8px}
legend {padding:0 5px; font-weight:700; font-size:.9rem}
.player-fields {display:grid; gap:9px}
.checks {display:flex; flex-wrap:wrap; gap:4px 12px}
.check {display:flex; align-items:center; gap:7px; min-height:40px}
.check>span {overflow-wrap:anywhere}
.btn,.small {min-height:43px; display:inline-flex; align-items:center; justify-content:center; border:1px solid var(--forest);
  border-radius:8px; background:var(--forest); color:white; padding:7px 12px; cursor:pointer; font-size:.88rem; font-weight:720; text-align:center; text-decoration:none}
.btn:hover {background:#225941}
.btn.secondary,.small {background:white; color:var(--forest); border-color:#a8b9ab}
.btn.secondary:hover,.small:hover {background:#e9f2e9}
.small {padding-inline:9px; min-width:41px}
.btn.text-button {background:transparent; color:var(--forest); border-color:transparent; text-decoration:underline}
.btn.text-button:hover {background:#edf4ed}
summary {cursor:pointer; font-weight:720; padding:5px 0; min-height:36px}
summary small {margin-left:5px}
details>p {margin-bottom:7px}
.disclosure[open]>summary {margin-bottom:8px}
.profile-deletion,.profile-settings-section {margin-top:16px;padding-top:12px;border-top:1px solid var(--line)}
.tournament-email-settings {border-top:1px solid var(--line);margin-top:18px;padding-top:16px}
.row,.link-row {display:flex; align-items:end; flex-wrap:wrap; gap:8px}
.row label,.link-row input {flex:1 1 195px}
.link-result {display:grid; justify-items:start; gap:5px; padding:10px; border-radius:8px; background:#eef5ea}
.table-wrap {overflow:auto}
table {width:100%; border-collapse:collapse; font-size:.88rem}
th,td {padding:7px 5px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line); overflow-wrap:anywhere}
th {color:var(--muted); font-size:.78rem}
th:last-child,td:last-child {min-width:75px}
.plain,.roster,.conversation ul {margin:0; padding:0; list-style:none}
.plain li,.roster li {display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; padding:6px 0; border-bottom:1px solid var(--line)}
.roster span,.session {font-size:.9rem; color:var(--muted)}
.pair-list {margin-bottom:8px}
.pair-row {display:flex; justify-content:space-between; align-items:center; gap:8px; flex-wrap:wrap; padding:7px 0; border-bottom:1px solid var(--line)}
.pair-row small {display:block}
.group-picker {display:flex; align-items:center; gap:6px; font-size:.83rem}
.group-picker select {width:auto}
.conversation {border-top:1px solid var(--line); margin-top:10px; padding-top:10px}
.conversation ul {display:grid; gap:6px; margin-bottom:8px; max-height:16rem; overflow-y:auto}
.conversation [data-do=new-messages] {margin-bottom:8px}
.conversation li {padding:7px 9px; background:#eff4ef; border-radius:6px; overflow-wrap:anywhere}
.conversation li>div {display:flex; justify-content:space-between; gap:6px; color:var(--muted); font-size:.79rem}
.note {font-size:.9rem; margin-block:12px}
.session {justify-content:space-between; margin-top:10px; border-top:1px solid var(--line); padding-top:6px}
.feedback {padding:8px 10px; border:1px solid #bdd2b9; background:#e9f4e6; color:#264631; border-radius:7px; margin-bottom:12px}
.feedback.problem {border-color:#e5bc96; background:#fff2e3; color:#673611}

.sr-only,.skip:not(:focus) {position:absolute; width:1px; height:1px; clip-path:inset(50%); overflow:hidden; white-space:nowrap}
.skip:focus {position:fixed; top:5px; left:5px; background:#fff; padding:7px; z-index:1}
@media(max-width:690px) {
  .shell {width:calc(100% - 26px)}
  .columns {grid-template-columns:minmax(0,1fr)}
  main {padding-top:18px}
}
@media(max-width:440px) {
  .split {grid-template-columns:minmax(0,1fr)}
  .card {padding:12px}
}
.group-form {margin-block:8px}

h3,h4 {margin:0; line-height:1.25}
h3 {font-size:1.03rem}
h4 {font-size:.95rem}
.reports {margin-block:24px}
.report-bar {display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:12px; margin-bottom:16px}
.report-event {margin-top:16px}
.report-event h3 {margin-bottom:8px}
.report-event h4 {margin-bottom:5px}
.report-contact {display:block; color:var(--muted); font-size:.81rem; overflow-wrap:anywhere}
.report-event td hr {border:0; border-top:1px solid var(--line); margin:6px 0}
.print-only {display:none}
.link-result {width:100%}
.link-result .link-row {width:100%}
.session-area {display:grid; gap:8px; margin-bottom:15px}
.inline-error {color:#762810; font-weight:700}
output:not(:empty) {display:block; color:var(--forest); font-size:.88rem; font-weight:650; margin-block:6px; padding-block:3px; overflow-wrap:anywhere}
output.inline-error {color:#762810}
.roster-player {padding-block:9px; border-bottom:1px solid var(--line)}
.roster-player details {margin-top:4px}
.work-area {padding:18px; margin-block:20px; border:1px solid var(--line); border-radius:13px}
.area-heading {margin-bottom:13px}
.area-heading p {margin-top:4px}
.conversations-area {background:#eaf1f7; border-color:#bccddb}
.candidates-area {background:#edf3e6; border-color:#c8d6bf}
.thread-row {background:#fff; padding:0 12px 6px; margin-bottom:7px; border:1px solid #ccd9e3; border-radius:5px}
.thread-row summary {padding:10px 0}
.thread-counts {display:inline-flex;flex-wrap:wrap;gap:5px;max-width:100%;margin-inline-start:7px;vertical-align:middle}
.proposal {border-top:1px solid var(--line); padding-bottom:5px}
.proposal .pair-row {border-bottom:0}
.candidate-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,25rem),1fr));gap:10px}
.candidate-card {display:flex;flex-direction:column;min-width:0;background:#fff;padding:13px;border:1px solid #c8d6bf;border-radius:11px;overflow-wrap:anywhere}
.candidate-option {display:flex;flex-direction:column;gap:8px;padding:10px 0;border-top:1px solid var(--line);margin-top:7px}
.candidate-option:last-child {flex:1}
.candidate-action {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,12rem),1fr));align-items:end;gap:var(--action-gap);margin-top:auto;padding-top:8px}
.candidate-action .btn,.candidate-action select {height:var(--control-height)}
.candidate-action .btn {white-space:normal}
.candidate-action>output {grid-column:1/-1}
.candidate-action>output:empty {display:none}
.candidate-outgoing {flex-basis:100%;font-size:.87rem}
.candidate-outgoing a {margin-inline-start:6px}
.closure-guidance {display:flex;flex-wrap:wrap;align-items:center;gap:var(--action-gap);font-size:.9rem;margin-block:8px 12px}
@media(max-width:690px) {
  .candidate-grid {grid-template-columns:minmax(0,1fr)}
  .work-area {padding:12px}
}
@media print {
  @page {margin:13mm}
  :root,body {background:#fff;color:#000;font:10pt/1.28 system-ui,sans-serif}
  .top,#request-status,.skip,.sr-only,main>*:not(.reports,.participant-print),.report-bar .inline,.reports button,
  .reports th:last-child,.reports td:last-child {display:none!important}
  .shell {width:100%}
  main,.reports {margin:0;padding:0;min-height:0}
  .print-only {display:block}
  .report-bar {display:block;margin-bottom:9pt}
  .report-event {margin-top:10pt}
  .report-event h3,.report-event h4 {break-after:avoid}
  .results {display:block}
  .results .card {border:0;border-radius:0;padding:0;margin:0 0 7pt}
  .table-wrap {overflow:visible}
  .reports thead {display:table-header-group}
  .reports tr {break-inside:avoid}
  .reports th,.reports td {color:#000;padding:3pt;border-color:#bbb}
  .report-contact {color:#222}
}

.proposal-actions {display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-block:6px}
.btn.danger {background:#fff;color:#812f25;border-color:#b77f77}
.btn.danger:hover {background:#f9ebe8}
.closure-reason {font-size:.9rem;margin-bottom:8px}
.group-form {display:grid;grid-template-columns:minmax(0,1fr) max-content;align-items:end;gap:8px}
.group-form select,.group-form .btn {height:43px}
.player-selector {max-width:26rem;margin-bottom:12px}
.roster-states {display:flex;flex-wrap:wrap;gap:5px;margin-top:4px}
@media(max-width:480px) {
  .group-form {grid-template-columns:minmax(0,1fr)}
  .group-form .btn {justify-self:start}
}
.candidate-filters {display:flex;align-items:end;gap:10px;flex-wrap:wrap;margin-bottom:12px}
.candidate-filters .player-selector {margin-bottom:0;flex:1 1 15rem}

:root {--control-height:44px; --action-gap:10px}
.btn,.small,input:not([type=checkbox]),select {min-height:var(--control-height)}
.inline,.row,.link-row,.head-actions,.proposal-actions {gap:var(--action-gap)}
.group-form select,.group-form .btn {height:var(--control-height)}
.row>* {min-width:0}
.head-actions {align-self:center}
.event-context {display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:8px;font-weight:650;color:var(--muted)}
.event-context+.event-context {margin-top:4px}
.event-actions {border-color:#d9b9b3;margin-top:20px}
.btn.danger {color:#842f25;border-color:#a96a63}
.btn.danger:hover {background:#f7e4e0;border-color:#842f25}
details.thread-row[open]>summary .thread-count {display:none}
.thread-row>summary strong {overflow-wrap:anywhere}
.proposal-history {padding:2px 10px 8px;color:var(--muted);font-size:.87rem}
.proposal-history summary {font-weight:600}
.proposal-history ul {margin:0 0 4px;padding-left:20px}
.contact-actions {display:grid;grid-template-columns:max-content minmax(0,1fr);gap:var(--action-gap);align-items:start;margin-top:12px;padding-top:8px;border-top:1px solid var(--line)}
.contact-actions details {padding:0 10px;border:1px solid var(--line);border-radius:8px}
.contact-actions summary {min-height:var(--control-height);padding-block:9px}
.contact-actions details[open] {padding-bottom:10px}
.contact-message dl {display:grid;grid-template-columns:auto minmax(0,1fr);gap:3px 10px;margin:4px 0}
.contact-message dd {margin:0;overflow-wrap:anywhere}
.confirmation-banner {display:flex;align-items:center;justify-content:space-between;gap:var(--action-gap);flex-wrap:wrap}
.report-results {display:grid;gap:10px}
.report-results .card {margin:0}
.report-paired {border-left:4px solid #6f9479;background:#eff7ed}
.report-unpaired {border-left:4px solid #80a3bb;background:#eef5fa}
.report-event {margin-top:20px}
.report-event+.report-event {border-top:1px solid var(--line);padding-top:16px}
.report-results th:last-child,.report-results td:last-child {width:1%;white-space:nowrap}
@media(max-width:580px) {
  .contact-actions {grid-template-columns:minmax(0,1fr)}
  .report-results th:last-child,.report-results td:last-child {white-space:normal}
  .head-actions {align-self:flex-start}
}
@media print {
  .report-results {display:block}
  .report-results .card {border:0;border-radius:0;padding:0;margin:0 0 7pt}
  .report-event+.report-event {padding-top:5pt}
}
#action-confirmation {width:min(100% - 32px,31rem);padding:20px;color:var(--ink);background:var(--surface);border:1px solid var(--line);border-radius:12px}
#action-confirmation::backdrop {background:#16251e66}
#confirmation-text {white-space:pre-line;overflow-wrap:anywhere}
.confirmation-actions {justify-content:flex-end}

.entry-options {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;align-items:start}
.entry-options .card {margin-bottom:0}
.returning-entry {border-top:3px solid #95b6c6}
.first-entry {border-top:3px solid #9eb491}
.entry-registration > summary {width:max-content;max-width:100%;margin:0}
.entry-registration[open] > summary {margin-bottom:12px}
.entry-registration > summary::-webkit-details-marker {display:none}
.entry-registration .entry-toggle-icon::after {content:'+';margin-inline-start:9px;font-weight:500}
.entry-registration[open] .entry-toggle-icon::after {content:'−'}
.access-help > summary {width:fit-content;max-width:100%;color:var(--muted);font-size:.9rem;font-weight:600;text-decoration:underline;text-underline-offset:.17em}
.access-help > .stack {padding:4px 0 8px}
.access-help p {color:var(--muted)}
.roster-list {display:grid;gap:10px}
.roster-player {padding:12px;border:1px solid var(--line);border-radius:9px;background:#fbfcfa}
.roster-header {display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:4px}
.roster-header h3 {overflow-wrap:anywhere}
.roster-header .btn {flex:none;font-weight:600}
.roster-edit {margin-top:12px;padding-top:12px;border-top:1px solid var(--line)}
.roster-add {margin-top:4px}
.candidate-needs {margin-bottom:12px;padding:10px 12px;border:1px solid #cbd7c5;border-radius:8px;background:#f7faf4}
.candidate-needs ul {list-style:none;padding:0;margin:6px 0 0}
.candidate-needs li {display:flex;align-items:center;gap:5px 10px;flex-wrap:wrap;padding:5px 0}
.candidate-needs li+li {border-top:1px solid #dce5d8}
.section-feedback output:not(:empty) {margin-bottom:8px}
#live-notices {position:fixed;z-index:2;right:16px;bottom:16px;width:min(28rem,calc(100vw - 32px))}
.edge-notice {padding:12px 14px;border:1px solid #9cba9e;border-radius:10px;background:#f6fbf4;box-shadow:0 4px 16px #213b2b26}
.edge-notice p {color:var(--ink)}
.edge-notice p+p {margin-top:6px}
.edge-notice .inline {justify-content:space-between;margin-top:4px}
main:has(.edge-notice) {padding-bottom:9rem}
@media(max-width:680px) {
  .entry-options {grid-template-columns:minmax(0,1fr)}
}
@media print {
  #live-notices {display:none}
  main:has(.edge-notice) {padding-bottom:0}
}

textarea {width:100%;min-width:0;min-height:5rem;padding:8px 9px;border:1px solid #a8b9ab;border-radius:7px;background:#fff;color:var(--ink);resize:vertical}
.player-bio {margin-block:7px;color:var(--muted)}
.player-bio p {white-space:pre-wrap;overflow-wrap:anywhere}
.candidate-filters select,.candidate-action select,.group-form select {
  appearance:none;
  height:var(--control-height);
  padding-inline-end:32px;
  background-image:linear-gradient(45deg,transparent 50%,var(--forest) 50%),linear-gradient(135deg,var(--forest) 50%,transparent 50%);
  background-position:right 16px center,right 11px center;
  background-size:5px 5px;
  background-repeat:no-repeat;
}
.candidate-filters [data-discipline-filter]:empty {display:none}
.candidate-filters [data-discipline-filter] {flex:0 1 15rem}
.message-form output:not(:empty),.contact-request output:not(:empty) {margin-block:8px}
.deadline-fields {align-items:start}
@media(max-width:480px) {
  .candidate-filters {display:grid;grid-template-columns:minmax(0,1fr)}
  .candidate-filters .player-selector {max-width:none}
}
@media print {
  .report-results .card {background:#fff}
}

.tournament-list li {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px 20px}
.tournament-list li>div {overflow-wrap:anywhere}
#request-status.problem {color:#673611}
#request-status:not(:empty) {position:fixed;z-index:3;right:16px;bottom:16px;max-width:calc(100% - 32px);margin:0;padding:8px 10px}
@media(max-width:580px) {
  .tournament-list li {grid-template-columns:minmax(0,1fr);justify-items:start}
}


.manager-list>.manager-row {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;padding-block:10px}
.manager-heading {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;overflow-wrap:anywhere}
.manager-requests {padding-inline-start:12px;border-inline-start:2px solid var(--line)}
.manager-requests>li:last-child {border-bottom:0}
.confirmed-pairs {display:grid;gap:10px;list-style:none;margin:9px 0 0;padding:0}
.confirmed-pair {background:var(--surface);border:1px solid #a8b9ab;border-radius:8px;padding:12px;overflow-wrap:anywhere}
.confirmed-players {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.confirmed-details {display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 12px;border-top:1px solid var(--line);margin-top:10px;padding-top:10px}
.confirmed-details p {font-size:.85rem}
.partner-bio {margin:4px 0 0;padding:3px 0 3px 10px;border-inline-start:2px solid #b5c5b7}
.partner-bio>strong {color:var(--ink);font-size:.85rem}
.partner-bio p {margin-top:2px}
.proposal>.partner-bio+.proposal-actions {margin-top:16px}
@media screen and (max-width:580px) {
  .confirmed-players {grid-template-columns:minmax(0,1fr);gap:8px}
  .confirmed-players>div+div {padding-top:8px;border-top:1px solid var(--line)}
}
@media print {
  .confirmed-pairs {display:block;margin-top:4pt}
  .confirmed-pair {break-inside:avoid;border:0;border-top:1pt solid #555;border-radius:0;padding:6pt 0;margin-bottom:4pt}
  .confirmed-details {margin-top:4pt;padding-top:0;border:0}
}

.pending-requests h3 {margin-bottom:4px}
.pending-requests .plain li:last-child {border-bottom:0}

.registration-notice {padding:9px 12px;border-inline-start:2px solid #a8b9ab;background:#f4f7f2;font-size:.88rem}

.roster-heading {display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap}
.roster-heading [data-participant-print-button]:empty {display:none}
.pair-date {font-size:.86rem}
@media print {
  .participant-print h1 {font-size:17pt;margin-bottom:4pt}
  .participant-print h2 {font-size:11pt;margin-bottom:4pt}
  .participant-print .confirmed-pair>p {margin-top:4pt}
}
