#remove-dialog{padding:22px;max-height:90vh;max-height:90dvh;overflow:hidden;width:min(650px,calc(100% - 24px))}
#remove-dialog[open]{display:flex;flex-direction:column;gap:10px}
#remove-dialog h2{font-size:25px;margin:0;overflow-wrap:anywhere}
#remove-note{margin:0;font-size:15px;line-height:1.5;max-height:24vh;overflow:auto;flex-shrink:0}
#remove-impact{min-height:0;overflow:auto;flex:1;overscroll-behavior:contain;padding:4px}
#remove-impact summary{padding:8px 0;line-height:1.4}
.dialog-actions{flex-shrink:0;border-top:1px solid #e4dfd4;padding-top:8px;background:#fffdf8}
.dialog-actions label{margin:6px 0 10px}.dialog-actions button{min-height:44px;margin-top:0}
.course-result{display:block;width:100%;text-align:left;margin:5px 0;background:#e6eddf;color:#304e37;white-space:normal}
#course-results{max-height:300px;overflow:auto;padding:6px;border:1px solid #9fa99e;border-radius:10px}
#library-list details{margin-top:14px}#library-list strong{display:block}
.course-comparison{white-space:normal;table-layout:fixed}.course-comparison td{overflow-wrap:anywhere;vertical-align:top}
.course-comparison td strong{background:#e6eddf;padding:1px 3px}
#email-preview-body{white-space:pre-wrap;font:inherit;max-height:350px;overflow:auto}
#round .hole-row{grid-template-columns:60px 70px 90px minmax(180px,220px);gap:10px}
#round .hole-row label:last-child{display:grid;grid-template-columns:48px 70px 48px;align-items:end;gap:5px}
#round .hole-row label:last-child input{grid-column:2;grid-row:2;text-align:center;width:70px}
#round .score-controls{display:contents}#round .score-controls button{margin:0;grid-row:2;padding:0;min-height:44px}
#round .score-controls button:first-child{grid-column:1}#round .score-controls button:last-child{grid-column:3}
@media(max-width:650px){#remove-dialog{padding:15px}#remove-dialog h2{font-size:22px}#remove-note{font-size:14px}#round .hole-row{grid-template-columns:38px 45px 58px minmax(130px,1fr);gap:5px}#round .hole-row label:last-child{grid-template-columns:44px 48px 44px;gap:2px}#round .hole-row label:last-child input{width:48px;padding:8px 0}#round .score-controls button{min-width:44px}#round .nine{padding:8px}.course-comparison thead{display:none}.course-comparison tr{display:block;margin:12px 0;border-bottom:1px solid #e4dfd4}.course-comparison td{display:block;border:0;padding:6px 0;white-space:normal}.course-comparison td:first-child{font-weight:650}.course-comparison td[data-label]::before{content:attr(data-label) ': ';color:#657268;font-size:14px}}
@media(max-width:370px){#round .hole-row{grid-template-columns:36px 40px 54px 1fr}#round .hole-row label:last-child{display:block}#round .hole-row label:last-child input{width:70px}#round .score-controls{display:flex}#round .score-controls button{min-width:44px}}

input,select{font-size:16px}
@media(max-width:650px){#round .hole-row label:last-child{display:block}#round .hole-row label:last-child input{width:70px;text-align:center}#round .score-controls{display:flex;gap:4px;width:94px}#round .score-controls button{min-width:44px;min-height:44px;flex:1}#round .hole-row{grid-template-columns:38px 45px 58px minmax(94px,1fr)}}
