/* ─── Split layout: upload wizard pane + scrolling files pane ──────────────── */
/* The page itself doesn't scroll; instead the content area is split into the
   upload wizard (top) and the files list (bottom). Only the file rows scroll,
   so the files header (title + folder filter + "Показати файли") and the table
   column headers stay frozen no matter how far you scroll the list. */

.content-area {
    overflow: hidden;
}

/* Wizard pane: natural height, but may shrink + scroll on short screens so the
   files pane always keeps room. */
.content-area > .progress-section {
    flex: 0 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* Files pane: fills the remaining height. */
.content-area > .files-section {
    flex: 1 1 auto;
    min-height: 12rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Frozen header row: section title, folder dropdown, "Показати файли" button. */
.files-section > .section-header {
    flex: 0 0 auto;
}

/* The scroll window — fills the files pane and is the only thing that scrolls. */
.files-section > #filesTable {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
}

/* The shared .files-table sets overflow:hidden (for rounded corners), which
   would make the table itself the sticky containing block. Clear it so the
   header sticks to #filesTable, the actual scroll container. */
#filesTable .files-table {
    overflow: visible;
}

/* Frozen column headers (Файл / Розмір / Змінено) while rows scroll. */
#filesTable .files-table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.upload-files-empty {
    text-align: center;
    padding: 2.5rem 1rem;
    color: var(--shades-400);
    font-size: 0.875rem;
}

/* ─── Upload cards / panels ─────────────────────────────── */

.dashboard-panel[data-panel="upload"] {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-panel[data-panel="upload"] .progress-section.kb-upload-card,
.dashboard-panel[data-panel="upload"] .files-section.kb-upload-panel {
    background: var(--white);
    border: 0.0625rem solid var(--shades-150);
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.5rem rgba(61, 62, 64, 0.06);
    flex: none;
    overflow: hidden;
}

.dashboard-panel[data-panel="upload"] .progress-section.kb-upload-card {
    padding: 0 1.75rem 1.25rem;
    margin-bottom: 0;
}

.dashboard-panel[data-panel="upload"] .files-section.kb-upload-panel {
    padding: 0 1.75rem 1.25rem;
    margin-bottom: 0;
}

.kb-upload-card__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--shades-600);
    background: var(--shades-50);
    border-bottom: 0.0625rem solid var(--shades-150);
    padding: 0.875rem 1.75rem;
    margin: 0 -1.75rem 1.25rem;
}

.kb-upload-panel__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    background: var(--shades-50);
    border-bottom: 0.0625rem solid var(--shades-150);
    padding: 0.875rem 1.75rem;
    margin: 0 -1.75rem 1rem;
}

.kb-upload-panel__title {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--shades-600);
}

.kb-folder-row {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    margin-bottom: 1.25rem;
}

.kb-folder-row .upload-field-label {
    margin: 0;
}

.kb-folder-row .folder-picker {
    width: 100%;
}

.upload-form-row {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* ─── Upload form ─────────────────────────────────────────────────────────── */

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.5rem;
}

.upload-radio-group {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.25rem;
}

.upload-radio-option {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.875rem;
    color: var(--shades-600);
}

.upload-radio-option input[type='radio'] {
    width: 0.9375rem;
    height: 0.9375rem;
    margin: 0;
    accent-color: var(--ink, var(--shades-600));
    cursor: pointer;
    flex-shrink: 0;
}

.upload-folder-picker {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.upload-folder-picker__label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--shades-400);
    margin: 0 0 0.125rem;
}

.upload-folder-picker__current {
    margin: 0;
    font-size: 0.75rem;
    color: var(--shades-500);
}

.upload-folder-picker__current code {
    background: var(--shades-50);
    padding: 0.0625rem 0.3125rem;
    border-radius: 0.1875rem;
    word-break: break-all;
}

.upload-folder-picker__name-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    max-width: 18.75rem;
}

.upload-field-label,
.upload-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--shades-400);
    margin: 0;
}

.upload-hint {
    font-weight: 400;
    color: var(--shades-400);
    font-size: 0.8125rem;
}

/* ─── Folder picker (admin-uploads folder-picker) ───────────────────── */

