.lf-panel { display: grid; gap: 14px; margin-top: 14px; border-color: #dfe5ec; background: #fff; }
.lf-panel[hidden] { display: none; }
.lf-head { align-items: flex-start; margin: 0; }
.lf-head h2, .lf-list h3 { margin: 0; color: #263849; }
.lf-head p { max-width: 760px; margin-bottom: 0; }
.lf-head-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.lf-upload { padding: 12px; border: 1px solid #dfe7ef; border-radius: 9px; background: #f8fafc; }
.lf-form { display: grid; grid-template-columns: minmax(150px, .7fr) minmax(180px, .9fr) minmax(280px, 2fr) auto; align-items: end; gap: 10px; }
.lf-field { display: grid; gap: 5px; min-width: 0; color: #536475; font-size: 0.75rem; font-weight: 700; }
.lf-field select, .lf-field input { width: 100%; min-height: 36px; padding: 7px 8px; border: 1px solid #ccd7e1; border-radius: 7px; color: #263849; background: #fff; font: inherit; }
.lf-field input[type="file"] { padding: 5px 7px; font-size: 0.75rem; }
.lf-field small { color: #7d8995; font-size: 0.75rem; font-weight: 500; line-height: 1.4; }
.lf-message { margin: 0; padding: 9px 11px; border-radius: 7px; font-size: 0.75rem; line-height: 1.45; }
.lf-message.is-error { color: #963442; background: #fff0f2; }
.lf-message.is-success { color: #17694f; background: #eaf8f1; }
.lf-list { display: grid; gap: 8px; }
.lf-list-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lf-list-head span { color: #83909c; font-size: 0.75rem; }
.lf-item { display: grid; gap: 8px; padding: 11px 12px; border: 1px solid #e1e7ed; border-radius: 8px; background: #fff; }
.lf-item-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.lf-item-head > div { display: grid; gap: 3px; min-width: 0; }
.lf-item-head strong { overflow: hidden; color: #34495b; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.lf-item-head span, .lf-facts, .lf-next { color: #74818d; font-size: 0.75rem; }
.lf-panel .lf-status { flex: none; padding: 3px 7px; border-radius: 999px; color: #8a5d20; background: #fff4df; font-weight: 750; }
.lf-panel .lf-status.is-ready { color: #17694f; background: #e8f7ef; }
.lf-facts { display: flex; flex-wrap: wrap; gap: 6px; }
.lf-facts span { padding: 3px 6px; border-radius: 5px; background: #f1f4f7; }
.lf-next { margin: 0; line-height: 1.45; }
.lf-link-state { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin: 0; padding: 7px 8px; border-radius: 6px; color: #526273; background: #eef4f8; font-size: 0.75rem; }
.lf-link-state span { color: #7b667f; }
.lf-linker { border-top: 1px solid #edf0f3; padding-top: 7px; }
.lf-linker summary { color: #526a80; font-size: 0.75rem; font-weight: 750; cursor: pointer; }
.lf-linker > small { display: block; margin-top: 5px; color: #7c8791; font-size: 0.75rem; }
.lf-link-form { display: grid; grid-template-columns: minmax(120px, .7fr) minmax(180px, 1.4fr) auto; gap: 7px; margin-top: 8px; }
.lf-link-form select, .lf-link-form input { min-height: 34px; padding: 6px 7px; border: 1px solid #ccd7e1; border-radius: 6px; color: #304456; background: #fff; font: inherit; font-size: 0.75rem; }
.lf-item > .text-button { justify-self: start; }
.lf-empty { margin: 0; padding: 20px 12px; border: 1px dashed #d6dfe7; border-radius: 8px; color: #7b8792; font-size: 0.75rem; text-align: center; }

@media (max-width: 900px) {
  .lf-form { grid-template-columns: 1fr 1fr; }
  .lf-file-field { grid-column: 1 / -1; }
  .lf-form > .button { justify-self: start; }
}

@media (max-width: 620px) {
  .lf-head, .lf-item-head { display: grid; }
  .lf-head-actions { justify-content: flex-start; }
  .lf-form { grid-template-columns: 1fr; }
  .lf-link-form { grid-template-columns: 1fr; }
  .lf-file-field { grid-column: auto; }
  .lf-item-head strong { white-space: normal; overflow-wrap: anywhere; }
  .lf-status { justify-self: start; }
}

.lf-panel {gap:16px;border:0;border-radius:0;padding:4px 0;background:transparent}
.lf-head h2 {font-size:21px;font-weight:650;letter-spacing:-.3px;color:#28313f}
.lf-head p {font-size:12px;color:#7a8491;margin-top:5px}
.lf-filter-tabs {display:flex;gap:4px}
.lf-filter-tabs button {font:inherit;font-size:12px;border:0;border-radius:5px;background:none;color:#7a8390;padding:7px 10px;cursor:pointer}
.lf-filter-tabs button.is-active {color:#4d58ab;background:#edf0fd;font-weight:600}
.lf-table-wrap {overflow:auto;border:1px solid #e5e8ed;border-radius:8px;background:white}
.lf-table {width:100%;border-collapse:collapse;font-size:12px}
.lf-table th {padding:11px 14px;text-align:left;font-size:12px;font-weight:500;color:#818a95;background:#fafbfc}
.lf-table td {padding:13px 14px;border-top:1px solid #eceef2;vertical-align:middle;color:#45505f}
.lf-table small {display:block;margin-top:5px;font-size:12px;color:#8a929d}
.lf-table .is-selected {background:#f5f6fc}
.lf-file-name {border:0;background:transparent;padding:0;text-align:left;font:inherit;font-size:13px;font-weight:600;color:#343f50;cursor:pointer}
.lf-selected-detail {padding:16px;border:1px solid #e1e5ed;border-radius:8px;background:#fff;margin-top:8px}
.lf-selected-detail h3 {font-size:14px;font-weight:600}
.lf-selected-detail .lf-item {border:0;padding:12px 0 0;box-shadow:none}
.lf-upload {background:#fff;border-color:#dfe3ec;padding:16px}
.lf-panel>.lf-form {padding:16px;background:#fff;border:1px solid #dfe3ec;border-radius:8px}
.lf-item-head strong {font-size:14px}
.lf-item-head span,.lf-next,.lf-linker summary {font-size:12px}
.lf-link-form {max-width:720px}
.lf-master-sheet{padding:14px 0;border-bottom:1px solid #e5e7eb;margin-bottom:16px}.lf-master-sheet summary{cursor:pointer;font-weight:600}.lf-sheet-actions{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}.lf-sheet-mapping{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin:12px 0}.lf-sheet-mapping label{display:grid;gap:4px}.lf-sheet-history{display:grid;gap:7px}.lf-master-sheet td{max-width:360px;overflow-wrap:anywhere}.lf-master-sheet button{padding:6px 10px;border:1px solid #ddd;border-radius:5px;background:white;cursor:pointer}.lf-master-sheet button:disabled{opacity:.45;cursor:default}
