.reset-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-width: 164px; min-height: 58px; padding: 13px 24px; border: 2px solid #a36c23; border-radius: 10px; color: #70480f; background: #fff0cc; font-size: 18px; font-weight: 700; white-space: nowrap; box-shadow: 0 3px 0 #a36c2318; }
.reset-button svg { height: 24px; width: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.reset-button:hover:not(:disabled) { background: #ffe1a1; border-color: #835119; }
.reset-button:disabled { box-shadow: none; }
.j2-panel { margin: 4px 0 24px; padding: 24px; border: 1px solid #b9d5c6; border-radius: 12px; background: #fff; }
.j2-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.j2-top h3 { font-size: 20px; font-weight: 600; line-height: 1.7; }
.j2-top p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.optional-label { display: inline-block; font-size: 12px; font-weight: 400; color: #536b5c; border-radius: 5px; background: #edf3ef; padding: 2px 8px; margin-left: 8px; vertical-align: middle; }
.j2-upload { position: relative; min-width: 260px; max-width: 340px; text-align: right; }
.j2-upload .file-button { min-height: 64px; min-width: 304px; padding: 16px 23px; gap: 16px; background: #17624d; color: #fff; border: 2px solid #104b3b; border-radius: 10px; box-shadow: 0 4px 0 #0b3d2f18; font-size: 17px; font-weight: 700; }
.j2-upload .file-button:hover { background: #104b3b; }
.j2-upload .file-button:active { transform: translateY(1px); }
.j2-upload .file-button>svg { height: 26px; width: 26px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.j2-upload>span { display: block; color: var(--muted); font-size: 12px; margin-top: 7px; overflow-wrap: anywhere; }
.j2-upload:focus-within .file-button { outline: 3px solid #387fe4; outline-offset: 3px; }
.j2-help { color: var(--muted); font-size: 13px; margin-top: 15px; }
.j2-sheet-row { display: flex; gap: 18px; margin: 20px 0; padding-top: 20px; border-top: 1px solid var(--line); }
.j2-sheet-row label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.j2-sheet-row label:first-child { flex: 1; }
.j2-sheet-row label:last-child { width: 150px; }
.j2-sheet-row select,.j2-sheet-row input,.mapping-grid select { width: 100%; min-height: 44px; border: 1px solid #c3d3c8; padding: 8px 10px; color: var(--ink); border-radius: 6px; background: #fff; font-size: 14px; }
.j2-fields { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.j2-fields summary { cursor: pointer; padding: 12px 0; font-size: 14px; font-weight: 500; color: var(--accent); }
.j2-fields summary:focus-visible { outline: 3px solid #387fe4; outline-offset: 3px; }
.mapping-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; padding: 8px 0 22px; }
.mapping-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.j2-actions { padding-top: 20px; }
.j2-bottom { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-top: 16px; }
.j2-status { font-size: 14px; color: #355e46; white-space: pre-line; line-height: 1.9; }
.j2-status.error { color: var(--error-ink); background: var(--error-bg); padding: 10px 12px; border-radius: 6px; }
.missing-data { background: #fffbeb; color: #806b33; }
@media (max-width: 800px) {
 .j2-top { align-items: flex-start; flex-direction: column; gap: 18px; }
 .j2-upload { max-width: none; width: 100%; text-align: left; }
 .mapping-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 640px) {
 .upload-section>.section-top { flex-wrap: wrap; }
 .reset-button { min-width: 158px; min-height: 56px; margin-left: auto; padding: 12px 20px; font-size: 18px; }
 .j2-panel { padding: 20px; }
 .j2-top h3 { font-size: 19px; }
 .j2-top p,.j2-help { font-size: 14px; }
 .j2-upload>span { font-size: 13px; }
 .j2-upload .file-button { width: 100%; min-width: 0; min-height: 66px; font-size: 17px; padding: 15px 18px; }
 .j2-sheet-row { flex-direction: column; gap: 15px; }
 .j2-sheet-row label:last-child { width: 100%; }
 .mapping-grid { grid-template-columns: 1fr; }
 .mapping-grid label { font-size: 14px; }
 .mapping-grid select,.j2-sheet-row input,.j2-sheet-row select { font-size: 16px; min-height: 48px; }
 .j2-bottom { flex-direction: column; gap: 8px; }
 .j2-bottom .text-button { padding-left: 0; }
}
