:root {
    --bg: #f5f7fb;
    --panel: #ffffff;
    --panel-2: #f8fafc;
    --line: #d8e0ea;
    --text: #111827;
    --muted: #667085;
    --green: #20c77a;
    --blue: #0a84ff;
    --red: #ff3b5f;
    --amber: #0a84ff;
}

body {
    background: #f5f7fb;
}

.dbp-sidebar {
    background: #081310;
    border-right: 1px solid var(--line);
}

.dbp-brand span,
.native-mark {
    background: var(--blue);
    color: #fff;
}

.dbp-nav button.active,
.dbp-btn.primary,
.dbp-save-floating {
    background: var(--green);
    color: #fff;
}

.dbp-card,
.dbp-metric,
.dbp-setting-row,
.dbp-settings-command,
.dbp-panel {
    background: var(--panel);
    border-color: var(--line);
}

.dbp-card:hover {
    border-color: rgba(10, 132, 255, .35);
}

.dbp-logout {
    display: inline-flex;
    margin: 18px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
}

body.dbp-panel-page {
    background:
        linear-gradient(180deg, #f7f9fc, #eef3f8);
}

body.dbp-panel-page .dbp-app {
    max-width: none;
    --bg: #f5f7fb;
    --surface: rgba(255,255,255,.88);
    --surface-2: #f8fafc;
    --surface-3: #eef4fb;
    --line: rgba(15, 23, 42, .10);
    --line-strong: rgba(15, 23, 42, .16);
    --text: #111827;
    --muted: #667085;
    --green: #20c77a;
    --blue: #0a84ff;
    --yellow: #6b7280;
    --red: #ff3b5f;
    background: transparent;
}

body.dbp-panel-page .dbp-header {
    border: 1px solid rgba(216,224,234,.9);
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(22px);
    border-radius: 14px;
    padding: 20px 22px;
    margin-bottom: 18px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}

body.dbp-panel-page .dbp-header h1 {
    font-size: 28px;
    color: #111827;
}

body.dbp-panel-page .dbp-kicker {
    color: var(--blue);
}

.native-panel-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.native-panel-actions a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid rgba(216,224,234,.95);
    border-radius: 10px;
    color: var(--muted);
    text-decoration: none;
    font-size: 13px;
    background: rgba(255,255,255,.7);
}

body.dbp-panel-page .dbp-card {
    background: rgba(255,255,255,.9);
    border-color: rgba(216,224,234,.95);
    box-shadow: 0 18px 50px rgba(15, 23, 42, .08);
}

body.dbp-panel-page .dbp-card h3,
body.dbp-panel-page .dbp-page-head h2,
body.dbp-panel-page .dbp-bot-hero h2 {
    color: #111827;
}

body.dbp-panel-page .dbp-bot-card p,
body.dbp-panel-page .dbp-page-head p,
body.dbp-panel-page .dbp-panel-head p,
body.dbp-panel-page .dbp-muted {
    color: #667085;
}

