.cfx-page {
    width: min(100%, 1540px);
    margin: 0 auto;
    padding: 30px 34px 44px;
}

.cfx-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 22px;
    gap: 24px;
}

.cfx-header h1 {
    margin: 2px 0 5px;
    color: var(--wb-ink);
    font-size: clamp(25px, 2.2vw, 34px);
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.cfx-header > div > p:last-child {
    margin: 0;
    color: var(--wb-muted);
}

.cfx-eyebrow {
    margin: 0;
    color: var(--wb-brand);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.cfx-header-actions,
.cfx-tabs,
.cfx-button,
.cfx-name-button,
.cfx-row-actions,
.cfx-breadcrumb,
.cfx-drop-zone {
    display: flex;
    align-items: center;
}

.cfx-header-actions { gap: 9px; }

.cfx-connection-banner {
    display: flex;
    min-height: 42px;
    align-items: center;
    margin: -5px 0 18px;
    padding: 8px 12px;
    gap: 9px;
    color: #765c12;
    background: #fff9e7;
    border: 1px solid #eadca7;
    border-radius: 10px;
    font-size: 12px;
}
.cfx-connection-banner .wb-icon { width: 17px; height: 17px; flex: 0 0 auto; }

.cfx-button {
    justify-content: center;
    gap: 7px;
    cursor: pointer;
}

.cfx-button:hover { }
.cfx-button:disabled { cursor: wait; }
.cfx-button .wb-icon { width: 17px; height: 17px; }
.cfx-button-primary { }
.cfx-button-primary:hover { }
.cfx-button-secondary { }
.cfx-button-secondary:hover { }
.cfx-button.is-danger { }

.cfx-panel {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--wb-line);
    border-radius: var(--wb-radius-lg);
    box-shadow: var(--wb-shadow-sm);
}

.cfx-toolbar {
    display: flex;
    min-height: 64px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    gap: 20px;
    border-bottom: 1px solid var(--wb-line);
}

.cfx-tabs { align-self: stretch; gap: 4px; }
.cfx-tab {
    position: relative;
    display: flex;
    min-height: 100%;
    align-items: center;
    padding: 0 12px;
    gap: 7px;
    color: var(--wb-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}
.cfx-tab::after { position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; content: ""; background: transparent; border-radius: 2px 2px 0 0; }
.cfx-tab:hover { color: var(--wb-ink); }
.cfx-tab.is-active { color: var(--wb-brand-strong); font-weight: 700; }
.cfx-tab.is-active::after { background: var(--wb-brand); }
.cfx-tab .wb-icon { width: 18px; height: 18px; }
.cfx-storage-note { margin: 0; color: var(--wb-muted); font-size: 11px; text-align: right; }

.cfx-breadcrumb {
    min-height: 46px;
    padding: 6px 22px;
    gap: 7px;
    color: #8a958e;
    background: var(--wb-surface-soft);
    border-bottom: 1px solid var(--wb-line);
}
.cfx-breadcrumb button { max-width: 220px; overflow: hidden; padding: 4px 5px; color: var(--wb-text); background: transparent; border: 0; border-radius: 5px; text-overflow: ellipsis; white-space: nowrap; cursor: pointer; }
.cfx-breadcrumb button:hover { color: var(--wb-brand-strong); background: var(--wb-brand-soft); }

.cfx-drop-zone {
    min-height: 76px;
    margin: 18px 20px 5px;
    justify-content: center;
    padding: 12px 20px;
    gap: 12px;
    color: var(--wb-muted);
    background: #fbfdfc;
    border: 1px dashed #bfd2c4;
    border-radius: 11px;
    cursor: pointer;
    transition: color .16s ease, background .16s ease, border-color .16s ease;
}
.cfx-drop-zone:hover,
.cfx-drop-zone.is-dragging { color: var(--wb-brand-strong); background: var(--wb-brand-soft); border-color: var(--wb-brand); }
.cfx-drop-zone strong,
.cfx-drop-zone small { display: block; }
.cfx-drop-zone strong { color: var(--wb-ink); font-size: 13px; }
.cfx-drop-zone small { margin-top: 2px; font-size: 11px; }
.cfx-drop-icon { display: grid; width: 39px; height: 39px; place-items: center; color: var(--wb-brand); background: #fff; border: 1px solid #d8e8dd; border-radius: 10px; }
.cfx-drop-icon .wb-icon { width: 20px; height: 20px; }

.cfx-table-wrap { position: relative; min-height: 310px; padding: 8px 20px 20px; }
.cfx-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cfx-table th { height: 42px; padding: 0 12px; color: #87928a; border-bottom: 1px solid var(--wb-line); font-size: 11px; font-weight: 700; letter-spacing: .02em; text-align: left; }
.cfx-table th:first-child { width: 43%; }
.cfx-table th:nth-child(2) { width: 23%; }
.cfx-table th:nth-child(3) { width: 13%; }
.cfx-table th:last-child { width: 21%; }
.cfx-table[data-trash-table] th:first-child { width: 31%; }
.cfx-table[data-trash-table] th:nth-child(2) { width: 29%; }
.cfx-table[data-trash-table] th:nth-child(3) { width: 18%; }
.cfx-table[data-trash-table] th:last-child { width: 22%; }
.cfx-table td { min-height: 66px; padding: 10px 12px; color: var(--wb-muted); border-bottom: 1px solid #edf1ee; vertical-align: middle; }
.cfx-table tbody tr { transition: background .14s ease; }
.cfx-table tbody tr:hover { background: #fafcfb; }
.cfx-table tbody tr:last-child td { border-bottom: 0; }
.cfx-actions-heading { text-align: right !important; }

.cfx-name-button {
    width: 100%;
    min-width: 0;
    padding: 0;
    gap: 11px;
    color: var(--wb-text);
    background: transparent;
    border: 0;
    text-align: left;
    cursor: pointer;
}
.cfx-name-button.is-static { cursor: default; }
.cfx-name-button > span:last-child { min-width: 0; }
.cfx-name-button strong,
.cfx-name-button small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cfx-name-button strong { color: var(--wb-ink); font-size: 13px; font-weight: 650; }
.cfx-name-button:hover strong { color: var(--wb-brand-strong); }
.cfx-name-button small { margin-top: 3px; color: #8b968f; font-size: 10px; }
.cfx-item-icon { display: grid; width: 38px; height: 38px; flex: 0 0 auto; place-items: center; border-radius: 9px; }
.cfx-item-icon svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.7; }
.cfx-item-icon.is-folder { color: #a76816; background: #fff4df; }
.cfx-item-icon.is-file { color: var(--wb-brand-strong); background: var(--wb-brand-soft); }

.cfx-row-actions { justify-content: flex-end; gap: 4px; flex-wrap: wrap; }
.cfx-row-action { cursor: pointer; }
.cfx-row-action:hover { }
.cfx-row-action.is-primary { }
.cfx-row-action.is-danger { }

.cfx-state { position: absolute; inset: 20px; display: flex; min-height: 250px; flex-direction: column; align-items: center; justify-content: center; color: var(--wb-muted); text-align: center; }
.cfx-state-icon { display: grid; width: 56px; height: 56px; margin-bottom: 12px; place-items: center; color: #5b8c6c; background: var(--wb-brand-soft); border-radius: 16px; }
.cfx-state-icon .wb-icon { width: 27px; height: 27px; }
.cfx-state strong { color: var(--wb-ink); font-size: 14px; }
.cfx-state small { max-width: 390px; margin-top: 4px; }
.cfx-page.is-busy { cursor: progress; }
.cfx-page.is-trash-view .cfx-header-actions { visibility: hidden; }

.cfx-modal { position: fixed; z-index: 120; inset: 0; display: grid; padding: 20px; place-items: center; }
.cfx-modal-backdrop { position: absolute; inset: 0; background: rgba(20, 31, 24, .5); border: 0; cursor: default; backdrop-filter: blur(3px); }
.cfx-modal-card { position: relative; z-index: 1; width: min(100%, 430px); padding: 24px; background: #fff; border: 1px solid rgba(255, 255, 255, .5); border-radius: 15px; box-shadow: var(--wb-shadow-lg); }
.cfx-modal-card h2 { margin: 0 0 15px; color: var(--wb-ink); font-size: 19px; }
.cfx-modal-card p { margin: 0 0 18px; color: var(--wb-text); }
.cfx-modal-card label span { display: block; margin-bottom: 6px; color: var(--wb-text); font-size: 12px; font-weight: 650; }
.cfx-modal-card input { width: 100%; height: 42px; padding: 0 11px; color: var(--wb-ink); background: #fff; border: 1px solid var(--wb-line-strong); border-radius: 8px; outline: 0; }
.cfx-modal-card input:focus { border-color: var(--wb-brand); box-shadow: var(--wb-focus); }
.cfx-modal-actions { display: flex; justify-content: flex-end; margin-top: 22px; gap: 8px; }
.cfx-modal-open { overflow: hidden; }

.cfx-toast { position: fixed; z-index: 140; right: 24px; bottom: 24px; max-width: min(420px, calc(100vw - 32px)); padding: 11px 15px; color: #fff; background: #214d34; border-radius: 9px; box-shadow: 0 12px 30px rgba(19, 49, 31, .24); font-weight: 600; }
.cfx-toast.is-error { background: #9f2d24; }

@media (max-width: 1050px) {
    .cfx-storage-note { display: none; }
    .cfx-table th:first-child { width: 38%; }
    .cfx-table th:nth-child(2) { width: 21%; }
    .cfx-table th:nth-child(3) { width: 12%; }
    .cfx-table th:last-child { width: 29%; }
}

@media (max-width: 699px) {
    .cfx-page { padding: 22px 15px 34px; }
    .cfx-header { flex-direction: column; margin-bottom: 17px; }
    .cfx-header-actions { width: 100%; }
    .cfx-header-actions .cfx-button { flex: 1; }
    .cfx-connection-banner { align-items: flex-start; margin-bottom: 14px; }
    .cfx-panel { border-radius: 14px; }
    .cfx-toolbar { min-height: 56px; padding: 0 12px; }
    .cfx-tab { padding: 0 9px; }
    .cfx-breadcrumb { overflow-x: auto; padding-right: 12px; padding-left: 12px; }
    .cfx-drop-zone { min-height: 68px; margin: 13px 12px 3px; padding: 10px 12px; justify-content: flex-start; }
    .cfx-drop-icon { width: 35px; height: 35px; }
    .cfx-table-wrap { min-height: 280px; padding: 6px 12px 14px; }
    .cfx-table,
    .cfx-table tbody { display: block; }
    .cfx-table thead { display: none; }
    .cfx-table tr { display: grid; grid-template-columns: 1fr auto; padding: 12px 3px; border-bottom: 1px solid var(--wb-line); }
    .cfx-table td { display: block; min-height: 0; padding: 3px 5px; border: 0; }
    .cfx-table td:first-child { grid-column: 1 / -1; }
    .cfx-table[data-file-table] td:nth-child(2),
    .cfx-table[data-file-table] td:nth-child(3) { display: none; }
    .cfx-table[data-trash-table] td:nth-child(2),
    .cfx-table[data-trash-table] td:nth-child(3) { grid-column: 1 / -1; color: #87928a; font-size: 10px; }
    .cfx-row-actions { grid-column: 1 / -1; justify-content: flex-start; margin-top: 6px; }
    .cfx-row-action { }
    .cfx-state { inset: 10px; min-height: 220px; }
    .cfx-toast { right: 16px; bottom: 16px; left: 16px; max-width: none; }
}

@media (max-width: 430px) {
    .cfx-header-actions { align-items: stretch; flex-direction: column; }
    .cfx-drop-zone small { display: none; }
    .cfx-modal-card { padding: 20px; }
}

.cfx-load-more { margin: 0 auto 20px; }
.cfx-state [data-login-link] { margin-top: 12px; color: var(--wb-brand-strong); }
.cfx-connection-banner { color: #315b41; background: #eff8f2; border-color: #d4e7da; }
.cfx-page.is-busy [data-drop-zone] { pointer-events: none; opacity: .65; }
