#fuel-modal .upload-modal-card { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 8px; }
#fuel-modal .upload-modal-card.fuel-form-card { width: min(660px, calc(100vw - 24px)); }
#fuel-modal .upload-modal-head { padding: 12px 16px; min-height: 0; }
#fuel-modal .upload-modal-head h3 { margin: 0; font-size: 18px; }
#fuel-modal .upload-modal-body { overflow: auto; min-height: 0; padding: 16px; }
#fuel-modal .fuel-toolbar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
#fuel-modal .detail-table-wrap { width: 100%; overflow-x: auto; }
#fuel-modal table.detail-table { width: 100%; min-width: 660px; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
#fuel-modal .detail-table th, #fuel-modal .detail-table td { padding: 8px 10px; border: 1px solid #d8e0e5; text-align: left; overflow-wrap: anywhere; }
#fuel-modal .detail-table th { background: #f3f5f7; }
#fuel-modal .detail-table th:last-child { width: 66px; }
#fuel-modal .detail-table td[colspan] { height: 60px; text-align: center; color: #64727d; }
#fuel-modal .fuel-wide { grid-column: 1 / -1; }
#fuel-modal .biz-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; align-items: start; }
#fuel-modal button { padding: 8px 12px; min-height: 34px; border: 1px solid #b9ceda; border-radius: 4px; background: #fff; color: #245f80; cursor: pointer; font: inherit; }
#fuel-modal button:hover { background: #edf4f7; }
#fuel-modal button:disabled { opacity: .5; cursor: not-allowed; }
#fuel-modal button[type=submit], #fuel-modal [data-fuel-confirm] { background: #315f74; color: #fff; }
#fuel-modal select, #fuel-modal input:not([type=file]) { height: 36px; min-height: 36px; padding: 6px 10px; }
#fuel-modal .biz-field { display: flex; flex-direction: column; gap: 5px; min-width: 0; font-size: 13px; }
#fuel-modal .biz-field input, #fuel-modal .biz-field select, #fuel-modal .biz-field textarea { width: 100%; margin: 0; border: 1px solid #c8d4df; border-radius: 4px; font: inherit; }
#fuel-modal .biz-field textarea { min-height: 44px; height: 44px; padding: 6px 10px; resize: vertical; }
#fuel-modal input[readonly] { background: #f3f5f7; color: #52616c; }
#fuel-modal .flow-actions { display: flex; gap: 8px; margin: 12px 0 0; justify-content: flex-end; }
#fuel-modal [data-fuel-error]:empty { display: none; }
#fuel-modal input, #fuel-modal select, #fuel-modal textarea { max-width: 100%; box-sizing: border-box; }
#fuel-modal .fuel-files { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 12px; margin: 8px 0; }
#fuel-modal .fuel-files:empty { display: none; }
#fuel-modal .fuel-files .biz-field { margin: 0; }
#fuel-modal [data-fuel-error] { margin: 8px 0 0; font-size: 12px; }
#fuel-modal .fuel-files { margin-bottom: 0; align-items: start; }
#fuel-modal .fuel-preview:empty { display: none; }
#fuel-modal input[type=file] { padding: 5px; min-width: 0; font-size: 12px; }
#fuel-modal .fuel-preview img { display: block; width: 100%; height: 130px; object-fit: contain; margin-top: 8px; }
#fuel-modal .fuel-preview iframe { width: 100%; height: 200px; border: 0; margin-top: 8px; }
#fuel-modal [role=alert] { color: #b42318; }
#fuel-modal .fuel-confirm { margin:auto; padding:20px; }
@media(max-width: 640px) { #fuel-modal .biz-field-grid, #fuel-modal .fuel-files { grid-template-columns: minmax(0, 1fr); } }
