/* 회원 코스 올리기·설정 고치기 창 (course-upload.js) — 코스 추천·코스 만들기 공용 */
.cu-dlg{width:min(760px,calc(100% - 24px));max-height:calc(100% - 32px);border:0;border-radius:22px;padding:0;background:#fffdf9;color:#1f1c18;box-shadow:0 30px 80px #0005;overflow:hidden}
.cu-dlg[open]{display:flex;flex-direction:column}
.cu-dlg::backdrop{background:#1f1c1899}
.cu-dlg [hidden]{display:none!important}   /* 아래 display:grid 들이 hidden 속성을 덮지 않게 */
.cu-form{display:flex;flex-direction:column;min-height:0;flex:1 1 auto;margin:0}
.cu-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 20px;border-bottom:1px solid #efe6d6}
.cu-top h2{margin:0;font-size:19px;font-weight:900;letter-spacing:-.4px}
.cu-x{border:0;background:none;font-size:28px;line-height:1;cursor:pointer;color:#8a7f6e;padding:0 4px}
.cu-body{overflow:auto;padding:18px 20px 20px;display:grid;gap:14px;min-height:0;flex:1 1 auto}
.cu-drop{display:grid;justify-items:center;gap:8px;text-align:center;padding:26px 16px;border:2px dashed #d9ccb6;border-radius:16px;background:#fffaf1}
.cu-drop.on{border-color:#e0661a;background:#fff3e6}
.cu-drop.has{padding:12px 14px;border-style:solid;border-width:1px;justify-items:start;text-align:left;grid-template-columns:1fr auto;align-items:center}
.cu-drop.has small{display:none}
.cu-drop b{font-size:15px}.cu-drop small{color:#8a7f6e;font-size:12.5px;line-height:1.6;max-width:460px}
.cu-pick{height:38px;padding:0 18px;border:0;border-radius:10px;background:#1f1c18;color:#fff;font:inherit;font-size:14px;font-weight:800;cursor:pointer}
.cu-drop.has .cu-pick{background:#fff;color:#1f1c18;border:1px solid #d9ccb6;height:32px;font-size:13px}
.cu-err{margin:0;padding:10px 14px;border-radius:10px;background:#fdecea;color:#a3321f;font-size:14px;font-weight:700}
.cu-prev{display:grid;gap:10px}
.cu-map{height:260px;border-radius:14px;overflow:hidden;background:#eef1ea;border:1px solid #e3d9ca;position:relative}
.cu-map .cu-line{width:100%;height:100%;display:block}
.cu-line .w,.cr-uline .w{fill:none;stroke:#fff;stroke-width:9;stroke-linejoin:round;stroke-linecap:round}
.cu-line .o,.cr-uline .o{fill:none;stroke:#e0661a;stroke-width:4.5;stroke-linejoin:round;stroke-linecap:round}
.cu-line .s,.cr-uline .s{fill:#2f7a4b;stroke:#1f1c18;stroke-width:2.5}
.cu-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:8px}
.cu-stats>span{display:grid;gap:2px;padding:10px 12px;border-radius:12px;background:#f6f1e6}
.cu-stats small{font-size:12px;color:#8a7f6e;font-weight:700}.cu-stats small i{font-style:normal;cursor:help}
.cu-stats b{font-size:19px;font-weight:900;letter-spacing:-.4px}.cu-stats b i{font-style:normal;font-size:13px;margin-left:2px;color:#5d5446}
.cu-prof{width:100%;height:auto;display:block}
.cu-prof .g{stroke:#eee6d8}.cu-prof text{font-size:12px;fill:#8a7f6e}.cu-prof .a{fill:#e0661a22}.cu-prof .l{fill:none;stroke:#e0661a;stroke-width:2}
.cu-muted{margin:0;color:#8a7f6e;font-size:13px;line-height:1.6}
.cu-fields{display:grid;grid-template-columns:1fr 1fr;gap:12px 14px}
.cu-wide{grid-column:1/-1}
.cu-f{display:grid;gap:6px;align-content:start}
.cu-f>span{font-size:13.5px;font-weight:800}.cu-f>span small{font-weight:600;color:#a89c89;margin-left:4px}.cu-f>span small b{color:#e0661a}
.cu-f>span em{font-style:normal;font-size:11px;color:#fff;background:#e0661a;border-radius:4px;padding:1px 5px;margin-left:4px;vertical-align:1px}
.cu-f input:not([type=checkbox]):not([type=radio]),.cu-f select,.cu-f textarea{width:100%;box-sizing:border-box;border:1px solid #ddd2c1;border-radius:10px;background:#fff;padding:9px 12px;font:inherit;font-size:14.5px;color:#1f1c18}
.cu-f textarea{resize:vertical;line-height:1.55}
.cu-f input:focus,.cu-f select:focus,.cu-f textarea:focus{outline:2px solid #eac559;border-color:#c9a53a}
.cu-check{display:flex;align-items:center;gap:8px;font-size:14px;font-weight:700;cursor:pointer}
.cu-check input{width:18px;height:18px;accent-color:#e0661a}
.cu-chips{display:flex;flex-wrap:wrap;gap:6px}
.cu-chips label{position:relative;cursor:pointer}
.cu-chips input{position:absolute;opacity:0;width:1px;height:1px}
.cu-chips span{display:inline-flex;align-items:center;height:34px;padding:0 14px;border:1px solid #ddd2c1;border-radius:99px;background:#fff;font-size:13.5px;font-weight:700}
.cu-chips input:checked+span{background:#1f1c18;border-color:#1f1c18;color:#fff}
.cu-chips input:focus-visible+span{outline:3px solid #eac559;outline-offset:2px}
.cu-chips label.rec span::after{content:'추천';margin-left:6px;font-size:10.5px;font-weight:800;color:#e0661a}
.cu-chips label.rec input:checked+span::after{color:#ffb37a}
.cu-foot{display:flex;justify-content:flex-end;gap:8px;padding:12px 20px;border-top:1px solid #efe6d6;background:#fffdf9}
.cu-foot button{height:42px;padding:0 20px;border-radius:11px;font:inherit;font-size:14.5px;font-weight:800;cursor:pointer}
.cu-cancel{border:1px solid #ddd2c1;background:#fff;color:#1f1c18}
.cu-ok{border:0;background:#e0661a;color:#fff;min-width:110px}.cu-ok:disabled{opacity:.45;cursor:default}
@media (max-width:600px){
  .cu-body{padding:14px 16px 16px}.cu-top{padding:12px 16px}.cu-foot{padding:10px 16px}
  .cu-fields{grid-template-columns:1fr}.cu-stats{grid-template-columns:repeat(2,1fr)}.cu-map{height:210px}
  .cu-chips span{height:32px;padding:0 11px;font-size:13px}
}
