.label-editor .excel-import{margin:20px 0;border:1px solid #d5deed;border-radius:14px;overflow:hidden;background:#fff;color:#152441}
.label-editor .excel-tabs{display:flex;gap:8px;padding:10px;background:#f0f4fc}
.label-editor .excel-tabs button[aria-pressed=true]{background:#0867f2;color:white;border-color:#0867f2}
.label-editor .excel-panel{padding:20px;min-width:0}
.label-editor .excel-panel h3{margin:0 0 8px}
.label-editor .excel-templates{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0}
.label-editor .excel-templates a{display:inline-flex;align-items:center;min-height:42px;box-sizing:border-box;padding:10px 16px;border:1px solid #a8bfea;border-radius:9px;background:#edf4ff;color:#174ca4;font-size:14px;font-weight:600;text-decoration:none}
.label-editor .excel-templates a:hover{background:#dce9ff;border-color:#0867f2}
.label-editor .excel-templates a:focus-visible{outline:2px solid #0867f2;outline-offset:3px}
html[data-theme=dark] .label-editor .excel-templates a{background:#29436b;color:#edf3ff;border-color:#587cb0}
html[data-theme=dark] .label-editor .excel-templates a:hover{background:#365684}
.label-editor .excel-upload,.label-editor .excel-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin:16px 0}
.label-editor .excel-panel label{display:flex;flex-direction:column;gap:6px;min-width:0;font-size:13px}
.label-editor .excel-panel input,.label-editor .excel-panel select{width:100%;min-width:0;box-sizing:border-box;font:inherit;padding:10px;color:inherit;background:transparent;border:1px solid #cbd7e9;border-radius:8px}
.label-editor .excel-controls{display:flex;flex-wrap:wrap;gap:8px}
.label-editor .excel-status{overflow-wrap:anywhere}
.label-editor .excel-results{display:grid;grid-template-columns:minmax(130px,220px) minmax(0,1fr);gap:16px}
.label-editor .excel-rows{max-height:420px;overflow:auto;display:flex;flex-direction:column;gap:6px;align-self:start}
.label-editor .excel-rows button{text-align:left;font-size:13px}
.label-editor .excel-rows button[aria-pressed=true]{border-color:#0867f2;background:#eaf1ff;color:#164b9e}
.label-editor .excel-preview{min-width:0;overflow-wrap:anywhere}
.label-editor .excel-label{padding:16px;background:#f0f4fc;border-radius:12px;text-align:center}
.label-editor .excel-label>svg{width:100%;max-width:580px;height:auto;background:#fff}
html[data-theme=dark] .label-editor .excel-import{background:#1b2737;color:#e5eaf3;border-color:#3a4b62}
html[data-theme=dark] .label-editor .excel-tabs,html[data-theme=dark] .label-editor .excel-label{background:#142032}
html[data-theme=dark] .label-editor .excel-panel input,html[data-theme=dark] .label-editor .excel-panel select{border-color:#40516b;background:#1b2737}
html[data-theme=dark] .label-editor .excel-rows button[aria-pressed=true]{background:#29436b;color:#edf3ff}
@media(max-width:600px){.label-editor .excel-panel{padding:12px}.label-editor .excel-results{grid-template-columns:1fr}.label-editor .excel-rows{max-height:140px}}
@media print{.label-editor .excel-import{display:none!important}}
.label-editor.excel-mode .editor-main > :not(.excel-import){display:none!important}
.label-editor .excel-panel{padding:24px}
.label-editor .excel-results{grid-template-columns:minmax(160px,.65fr) minmax(260px,1.35fr) minmax(300px,1fr);margin-top:24px;align-items:start}
.label-editor .excel-row-editor{display:grid;gap:12px;min-width:0;border-left:1px solid #d5deed;padding-left:20px}
.label-editor .excel-row-editor h4{margin:12px 0 0;font-size:14px}
.label-editor .excel-extra{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 36px;gap:8px;align-items:center}
.label-editor .excel-extra>input,.label-editor .excel-extra>button{height:44px;margin:0;box-sizing:border-box}
.label-editor .excel-extra>button{padding:0;min-width:0;display:flex;align-items:center;justify-content:center}
.label-editor .excel-combo{position:relative;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) 30px;height:44px;box-sizing:border-box;border:1px solid #cbd7e9;border-radius:8px;background:transparent;align-items:center}
.label-editor .excel-panel .excel-combo input{border:0!important;background:transparent!important;box-shadow:none;outline:0;height:42px;margin:0;padding:0 10px;border-radius:8px;min-width:0}
.label-editor .excel-combo:focus-within{outline:2px solid #4384ff;outline-offset:2px}
.label-editor .excel-combo>button{position:static;width:30px;height:40px;min-height:0;margin:0;padding:0;background:transparent!important;border:0;box-shadow:none;border-radius:6px;min-width:0;color:inherit;display:flex;align-items:center;justify-content:center}
html[data-theme=dark] .label-editor .excel-combo{border-color:#40516b;background:#1b2737}
.label-editor .excel-options{position:absolute;top:100%;left:0;min-width:180px;max-width:280px;max-height:230px;overflow:auto;z-index:20;background:#fff;border:1px solid #cbd7e9;border-radius:8px;box-shadow:0 8px 24px #15244120;padding:4px}
.label-editor .excel-options button{display:block;width:100%;text-align:left;border:0;background:transparent;color:inherit;padding:8px;font-size:13px;white-space:normal}
.label-editor .excel-options button:hover{background:#edf4ff}
.label-editor .excel-options span{display:block;padding:8px;font-size:12px}
.label-editor .excel-controls select{width:auto;max-width:100%;margin-top:12px}
.label-editor .excel-row-editor h3,.label-editor .excel-preview h3{font-size:17px}
.label-editor .excel-error{color:#c34545}
.label-editor .excel-row-editor label{margin:0;font-weight:500}
.label-editor .excel-row-editor h3{margin:0 0 4px}
.label-editor .excel-panel summary{cursor:pointer;padding:10px 0;font-weight:600;font-size:14px}
.label-editor .excel-panel details{margin-bottom:14px}
.label-editor #excel-download:not(:disabled){background:#0867f2;color:#fff;border-color:#0867f2}
.label-editor .excel-rows button{padding:14px 10px;overflow-wrap:anywhere}
.label-editor .excel-label{min-height:260px;display:flex;align-items:center;justify-content:center}
html[data-theme=dark] .label-editor .excel-options{background:#1b2737;border-color:#40516b}
html[data-theme=dark] .label-editor .excel-options button:hover{background:#29436b}
@media(max-width:1100px){.label-editor .excel-results{grid-template-columns:180px minmax(0,1fr)}.label-editor .excel-row-editor{grid-column:1/-1;border:0;padding:0}}
@media(max-width:600px){.label-editor .excel-panel{padding:12px}.label-editor .excel-results{grid-template-columns:minmax(0,1fr)}.label-editor .excel-row-editor{grid-column:auto}.label-editor .excel-label{min-height:180px}.label-editor .excel-options{min-width:130px;max-width:170px}}
.label-editor .excel-layout-section{margin-top:20px}
.label-editor .excel-layout-section h4{margin:0;font-size:15px}
.label-editor .excel-layout-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.label-editor .excel-layout-cards>button{display:grid;grid-template-columns:56px minmax(0,1fr);gap:4px 12px;text-align:left;padding:12px;align-items:center;white-space:normal;min-width:0}
.label-editor .excel-layout-cards strong{font-size:13px}
.label-editor .excel-layout-cards small{font-size:12px;font-weight:400;opacity:.75}
.label-editor .excel-layout-cards>button[aria-pressed=true]{border-color:#4384ff;background:#eaf1ff;color:#164b9e}
.label-editor .excel-layout-icon{grid-row:span 2;display:block;width:56px;height:40px;position:relative;border:1px solid currentColor;border-radius:5px}
.label-editor .excel-layout-icon i{position:absolute;left:7px;top:7px;width:26px;height:10px;background:repeating-linear-gradient(to bottom,currentColor 0 1px,transparent 1px 4px);opacity:.5}
.label-editor .excel-layout-icon b{position:absolute;left:7px;bottom:6px;width:40px;height:10px;background:repeating-linear-gradient(to right,currentColor 0 1px,transparent 1px 3px)}
.label-editor .excel-layout-icon.code-first b{top:6px;bottom:auto}.label-editor .excel-layout-icon.code-first i{top:auto;bottom:6px}
.label-editor .excel-layout-icon.columns b{left:auto;right:6px;top:6px;height:26px;width:12px}.label-editor .excel-layout-icon.columns i{width:22px}
html[data-theme=dark] .label-editor .excel-layout-cards>button[aria-pressed=true]{background:#29436b;color:#edf3ff}
@media(max-width:650px){.label-editor .excel-layout-cards{grid-template-columns:1fr}}