.folder-picker {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.folder-picker__sep {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.folder-picker-select {
    position: relative;
    flex: 0 1 auto;
}

.folder-picker__select,
.folder-picker-select__trigger {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.625rem;
    min-width: 10rem;
    max-width: 18.75rem;
    width: 100%;
    padding: 0.4375rem 0.625rem;
    border: 0.0625rem solid #d1d5db;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    font-family: inherit;
    font-weight: 400;
    color: #1a1a1a;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
    text-align: left;
    transition: border-color 0.15s ease;
}

.folder-picker__select:hover,
.folder-picker-select__trigger:hover {
    border-color: #9ca3af;
}

.folder-picker__select:focus,
.folder-picker-select__trigger:focus {
    outline: none;
    border-color: #111;
}

.folder-picker-select__trigger--placeholder .folder-picker-select__label {
    color: var(--shades-400);
}

.folder-picker-select__label {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.folder-picker-select__chevron {
    flex-shrink: 0;
    width: 0.75rem;
    height: 0.75rem;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transition: transform 0.15s ease;
}

.folder-picker-select.is-open .folder-picker-select__chevron {
    transform: rotate(180deg);
}

.folder-picker-select__menu {
    position: fixed;
    z-index: 10002;
    min-width: 10rem;
    max-width: 18.75rem;
    max-height: 16rem;
    margin: 0;
    padding: 0.375rem 0;
    list-style: none;
    overflow-y: auto;
    background: #fff;
    border: 0.0625rem solid #e5e7eb;
    border-radius: 0.5rem;
    box-shadow: 0 0.25rem 1rem rgba(61, 62, 64, 0.15);
}

.folder-picker-select__option {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #1a1a1a;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.folder-picker-select__option:hover {
    background: #f3f4f6;
}

.folder-picker-select__option--selected {
    background: #f9fafb;
    font-weight: 600;
}

.folder-picker__current {
    margin: 0.5rem 0 0;
    font-size: 0.75rem;
    color: var(--shades-500);
    width: 100%;
}

.folder-picker__current code {
    background: var(--shades-50);
    padding: 0.0625rem 0.3125rem;
    border-radius: 0.1875rem;
    word-break: break-all;
}

/* Legacy aliases (older markup/scripts) */
.folder-cascade {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.folder-cascade-sep {
    color: #9ca3af;
    font-size: 1.125rem;
    line-height: 1;
    flex-shrink: 0;
    user-select: none;
}

.upload-input {
    min-width: 10rem;
    max-width: 18.75rem;
    padding: 0.5rem 0.625rem;
    border: 0.0625rem solid var(--shades-250, #d1d5db);
    border-radius: 0.375rem;
    font-size: 0.8125rem;
    color: var(--shades-600);
    background: var(--shades-50);
    box-sizing: border-box;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-input:focus {
    outline: none;
    border-color: var(--ink, var(--shades-600));
    background: var(--white);
}

.upload-input::placeholder {
    color: var(--shades-300);
}

.upload-input--folder-new {
    min-width: 10rem;
    max-width: 18.75rem;
}

/* ─── Drag & drop dropzone ────────────────────────────────────────────────── */

.upload-dropzone {
    display: block;
    border: 0.125rem dashed var(--shades-250, #d1d5db);
    border-radius: 0.5rem;
    padding: 1.75rem 1.25rem;
    background: var(--white);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

.upload-dropzone:hover,
.upload-dropzone.is-dragover {
    border-color: var(--ink, var(--shades-600));
    background: var(--shades-50);
}

.upload-dropzone.has-file {
    border-color: var(--shades-300);
    border-style: solid;
    background: var(--white);
}

.upload-dropzone__input {
    display: none;
}

.upload-dropzone__icon {
    font-size: 2rem;
    color: var(--shades-400);
    display: block;
    margin: 0 auto 0.375rem;
}

.upload-dropzone__text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.upload-dropzone__main {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--shades-600);
}

.upload-dropzone__link {
    color: var(--shades-600);
    text-decoration: underline;
    font-weight: 600;
}

.upload-dropzone__hint {
    font-size: 0.75rem;
    color: var(--shades-400);
}

.upload-dropzone--lg {
    min-height: 9rem;
    padding: 2rem 1.25rem;
}

.upload-dropzone--lg .upload-dropzone__icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

/* ─── Selected files list (step 2) ────────────────────────────────────────── */

.upload-file-list {
    margin-top: 1rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    overflow: hidden;
    background: var(--white);
}

.upload-file-list__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.625rem 0.875rem;
    background: var(--shades-50);
    border-bottom: 0.0625rem solid var(--shades-150);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--shades-600);
}

.upload-file-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

.upload-file-item:last-child {
    border-bottom: none;
}

.upload-file-item__icon {
    color: var(--primary-400);
    flex-shrink: 0;
}

.upload-file-item__name {
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--shades-600);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.upload-file-item__size {
    font-size: 0.8125rem;
    color: var(--shades-400);
    white-space: nowrap;
    flex-shrink: 0;
}

.upload-file-item__remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.75rem;
    height: 1.75rem;
    padding: 0;
    border: none;
    border-radius: 0.375rem;
    background: transparent;
    color: var(--shades-400);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, color 0.2s;
}

.upload-file-item__remove:hover {
    background: #fff4f4;
    color: var(--danger-500);
}

/* ─── Wizard stepper ─────────────────────────────────── */

.wizard-steps {
    display: flex;
    align-items: center;
    margin: 0 0 1.25rem;
    padding-bottom: 1.25rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    flex-shrink: 0;
}

.wizard-step__circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    box-sizing: border-box;
    border-radius: 50%;
    border: 0.125rem solid transparent;
    background: var(--shades-200);
    color: var(--shades-400);
    font-weight: 600;
    font-size: 0.8125rem;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.wizard-step.active .wizard-step__circle {
    background: transparent;
    border-color: var(--ink, var(--shades-600));
    color: var(--ink, var(--shades-600));
}

.wizard-step.done .wizard-step__circle {
    background: var(--ink, var(--shades-600));
    border-color: var(--ink, var(--shades-600));
    color: var(--white);
}

.wizard-step__label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--shades-400);
    white-space: nowrap;
}

.wizard-step.active .wizard-step__label,
.wizard-step.done .wizard-step__label {
    color: var(--ink, var(--shades-600));
    font-weight: 600;
}

.wizard-step__line {
    flex: 1;
    height: 0.125rem;
    background: var(--shades-200);
    margin: 0 0.375rem 1.25rem;
    transition: background 0.2s ease;
}

.wizard-step.done + .wizard-step__line,
.wizard-step.active + .wizard-step__line {
    background: var(--ink, var(--shades-600));
}

/* ─── Wizard panels & actions ─────────────────────────────────────────────── */

.wizard-panel__title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--shades-600);
    margin: 0 0 0.5rem;
}

