/* AI-BLOCK-START: Base visual system */
body {
    background: var(--app-bg);
    color: var(--bs-body-color);
}

:root,
[data-bs-theme="light"] {
    --app-bg: #f7f8fa;
    --app-card-border: #dfe3e8;
}

[data-bs-theme="dark"] {
    --app-bg: #111418;
    --app-card-border: #343a40;
}

.navbar {
    min-height: 64px;
}

.card,
.list-group,
.table {
    border-radius: 8px;
}

.card {
    border-color: var(--app-card-border);
}

code {
    color: var(--bs-emphasis-color);
}

/* AI-BLOCK-START: BuyerStats dashboard visual */
.buyer-stats-dashboard {
    --buyer-stats-panel-bg: var(--bs-body-bg);
    --buyer-stats-soft-bg: var(--bs-tertiary-bg);
}

.buyer-stats-panel,
.buyer-stats-metric {
    background: var(--buyer-stats-panel-bg);
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
}

.buyer-stats-panel {
    padding: 1rem;
}

.buyer-stats-card-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.buyer-stats-card-grid.is-wide {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

.buyer-stats-metric {
    min-height: 70px;
    padding: 0.9rem;
}

.buyer-stats-filter-select {
    min-width: 180px;
}

.buyer-stats-date-group {
    max-width: 420px;
}

.buyer-stats-date-group .input-group-text {
    color: var(--bs-body-color);
}

.buyer-stats-period-menu {
    min-width: 220px;
}

.buyer-stats-period-menu .dropdown-item {
    font-size: 0.9rem;
}

.buyer-stats-table {
    min-width: 1320px;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table-wrap {
    overflow-x: hidden;
}

.buyer-stats-icon-button {
    align-items: center;
    display: inline-flex;
    height: 32px;
    justify-content: center;
    padding: 0;
    width: 36px;
}

.buyer-stats-icon-button svg {
    fill: none;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.buyer-stats-icon-button [data-icon-close] {
    display: none;
}

.buyer-stats-dashboard.is-table-expanded [data-table-expand] [data-icon-open],
.buyer-stats-dashboard.is-table-fullscreen [data-table-fullscreen] [data-icon-open] {
    display: none;
}

.buyer-stats-dashboard.is-table-expanded [data-table-expand] [data-icon-close],
.buyer-stats-dashboard.is-table-fullscreen [data-table-fullscreen] [data-icon-close] {
    display: inline-flex;
}

.buyer-stats-sort-button {
    align-items: center;
    color: inherit;
    display: inline-flex;
    font-size: inherit;
    font-weight: 600;
    gap: 0.35rem;
    line-height: 1.1;
    padding: 0;
    text-decoration: none;
    white-space: nowrap;
}

.buyer-stats-sort-button:hover,
.buyer-stats-sort-button:focus {
    color: var(--bs-primary);
    text-decoration: none;
}

.buyer-stats-table th {
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.buyer-stats-table td {
    font-size: 0.88rem;
    white-space: nowrap;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > th,
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > td {
    min-width: 0 !important;
    overflow: hidden;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    text-overflow: ellipsis;
    width: auto !important;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-sort-button {
    max-width: 100%;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-sort-mark {
    display: none;
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(1),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(1) { width: 6% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(2),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(2) { width: 7% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(3),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(3) { width: 18% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(4),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(4) { width: 8% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(5),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(5),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(6),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(6),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(7),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(7),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(9),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(9),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(10),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(10) { width: 10% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(8),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(8) { width: 6% !important; }
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > thead > tr > :nth-child(11),
.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > tr > :nth-child(11) { width: 5% !important; }

.buyer-stats-table th:first-child,
.buyer-stats-table td:first-child {
    min-width: 52px;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
    text-align: center;
    width: 52px;
}

.buyer-stats-table [data-row-details] {
    min-width: 32px;
    padding-left: 0.45rem;
    padding-right: 0.45rem;
}

.buyer-stats-table td:nth-child(3) {
    min-width: 210px;
}

.buyer-stats-table td:nth-child(3) .fw-semibold {
    max-width: 260px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.buyer-stats-table .badge {
    white-space: nowrap;
}

.buyer-stats-sort-mark {
    color: var(--bs-secondary-color);
    font-size: 0.7rem;
    font-weight: 500;
}

.buyer-stats-progress {
    background: var(--buyer-stats-soft-bg);
    height: 8px;
}

.buyer-stats-dashboard:not(.is-advanced) [data-advanced] {
    display: none;
}

.buyer-stats-detail-row td {
    background: var(--bs-tertiary-bg);
}

.buyer-stats-dashboard:not(.is-advanced) .buyer-stats-table > tbody > .buyer-stats-detail-row > td {
    overflow: visible;
    padding: 0.75rem;
    white-space: normal;
}

.buyer-stats-detail-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.buyer-stats-detail-grid div {
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    padding: 0.75rem;
}

.buyer-stats-detail-grid span {
    color: var(--bs-secondary-color);
    display: block;
    font-size: 0.75rem;
}

.buyer-stats-detail-grid strong {
    display: block;
    margin-top: 0.25rem;
}

.buyer-stats-daily-table {
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    overflow: hidden;
}

.buyer-stats-daily-table .table-responsive {
    overflow-x: auto;
}

.buyer-stats-daily-table table {
    min-width: 760px;
    table-layout: auto;
}

.buyer-stats-daily-table > .fw-semibold {
    background: var(--bs-body-bg);
    border-bottom: 1px solid var(--app-card-border);
    padding: 0.75rem;
}

.buyer-stats-daily-table th,
.buyer-stats-daily-table td {
    white-space: nowrap;
}

.buyer-stats-daily-total td {
    background: var(--bs-tertiary-bg);
    border-top: 2px solid var(--app-card-border);
    font-weight: 700;
}

.buyer-stats-table-footer {
    border-top: 1px solid var(--app-card-border);
}

.buyer-stats-per-page {
    width: 92px;
}

.buyer-stats-dashboard.is-table-expanded .buyer-stats-table-column {
    width: 100%;
}

.buyer-stats-dashboard.is-table-expanded .buyer-stats-buyers-column {
    display: none;
}

.buyer-stats-dashboard.is-table-fullscreen {
    background: var(--bs-body-bg);
    inset: 0;
    overflow: auto;
    padding: 1rem;
    position: fixed;
    z-index: 1080;
}

.buyer-stats-dashboard.is-table-fullscreen .buyer-stats-card-grid,
.buyer-stats-dashboard.is-table-fullscreen > .buyer-stats-panel,
.buyer-stats-dashboard.is-table-fullscreen .buyer-stats-buyers-column {
    display: none;
}

.buyer-stats-dashboard.is-table-fullscreen .buyer-stats-table-column {
    width: 100%;
}

.buyer-stats-dashboard.is-table-fullscreen .buyer-stats-table-wrap {
    max-height: calc(100vh - 190px);
    overflow: auto;
}

.buyer-stats-settings-table-wrap {
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    max-height: 52vh;
    overflow: auto;
}

.buyer-stats-settings-section {
    border-bottom: 1px solid var(--app-card-border);
    padding-bottom: 1rem;
}

.buyer-stats-settings-section:last-of-type {
    border-bottom: 0;
}

.buyer-stats-settings-table {
    margin-bottom: 0;
    min-width: 1540px;
}

.buyer-stats-settings-table th {
    background: var(--bs-body-bg);
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    font-weight: 700;
    position: sticky;
    top: 0;
    white-space: nowrap;
    z-index: 2;
}

.buyer-stats-settings-table td {
    vertical-align: middle;
}

.buyer-stats-settings-table .form-control,
.buyer-stats-settings-table .form-select {
    min-width: 100%;
}

.buyer-stats-settings-table .is-check {
    text-align: center;
    width: 74px;
}

.buyer-stats-settings-table .is-key {
    min-width: 210px;
    width: 210px;
}

.buyer-stats-settings-table .is-key code {
    white-space: nowrap;
}

.buyer-stats-settings-table .is-label {
    min-width: 220px;
    width: 220px;
}

.buyer-stats-settings-table .is-source {
    min-width: 240px;
    width: 240px;
}

.buyer-stats-settings-table .is-format,
.buyer-stats-settings-table .is-group {
    min-width: 160px;
    width: 160px;
}

.buyer-stats-settings-table .is-number,
.buyer-stats-settings-table .is-align,
.buyer-stats-settings-table .is-order {
    min-width: 112px;
    width: 112px;
}

.buyer-stats-field-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

@media (min-width: 576px) {
    .buyer-stats-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .buyer-stats-card-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .buyer-stats-card-grid.is-wide {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}
/* AI-BLOCK-END: BuyerStats dashboard visual */

.files-manager {
    --files-panel-min-height: 520px;
    --files-panel-max-height: 760px;
    --files-editor-max-height: 640px;
    background: var(--bs-body-bg);
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.files-actionbar,
.files-pathbar,
.files-browser-head,
.files-browser-footer,
.files-editor-tools {
    align-items: center;
    border-bottom: 1px solid var(--app-card-border);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-height: 52px;
    padding: 10px 14px;
}

.files-actionbar {
    background: var(--bs-tertiary-bg);
    min-height: 54px;
}

.files-action-groups,
.files-action-group,
.files-editor-actions,
.files-editor-selects,
.files-footer-meta,
.files-pager {
    align-items: center;
    display: flex;
    gap: 8px;
}

.files-actionbar .files-action-group {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.files-selection-title {
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-home-link,
.btn-icon {
    color: var(--bs-emphasis-color);
    text-decoration: none;
}

.btn-icon {
    border: 0;
    min-width: 38px;
}

.files-pathbar {
    justify-content: flex-start;
    min-height: 42px;
}

.files-up-button {
    padding-left: 0;
    text-decoration: none;
}

.files-path {
    color: var(--bs-secondary-color);
    font-size: 0.875rem;
    overflow-wrap: anywhere;
}

.files-shell {
    display: grid;
    grid-template-columns: 1fr;
    min-height: var(--files-panel-min-height);
}

.files-manager.is-editing .files-shell {
    grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
}

.files-browser-pane,
.files-editor-pane {
    display: flex;
    flex-direction: column;
    max-height: var(--files-panel-max-height);
    min-height: var(--files-panel-min-height);
    min-width: 0;
    overflow: hidden;
}

.files-manager.is-editing .files-browser-pane {
    border-right: 1px solid var(--app-card-border);
    height: min(var(--files-panel-max-height), calc(100vh - 210px));
    min-height: min(var(--files-panel-min-height), calc(100vh - 210px));
}

.files-manager.is-editing .files-editor-pane {
    height: min(var(--files-panel-max-height), calc(100vh - 210px));
    min-height: min(var(--files-panel-min-height), calc(100vh - 210px));
}

.files-manager.is-editing .files-browser-pane .files-table th:nth-child(n + 3),
.files-manager.is-editing .files-browser-pane .files-table td:nth-child(n + 3) {
    display: none;
}

.files-table {
    font-size: 0.925rem;
    margin-bottom: 0;
}

.files-table-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
}

.files-manager.is-editing .files-table-wrap {
    max-height: none;
}

.files-table th {
    background: var(--bs-body-bg);
    color: var(--bs-emphasis-color);
    font-weight: 600;
    position: sticky;
    top: 0;
    z-index: 1;
}

.files-select-col {
    text-align: center;
    width: 42px;
}

.files-row {
    cursor: pointer;
}

.files-parent-row > td {
    background: var(--bs-tertiary-bg);
}

.files-row.is-selected > td,
.files-row.is-active-file > td {
    background: var(--bs-tertiary-bg);
}

.files-context-menu {
    background: var(--bs-body-bg);
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    min-width: 220px;
    overflow: hidden;
    padding: 6px;
    position: absolute;
    z-index: 20;
}

.files-context-item {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 6px;
    color: var(--bs-emphasis-color);
    display: flex;
    min-height: 36px;
    padding: 7px 10px;
    text-align: left;
    width: 100%;
}

.files-context-item:hover:not(:disabled) {
    background: var(--bs-tertiary-bg);
}

.files-context-item:disabled {
    color: var(--bs-secondary-color);
    opacity: 0.65;
}

.files-name-button {
    align-items: center;
    color: var(--bs-emphasis-color);
    display: inline-flex;
    gap: 8px;
    max-width: 100%;
    padding: 0;
    text-align: left;
    text-decoration: none;
    overflow-wrap: anywhere;
}

.files-name-button:disabled {
    color: var(--bs-secondary-color);
    opacity: 0.75;
}

.files-item-icon {
    background: #c7d3e3;
    border-radius: 4px;
    color: #ffffff;
    flex: 0 0 auto;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 32px;
    padding: 3px 5px;
    text-align: center;
}

.files-item-icon.is-folder {
    background: #f59f00;
}

.files-browser-footer {
    border-bottom: 0;
    border-top: 1px solid var(--app-card-border);
    flex-shrink: 0;
    margin-top: auto;
    flex-wrap: wrap;
}

.files-page-current {
    align-items: center;
    background: #0d2a88;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    height: 34px;
    justify-content: center;
    min-width: 34px;
}

.files-per-page {
    width: 92px;
}

.files-tabs {
    border-bottom: 1px solid var(--app-card-border);
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
}

.files-tab {
    border: 0;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    color: var(--bs-emphasis-color);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: 220px;
    min-height: 54px;
    white-space: nowrap;
}

.files-tab.active {
    border-bottom-color: var(--bs-primary);
    color: var(--bs-primary);
}

.files-tab-close {
    color: var(--bs-secondary-color);
    cursor: pointer;
    display: inline-flex;
    font-size: 1rem;
    line-height: 1;
}

.files-editor-tools {
    flex-wrap: wrap;
}

.files-editor-selects .form-select {
    min-width: 160px;
}

.files-open-path {
    padding: 8px 14px 0;
}

.files-editor-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow: visible;
    position: relative;
}

.files-empty-editor {
    align-items: center;
    background: var(--bs-tertiary-bg);
    border: 1px dashed var(--app-card-border);
    color: var(--bs-secondary-color);
    display: flex;
    justify-content: center;
    margin: 14px;
    min-height: 220px;
    padding: 24px;
    text-align: center;
}

.files-find-widget {
    align-items: stretch;
    background: var(--bs-body-bg);
    border: 1px solid var(--app-card-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
    display: flex;
    max-width: min(560px, calc(100% - 80px));
    min-height: 34px;
    position: absolute;
    right: 74px;
    top: 8px;
    z-index: 12;
}

.files-find-toggle,
.files-find-button,
.files-find-option {
    align-items: center;
    background: transparent;
    border: 0;
    color: var(--bs-secondary-color);
    display: inline-flex;
    justify-content: center;
    min-width: 28px;
}

.files-find-toggle:hover,
.files-find-button:hover,
.files-find-option:hover,
.files-find-option.is-active {
    color: var(--bs-emphasis-color);
}

.files-find-fields {
    min-width: 220px;
}

.files-find-row {
    align-items: center;
    display: flex;
    min-height: 32px;
}

.files-find-input {
    border: 0;
    border-radius: 0;
    box-shadow: none !important;
    min-width: 160px;
}

.files-find-option {
    font-size: 0.75rem;
    min-width: 26px;
}

.files-find-actions {
    align-items: center;
    display: flex;
    gap: 2px;
    padding-right: 4px;
}

.files-find-count {
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    flex: 0 0 64px;
    max-width: 64px;
    min-width: 64px;
    overflow: hidden;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.files-find-widget.is-replace-visible {
    flex-wrap: wrap;
}

.files-find-widget.is-replace-visible .files-find-actions {
    align-self: flex-start;
}

.files-manager.is-fullscreen {
    inset: 0;
    position: fixed;
    z-index: 1080;
}

.files-manager.is-fullscreen .files-actionbar,
.files-manager.is-fullscreen .files-pathbar,
.files-manager.is-fullscreen .files-browser-pane,
.files-manager.is-fullscreen .files-open-path {
    display: none !important;
}

.files-manager.is-fullscreen .files-shell {
    grid-template-columns: 1fr;
    min-height: 100vh;
}

.files-manager.is-fullscreen .files-editor-pane {
    display: block !important;
}

.files-code-editor {
    border: 1px solid var(--app-card-border);
    border-radius: 8px;
    margin: 8px 14px 14px;
    overflow: hidden;
    position: relative;
}

.files-code-editor .cm-editor {
    background: var(--bs-body-bg);
    color: var(--bs-body-color);
    height: var(--files-editor-max-height);
    min-height: var(--files-panel-min-height);
    position: relative;
}

.files-code-editor .cm-scroller {
    overflow: auto;
}

.files-manager.is-editing .files-code-editor .cm-editor {
    height: min(var(--files-editor-max-height), calc(100vh - 400px));
    min-height: 260px;
}

#files-editor {
    height: var(--files-editor-max-height);
    margin: 8px 14px 14px;
    min-height: var(--files-panel-min-height);
    overflow: auto;
}

.files-manager.is-editing #files-editor {
    height: min(var(--files-editor-max-height), calc(100vh - 400px));
    min-height: 260px;
}

.files-code-editor .cm-gutters {
    background: var(--bs-tertiary-bg);
    color: var(--bs-secondary-color);
    border-right-color: var(--app-card-border);
}

.files-code-editor .cm-activeLine,
.files-code-editor .cm-activeLineGutter {
    background: rgba(127, 127, 127, 0.12);
}

.files-code-editor .cm-panels {
    border-color: var(--app-card-border);
}

.files-code-editor .cm-panels-top {
    background: transparent;
    border-bottom: 0;
    pointer-events: none;
    position: absolute;
    right: 32px;
    top: 0;
    z-index: 10;
}

.files-code-editor .cm-search {
    align-items: center;
    background: var(--bs-body-bg);
    border: 1px solid var(--app-card-border);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin: 0;
    max-width: min(560px, calc(100vw - 64px));
    padding: 6px;
    pointer-events: auto;
}

.files-code-editor .cm-search input {
    border: 1px solid var(--app-card-border);
    border-radius: 4px;
    min-height: 28px;
}

.files-code-editor .cm-search button,
.files-code-editor .cm-search label {
    font-size: 0.8rem;
}

.files-manager.is-fullscreen .files-code-editor .cm-editor,
.files-manager.is-fullscreen .files-code-editor .cm-content {
    min-height: calc(100vh - 118px);
    height: calc(100vh - 118px);
}

@media (max-width: 575.98px) {
    .files-manager.is-editing .files-shell,
    .files-shell {
        grid-template-columns: 1fr;
    }

    .files-actionbar,
    .files-pathbar,
    .files-browser-head,
    .files-browser-footer,
    .files-editor-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .files-action-groups,
    .files-action-group,
    .files-editor-actions,
    .files-editor-selects,
    .files-footer-meta {
        flex-wrap: wrap;
        width: 100%;
    }

    .files-table th:nth-child(3),
    .files-table th:nth-child(4),
    .files-table th:nth-child(5),
    .files-table th:nth-child(6),
    .files-table th:nth-child(7),
    .files-table th:nth-child(8),
    .files-table td:nth-child(3),
    .files-table td:nth-child(4),
    .files-table td:nth-child(5),
    .files-table td:nth-child(6),
    .files-table td:nth-child(7),
    .files-table td:nth-child(8) {
        display: none;
    }

    .files-manager.is-editing .files-browser-pane {
        border-bottom: 1px solid var(--app-card-border);
        border-right: 0;
    }

    .files-table-wrap,
    .files-manager.is-editing .files-table-wrap {
        max-height: none;
    }

    .files-editor-selects .form-select {
        min-width: 0;
        width: 100%;
    }

    .files-tab {
        max-width: 180px;
    }

    .table-stack thead {
        display: none;
    }

    .table-stack tr,
    .table-stack td {
        display: block;
        width: 100%;
    }

    .table-stack tr {
        border: 1px solid var(--app-card-border);
        border-radius: 8px;
        margin-bottom: 12px;
        padding: 8px 0;
    }

    .table-stack td {
        border: 0;
        padding: 6px 12px;
    }

    .files-code-editor .cm-content,
    .files-code-editor .cm-editor {
        min-height: 420px;
    }

    .files-code-editor .cm-editor {
        height: min(var(--files-editor-max-height), 70vh);
    }

    .files-code-editor .cm-panels-top {
        left: 8px;
        right: 8px;
    }

    .files-code-editor .cm-search {
        max-width: none;
    }

    .files-find-widget {
        left: 12px;
        max-width: calc(100% - 24px);
        right: 12px;
    }

    .files-find-fields {
        flex: 1 1 auto;
        min-width: 0;
    }

    .files-find-actions {
        flex-wrap: wrap;
    }
}
/* AI-BLOCK-END: Base visual system */
