#setup{max-width:920px;width:calc(100% - 24px);max-height:calc(100dvh - 24px);padding:20px;box-sizing:border-box}
#setupForm.setup-compact{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr);gap:14px 22px;align-items:start}
#setupForm>h2{grid-column:1/-1;font-size:26px;margin:0;line-height:1.15}
#setupForm>.context-help,#setupForm>.eyebrow{display:none}
#setupOptions{grid-column:1;grid-row:2;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}
#setup .setup-field{position:relative;min-width:0}#setup .setup-field>label{margin:0;font-size:12px;line-height:16px;padding:0;min-width:0}
#setup .setup-field input,#setup .setup-field select,#setup #names input{height:36px;padding:7px 8px;margin:4px 0 0;min-width:0;font-size:13px;box-sizing:border-box}
#setup .setup-field>.context-help{position:absolute;top:-3px;right:0;margin:0;z-index:2;border:0;padding:0}
#setup .context-help>summary{width:22px;min-height:22px;font-size:16px;background:transparent}
#setup .context-help[open]{z-index:10;border:0;padding:0}
#setup .context-help[open]>p,#setup .context-help[open]>small{position:absolute;right:0;top:24px;display:block;width:245px;max-width:calc(100vw - 52px);margin:0;padding:12px;background:#fffdf7;border:1px solid #b8cdd0;border-radius:8px;box-shadow:0 4px 16px #173f5433;color:#365966;font-size:12px;line-height:1.5;font-weight:400}
#setup .setup-field:nth-child(odd) .context-help[open]>p,#setup .setup-field:nth-child(odd) .context-help[open]>small{left:auto;right:0}
#setup .course-picker{grid-column:2;grid-row:2/4;position:relative;margin:0;min-width:0}
#setup .course-picker legend{font:600 12px Arial;margin-bottom:6px}
#setup .course-cards{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
#setup .course-card{padding:5px 3px;gap:2px;min-height:114px;justify-content:flex-start}
#setup .course-card:has(input:checked){padding:4px 2px}
#setup .course-card svg{width:76px;height:82px;max-width:100%}
#setup .course-card strong{font-size:9px;line-height:11px;padding:0 2px}
#setup .course-card input{width:12px;height:12px;top:4px;right:4px}
#setup .course-picker>.context-help{position:absolute;right:0;top:-21px;margin:0}
#setup .enlarge-course{display:inline-block;width:auto;font-size:11px;min-height:28px;padding:5px 9px;margin:6px 0 0}
#setup .setup-boats{grid-column:1;grid-row:3;min-width:0}
#setup .setup-boats h3{font:600 12px Arial;margin:0 0 6px}
#setup #names{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px 12px}
#setup #names label{font-size:10px;line-height:13px;margin:0;min-width:0;white-space:nowrap}
#setupForm>.dialogactions{grid-column:1/-1;grid-row:4;margin:0;gap:9px;padding-top:3px}
#setup .dialogactions button{min-height:36px;padding:7px 15px;font-size:12px}
@media(max-width:700px){
 #setup{padding:12px;max-width:440px;max-height:calc(var(--phone-height,100dvh) - 16px);width:calc(100% - 16px);border-radius:12px}
 #setupForm.setup-compact{grid-template-columns:minmax(0,1fr);gap:10px}
 #setupForm>h2{font-size:22px;grid-column:1}
 #setupOptions{grid-column:1;grid-row:2;gap:7px 10px}
 #setup .setup-field:nth-child(odd) .context-help[open]>p,#setup .setup-field:nth-child(odd) .context-help[open]>small{transform:translateX(50%)}
 #setup .setup-field>label{font-size:11px;line-height:14px}
 #setup .setup-field input,#setup .setup-field select{height:33px;font-size:12px;padding:6px;margin-top:3px}
 #setup .course-picker{grid-column:1;grid-row:3}
 #setup .course-card{min-height:83px;padding:3px;gap:1px}
 #setup .course-card:has(input:checked){padding:2px}
 #setup .course-card svg{width:53px;height:57px}
 #setup .course-card strong{font-size:9px;line-height:10px}
 #setup .enlarge-course{font-size:10px;min-height:25px;margin-top:4px;padding:4px 7px}
 #setup .setup-boats{grid-column:1;grid-row:4}
 #setup .setup-boats h3{margin-bottom:4px;font-size:11px}
 #setup #names{gap:5px 10px}
 #setup #names input{height:31px;font-size:13px;padding:5px 7px;margin-top:2px}
 #setupForm>.dialogactions{grid-column:1;grid-row:5;padding-top:0}
 #setup .dialogactions button{min-height:34px;font-size:12px}
}