.wizard-panel__desc {
    font-size: 0.8125rem;
    color: var(--shades-400);
    line-height: 1.45;
    margin: 0 0 1rem;
}

.wizard-path {
    background: var(--shades-50);
    border: none;
    border-radius: 0.1875rem;
    padding: 0.0625rem 0.3125rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.75rem;
    color: var(--shades-600);
    word-break: break-all;
}

.wizard-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.625rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 0.0625rem solid var(--shades-150);
}

.wizard-actions--split {
    justify-content: space-between;
}

.upload-form-actions {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* ─── Upload status ───────────────────────────────────────────────────────── */

.upload-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    border: 0.0625rem solid transparent;
}

.upload-status--info {
    background: var(--primary-50, #e8f1fb);
    border-color: var(--primary-200, #b3d0f5);
    color: var(--primary-500);
}

.upload-status--success {
    background: #f0faf4;
    border-color: #a3d9b5;
    color: var(--success-500);
}

.upload-status--error {
    background: #fff4f4;
    border-color: #f5b3b3;
    color: var(--danger-500);
}

/* ─── Files table (KB list panel) ─────────────────────────────────────────── */

#filesTable .files-table {
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    box-shadow: none;
}

#filesTable .files-table th {
    background: var(--shades-50);
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    border-bottom: 0.0625rem solid var(--shades-150);
}

#filesTable .files-table td {
    padding: 0.5625rem 0.75rem;
    font-size: 0.8125rem;
    vertical-align: middle;
}

.kb-file-icon {
    margin-right: 0.375rem;
    color: var(--shades-400);
}

.kb-size-cell {
    white-space: nowrap;
    width: 7rem;
}

.kb-date-cell {
    white-space: nowrap;
    width: 10rem;
}

.kb-actions-cell {
    width: 3.5rem;
    text-align: right;
}

.btn-sm {
    padding: 0.375rem 0.625rem;
    font-size: 0.8125rem;
}

.btn-danger-outline {
    color: var(--danger-500);
    border-color: var(--danger-500);
}

.btn-danger-outline:hover {
    background: var(--danger-500);
    color: var(--white);
}

.btn-danger {
    background: var(--danger-500);
    border-color: var(--danger-500);
    color: var(--white);
}

.btn-danger:hover {
    background: #c0392b;
    border-color: #c0392b;
}

/* ─── Confirm delete modal ────────────────────────────────────────────────── */

.kb-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.kb-modal {
    background: var(--white);
    border-radius: 0.75rem;
    padding: 1.75rem;
    width: 100%;
    max-width: 26rem;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.kb-modal-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--shades-600);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kb-modal-title .hicon {
    color: var(--danger-500);
}

