.excel-reference-dialog{width:860px;max-width:calc(100vw - 28px);height:calc(100vh - 44px);max-height:940px;padding:0;margin:auto;border:1px solid #d9dde7;border-radius:10px;overflow:hidden;color:#252c39;background:#f5f6fb;box-shadow:0 18px 65px #11182740;font-family:Arial,'Malgun Gothic',sans-serif;font-size:13px}
.excel-reference-dialog[open]{display:flex;flex-direction:column}
.excel-reference-dialog::backdrop{background:#17203366}
.excel-reference-dialog .excel-reference-head{position:static;display:block;flex:none;min-height:0;height:auto;padding:22px 27px;background:#1b2032;border:0;color:white}
.excel-reference-head h2{font-size:22px;line-height:1.3;font-weight:700;margin:0;color:white}
.excel-reference-body{flex:1;min-height:0;overflow-y:auto;padding:18px;background:#f5f6fb;scrollbar-gutter:stable}
.excel-reference-dialog form{margin:0;display:block}
.excel-reference-intro{border:1px solid #e1e4ec;border-radius:13px;background:#f8f9fc;padding:20px;margin-bottom:16px;color:#66717f;line-height:1.7}
.excel-reference-intro p{margin:0 0 5px;font-size:13px;line-height:1.7}
.excel-reference-badge{display:inline-block;background:white;border-radius:15px;padding:4px 9px;margin:6px 5px 0 0;color:#655ad4;font-size:12px;font-weight:bold}
.excel-reference-badge.limit{color:#b04b4f}
.excel-reference-card{background:white;border:1px solid #e6e9f0;border-radius:13px;padding:20px;margin:0 0 15px;box-shadow:0 3px 10px #192a4010}
.excel-reference-card h3{margin:0 0 13px;font-size:16px;line-height:1.45;color:#27303e;font-weight:700}
.excel-reference-rows{border-top:1px solid #e4e7ed}
.excel-reference-row{display:grid;grid-template-columns:148px 1fr;border-bottom:1px solid #e7eaf0}
.excel-reference-caption{display:flex;align-items:center;background:#f8f9fb;padding:14px;font-size:13px;font-weight:700}
.excel-reference-value{padding:13px 12px;min-width:0}
.excel-reference-value p{margin:4px 0 0;color:#818a95;font-size:12px;line-height:1.6}
.excel-reference-dialog input:not([type=checkbox]):not([type=radio]):not([type=file]),.excel-reference-dialog select{box-sizing:border-box;min-height:38px;height:38px;max-width:100%;padding:7px 10px;border:1px solid #d7dbe3;border-radius:7px;background:#fff;color:#3b4350;font-family:inherit;font-size:13px;line-height:1.4}
.excel-reference-value>select{min-width:150px;width:auto}.excel-reference-value>select[aria-label="캠페인 선택"]{width:280px}
.excel-reference-dialog .excel-reference-inline{display:flex;align-items:center;gap:7px;flex-wrap:wrap;min-height:40px;font-size:12px;line-height:1.6}
.excel-reference-inline strong{font-size:12px;min-width:67px}
.excel-reference-dialog .excel-reference-check{display:inline-flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:5px;font-size:12px;font-weight:400;margin:0;color:#394451;cursor:pointer;line-height:1.6}
.excel-reference-check input[type=checkbox],.excel-reference-check input[type=radio]{width:13px;height:13px;min-height:0;margin:0;flex:none;accent-color:#5844db}
.excel-reference-inline input[type=number]{width:55px;padding:7px 6px!important}.excel-reference-inline input[aria-label="직접입력 초"]{width:80px}
.excel-reference-dialog .excel-reference-history{border-left:4px solid #777ce9;background:#fcfdff}
.excel-reference-history>.excel-reference-check{font-size:16px;font-weight:700;color:#3b4862;margin-bottom:10px}
.excel-reference-history-fields{border:0;padding:0;margin:0;min-width:0}
.excel-reference-history-fields .excel-reference-inline{margin-bottom:8px}
.excel-reference-history p,.excel-reference-help{font-size:12px;color:#7b8693;line-height:1.7;margin:6px 0}
.excel-reference-rules{border-radius:7px;background:#f5f7fc;padding:12px 14px;margin:12px 0;color:#687286}.excel-reference-rules p{margin:3px 0}
.excel-reference-dialog input[type=file]{display:block;box-sizing:border-box;width:100%;border:1px solid #e0e4ec;background:#fafbfd;border-radius:7px;padding:12px;margin:0 0 14px;font-size:13px}
.excel-reference-dialog textarea{box-sizing:border-box;width:100%;min-height:80px;padding:12px;border:1px solid #d9dfe8;border-radius:7px;font:13px/1.7 Arial,'Malgun Gothic',sans-serif;resize:vertical}
.excel-reference-dialog .excel-reference-foot{position:static;display:flex;align-items:center;justify-content:center;gap:12px;flex:none;padding:15px;background:#ffffffed;border-top:1px solid #e1e5ee}
.excel-reference-dialog .excel-reference-foot{margin:0;width:100%;float:none;clear:both;text-align:center}
.excel-reference-inline select{width:auto}.excel-reference-inline input[type=date]{width:145px}
.excel-reference-history-fields:disabled{opacity:1}
.excel-reference-foot button{min-width:118px;min-height:42px;border:0;border-radius:7px;padding:10px 18px;background:#e7e9ef;color:#30394a;font-size:14px;font-weight:700}
.excel-reference-foot button.primary{background:#5b43db;color:white;min-width:165px}.excel-reference-foot button.primary:hover{background:#4e36cb}
.excel-reference-dialog [hidden]{display:none!important}.excel-reference-dialog :disabled{opacity:.58;cursor:default}
.excel-reference-message{color:#b42318;font-size:13px;margin:8px 0;white-space:pre-wrap}.excel-reference-message:empty{display:none}
.excel-reference-preview{overflow:auto;margin-top:12px;max-height:270px}.excel-reference-preview:empty{display:none}.excel-reference-preview table{width:100%;font-size:12px}.excel-reference-preview p{font-weight:700;color:#4944b8}
.excel-reference-sheet{display:flex;gap:10px;align-items:center;margin-top:10px}.excel-reference-dialog :focus-visible{outline:2px solid #8d7aed;outline-offset:2px}
.excel-file-dropzone{padding:18px;border:2px dashed #b8bfd2;border-radius:8px;background:#f8f9fc;transition:background .15s,border-color .15s}
.excel-file-dropzone p{margin:0 0 12px;font-size:14px;font-weight:600;color:#35445e}
.excel-file-dropzone small{display:block;margin-top:10px;color:#657089;font-size:12px}
.excel-file-dropzone input[type=file]{width:100%;max-width:100%}
.excel-file-dropzone.is-dragover{border-color:#5b43db;background:#eeebff}
.excel-column-guide{margin:14px 0;color:#46536b;font-size:13px;line-height:1.6}.excel-column-guide summary{cursor:pointer;font-weight:600}.excel-column-guide p{margin:8px 0}
.excel-column-mapping{display:flex;flex-wrap:wrap;gap:12px;padding:12px;background:#f3f5fa;border:1px solid #dce1ec;border-radius:6px;margin-top:12px}
.excel-column-mapping label{display:flex;flex-direction:column;gap:6px;flex:1 1 180px;margin:0;font-size:13px}.excel-column-mapping select{width:100%;min-width:0}
@media(max-width:600px){.excel-reference-dialog{max-width:calc(100vw - 12px);height:calc(100dvh - 12px)}.excel-reference-body{padding:10px}.excel-reference-card{padding:13px}.excel-reference-row{grid-template-columns:95px 1fr}.excel-reference-caption{padding:10px}.excel-reference-value{padding:10px}.excel-reference-intro{padding:14px}.excel-reference-head h2{font-size:19px}.excel-reference-dialog .excel-reference-head{padding:18px}}
