html body #app .cr-registry{--cr-green:#092e1c;color:var(--cr-green);background:#f8f8f3;max-width:1280px;margin:0 auto;padding:24px 24px 100px;font:14px/1.5 Inter,Arial,sans-serif}
html body #app .cr-registry h2{font-size:28px;font-weight:700;margin:0}html body #app .cr-registry h3{font-size:18px;font-weight:700;margin:0 0 12px}
.cr-top,.cr-actions,.cr-tabs{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.cr-top{justify-content:space-between;margin-bottom:18px}.cr-muted{color:#68766c;font-size:12px}.cr-panel{padding:20px;background:#fff;border:1px solid #dfe4da;border-radius:12px;margin:14px 0}.cr-scroll{overflow-x:auto}
html body #app .cr-registry button{font:600 13px/1.3 Inter,Arial,sans-serif;color:#092e1c;background:#fff;border:1px solid #d6ddcf;border-radius:8px;padding:10px 14px;box-shadow:none;cursor:pointer;min-width:0}
html body #app .cr-registry button.cr-primary,html body #app .cr-tabs button[aria-selected=true]{background:#092e1c;color:white;border-color:#092e1c}html body #app .cr-registry button:disabled{opacity:.5;cursor:not-allowed}
html body #app .cr-registry input,html body #app .cr-registry select,html body #app .cr-registry textarea{border:1px solid #dce2d5;border-radius:6px;background:#fff;color:#092e1c;font:inherit;padding:7px 8px;min-width:0;width:100%;box-sizing:border-box}
html body #app .cr-registry input[type=checkbox],html body #app .cr-registry input[type=radio]{width:auto;margin-right:8px}
.cr-fields{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.cr-fields label{display:block;font-size:12px}.cr-table{width:100%;border-collapse:collapse;white-space:nowrap;font-size:13px}.cr-table th{text-align:left;font-size:11px;text-transform:uppercase;letter-spacing:.07em;color:#697567;background:#f8f9f5;padding:10px}.cr-table td{padding:9px 10px;border-bottom:1px solid #ebeee7;vertical-align:middle}.cr-table td input{min-width:64px}.cr-table tr:last-child td{border-bottom:0}.cr-table .cr-name{font-weight:600;min-width:180px}
.cr-badge{display:inline-block;background:#f0f2ed;border-radius:12px;font-size:10px;color:#52664f;padding:2px 7px;margin:3px}.cr-badge.cr-gold{background:#faf0d6;color:#8a6625}.cr-ready{display:flex;gap:10px;flex-wrap:wrap}.cr-ready span{font-size:12px;background:#f2f4ee;padding:6px 10px;border-radius:6px}.cr-warning{padding:12px;border-left:3px solid #b38a3e;background:#fff9e9;margin:12px 0}.cr-error{padding:12px;background:#fff0e9;color:#9b372c}.cr-search{display:grid;grid-template-columns:1fr 120px auto;gap:10px}.cr-results{display:grid;grid-template-columns:1fr 1fr;gap:16px}.cr-option{display:block;border-bottom:1px solid #e8ede3;padding:12px;cursor:pointer}.cr-cell{display:flex;align-items:center;gap:4px}.cr-cell .cr-badge{max-width:64px;margin:0;font-size:9px}.cr-footer{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:18px}.cr-gps-table input{max-width:130px}.cr-table .cr-dot{display:inline-block;width:10px;height:10px;border:1px solid #bdc6b7;border-radius:50%;margin-right:6px}
.cr-row-actions{display:flex;gap:8px;align-items:center;justify-content:flex-end}html body #app .cr-registry button.cr-danger{background:#fff2ef;border-color:#e6c3bb;color:#9b372c}
.cr-registry fieldset{padding:0;margin:0;border:0;min-width:0}.cr-registry .cr-table td{padding-top:5px;padding-bottom:5px}.cr-registry .cr-table input{font-size:13px!important;line-height:18px!important;padding:5px 8px!important}#app.cr-admin-embed{display:block!important;position:static!important;transform:none!important;width:100%!important;max-width:none!important;height:auto!important}.cr-registry a{color:#315642}.cr-tabs{margin-top:18px}
@media(max-width:700px){html body #app .cr-registry{padding:16px 10px 100px}.cr-fields,.cr-results{grid-template-columns:1fr}.cr-search{grid-template-columns:1fr 90px}.cr-search button{grid-column:1/-1}.cr-panel{padding:12px}.cr-cell .cr-badge{display:none}.cr-footer{align-items:flex-start;flex-direction:column}}

.cr-course-list{display:grid;gap:10px;min-width:0}
html body #app .cr-registry button.cr-course-card{display:block;width:100%;padding:14px;text-align:left;border-radius:14px;background:#fff;font-weight:400}
.cr-course-heading{display:flex;align-items:center;gap:10px;min-width:0}
.cr-course-name{flex:1;min-width:0;font-size:15px;font-weight:600;overflow-wrap:anywhere}
.cr-course-name small{display:block;font-size:12px;font-weight:400;color:#68766c;margin-top:2px}
.cr-hole-count{font-size:12px;white-space:nowrap;color:#68766c}
.cr-course-chevron{font-size:24px;line-height:1}
.cr-course-ready{display:flex;align-items:center;flex-wrap:wrap;gap:5px;margin-top:10px;font-size:11px;color:#68766c}
.cr-course-ready>span:first-child{margin-right:3px}
.cr-status{padding:4px 7px;border-radius:6px;background:#f0f3ed;white-space:nowrap;color:#214d37}
.cr-status.is-missing{background:#faf1dc;color:#80601f}
html body #app .cr-list-top h2{font-size:22px}
html body #app .cr-registry .cr-course-card:hover{border-color:#708b76;background:#fcfdf9}
@media(max-width:700px){html body #app .cr-registry{padding-top:10px}.cr-list-top{margin-bottom:12px}.cr-ready{gap:5px}.cr-ready span{font-size:11px;padding:5px 7px}.cr-tabs{gap:5px}.cr-footer .cr-actions{width:100%}.cr-footer .cr-actions button{flex:1 1 130px}}

/* v529: Tees & Rating som kort. Den gamla sexkolumnerstabellen klamde ihop
   varje falt sa varken teenamn eller CR gick att lasa; har far varje varde
   en egen etikett och rimlig bredd, och radgar om till tva rader pa smal
   skarm i stallet for att krympa. */
.cr-tees{display:grid;gap:12px;margin:10px 0}
.cr-tee{border:1px solid #e3e8e0;border-radius:14px;background:#fff;padding:12px;display:grid;gap:10px}
.cr-tee-head{display:flex;flex-wrap:wrap;align-items:flex-end;gap:10px}
.cr-tee-head .cr-tee-name{flex:1 1 150px}
.cr-tee-head .cr-tee-color{flex:0 1 150px}
.cr-tee label,.cr-tee-row label{display:grid;gap:4px;font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:#697567;min-width:0}
.cr-tee label>span{white-space:nowrap}
.cr-tee input,.cr-tee select{width:100%;min-width:0;box-sizing:border-box;padding:8px 9px;border:1px solid #d9e0d7;border-radius:9px;font-size:14px;background:#fff;color:#12291f}
.cr-tee .cr-cell{display:flex;align-items:center;gap:6px}
.cr-tee .cr-cell input{flex:1 1 auto}
.cr-tee-color{position:relative}
.cr-tee-color .cr-dot{position:absolute;right:10px;bottom:11px;width:14px;height:14px;border-radius:50%;border:1px solid #00000022;pointer-events:none}
.cr-tee-color select{padding-right:32px}
.cr-tee-remove{flex:0 0 auto;border:1px solid #e6cfcf;background:#fdf5f5;color:#9b3b3b;border-radius:9px;padding:9px 12px;font-size:12px;cursor:pointer}
.cr-tee-remove:disabled{opacity:.45;cursor:default}
.cr-tee-row{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;align-items:end;
 border-top:1px solid #eef2ec;padding-top:10px}
@media(max-width:640px){
 /* fem falt pa en rad blir oläsbart pa mobil - tva rader i stallet */
 .cr-tee-row{grid-template-columns:repeat(2,minmax(0,1fr))}
 .cr-tee-row>label:first-child{grid-column:1/-1}
}

.cr-library-filters{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.cr-library-filters label{display:flex;flex:1 1 180px;flex-direction:column;gap:6px}.cr-library-filters input,.cr-library-filters select{padding:12px;border:1px solid #ccd7d3;border-radius:10px;background:white;color:#074a57;width:100%;min-width:0}

.cr-pagination{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:20px 0}.cr-pagination button{padding:12px 16px;border-radius:10px;border:1px solid #ccd7d3;background:#074a57;color:white}.cr-pagination button:disabled{opacity:.4;cursor:default}