.kb-modal-body {
    font-size: 0.875rem;
    color: var(--shades-400);
    word-break: break-all;
    background: var(--shades-50);
    border-radius: 0.375rem;
    padding: 0.625rem 0.875rem;
}

.kb-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */

@media (max-width: 48em) {
    .dashboard-panel[data-panel="upload"] .progress-section.kb-upload-card,
    .dashboard-panel[data-panel="upload"] .files-section.kb-upload-panel {
        padding: 1.25rem 1rem;
    }

    .kb-upload-panel__header {
        flex-direction: column;
        align-items: stretch;
    }

    .folder-picker,
    .folder-cascade {
        gap: 0.375rem;
    }

    .folder-picker__select,
    .folder-picker-select__trigger,
    .folder-picker-select {
        max-width: 100%;
        min-width: 0;
        width: 100%;
    }

    .folder-picker-select__menu {
        max-width: 100%;
    }

    .upload-input,
    .upload-input--folder-new {
        max-width: 100%;
        width: 100%;
    }

    .upload-input--folder-new {
        min-width: 0;
    }

    .kb-date-cell {
        display: none;
    }
}

/* ─── Dictionary / external links panels ─────────────── */

.kb-upload-panel__toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.kb-panel-status {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.kb-panel-status--success {
    background: color-mix(in srgb, var(--primary-500) 12%, transparent);
    color: var(--primary-700, #006b28);
}

.kb-panel-status--error {
    background: color-mix(in srgb, var(--danger-500, #f80000) 10%, transparent);
    color: var(--danger-600, #c40000);
}

.kb-el-reprocess-toggle {
    margin: 0 0 0.5rem;
}

.kb-panel-hint {
    color: var(--shades-500);
    font-size: 0.875rem;
}

.kb-panel-expand {
    margin-top: 0.75rem;
}

.badge--optional {
    display: inline-block;
    margin-left: 0.5rem;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--shades-500);
    background: var(--shades-100, #f3f4f4);
}

.toggle-row {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    margin-bottom: 1rem;
    cursor: pointer;
}

.toggle-row__checkbox {
    width: 1rem;
    height: 1rem;
}

.toggle-row__label {
    font-size: 0.9375rem;
    color: var(--shades-700);
}

.ext-form-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ext-form-list__add {
    align-self: flex-start;
}

.ext-form-card {
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--shades-50, #fafafa);
}

.ext-form-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.ext-form-card__title {
    font-weight: 600;
    color: var(--shades-700);
}

.ext-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.ext-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.ext-form__field {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ext-form__field--full {
    grid-column: 1 / -1;
}

.ext-form__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--shades-600);
}

.ext-form__field--required .ext-form__label::after {
    content: ' *';
    color: var(--danger-500, #f80000);
}

.ext-form__input {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.375rem;
    font-size: 0.875rem;
}

.kb-el-intro--secondary {
    margin-top: -0.5rem;
    color: var(--shades-450, #5c5e60);
}

.ext-form__field-hint {
    display: block;
    margin: 0 0 0.375rem;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.4;
    color: var(--shades-500);
}

.kb-el-intro {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--shades-500);
}

.kb-el-legend {
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
    border: 0.0625rem solid var(--shades-150);
    border-radius: 0.5rem;
    background: var(--shades-50, #fafafa);
    display: grid;
    gap: 0.625rem;
}

.kb-el-legend__item {
    display: grid;
    grid-template-columns: minmax(7rem, 9rem) minmax(0, 1fr);
    gap: 0.5rem 1rem;
    align-items: start;
}

.kb-el-legend__term {
    margin: 0;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--shades-600);
}

.kb-el-legend__desc {
    margin: 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--shades-500);
}

.ext-form__hint {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--shades-500);
}

.dict-table-wrap,
.el-table-wrap {
    overflow-x: auto;
}

.dict-table,
.el-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.dict-table th,
.dict-table td,
.el-table th,
.el-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 0.0625rem solid var(--shades-200);
    text-align: left;
    vertical-align: top;
}

.dict-table th,
.el-table th {
    background: var(--shades-50, #fafafa);
    font-weight: 600;
    color: var(--shades-600);
}

.dict-table__input {
    width: 100%;
    min-width: 10rem;
    padding: 0.375rem 0.5rem;
    border: 0.0625rem solid var(--shades-200);
    border-radius: 0.375rem;
}

.el-link {
    color: var(--primary-600);
    word-break: break-all;
}

@media (max-width: 48em) {
    .kb-el-legend__item {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .ext-form__row {
        grid-template-columns: 1fr;
    }
}
