/* ONOCHI Auto Draw v1.0.0: screen-only responsive interface.
   Preserve print page dimensions, bracket coordinates and saved results. */
@media screen {
 .onochi-auto-draw-wrap,.onochi-auto-draw-public-wrap,.onochi-auto-draw-event-tabs,.onochi-auto-draw-event-tab-panel {box-sizing:border-box;min-width:0;max-width:100%;}
 .onochi-auto-draw-wrap {width:100%;padding:0 clamp(8px,1.5vw,22px);margin:12px auto;}
 .onochi-auto-draw-wrap *, .onochi-auto-draw-public-wrap * {box-sizing:border-box;}
 .onochi-auto-draw-panel {min-width:0;max-width:100%;padding:clamp(10px,1.6vw,20px);}
 .onochi-auto-draw-wrap h2,.onochi-auto-draw-wrap h3,.onochi-auto-draw-wrap h4 {overflow-wrap:anywhere;line-height:1.4;}
 .onochi-auto-draw-form {display:flex;flex-wrap:wrap;gap:12px 16px;align-items:flex-end;max-width:100%;}
 .onochi-auto-draw-form>label {display:flex;flex:1 1 185px;min-width:0;max-width:100%;flex-direction:column;align-items:stretch;justify-content:flex-end;gap:6px;margin:0!important;line-height:1.45;overflow-wrap:anywhere;}
 .onochi-auto-draw-form>label:has(>input[type=checkbox]),.onochi-auto-draw-form>label:has(>input[type=radio]) {flex-direction:row;align-items:center;justify-content:flex-start;flex:0 1 auto;min-height:38px;}
 .onochi-auto-draw-form>label>input:not([type=checkbox]):not([type=radio]),.onochi-auto-draw-form>label>select,.onochi-auto-draw-form>label>textarea {display:block;width:100%;min-width:0;max-width:100%;min-height:38px;margin:0;}
 .onochi-auto-draw-form>label>textarea {min-height:90px;resize:vertical;}
 .onochi-auto-draw-form>button,.onochi-auto-draw-form>.button {min-height:38px;white-space:normal;text-align:center;margin:0;}
 .onochi-auto-draw-form>input:not([type=hidden]),.onochi-auto-draw-form>select,.onochi-auto-draw-form>textarea {max-width:100%;min-height:38px;}
 .onochi-auto-draw-form>p,.onochi-auto-draw-form>div,.onochi-auto-draw-form>fieldset {max-width:100%;min-width:0;}
 .onochi-auto-draw-flex,.onochi-auto-draw-mountain-controls,.onochi-auto-draw-league-display-controls,.onochi-auto-draw-print-actions {display:flex;flex-wrap:wrap;gap:10px 14px;align-items:center;max-width:100%;}
 .onochi-auto-draw-league-display-controls label,.onochi-auto-draw-mountain-controls label,.onochi-auto-draw-print-actions label {display:inline-flex;flex-wrap:wrap;align-items:center;gap:6px;min-width:0;}
 .onochi-auto-draw-league-display-controls select,.onochi-auto-draw-mountain-controls select,.onochi-auto-draw-print-actions select {min-height:36px;max-width:100%;}
 .onochi-auto-draw-manual-rank {max-width:100%;min-width:0;margin:12px 0;padding:12px;border:1px solid #d8dee6;border-radius:7px;}
 .onochi-auto-draw-manual-rank summary {cursor:pointer;font-weight:600;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form {align-items:stretch;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form>label {display:flex!important;flex:1 1 185px;min-width:0;flex-direction:column;align-items:stretch!important;gap:6px!important;margin:0!important;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form>label select {width:100%;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form>p {flex:1 1 100%;margin:2px 0;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form>p label {display:inline-flex;gap:8px;align-items:center;}
 .onochi-auto-draw-table {max-width:100%;}
 .onochi-auto-draw-league-scroll,.onochi-auto-draw-bracket-svg-scroll,.onochi-auto-draw-print-tree {max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch;}
 .onochi-auto-draw-league-results {width:max-content;min-width:100%;}
 .onochi-auto-draw-tab-bar {max-width:100%;overflow-x:auto;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;}
 .onochi-auto-draw-event-tab {min-height:42px;}
 .onochi-auto-draw-flow-grid,.onochi-auto-draw-league-swap-grid,.onochi-auto-draw-mountain-players {min-width:0;}
 .onochi-auto-draw-result-editor,.onochi-auto-draw-print-overlay {padding:clamp(6px,2vw,18px);}
 .onochi-auto-draw-result-dialog {width:min(100%,620px);max-height:calc(100dvh - 20px);padding:clamp(12px,2vw,24px);overflow-y:auto;}
 .onochi-auto-draw-result-dialog .onochi-auto-draw-form {align-items:stretch;}
 .onochi-auto-draw-result-dialog input,.onochi-auto-draw-result-dialog select,.onochi-auto-draw-result-dialog textarea {max-width:100%;}
 .onochi-auto-draw-score-options {display:flex;flex-wrap:wrap;gap:8px;}
 .onochi-auto-draw-score-options label {display:inline-flex;align-items:center;gap:6px;min-height:38px;}
 .onochi-auto-draw-print-dialog {width:min(98vw,1250px);max-height:calc(100dvh - 12px);padding:clamp(6px,1.5vw,16px);}
 .onochi-auto-draw-print-actions {top:0;}
 .onochi-auto-draw-print-page.onochi-auto-draw-national-page {max-width:100%!important;}
}
@media screen and (min-width: 1100px) {
 .onochi-auto-draw-form>label {flex-basis:210px;}
 .onochi-auto-draw-form>label:has(>textarea) {flex-basis:350px;}
 .onochi-auto-draw-flow-grid {grid-template-columns:repeat(auto-fit,minmax(220px,1fr));}
}
@media screen and (min-width: 701px) and (max-width: 1099px) {
 .onochi-auto-draw-form>label {flex-basis:calc(33.333% - 16px);}
 .onochi-auto-draw-form>label:has(>textarea) {flex-basis:calc(66.666% - 16px);}
 .onochi-auto-draw-flow-grid {grid-template-columns:repeat(auto-fit,minmax(180px,1fr));}
 .onochi-auto-draw-mountain-players {grid-template-columns:repeat(auto-fit,minmax(145px,1fr));}
}
@media screen and (max-width: 700px) {
 .onochi-auto-draw-wrap {margin:8px auto;padding:0 8px;}
 .onochi-auto-draw-panel {padding:10px;margin:10px 0;}
 .onochi-auto-draw-form {gap:10px;}
 .onochi-auto-draw-form>label {flex:1 1 calc(50% - 10px);}
 .onochi-auto-draw-form>label:has(>textarea),.onochi-auto-draw-form>label:has(>input[type=file]) {flex-basis:100%;}
 .onochi-auto-draw-manual-rank .onochi-auto-draw-form>label {flex-basis:calc(50% - 10px);}
 .onochi-auto-draw-tab-bar {gap:3px;margin-top:10px;}
 .onochi-auto-draw-event-tab {padding:8px 11px;white-space:normal;min-width:95px;flex:0 0 auto;}
 .onochi-auto-draw-league-display-controls label,.onochi-auto-draw-mountain-controls label {flex:1 1 135px;justify-content:space-between;}
 .onochi-auto-draw-league-display-controls select,.onochi-auto-draw-mountain-controls select {flex:1 1 auto;min-width:72px;}
 .onochi-auto-draw-result-dialog {padding:12px;max-height:calc(100dvh - 12px);}
 .onochi-auto-draw-score-options {gap:5px;}
 .onochi-auto-draw-print-actions {gap:7px;}
 .onochi-auto-draw-print-actions>strong {flex:1 1 100%;}
 .onochi-auto-draw-flow-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,155px),1fr));}
 .onochi-auto-draw-mountain-players {grid-template-columns:repeat(auto-fit,minmax(min(100%,130px),1fr));}
}
@media screen and (max-width: 420px) {
 .onochi-auto-draw-form>label,.onochi-auto-draw-manual-rank .onochi-auto-draw-form>label {flex-basis:100%;}
 .onochi-auto-draw-form>label:has(>input[type=checkbox]),.onochi-auto-draw-form>label:has(>input[type=radio]) {flex-basis:100%;}
 .onochi-auto-draw-form>button,.onochi-auto-draw-form>.button {width:100%;}
 .onochi-auto-draw-league-display-controls label,.onochi-auto-draw-mountain-controls label {flex-basis:100%;}
 .onochi-auto-draw-flow-grid {grid-template-columns:1fr;}
 .onochi-auto-draw-result-dialog .button {max-width:100%;white-space:normal;}
}
@media print {
 /* Keep the pre-existing A4/SVG page layout unchanged. */
}

/* v0.2.89: long team/player names never share a row with score inputs. */
@media screen {
 .onochi-auto-draw-form:has(>.onochi-auto-draw-match-entry) {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;margin:12px 0 22px;}
 .onochi-auto-draw-form>.onochi-auto-draw-match-entry {width:100%;min-width:0;max-width:100%;display:grid;gap:9px;}
 .onochi-auto-draw-match-title {font-weight:650;line-height:1.55;overflow-wrap:anywhere;word-break:normal;}
 .onochi-auto-draw-match-score-fields {display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);align-items:end;gap:8px;min-width:0;max-width:100%;}
 .onochi-auto-draw-match-score-fields>label {display:flex;flex-direction:column;align-items:stretch;min-width:0;gap:5px;line-height:1.45;overflow-wrap:anywhere;}
 .onochi-auto-draw-match-score-fields>label>span {display:block;min-width:0;overflow-wrap:anywhere;font-size:13px;color:#475467;}
 .onochi-auto-draw-match-score-fields input[type=number] {display:block;width:100%;min-width:0;max-width:100%;height:42px;padding:6px 8px;margin:0;text-align:center;font-size:16px;}
 .onochi-auto-draw-match-separator {align-self:end;height:42px;display:flex;align-items:center;justify-content:center;font-weight:700;}
 .onochi-auto-draw-form:has(>.onochi-auto-draw-match-entry)>button[type=submit] {width:100%;min-height:44px;margin:0;}
 .onochi-auto-draw-result-dialog .onochi-auto-draw-form>label:not(:has(input[type=checkbox])):not(:has(input[type=radio])) {display:flex;flex-direction:column;align-items:stretch;gap:6px;flex-basis:100%;min-width:0;overflow-wrap:anywhere;}
 .onochi-auto-draw-result-dialog .onochi-auto-draw-form>label>input[type=number] {display:block;width:100%;max-width:100%;min-height:42px;margin:0;}
}
@media screen and (max-width:420px) {
 .onochi-auto-draw-match-score-fields {gap:6px;}
 .onochi-auto-draw-match-score-fields>label>span {font-size:12px;}
}

/* Release UI: consistent navigation, information hierarchy, form grids and controls.
   All overrides are screen-only; A4 print measurements remain untouched. */
@media screen {
 .onochi-auto-draw-wrap.onochi-auto-draw-admin-screen,.onochi-auto-draw-wrap.onochi-auto-draw-operation-screen,.onochi-auto-draw-wrap.onochi-auto-draw-settings-screen {max-width:1380px;margin:16px auto 36px;}
 .onochi-auto-draw-wrap h1 {font-size:clamp(23px,2vw,30px);font-weight:700;line-height:1.35;margin:6px 0 12px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-intro {margin:14px 0 18px;color:#475467;font-size:14px;line-height:1.7;}
 .onochi-auto-draw-wrap .onochi-auto-draw-panel {border-color:#d3dae4;box-shadow:0 1px 3px rgba(15,23,42,.04);margin:16px 0;padding:clamp(15px,1.75vw,24px);}
 .onochi-auto-draw-wrap .onochi-auto-draw-panel>h2:first-child,.onochi-auto-draw-wrap .onochi-auto-draw-panel>h3:first-child {margin:0 0 15px;font-size:clamp(17px,1.5vw,20px);}
 .onochi-auto-draw-wrap .onochi-auto-draw-panel>p {line-height:1.7;}
 .onochi-auto-draw-wrap .onochi-auto-draw-section-heading {margin:30px 0 12px;font-size:20px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-muted {line-height:1.6;}
 .onochi-auto-draw-wrap .onochi-auto-draw-notice {margin:14px 0;padding:2px 12px;}
 .onochi-auto-draw-admin-nav {display:flex;flex-wrap:wrap;gap:8px;align-items:stretch;border-bottom:1px solid #cbd5e1;padding:0 0 11px;margin:12px 0 16px;}
 .onochi-auto-draw-admin-nav-link {display:inline-flex;align-items:center;justify-content:center;text-decoration:none;min-width:125px;min-height:42px;padding:9px 17px;border:1px solid #cbd5e1;border-radius:7px;background:#fff;color:#334155;font-size:14px;font-weight:700;}
 .onochi-auto-draw-admin-nav-link:hover,.onochi-auto-draw-admin-nav-link:focus-visible {background:#eff6ff;border-color:#2271b1;color:#135e96;}
 .onochi-auto-draw-admin-nav-link.is-active {color:#fff;background:#2271b1;border-color:#2271b1;box-shadow:0 1px 3px #0f172a16;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form>button,.onochi-auto-draw-wrap .onochi-auto-draw-form>.button {min-height:42px;padding:6px 17px;display:inline-flex;align-items:center;justify-content:center;line-height:1.35;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form>label>input:not([type=checkbox]):not([type=radio]),
 .onochi-auto-draw-wrap .onochi-auto-draw-form>label>select {min-height:42px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form>label>input[type=checkbox] {width:17px;height:17px;margin:0 7px 0 0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form>label[hidden],.onochi-auto-draw-wrap .onochi-auto-draw-form>*[hidden] {display:none!important;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form label {font-weight:550;color:#334155;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form>label>textarea {font-weight:400;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector {display:grid;grid-template-columns:minmax(140px,230px) minmax(260px,1fr) max-content;align-items:end;gap:12px;max-width:1050px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector>label {flex:none;min-width:0;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector>button {min-width:145px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-selector-note {margin:11px 0 0;font-size:13px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-selector-note a {margin-left:7px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-grid {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:6px 0 15px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-grid>p {display:flex;flex-direction:column;gap:6px;margin:0;padding:12px 15px;border:1px solid #e2e8f0;border-radius:6px;background:#f8fafc;overflow-wrap:anywhere;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-label {font-size:12px;color:#64748b;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-grid strong {font-size:15px;font-weight:650;line-height:1.5;}
 .onochi-auto-draw-wrap .onochi-auto-draw-shortcode {margin:13px 0;overflow-wrap:anywhere;}
 .onochi-auto-draw-wrap .onochi-auto-draw-shortcode code {display:inline-block;padding:5px 9px;margin:2px 0;white-space:normal;}
 .onochi-auto-draw-wrap .onochi-auto-draw-action-row {margin:15px 0 0;display:flex;flex-wrap:wrap;gap:10px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-action-row .button {min-height:40px;display:inline-flex;align-items:center;padding:5px 15px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-basic-settings {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:16px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-setting-block {padding:14px 16px;border:1px solid #dbe3ec;border-radius:7px;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-setting-block>h3 {font-size:15px;margin:0 0 12px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_tournament_date,
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-publish {display:grid;grid-template-columns:minmax(0,1fr) max-content;gap:12px;align-items:end;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_tournament_date>label,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-publish>label {width:100%;min-width:0;flex:none;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-publish>label {justify-content:flex-start;align-self:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create {display:grid;grid-template-columns:minmax(220px,1fr) minmax(160px,220px) max-content max-content;gap:12px;align-items:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create>label {width:100%;min-width:0;flex:none;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event {display:grid;grid-template-columns:minmax(215px,1.4fr) minmax(145px,.75fr) minmax(240px,1.3fr) minmax(130px,.65fr);gap:12px;align-items:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event>label {flex:none;width:100%;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event>button {grid-column:1/-1;justify-self:start;min-width:160px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_fiscal_month {display:grid;grid-template-columns:minmax(150px,210px) max-content;align-items:end;gap:12px;max-width:500px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_fiscal_month>label {width:100%;min-width:0;flex:none;}
 .onochi-auto-draw-wrap .onochi-auto-draw-settings-example {margin:15px 0 0;max-width:800px;font-size:13px;}
 .onochi-auto-draw-wrap details.onochi-auto-draw-danger-zone {border-color:#e8b1ac;background:#fffafa;}
 .onochi-auto-draw-wrap details.onochi-auto-draw-danger-zone>summary {cursor:pointer;color:#a51e16;font-weight:700;list-style-position:inside;min-height:25px;}
 .onochi-auto-draw-wrap details.onochi-auto-draw-danger-zone[open]>summary {margin-bottom:14px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-purge>label {flex:0 1 320px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-delete_event>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-delete_tournament>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-purge>button {background:#b42318;border-color:#b42318;color:#fff;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-delete_event>button:hover,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-delete_tournament>button:hover,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-purge>button:hover {background:#8f1f17;border-color:#8f1f17;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-configure_bracket {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,200px),1fr));gap:12px;align-items:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-configure_bracket>label {width:100%;flex:none;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-configure_bracket>button {justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals {display:grid;grid-template-columns:minmax(180px,260px) minmax(0,1fr);gap:12px;align-items:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals>label {flex:none;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals>p,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals>.onochi-auto-draw-custom-finals {grid-column:1/-1;margin:3px 0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals>button {grid-column:1/-1;justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-custom-finals {width:100%;min-width:0;padding:15px;border:1px solid #d5dce5;border-radius:7px;background:#f8fafc;}
 .onochi-auto-draw-wrap .onochi-auto-draw-custom-finals>label {display:flex;flex-direction:column;align-items:flex-start;gap:10px;line-height:1.5;}
 .onochi-auto-draw-wrap .onochi-auto-draw-custom-finals .onochi-auto-draw-rank-groups-input {width:min(100%,760px)!important;min-height:44px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-custom-finals .onochi-auto-draw-rank-preset {min-height:39px;padding:5px 14px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-custom-finals .onochi-auto-draw-flex {gap:8px;margin:10px 0 2px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-entries {display:grid;grid-template-columns:minmax(0,1fr);gap:10px;max-width:850px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-entries>label {width:100%;flex:none;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-entries>label>textarea {min-height:170px;max-width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-entries>button {justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:12px;align-items:stretch;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster>fieldset {width:100%;padding:12px;border:1px solid #d8dee6;border-radius:6px;display:flex;flex-direction:column;gap:8px;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster>fieldset>label {display:flex;flex-direction:column;gap:5px;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster>fieldset>label>input {display:block;width:100%;min-height:39px;min-width:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster>button {grid-column:1/-1;justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-withdrawals,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_affiliations {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:10px;align-items:center;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-withdrawals>label,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_affiliations>label {flex:none;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-withdrawals>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_affiliations>button {grid-column:1/-1;justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-tab-bar {gap:5px;border-bottom-width:2px;padding:0 3px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-event-tab {font-size:14px;min-height:43px;line-height:1.4;}
 .onochi-auto-draw-wrap .onochi-auto-draw-event-tab-panel>.onochi-auto-draw-panel {margin-top:0;border-top-left-radius:0;}
 .onochi-auto-draw-wrap .onochi-auto-draw-league-scroll {border:1px solid #e2e8f0;border-radius:5px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-league-swap-grid {grid-template-columns:repeat(auto-fit,minmax(min(100%,210px),1fr));gap:12px;}
}
@media screen and (max-width:1050px) {
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create {grid-template-columns:minmax(220px,1fr) minmax(165px,220px);}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create>label:has(>input[type=checkbox]) {align-self:end;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event {grid-template-columns:repeat(2,minmax(0,1fr));}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_tournament_date,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-publish {grid-template-columns:minmax(0,1fr);}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_tournament_date>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-publish>button {justify-self:start;}
}
@media screen and (max-width:700px) {
 .onochi-auto-draw-admin-nav {gap:6px;}
 .onochi-auto-draw-admin-nav-link {flex:1 1 90px;min-width:0;padding:9px 8px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-panel {margin:12px 0;padding:14px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector {grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);max-width:none;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector>button {grid-column:1/-1;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-basic-settings {grid-template-columns:1fr;gap:10px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-grid {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event {grid-template-columns:repeat(2,minmax(0,1fr));}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create>button {justify-self:start;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals {grid-template-columns:minmax(0,1fr);}
}
@media screen and (max-width:520px) {
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create,
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_fiscal_month {grid-template-columns:minmax(0,1fr);}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-tournament-selector>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create>button,
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-create_event>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-save_fiscal_month>button {grid-column:1;justify-self:stretch;width:100%;}
 .onochi-auto-draw-wrap .onochi-auto-draw-fact-grid {grid-template-columns:1fr;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-configure_bracket {grid-template-columns:repeat(2,minmax(0,1fr));}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-configure_bracket>button {grid-column:1/-1;justify-self:stretch;}
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-entries>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_roster>button,
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-withdrawals>button,.onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-update_affiliations>button,
 .onochi-auto-draw-wrap .onochi-auto-draw-form.onochi-auto-draw-form-finals>button {width:100%;justify-self:stretch;}
 .onochi-auto-draw-wrap .onochi-auto-draw-event-tab {font-size:13px;min-width:96px;}
}