body.dbp-panel-page .dbp-card::before {
    background: linear-gradient(180deg, var(--blue), #72d7ff);
}

body.dbp-panel-page .dbp-metric {
    background: #f8fafc;
    border-color: #dbe4ee;
}

body.dbp-panel-page .dbp-live-row {
    background: #f8fafc;
    border-color: #dbe4ee;
}

body.dbp-panel-page .dbp-live-row strong,
body.dbp-panel-page .dbp-metric strong {
    color: #111827;
}

body.dbp-panel-page .dbp-metric strong {
    font-size: 25px;
}

body.dbp-panel-page .dbp-status-pill[data-mode="ok"],
body.dbp-panel-page .dbp-status-pill {
    background: rgba(32,199,122,.12);
    border-color: rgba(32,199,122,.28);
    color: var(--green);
}

body.dbp-panel-page .dbp-bot-type {
    background: rgba(10,132,255,.08);
    border-color: rgba(10,132,255,.24);
    color: var(--blue);
}

body.dbp-panel-page .dbp-bottom-nav {
    background: rgba(255,255,255,.78);
    border-color: rgba(216,224,234,.95);
    backdrop-filter: blur(22px);
    box-shadow: 0 18px 55px rgba(15, 23, 42, .08);
}

body.dbp-panel-page .dbp-bottom-nav button {
    border-radius: 10px;
    color: #667085;
}

body.dbp-panel-page .dbp-bottom-nav button.active {
    background: var(--blue);
    color: #fff;
}

body.dbp-panel-page .dbp-btn.primary,
body.dbp-panel-page .dbp-save-floating {
    background: var(--blue);
    color: #fff;
}

body.dbp-panel-page .dbp-btn.danger {
    background: rgba(255,100,117,.1);
    border-color: rgba(255,100,117,.45);
}

body.dbp-panel-page .dbp-settings-command,
body.dbp-panel-page .dbp-setting-row {
    background: rgba(255,255,255,.9);
    border-color: #dbe4ee;
}

body.dbp-panel-page input,
body.dbp-panel-page select,
body.dbp-panel-page textarea {
    background: #fff;
    color: #111827;
    border-color: #dbe4ee;
}

body.dbp-panel-page .dbp-table,
body.dbp-panel-page table {
    background: #fff;
}

@media (min-width: 1040px) {
    body.dbp-panel-page .dbp-app {
        width: 100%;
        max-width: none;
        grid-template-columns: 260px minmax(0, 1fr);
        justify-content: stretch;
        gap: 0 28px;
        padding-left: clamp(18px, 3vw, 54px);
        padding-right: clamp(18px, 3vw, 54px);
        margin-left: 0;
        margin-right: 0;
    }

    body.dbp-panel-page .dbp-header,
    body.dbp-panel-page .dbp-main {
        width: 100%;
        max-width: none;
    }

    body.dbp-panel-page .dbp-bot-list {
        grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
        gap: 18px;
    }

    body.dbp-panel-page .dbp-card-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.dbp-panel-page .dbp-live-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    body.dbp-panel-page .dbp-bottom-nav {
        width: 100%;
    }
}

@media (min-width: 1500px) {
    body.dbp-panel-page .dbp-bot-list {
        grid-template-columns: repeat(2, minmax(520px, 1fr));
    }
}

.native-login,
.native-home,
.native-admin {
    min-height: 100vh;
    margin: 0;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.native-home *,
.native-home *::before,
.native-home *::after,
.native-login *,
.native-login *::before,
.native-login *::after,
.native-admin *,
.native-admin *::before,
.native-admin *::after {
    box-sizing: border-box;
}

.native-login {
    display: grid;
    place-items: center;
}

.native-topbar {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto;
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.native-logo,
.native-topbar nav {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.native-logo,
.native-topbar a {
    color: var(--text);
    text-decoration: none;
}

.native-logo img {
    width: 128px;
    height: 54px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.native-logo span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    background: var(--green);
    color: #06110d;
    font-weight: 900;
}

.native-topbar nav a {
    color: var(--muted);
    font-size: 14px;
}

.native-hero {
    width: min(1180px, calc(100vw - 32px));
    min-height: calc(100vh - 170px);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
    gap: 44px;
    align-items: center;
}

.native-copy h1 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(44px, 7vw, 82px);
    line-height: .95;
}

.native-copy p {
    max-width: 620px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}

.native-signal-preview {
    width: min(620px, 100%);
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 24px;
}

.native-signal-preview div {
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.035);
}

.native-signal-preview span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

.native-signal-preview b {
    display: block;
    overflow: hidden;
    color: var(--text);
    font-size: 18px;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.native-kicker {
    color: var(--green) !important;
    font-size: 13px !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0;
}

.native-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.native-primary,
.native-secondary,
.native-admin-form button,
.native-user-list button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid var(--line);
}

.native-primary,
.native-admin-form button {
    background: var(--green);
    color: #06110d;
    border-color: transparent;
}

.native-secondary {
    color: var(--text);
    background: rgba(255,255,255,.04);
}

.native-primary.full,
.native-secondary.full {
    width: 100%;
}

.native-login-panel,
.native-login-card {
    width: min(380px, calc(100vw - 32px));
    display: grid;
    gap: 14px;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
}

.native-hero-stack {
    width: min(480px, 100%);
    display: grid;
    gap: 14px;
    justify-items: stretch;
}

.native-market-stage {
    position: relative;
    width: 100%;
    min-height: 378px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px;
    background:
        linear-gradient(145deg, rgba(34,37,41,.96), rgba(17,19,21,.97)),
        radial-gradient(circle at 70% 18%, rgba(143,214,179,.2), transparent 260px);
    box-shadow: 0 30px 90px rgba(0,0,0,.34);
    isolation: isolate;
}

.native-hero-stack .native-login-panel {
    width: 100%;
}

.native-market-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255,255,255,.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: linear-gradient(180deg, #000 0%, transparent 88%);
}

.native-market-stage::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(143,214,179,.09);
    filter: blur(18px);
    z-index: -1;
}

.native-stage-top,
.native-price-row,
.native-stage-metrics {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.native-stage-top span,
.native-stage-metrics small {
    display: block;
    color: #9ca3aa;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}

.native-stage-top strong {
    display: block;
    margin-top: 4px;
    color: #f1f2f4;
    font-size: 19px;
    line-height: 1.1;
}

.native-stage-top b {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    padding: 0 11px;
    border: 1px solid rgba(52,211,153,.28);
    border-radius: 999px;
    color: #34d399;
    background: rgba(52,211,153,.09);
    font-size: 12px;
    letter-spacing: 0;
}

.native-price-row {
    margin-top: 18px;
}

.native-price-row strong {
    color: #f1f2f4;
    font-size: clamp(34px, 5vw, 48px);
    line-height: .96;
    font-variant-numeric: tabular-nums;
}

.native-price-row span {
    padding: 7px 10px;
    border-radius: 999px;
    color: #34d399;
    background: rgba(52,211,153,.10);
    font-size: 13px;
    font-weight: 850;
}

.native-wow-chart {
    position: relative;
    height: 214px;
    margin: 18px -8px 0;
    overflow: hidden;
}

.native-wow-chart svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.native-area {
    fill: url(#nativeAreaGlow);
}

.native-trend {
    fill: none;
    stroke: url(#nativeLineGlow);
    stroke-width: 5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 12px rgba(143,214,179,.34));
    stroke-dasharray: 760;
    animation: native-trend-draw 3.8s ease-in-out infinite alternate;
}

.native-grid-line,
.native-liquidity {
    position: absolute;
    left: 8px;
    right: 8px;
    height: 1px;
    background: rgba(255,255,255,.08);
}

.native-grid-line.g1 { top: 30px; }
.native-grid-line.g2 { top: 94px; }
.native-grid-line.g3 { top: 158px; }

.native-liquidity {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    border-top: 1px dashed rgba(217,238,228,.34);
    background: transparent;
    color: rgba(217,238,228,.76);
    font-size: 10px;
    font-weight: 850;
    text-transform: uppercase;
}

.native-liquidity.l1 { top: 54px; }
.native-liquidity.l2 {
    top: 171px;
    color: rgba(240,127,142,.76);
    border-top-color: rgba(240,127,142,.28);
}

.native-candle {
    position: absolute;
    bottom: 26px;
    width: 14px;
    border-radius: 4px;
    transform-origin: bottom center;
    animation: native-candle-rise 2.9s ease-in-out infinite alternate;
}

.native-candle::before {
    content: "";
    position: absolute;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    border-radius: 99px;
    opacity: .95;
}

.native-candle.up {
    background: #34d399;
    box-shadow: 0 0 16px rgba(52,211,153,.26);
}

.native-candle.up::before {
    top: -18px;
    bottom: -14px;
    background: rgba(52,211,153,.82);
}

.native-candle.down {
    background: #fb7185;
    box-shadow: 0 0 16px rgba(251,113,133,.22);
}

.native-candle.down::before {
    top: -12px;
    bottom: -20px;
    background: rgba(251,113,133,.76);
}

.native-candle.c1 { left: 8%; height: 54px; animation-delay: -.1s; }
.native-candle.c2 { left: 17%; height: 82px; animation-delay: -.7s; }
.native-candle.c3 { left: 26%; height: 44px; animation-delay: -1.2s; }
.native-candle.c4 { left: 36%; height: 96px; animation-delay: -.4s; }
.native-candle.c5 { left: 47%; height: 58px; animation-delay: -1.8s; }
.native-candle.c6 { left: 58%; height: 112px; animation-delay: -.9s; }
.native-candle.c7 { left: 69%; height: 132px; animation-delay: -1.5s; }
.native-candle.c8 { left: 80%; height: 72px; animation-delay: -.3s; }
.native-candle.c9 { left: 88%; height: 145px; animation-delay: -1.1s; }
.native-candle.c10 { left: 95%; height: 164px; animation-delay: -.6s; }

.native-pulse-dot {
    position: absolute;
    right: 23px;
    top: 24px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #d9eee4;
    box-shadow: 0 0 0 0 rgba(217,238,228,.5);
    animation: native-dot-pulse 1.8s ease-out infinite;
}

.native-stage-metrics {
    margin-top: 18px;
}

.native-stage-metrics span {
    min-width: 0;
    flex: 1 1 0;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 12px;
    background: rgba(255,255,255,.045);
}

.native-stage-metrics b {
    display: block;
    margin-bottom: 4px;
    color: #f1f2f4;
    font-size: 22px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

@keyframes native-trend-draw {
    from {
        stroke-dashoffset: 58;
        opacity: .78;
    }
    to {
        stroke-dashoffset: 0;
        opacity: 1;
    }
}

@keyframes native-candle-rise {
    from {
        transform: scaleY(.9);
        opacity: .72;
    }
    to {
        transform: scaleY(1);
        opacity: 1;
    }
}

@keyframes native-dot-pulse {
    0% { box-shadow: 0 0 0 0 rgba(217,238,228,.48); }
    70% { box-shadow: 0 0 0 18px rgba(217,238,228,0); }
    100% { box-shadow: 0 0 0 0 rgba(217,238,228,0); }
}

.native-login-panel h2,
.native-login-card h1 {
    margin: 0;
}

.native-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    font-weight: 900;
}

.native-mark.logo {
    width: 112px;
    height: 64px;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    padding: 0;
}

.native-panel-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

.native-panel-brand img {
    width: 132px;
    height: 72px;
    flex: 0 0 auto;
    object-fit: contain;
    object-position: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.native-login-card p,
.native-login-panel p {
    margin: -6px 0 8px;
    color: var(--muted);
}

.native-login-card label,
.native-inline-login label,
.native-admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

.native-login-card input,
.native-inline-login input,
.native-admin-form input,
.native-admin-form select {
    height: 42px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #0b1513;
    color: var(--text);
    padding: 0 12px;
}

.native-login-card button,
.native-inline-login button {
    height: 44px;
    border: 0;
    border-radius: 6px;
    background: var(--green);
    color: #06110d;
    font-weight: 800;
    cursor: pointer;
}

.native-error {
    border: 1px solid rgba(255,100,117,.45);
    color: var(--red);
    background: rgba(255,100,117,.08);
    border-radius: 6px;
    padding: 10px 12px;
}

.native-success {
    border: 1px solid rgba(70,224,141,.45);
    color: var(--green);
    background: rgba(70,224,141,.08);
    border-radius: 6px;
    padding: 10px 12px;
}

.native-feature-band {
    width: min(1180px, calc(100vw - 32px));
    margin: 0 auto 48px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.native-feature-band article,
.native-admin-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 20px;
}

.native-feature-band b,
.native-user-list b {
    display: block;
    margin-bottom: 8px;
}

.native-feature-band article em {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 24px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 11px;
    font-style: normal;
    font-weight: 850;
}

.native-feature-band span,
.native-user-list span,
.native-user-list small,
.native-admin-card p {
    color: var(--muted);
    line-height: 1.5;
}

.native-admin-grid {
    width: min(1180px, calc(100vw - 32px));
    margin: 24px auto 56px;
    display: grid;
    grid-template-columns: 380px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.native-admin-card h1,
.native-admin-card h2 {
    margin: 0 0 12px;
}

.native-admin-form {
    display: grid;
    gap: 12px;
}

.native-user-list {
    display: grid;
    gap: 10px;
}

.native-user-list article {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, auto);
    gap: 14px;
    align-items: center;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255,255,255,.025);
}

.native-user-actions {
    display: grid;
    gap: 8px;
    justify-items: end;
}

.native-password-form {
    display: flex;
    gap: 8px;
    align-items: center;
}

.native-password-form input {
    width: 190px;
    height: 40px;
    border-radius: 6px;
    border: 1px solid var(--line);
    background: #202327;
    color: var(--text);
    padding: 0 10px;
}

.native-user-actions button {
    min-width: 104px;
}

.native-user-list button {
    background: rgba(255,255,255,.04);
    color: var(--text);
    cursor: pointer;
}

.native-user-list button.danger {
    color: var(--red);
    border-color: rgba(255,100,117,.45);
}

@media (max-width: 820px) {
    .native-hero,
    .native-admin-grid,
    .native-feature-band {
        grid-template-columns: 1fr;
    }

    .native-copy h1 {
        font-size: 44px;
    }

    .native-topbar {
        align-items: flex-start;
        height: auto;
        padding: 18px 0;
        gap: 12px;
        flex-direction: column;
    }
}

/* Native dark graphite theme: softer Apple-like contrast, no blue/yellow dominance. */
:root {
    --bg: #111315;
    --panel: #1b1d20;
    --panel-2: #222529;
    --line: #34383d;
    --text: #f1f2f4;
    --muted: #9ca3aa;
    --green: #8fd6b3;
    --blue: #8fd6b3;
    --red: #f07f8e;
    --amber: #8fd6b3;
}

body,
.native-home,
.native-login,
.native-admin {
    background: #111315;
    color: var(--text);
}

body.dbp-panel-page {
    margin: 0;
    overflow-x: hidden;
    background: linear-gradient(180deg, #151719, #101214);
}

body.dbp-panel-page .dbp-app {
    --bg: #111315;
    --surface: rgba(28, 30, 33, .9);
    --surface-2: #222529;
    --surface-3: #2a2e33;
    --line: rgba(255,255,255,.10);
    --line-strong: rgba(255,255,255,.16);
    --text: #f1f2f4;
    --muted: #9ca3aa;
    --green: #8fd6b3;
    --blue: #8fd6b3;
    --yellow: #b8c5bd;
    --red: #f07f8e;
    background: transparent;
}

.native-logo span,
.native-mark,
.dbp-brand span {
    background: #d9eee4;
    color: #111315;
}

.native-logo img,
.native-mark.logo,
.native-panel-brand img {
    background: transparent;
}

.native-kicker,
body.dbp-panel-page .dbp-kicker {
    color: #b8c5bd !important;
}

body.dbp-panel-page .dbp-header {
    background: rgba(28, 30, 33, .78);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 18px 45px rgba(0,0,0,.22);
}

body.dbp-panel-page .dbp-header h1,
body.dbp-panel-page .dbp-card h3,
body.dbp-panel-page .dbp-page-head h2,
body.dbp-panel-page .dbp-bot-hero h2,
body.dbp-panel-page .dbp-live-row strong,
body.dbp-panel-page .dbp-metric strong {
    color: #f1f2f4;
}

body.dbp-panel-page .dbp-bot-card p,
body.dbp-panel-page .dbp-page-head p,
body.dbp-panel-page .dbp-panel-head p,
body.dbp-panel-page .dbp-muted,
.native-topbar nav a,
.native-feature-band span,
.native-user-list span,
.native-user-list small,
.native-admin-card p {
    color: #9ca3aa;
}

body.dbp-panel-page .dbp-card,
.native-login-card,
.native-login-panel,
.native-feature-band article,
.native-admin-card {
    background: rgba(28, 30, 33, .92);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

body.dbp-panel-page .dbp-card::before {
    background: linear-gradient(180deg, #8fd6b3, #4e675d);
}

body.dbp-panel-page .dbp-metric,
body.dbp-panel-page .dbp-live-row,
body.dbp-panel-page .dbp-settings-command,
body.dbp-panel-page .dbp-setting-row,
body.dbp-panel-page .dbp-table,
body.dbp-panel-page table,
body.dbp-panel-page .dbp-cloud-notes span,
body.dbp-panel-page .dbp-cloud-feed-grid span,
body.dbp-panel-page .dbp-cloud-reason-list span,
.native-user-list article {
    background: #202327;
    border-color: rgba(255,255,255,.10);
}

body.dbp-panel-page .dbp-cloud-section {
    background: rgba(28, 30, 33, .92);
}

body.dbp-panel-page .dbp-cloud-feed-grid b,
body.dbp-panel-page .dbp-cloud-reason-list b {
    color: #d9eee4;
}

body.dbp-panel-page .dbp-info-card {
    min-width: 0;
    overflow: hidden;
}

body.dbp-panel-page .dbp-panel-head {
    min-width: 0;
}

body.dbp-panel-page .dbp-panel-head h3 {
    min-width: 0;
}

body.dbp-panel-page .dbp-panel-head .dbp-status {
    max-width: 46%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dbp-panel-page .dbp-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(92px, 1fr));
}

body.dbp-panel-page .dbp-metric {
    min-width: 0;
    overflow: hidden;
}

body.dbp-panel-page .dbp-metric span,
body.dbp-panel-page .dbp-metric strong,
body.dbp-panel-page .dbp-metric small {
    max-width: 100%;
}

body.dbp-panel-page .dbp-metric strong {
    overflow: hidden;
    text-overflow: ellipsis;
}

body.dbp-panel-page .dbp-metric.text-value strong {
    font-size: 15px;
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.dbp-panel-page .dbp-daily-goal {
    display: grid;
    gap: 10px;
    margin: 14px 0;
    padding: 14px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 8px;
    background: #202327;
}

body.dbp-panel-page .dbp-daily-goal-head,
body.dbp-panel-page .dbp-daily-goal-values {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

body.dbp-panel-page .dbp-daily-goal-head span,
body.dbp-panel-page .dbp-daily-goal-values small,
body.dbp-panel-page .dbp-daily-goal-foot {
    color: #9ca3aa;
    font-size: 11px;
}

body.dbp-panel-page .dbp-daily-goal-head strong {
    display: block;
    margin-top: 3px;
    color: #f1f2f4;
    font-size: 18px;
}

body.dbp-panel-page .dbp-daily-goal-head em {
    color: #d9eee4;
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
}

body.dbp-panel-page .dbp-daily-goal-values span {
    min-width: 0;
}

body.dbp-panel-page .dbp-daily-goal-values small,
body.dbp-panel-page .dbp-daily-goal-values b {
    display: block;
}

body.dbp-panel-page .dbp-daily-goal-values b {
    margin-top: 3px;
    overflow: hidden;
    color: #f1f2f4;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.dbp-panel-page .dbp-daily-goal-values b.good {
    color: #8fd6b3;
}

body.dbp-panel-page .dbp-daily-goal-values b.bad {
    color: #f07f8e;
}

body.dbp-panel-page .dbp-daily-goal-meter {
    height: 7px;
    overflow: hidden;
    border-radius: 7px;
    background: #30343a;
}

body.dbp-panel-page .dbp-daily-goal-meter i {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #8fd6b3;
}

body.dbp-panel-page .dbp-daily-goal.negative .dbp-daily-goal-meter i {
    background: #f07f8e;
}

@media (max-width: 560px) {
    body.dbp-panel-page .dbp-daily-goal-values {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

body.dbp-panel-page .dbp-metric.long-sub small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.dbp-panel-page .dbp-chart-shell {
    background: rgba(17,19,21,.96);
    border-color: rgba(255,255,255,.11);
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

@media (max-width: 760px) {
    body.dbp-panel-page .dbp-chart-shell {
        min-height: calc(100vh - 170px);
        border-radius: 8px;
    }

    body.dbp-panel-page .dbp-chart-shell iframe {
        height: calc(100vh - 170px);
        min-height: 520px;
    }
}

@media (max-width: 760px) {
    .native-home {
        overflow-x: hidden;
        background:
            radial-gradient(circle at 50% -120px, rgba(217,238,228,.13), transparent 310px),
            linear-gradient(180deg, #141618 0%, #101214 100%);
    }

    .native-topbar {
        width: min(100% - 28px, 520px);
        height: auto;
        min-height: 62px;
        flex-direction: row;
        align-items: center;
        padding: 12px 0 6px;
    }

    .native-logo {
        min-width: 0;
        gap: 9px;
    }

    .native-logo span {
        width: 32px;
        height: 32px;
        border-radius: 9px;
        flex: 0 0 auto;
    }

    .native-logo img {
        width: 116px;
        height: 52px;
        border-radius: 0;
        flex: 0 0 auto;
    }

    .native-logo strong {
        display: none;
    }

    .native-topbar nav {
        gap: 8px;
        flex: 0 0 auto;
    }

    .native-topbar nav a {
        min-height: 34px;
        display: inline-flex;
        align-items: center;
        padding: 0 11px;
        border: 1px solid rgba(255,255,255,.10);
        border-radius: 999px;
        background: rgba(255,255,255,.045);
        color: #d9eee4;
        font-size: 13px;
        font-weight: 750;
    }

    .native-hero {
        width: min(100% - 28px, 520px);
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 18px;
        align-items: start;
        padding: 18px 0 28px;
    }

    .native-copy {
        display: grid;
        justify-items: start;
    }

    .native-kicker {
        margin: 0 0 11px;
        font-size: 11px !important;
        color: #d9eee4 !important;
    }

    .native-copy h1 {
        max-width: 360px;
        font-size: clamp(34px, 10vw, 42px);
        line-height: 1.01;
    }

    .native-copy p {
        max-width: 420px;
        margin: 14px 0 0;
        font-size: 15px;
        line-height: 1.48;
    }

    .native-signal-preview {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        margin-top: 18px;
    }

    .native-signal-preview div {
        padding: 11px 9px;
        border-radius: 10px;
        background: rgba(255,255,255,.05);
        box-shadow: none;
    }

    .native-signal-preview span {
        min-height: 26px;
        margin-bottom: 5px;
        font-size: 10px;
        line-height: 1.25;
    }

    .native-signal-preview b {
        font-size: 14px;
    }

    .native-actions {
        width: 100%;
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .native-primary,
    .native-secondary,
    .native-admin-form button,
    .native-user-list button {
        min-height: 46px;
        border-radius: 10px;
        padding: 0 12px;
        font-size: 14px;
    }

    .native-login-panel,
    .native-login-card {
        width: 100%;
        gap: 12px;
        padding: 18px;
        border-radius: 14px;
        background: rgba(28,30,33,.86);
        box-shadow: 0 18px 44px rgba(0,0,0,.22);
    }

    .native-inline-login {
        display: grid;
        gap: 12px;
    }

    .native-login-panel h2,
    .native-login-card h1 {
        font-size: 22px;
    }

    .native-login-card p,
    .native-login-panel p {
        margin: -4px 0 4px;
        font-size: 14px;
        line-height: 1.4;
    }

    .native-mark {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .native-mark.logo {
        width: 112px;
        height: 62px;
    }

    .native-login-card input,
    .native-inline-login input,
    .native-admin-form input,
    .native-admin-form select {
        height: 46px;
        border-radius: 10px;
        font-size: 16px;
    }

    .native-login-card button,
    .native-inline-login button {
        height: 48px;
        border-radius: 10px;
        font-size: 15px;
    }

    .native-feature-band {
        width: min(100% - 28px, 520px);
        grid-template-columns: 1fr 1fr;
        gap: 10px;
        margin: 0 auto 28px;
    }

    .native-feature-band article {
        min-height: 142px;
        padding: 14px;
        border-radius: 12px;
        background: rgba(28,30,33,.76);
        box-shadow: none;
    }

    .native-feature-band article em {
        width: 28px;
        height: 22px;
        margin-bottom: 11px;
        font-size: 10px;
    }

    .native-feature-band b {
        margin-bottom: 7px;
        font-size: 14px;
        line-height: 1.15;
    }

    .native-feature-band span {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 3;
        font-size: 12px;
        line-height: 1.38;
    }
}

@media (max-width: 380px) {
    .native-logo strong {
        display: none;
    }

    .native-copy h1 {
        font-size: 32px;
    }

    .native-signal-preview {
        grid-template-columns: 1fr;
    }

    .native-signal-preview span {
        min-height: 0;
    }

    .native-feature-band {
        grid-template-columns: 1fr;
    }

    .native-user-list article,
    .native-password-form {
        grid-template-columns: 1fr;
    }

    .native-user-list article {
        align-items: stretch;
    }

    .native-user-actions,
    .native-password-form {
        justify-items: stretch;
    }

    .native-password-form {
        display: grid;
    }

    .native-password-form input,
    .native-user-actions button {
        width: 100%;
    }
}

body.dbp-panel-page .dbp-status-pill[data-mode="ok"],
body.dbp-panel-page .dbp-status-pill,
body.dbp-panel-page .dbp-status.online {
    background: rgba(143,214,179,.12);
    border-color: rgba(143,214,179,.24);
    color: #8fd6b3;
}

body.dbp-panel-page .dbp-bot-type {
    background: rgba(143,214,179,.10);
    border-color: rgba(143,214,179,.22);
    color: #8fd6b3;
}

body.dbp-panel-page .dbp-bottom-nav {
    background: rgba(28,30,33,.82);
    border-color: rgba(255,255,255,.10);
    box-shadow: 0 18px 55px rgba(0,0,0,.25);
}

body.dbp-panel-page .dbp-bottom-nav button {
    color: #9ca3aa;
}

body.dbp-panel-page .dbp-bottom-nav button.active,
body.dbp-panel-page .dbp-btn.primary,
body.dbp-panel-page .dbp-save-floating,
.native-primary,
.native-admin-form button,
.native-login-card button,
.native-inline-login button {
    background: #d9eee4;
    color: #111315;
}

.native-secondary,
.native-panel-actions a,
.native-user-list button {
    background: rgba(255,255,255,.045);
    border-color: rgba(255,255,255,.11);
    color: #d4d8dd;
}

body.dbp-panel-page input,
body.dbp-panel-page select,
body.dbp-panel-page textarea,
.native-login-card input,
.native-inline-login input,
.native-admin-form input,
.native-admin-form select {
    background: #202327;
    color: #f1f2f4;
    border-color: rgba(255,255,255,.12);
}

/* Keep the graphite skin, but restore clear trading semantics on P/L values. */
body.dbp-panel-page .dbp-metric.good strong,
body.dbp-panel-page .dbp-metric.good,
body.dbp-panel-page .good,
body.dbp-panel-page .dbp-status-chip.good b,
body.dbp-panel-page .dbp-reason-grid .good b {
    color: #34d399 !important;
}

body.dbp-panel-page .dbp-metric.bad strong,
body.dbp-panel-page .dbp-metric.bad,
body.dbp-panel-page .bad,
body.dbp-panel-page .dbp-status-chip.bad b,
body.dbp-panel-page .dbp-reason-grid .bad b {
    color: #fb7185 !important;
}

body.dbp-panel-page .dbp-bar:not(.neg) {
    background: #34d399;
}

body.dbp-panel-page .dbp-bar.neg {
    background: #fb7185;
}

body.dbp-panel-page .dbp-cloud-brain {
    background: linear-gradient(180deg, rgba(38, 41, 45, .96), rgba(26, 28, 31, .96));
    border: 1px solid rgba(255,255,255,.11);
    border-left: 3px solid #9ca3aa;
    border-radius: 8px;
    padding: 14px;
    margin: 12px 0;
    box-shadow: 0 14px 34px rgba(0,0,0,.20);
}

body.dbp-panel-page .dbp-cloud-brain.good {
    border-left-color: #34d399;
}

body.dbp-panel-page .dbp-cloud-brain.warn {
    border-left-color: #f5c76b;
}

body.dbp-panel-page .dbp-cloud-brain.bad {
    border-left-color: #fb7185;
}

body.dbp-panel-page .dbp-cloud-head,
body.dbp-panel-page .dbp-cloud-decision {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    min-width: 0;
}

body.dbp-panel-page .dbp-cloud-head > div,
body.dbp-panel-page .dbp-cloud-decision > b {
    min-width: 0;
}

body.dbp-panel-page .dbp-cloud-head span,
body.dbp-panel-page .dbp-cloud-decision small,
body.dbp-panel-page .dbp-cloud-memory,
body.dbp-panel-page .dbp-cloud-foot {
    display: block;
    color: #9ca3aa;
    font-size: 12px;
    line-height: 1.35;
}

body.dbp-panel-page .dbp-cloud-head strong,
body.dbp-panel-page .dbp-cloud-decision b {
    color: #f1f2f4;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

body.dbp-panel-page .dbp-cloud-head em {
    max-width: 42%;
    overflow: hidden;
    text-overflow: ellipsis;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #d4d8dd;
    font-size: 12px;
    font-style: normal;
    padding: 5px 9px;
    white-space: nowrap;
}

body.dbp-panel-page .dbp-cloud-decision {
    margin-top: 12px;
}

body.dbp-panel-page .dbp-cloud-meter {
    position: relative;
    height: 9px;
    margin: 12px 0 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
}

body.dbp-panel-page .dbp-cloud-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: #9ca3aa;
}

body.dbp-panel-page .dbp-cloud-brain.good .dbp-cloud-meter span {
    background: #34d399;
}

body.dbp-panel-page .dbp-cloud-brain.warn .dbp-cloud-meter span {
    background: #f5c76b;
}

body.dbp-panel-page .dbp-cloud-brain.bad .dbp-cloud-meter span {
    background: #fb7185;
}

body.dbp-panel-page .dbp-cloud-meter b {
    position: absolute;
    right: 0;
    top: -22px;
    color: #f1f2f4;
    font-size: 12px;
}

body.dbp-panel-page .dbp-cloud-brain p {
    color: #c8cdd2;
    font-size: 13px;
    line-height: 1.45;
    margin: 0 0 8px;
}

body.dbp-panel-page .dbp-cloud-memory {
    padding: 8px 10px;
    margin: 0 0 10px;
    border-radius: 7px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

body.dbp-panel-page .dbp-kpi-row.compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.dbp-panel-page .dbp-diagnosis-reasons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 12px;
}

body.dbp-panel-page .dbp-diagnosis-reasons span {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    min-width: 0;
    padding: 10px;
    border-radius: 7px;
    background: rgba(255,255,255,.045);
    border: 1px solid rgba(255,255,255,.08);
}

body.dbp-panel-page .dbp-diagnosis-reasons b {
    color: #d9eee4;
    font-size: 16px;
    line-height: 1;
}

body.dbp-panel-page .dbp-diagnosis-reasons em {
    color: #c8cdd2;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

@media (max-width: 760px) {
    body.dbp-panel-page .dbp-app {
        width: 100%;
        max-width: 100%;
        padding: 14px 14px 150px;
    }

    body.dbp-panel-page .dbp-header {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
        padding: 14px;
    }

    body.dbp-panel-page .native-panel-brand {
        width: 100%;
        gap: 10px;
    }

    body.dbp-panel-page .native-panel-brand img {
        width: 112px;
        height: 58px;
    }

    body.dbp-panel-page .dbp-header h1 {
        font-size: 25px;
    }

    body.dbp-panel-page .dbp-header-subtitle {
        line-height: 1.35;
    }

    body.dbp-panel-page .native-panel-actions {
        width: 100%;
        justify-content: flex-start;
        gap: 7px;
    }

    body.dbp-panel-page .native-panel-actions a {
        min-height: 32px;
        padding: 0 10px;
        font-size: 12px;
    }

    body.dbp-panel-page .dbp-dashboard-grid,
    body.dbp-panel-page .dbp-dashboard-grid > div,
    body.dbp-panel-page .dbp-dashboard-grid > aside,
    body.dbp-panel-page .dbp-bot-card,
    body.dbp-panel-page .dbp-panel {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    body.dbp-panel-page .dbp-compare {
        overflow-x: auto;
    }

    body.dbp-panel-page .dbp-kpi-row.compact,
    body.dbp-panel-page .dbp-diagnosis-reasons {
        grid-template-columns: 1fr;
    }
}

body.dbp-panel-page .dbp-metric.text-value strong {
    font-size: 15px;
    line-height: 1.18;
    white-space: normal;
    overflow-wrap: anywhere;
}

body.dbp-panel-page .dbp-metric.long-sub small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    white-space: normal;
    overflow-wrap: anywhere;
}
