.fvjs-shell {
    --fvjs-bg: #f6f8fc;
    --fvjs-panel: #ffffff;
    --fvjs-border: #dde4ef;
    --fvjs-text: #0f172a;
    --fvjs-muted: #667085;
    --fvjs-blue: #2563eb;
    --fvjs-green: #079455;
    --fvjs-red: #ef4444;
    --fvjs-sidebar: #051b3a;
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    width: min(100%, 1440px);
    min-height: 920px;
    margin: 0 auto;
    background: var(--fvjs-bg);
    color: var(--fvjs-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.fvjs-standalone {
    --fvjs-bg: #f6f8fc;
    --fvjs-panel: #ffffff;
    --fvjs-border: #dde4ef;
    --fvjs-text: #0f172a;
    --fvjs-muted: #667085;
    --fvjs-blue: #2563eb;
    --fvjs-green: #079455;
    --fvjs-red: #ef4444;
    width: min(100%, 1240px);
    margin: 0 auto;
    padding: clamp(16px, 3vw, 28px);
    background: var(--fvjs-bg);
    color: var(--fvjs-text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

.fvjs-shell * {
    box-sizing: border-box;
}

.fvjs-standalone *,
.fvjs-shell h1,
.fvjs-shell h2,
.fvjs-shell h3,
.fvjs-shell p,
.fvjs-shell a,
.fvjs-shell table,
.fvjs-shell label,
.fvjs-shell input,
.fvjs-shell select,
.fvjs-shell textarea,
.fvjs-shell button,
.fvjs-standalone h1,
.fvjs-standalone h2,
.fvjs-standalone h3,
.fvjs-standalone p,
.fvjs-standalone a,
.fvjs-standalone table,
.fvjs-standalone label,
.fvjs-standalone input,
.fvjs-standalone select,
.fvjs-standalone textarea,
.fvjs-standalone button {
    box-sizing: border-box;
    font-family: inherit;
    letter-spacing: 0;
    text-transform: none;
}

.fvjs-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 26px;
    padding: 32px 16px;
    background: radial-gradient(circle at 10% 0%, #073763 0, #051b3a 38%, #031124 100%);
    color: #fff;
}

.fvjs-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 18px 10px;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
}

.fvjs-brand strong,
.fvjs-brand-icon {
    color: #22c55e;
}

.fvjs-brand-icon {
    font-size: 40px;
}

.fvjs-nav {
    display: grid;
    gap: 8px;
}

.fvjs-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 58px;
    padding: 0 22px;
    border-radius: 6px;
    color: #d8e2f2;
    text-decoration: none;
    font-size: 16px;
}

.fvjs-nav a.is-active,
.fvjs-nav a:hover {
    background: linear-gradient(135deg, #1d4ed8, #3b82f6);
    color: #fff;
}

.fvjs-wallets {
    margin-top: auto;
    padding: 20px 18px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
}

.fvjs-wallets h3 {
    margin: 0 0 18px;
    color: #fff;
    font-size: 18px;
}

.fvjs-wallet-row {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    margin-bottom: 18px;
}

.fvjs-wallet-row strong,
.fvjs-wallet-row b,
.fvjs-wallet-row small {
    display: block;
}

.fvjs-wallet-row b {
    margin: 7px 0;
    color: #fff;
    font-size: 18px;
    font-weight: 500;
}

.fvjs-wallet-row small,
.fvjs-copy {
    color: #2ddf87;
}

.fvjs-copy {
    margin: 24px 0 0;
    text-align: center;
    color: #fff;
}

.fvjs-main {
    min-width: 0;
    padding: 28px clamp(22px, 3vw, 40px) 34px;
}

.fvjs-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 26px;
}

.fvjs-header h1 {
    margin: 0 0 6px;
    color: var(--fvjs-text);
    font-size: 30px;
    font-weight: 800;
    line-height: 1.1;
}

.fvjs-header p {
    margin: 0;
    font-size: 15px;
}

.fvjs-header p,
.fvjs-muted,
.fvjs-footnote {
    color: var(--fvjs-muted);
}

.fvjs-header time {
    min-width: 220px;
    padding: 14px 18px;
    border: 1px solid var(--fvjs-border);
    border-radius: 6px;
    background: #fff;
    text-align: center;
    font-weight: 700;
}

.fvjs-notice {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-left: 4px solid var(--fvjs-green);
    background: #ecfdf3;
    color: #05603a;
    font-weight: 700;
}

.fvjs-kpis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 18px;
    margin-bottom: 22px;
}

.fvjs-kpi {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 118px;
    padding: 20px;
    border: 1px solid var(--fvjs-border);
    border-radius: 8px;
    background: var(--fvjs-panel);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.fvjs-kpi-icon {
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border-radius: 999px;
    background: #dcfce7;
    color: #16a34a;
    font-size: 30px;
    font-weight: 800;
}

.fvjs-kpi:nth-child(1) .fvjs-kpi-icon {
    background: #dbeafe;
    color: #2563eb;
}

.fvjs-kpi:nth-child(4) .fvjs-kpi-icon {
    background: #f3e8ff;
    color: #9333ea;
}

.fvjs-kpi p {
    margin: 0 0 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.fvjs-kpi strong {
    display: block;
    color: var(--fvjs-text);
    font-size: clamp(22px, 2vw, 26px);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.fvjs-kpi em {
    font-size: 14px;
    font-style: normal;
    font-weight: 500;
}

.fvjs-kpi small {
    display: block;
    margin-top: 10px;
    color: var(--fvjs-green);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.fvjs-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(340px, 1fr);
    gap: 18px;
    margin-bottom: 18px;
}

.fvjs-panel {
    padding: 22px;
    border: 1px solid var(--fvjs-border);
    border-radius: 8px;
    background: var(--fvjs-panel);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.04);
}

.fvjs-panel h2 {
    margin: 0 0 20px;
    color: var(--fvjs-text);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
}

.fvjs-form,
.fvjs-price-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 18px;
}

.fvjs-price-form {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.fvjs-form label,
.fvjs-price-form label {
    display: grid;
    gap: 8px;
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
}

.fvjs-form input,
.fvjs-form select,
.fvjs-form textarea,
.fvjs-price-form input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #cfd8e3;
    border-radius: 6px;
    background: #fff;
    color: var(--fvjs-text);
}

.fvjs-span-2 {
    grid-column: span 2;
    min-width: 0;
}

.fvjs-actions {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.fvjs-primary,
.fvjs-secondary {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
}

.fvjs-primary {
    background: var(--fvjs-blue);
    color: #fff;
}

.fvjs-secondary {
    border-color: var(--fvjs-border);
    background: #f8fafc;
    color: #334155;
}

.fvjs-table-wrap {
    overflow-x: auto;
}

.fvjs-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.fvjs-history {
    min-width: 1060px;
}

.fvjs-table th,
.fvjs-table td {
    padding: 15px 12px;
    border-bottom: 1px solid var(--fvjs-border);
    text-align: left;
    white-space: nowrap;
}

.fvjs-table th {
    color: #101828;
    font-size: 13px;
    font-weight: 700;
}

.fvjs-table td {
    font-size: 14px;
}

.fvjs-table tfoot th {
    font-size: 16px;
}

.fvjs-coin {
    display: inline-grid;
    width: 28px;
    height: 28px;
    margin-right: 8px;
    place-items: center;
    border-radius: 999px;
    background: #64748b;
    color: #fff;
    font-weight: 800;
}

.fvjs-coin-btc {
    background: #f7931a;
}

.fvjs-coin-eth {
    background: #627eea;
}

.fvjs-coin-usdt {
    background: #26a17b;
}

.fvjs-coin-sol {
    background: #111827;
}

.fvjs-status {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 6px;
    background: #dcfce7;
    color: #067647;
    font-size: 12px;
    font-weight: 800;
}

.fvjs-file {
    display: inline-grid;
    min-width: 28px;
    height: 28px;
    margin-right: 6px;
    place-items: center;
    border: 1px solid #fecaca;
    border-radius: 4px;
    color: #ef4444;
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.fvjs-inline-form {
    margin: 0;
}

.fvjs-prices {
    margin-bottom: 18px;
}

.fvjs-footnote {
    margin: 18px 0 0;
    font-size: 12px;
}

@media (max-width: 1200px) {
    .fvjs-shell {
        grid-template-columns: 1fr;
    }

    .fvjs-sidebar {
        position: static;
    }

    .fvjs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .fvjs-main {
        padding: 22px 16px;
    }

    .fvjs-header {
        display: grid;
    }

    .fvjs-header time,
    .fvjs-span-2 {
        grid-column: 1 / -1;
        width: 100%;
    }

    .fvjs-kpis,
    .fvjs-grid,
    .fvjs-form,
    .fvjs-price-form {
        grid-template-columns: 1fr;
    }

    .fvjs-kpi {
        grid-template-columns: 58px minmax(0, 1fr);
    }

    .fvjs-kpi-icon {
        width: 58px;
        height: 58px;
        font-size: 26px;
    }
}
