/* Extracted from public/index.html style block 17. */
/* ------------------------------------------------------------------ */
/* 1. ANWENDUNGSRAHMEN                                                 */
/* ------------------------------------------------------------------ */

body {
    --dp-bg: #090a0d;
    --dp-surface: #111318;
    --dp-surface-raised: #16191f;
    --dp-surface-soft: #1b1e25;
    --dp-border: rgba(255,255,255,.085);
    --dp-border-strong: rgba(255,255,255,.14);
    --dp-text: #f2f4f7;
    --dp-muted: #9197a2;
    --dp-blue: #2962ff;
    --dp-blue-light: #5ac8fa;
    --dp-green: #30d158;
    --dp-red: #ff453a;
    --dp-orange: #ff9f0a;
    background:
        radial-gradient(circle at 50% -18%, rgba(41,98,255,.09), transparent 32%),
        var(--dp-bg) !important;
    color: var(--dp-text);
}

/* Landingpage bleibt ein eigener, unveränderter visueller Bereich. */
#landingPage {
    position: fixed;
    inset: 0;
    z-index: 10000;
}

/* ------------------------------------------------------------------ */
/* 2. KOPFZEILE UND MARKTSTATUS                                        */
/* ------------------------------------------------------------------ */

.header-container {
    min-height: 62px !important;
    margin: 0 0 10px !important;
    padding: 8px 10px 10px !important;
    border: 1px solid var(--dp-border) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        var(--dp-surface) !important;
    box-shadow: 0 12px 28px rgba(0,0,0,.22) !important;
}

.brand-title {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 790 !important;
    letter-spacing: .035em !important;
}

.brand-subtitle,
.header-subtitle {
    color: var(--dp-muted) !important;
}

.mt5-status-panel,
.market-status-strip {
    border: 1px solid var(--dp-border) !important;
    border-radius: 8px !important;
    background: var(--dp-surface) !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.18) !important;
}

.market-status-strip {
    margin: 0 0 10px !important;
    padding: 7px !important;
}

.market-status-summary,
.market-quote-card {
    border: 1px solid var(--dp-border) !important;
    border-radius: 6px !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        var(--dp-surface-raised) !important;
}

/* ------------------------------------------------------------------ */
/* 3. APPLICATION NAVIGATION                                           */
/* ------------------------------------------------------------------ */

.tabs {
    height: 43px !important;
    margin: 0 0 12px !important;
    padding: 4px !important;
    align-items: center !important;
    border: 1px solid var(--dp-border) !important;
    border-radius: 8px !important;
    background: var(--dp-surface) !important;
    box-shadow: 0 9px 22px rgba(0,0,0,.16) !important;
}

.tabs-left {
    height: 100%;
    align-items: center;
    gap: 3px;
}

.tab-btn {
    position: relative;
    min-height: 33px !important;
    padding: 5px 16px !important;
    border: 1px solid transparent !important;
    border-radius: 5px !important;
    color: #9298a3 !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 11px !important;
    font-weight: 730 !important;
    letter-spacing: .065em !important;
    text-transform: uppercase !important;
}

.tab-btn:hover {
    color: #e6e9ef !important;
    border-color: var(--dp-border) !important;
    background: rgba(255,255,255,.025) !important;
}

.tab-btn.active {
    color: #fff !important;
    border-color: rgba(41,98,255,.58) !important;
    background:
        linear-gradient(180deg, rgba(41,98,255,.28), rgba(41,98,255,.14)) !important;
    box-shadow: inset 0 0 0 1px rgba(90,200,250,.08) !important;
    text-shadow: none !important;
}

.tab-btn.active::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 3px;
    height: 1px;
    border-radius: 2px;
    background: var(--dp-blue-light);
}

.tabs > .tab-btn:last-child {
    color: #cbd0d8 !important;
    border-color: var(--dp-border) !important;
    background: rgba(255,255,255,.02) !important;
}

/* Inline-Farbe des Backtesting-Reiters neutralisieren, aktiver Zustand bleibt klar. */
.tabs-left .tab-btn[onclick*="backtestTab"] {
    color: #b9bec7 !important;
}

/* ------------------------------------------------------------------ */
/* 4. GRUNDLAYOUT                                                       */
/* ------------------------------------------------------------------ */

.tab-content.active {
    grid-template-columns: minmax(405px, 445px) minmax(0, 1fr) !important;
    gap: 12px !important;
    height: calc(100vh - 137px) !important;
}

.grid-left,
.grid-right {
    min-width: 0;
}

.grid-left {
    padding: 14px !important;
    gap: 7px !important;
    border: 1px solid var(--dp-border) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent 18%),
        var(--dp-surface) !important;
    box-shadow: 0 14px 32px rgba(0,0,0,.2) !important;
}

.grid-right {
    gap: 10px !important;
}

/* ------------------------------------------------------------------ */
/* 5. PANELS UND INFORMATIONSARCHITEKTUR                               */
/* ------------------------------------------------------------------ */

.matrix-box {
    border: 1px solid var(--dp-border) !important;
    border-radius: 8px !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        var(--dp-surface-raised) !important;
    box-shadow: 0 9px 22px rgba(0,0,0,.14) !important;
}

.matrix-title {
    min-height: 25px;
    display: flex;
    align-items: center;
    margin: 0 0 8px !important;
    padding: 0 0 7px !important;
    border-bottom: 1px solid var(--dp-border) !important;
    color: #d9e8f8 !important;
    font-size: 10px !important;
    font-weight: 790 !important;
    letter-spacing: .105em !important;
    line-height: 1.2 !important;
    text-transform: uppercase !important;
}

/* Inline-Hintergründe der Radarboxen in eine einheitliche Produktsprache ziehen. */
.grid-right .matrix-box[style] {
    background-color: var(--dp-surface-raised) !important;
    border-color: var(--dp-border) !important;
    border-radius: 8px !important;
}

/* ------------------------------------------------------------------ */
/* 6. EINGABEN                                                         */
/* ------------------------------------------------------------------ */

.form-group {
    min-height: 31px !important;
    margin: 0 0 4px !important;
    gap: 12px;
}

label {
    color: #a8aeb8 !important;
    font-size: 11px !important;
    font-weight: 570 !important;
    letter-spacing: .012em !important;
}

input,
select {
    min-height: 30px !important;
    padding: 5px 8px !important;
    border: 1px solid #434751 !important;
    border-radius: 5px !important;
    background: #f4f5f7 !important;
    color: #101216 !important;
    font-size: 11px !important;
    font-weight: 690 !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,.08) !important;
}

input:hover,
select:hover {
    border-color: #686e7a !important;
}

input:focus,
select:focus {
    border-color: var(--dp-blue) !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(41,98,255,.2) !important;
}

/* ------------------------------------------------------------------ */
/* 7. AKTIONEN                                                         */
/* ------------------------------------------------------------------ */

button {
    min-height: 31px;
    border: 1px solid rgba(41,98,255,.62) !important;
    border-radius: 5px !important;
    background:
        linear-gradient(180deg, #3672ff, #2455dd) !important;
    color: #fff !important;
    box-shadow: 0 5px 14px rgba(41,98,255,.2) !important;
    font-size: 11px !important;
    font-weight: 750 !important;
    letter-spacing: .015em;
}

button:hover {
    border-color: rgba(90,200,250,.72) !important;
    background:
        linear-gradient(180deg, #447cff, #2e60e8) !important;
    filter: none !important;
    transform: translateY(-1px);
}

/* Sekundäre Datenaktionen */
.grid-right button[style*="background-color: #3c3c3c"],
.grid-left button[style*="background-color: #3c3c3c"] {
    border-color: var(--dp-border-strong) !important;
    background: #252830 !important;
    color: #d8dce3 !important;
    box-shadow: none !important;
}

/* Export-Aktionen bewusst warnend, aber weniger plakativ als vorher. */
button[style*="background-color: #dc3545"] {
    border-color: rgba(255,69,58,.55) !important;
    background:
        linear-gradient(180deg, #d94a43, #b8342f) !important;
    box-shadow: 0 5px 15px rgba(255,69,58,.17) !important;
}

/* Journal-Speicherung als bestätigende Aktion. */
.btn-green {
    border-color: rgba(48,209,88,.48) !important;
    background:
        linear-gradient(180deg, #2caf4d, #218d3d) !important;
    box-shadow: 0 5px 15px rgba(48,209,88,.14) !important;
}

.btn-container {
    gap: 7px !important;
    margin: 4px 0 !important;
}

/* ------------------------------------------------------------------ */
/* 8. DECISION MATRIX UND DATENFLÄCHEN                                 */
/* ------------------------------------------------------------------ */

textarea,
.color-radar-pad {
    border: 1px solid var(--dp-border) !important;
    border-radius: 6px !important;
    background: #08090c !important;
    box-shadow: inset 0 1px 8px rgba(0,0,0,.4) !important;
}

textarea {
    color: #72e294 !important;
    font-size: 11px !important;
    line-height: 1.5 !important;
}

.color-radar-pad {
    color: #c8cdd5 !important;
    font-size: 10.5px !important;
    line-height: 1.52 !important;
}

/* ------------------------------------------------------------------ */
/* 9. JOURNAL                                                          */
/* ------------------------------------------------------------------ */

#journal.tab-content.active {
    grid-template-columns: 1fr !important;
}

#journal .grid-left {
    padding: 15px !important;
}

.journal-container {
    border: 1px solid var(--dp-border) !important;
    border-radius: 7px !important;
    background: #0b0c10 !important;
}

.journal-table {
    border-collapse: separate !important;
    border-spacing: 0 !important;
    font-size: 10px !important;
}

.journal-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 9px 8px !important;
    border-bottom: 1px solid var(--dp-border-strong) !important;
    background: #1a1d23 !important;
    color: #dce0e6 !important;
    font-size: 9px !important;
    font-weight: 790 !important;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.journal-table tbody td {
    padding: 8px !important;
    border-bottom: 1px solid rgba(255,255,255,.045) !important;
    color: #b8bdc6 !important;
}

.journal-table tbody tr:nth-child(even) td {
    background: rgba(255,255,255,.014);
}


/* ------------------------------------------------------------------ */
/* 10. BACKTESTING                                                     */
/* ------------------------------------------------------------------ */

#backtestTab.tab-content.active {
    grid-template-columns: minmax(400px, 455px) minmax(0, 1fr) !important;
}

/* ------------------------------------------------------------------ */
/* 11. SCROLLBARS UND RESPONSIVE                                       */
/* ------------------------------------------------------------------ */

.grid-left,
.grid-right,
.journal-container,
.color-radar-pad,
textarea {
    scrollbar-color: #424751 #0b0c10;
    scrollbar-width: thin;
}

@media (max-width: 1050px) {
    .tab-content.active,
#backtestTab.tab-content.active {
        grid-template-columns: minmax(350px, 410px) minmax(0, 1fr) !important;
    }

    .tab-btn {
        padding-inline: 11px !important;
    }
}

@media (max-width: 820px) {
    .tabs {
        height: auto !important;
        align-items: flex-start !important;
        gap: 5px;
    }

    .tabs-left {
        flex-wrap: wrap;
    }

    .tab-content.active,
#backtestTab.tab-content.active {
        display: flex !important;
        flex-direction: column;
        height: auto !important;
        min-height: calc(100vh - 150px);
    }

    .grid-left,
.grid-right {
        height: auto !important;
        min-height: 0;
    }
}

/* Extracted from public/index.html style block 18. */
/* ------------------------------------------------------------------ */
/* 1. WORKSPACE-KOPFZEILEN                                             */
/* ------------------------------------------------------------------ */

.dp-workspace.active::before {
    grid-column: 1 / -1;
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 18px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(41,98,255,.11), transparent 42%),
        var(--dp-surface);
    box-shadow: 0 10px 25px rgba(0,0,0,.16);
    color: #f2f4f7;
    font-size: 15px;
    font-weight: 780;
    letter-spacing: .018em;
}

.dp-workspace-indices.active::before {
    content: "Index Analysis  /  Decision Workspace";
}

.dp-workspace-forex.active::before {
    content: "FOREX Analysis  /  Decision Workspace";
}

.dp-workspace-journal.active::before {
    content: "Trading Journal  /  Live Database";
}

.dp-workspace-backtest.active::before {
    content: "Backtesting Center  /  Historical Validation";
}

.tab-content.active,
#backtestTab.tab-content.active {
    height: calc(100vh - 201px) !important;
}

/* ------------------------------------------------------------------ */
/* 2. LINKE STEUERZENTRALE                                             */
/* ------------------------------------------------------------------ */

.dp-control-sidebar {
    position: relative;
    padding: 12px !important;
    background:
        linear-gradient(180deg, rgba(41,98,255,.035), transparent 24%),
        var(--dp-surface) !important;
}

.dp-control-sidebar::before {
    content: "CONTROL PANEL";
    display: block;
    margin: 0 0 10px;
    padding: 0 2px 8px;
    border-bottom: 1px solid var(--dp-border);
    color: #6f9fff;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .14em;
}

.dp-risk-card {
    position: relative;
    padding: 13px !important;
    border-color: rgba(255,159,10,.22) !important;
    background:
        linear-gradient(115deg, rgba(255,159,10,.055), transparent 58%),
        var(--dp-surface-raised) !important;
}

.dp-risk-card .matrix-title {
    color: #ffc36a !important;
}

.dp-input-card {
    margin-top: 9px;
    padding: 13px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        #12151a;
}

.dp-input-card > .matrix-title {
    margin-top: 0 !important;
    color: #dce8ff !important;
}

.dp-input-card .form-group {
    margin-bottom: 7px !important;
}

.dp-input-card .form-group label {
    flex: 1 1 auto;
}

.dp-input-card .form-group input,
.dp-input-card .form-group select {
    flex: 0 0 185px;
    width: 185px !important;
}

.dp-input-card > .btn-container:last-child {
    margin-top: 12px !important;
    padding-top: 11px;
    border-top: 1px solid var(--dp-border);
}

/* Analyse und Export als eigenständige Aktionsleiste */

.dp-control-sidebar > .btn-container button:first-child {
    min-height: 37px;
}

/* ------------------------------------------------------------------ */
/* 3. DECISION REPORT                                                  */
/* ------------------------------------------------------------------ */

.dp-report-card {
    min-height: 205px;
    padding: 13px !important;
    border-color: rgba(41,98,255,.24) !important;
    background:
        linear-gradient(135deg, rgba(41,98,255,.06), transparent 45%),
        var(--dp-surface-raised) !important;
}

.dp-report-card .matrix-title {
    color: var(--dp-blue-light) !important;
}

.dp-report-card textarea {
    flex: 1 1 auto;
    min-height: 155px !important;
    padding: 12px !important;
    border-color: rgba(90,200,250,.18) !important;
    background:
        linear-gradient(180deg, rgba(41,98,255,.025), transparent),
        #07090c !important;
}

/* ------------------------------------------------------------------ */
/* 4. MARKT-WORKSPACE                                                  */
/* ------------------------------------------------------------------ */

.dp-market-workspace {
    padding: 0 !important;
}


.dp-market-grid > .matrix-box {
    position: relative;
    padding: 14px !important;
    border-color: var(--dp-border) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.022), transparent 25%),
        var(--dp-surface) !important;
}

.dp-market-grid > .matrix-box:first-child::after,
.dp-market-grid > .matrix-box:last-child::after {
    position: absolute;
    right: 13px;
    top: 13px;
    padding: 4px 7px;
    border: 1px solid var(--dp-border);
    border-radius: 4px;
    color: #737a86;
    background: rgba(255,255,255,.018);
    font-size: 8px;
    font-weight: 780;
    letter-spacing: .08em;
}

.dp-market-grid > .matrix-box:first-child::after {
    content: "EVENT RISK";
}

.dp-market-grid > .matrix-box:last-child::after {
    content: "LIVE FEED";
}

.dp-market-grid .color-radar-pad {
    margin-top: 9px !important;
    padding: 11px !important;
    border-color: rgba(255,255,255,.07) !important;
    background:
        linear-gradient(180deg, rgba(255,255,255,.012), transparent),
        #080a0d !important;
}

/* ------------------------------------------------------------------ */
/* 5. ERGEBNIS- UND SPEICHERLEISTE                                     */
/* ------------------------------------------------------------------ */

.dp-result-bar {
    min-height: 58px !important;
    height: auto !important;
    padding: 10px 13px !important;
    border-color: rgba(48,209,88,.18) !important;
    background:
        linear-gradient(90deg, rgba(48,209,88,.035), transparent 48%),
        var(--dp-surface) !important;
}

.dp-result-bar::before {
    content: "TRADE OUTCOME";
    align-self: center;
    color: #6e7580;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .12em;
}

.dp-result-bar > div {
    flex: 1 1 auto;
}

.dp-result-bar .btn-green {
    flex: 0 0 220px;
}

/* ------------------------------------------------------------------ */
/* 6. JOURNAL UND BACKTEST ALS ECHTE ARBEITSBEREICHE                   */
/* ------------------------------------------------------------------ */

.dp-journal-workspace {
    padding: 14px !important;
}

.dp-journal-workspace > .matrix-title,
.dp-workspace-backtest .dp-control-sidebar > .matrix-title {
    min-height: 31px;
    padding-bottom: 10px !important;
    color: #dce8ff !important;
}

.dp-journal-workspace .journal-container {
    margin-top: 8px;
    border-radius: 8px !important;
    box-shadow: inset 0 1px 10px rgba(0,0,0,.32);
}

.dp-workspace-backtest .dp-control-sidebar {
    border-color: rgba(255,159,10,.16) !important;
}

/* ------------------------------------------------------------------ */
/* 7. FEINER RESPONSIVE-UMBAU                                         */
/* ------------------------------------------------------------------ */

@media (max-width: 1120px) {
    .dp-input-card .form-group input,
    .dp-input-card .form-group select {
        flex-basis: 165px;
        width: 165px !important;
    }
}

@media (max-width: 820px) {
    .dp-workspace.active::before {
        min-height: 46px;
        padding: 0 13px;
        font-size: 13px;
    }

    .tab-content.active,
#backtestTab.tab-content.active {
        height: auto !important;
    }

    .dp-market-grid {
        grid-template-columns: 1fr !important;
        height: auto !important;
    }

    .dp-result-bar {
        align-items: stretch !important;
        flex-direction: column;
    }

    .dp-result-bar::before {
        align-self: flex-start;
    }

    .dp-result-bar .btn-green {
        flex-basis: auto;
        width: 100% !important;
    }
}

/* Extracted from public/index.html style block 19. */
.dp-app-header {
    position: relative;
    min-height: 82px !important;
    display: grid !important;
    grid-template-columns: minmax(245px, .72fr) minmax(620px, 1.7fr);
    align-items: center;
    gap: 18px;
    padding: 11px 14px !important;
    overflow: hidden;
}
.dp-app-header::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(90deg, rgba(41,98,255,.10), transparent 34%),
        linear-gradient(180deg, rgba(255,255,255,.018), transparent);
}
.dp-app-header > * { position: relative; z-index: 1; }

.dp-app-header .header-right-area {
    display: grid !important;
    grid-template-columns: minmax(390px, 1fr) auto;
    grid-template-areas:
        "mt5 meta"
        "badge badge";
    align-items: stretch;
    gap: 7px 10px;
}
.dp-system-status { grid-area: mt5; }
.dp-header-meta { grid-area: meta; }
.dp-app-header .patent-badge {
    grid-area: badge;
    justify-self: end;
    margin: 0 !important;
}

.dp-header-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(105px, 1fr));
    gap: 6px;
}
.dp-header-meta-item {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 7px 10px;
    border: 1px solid var(--dp-border);
    border-radius: 6px;
    background: rgba(255,255,255,.018);
}
.dp-header-meta-item strong {
    margin-top: 2px;
    color: #eef1f5;
    font-size: 9px;
    font-weight: 750;
    letter-spacing: .02em;
    white-space: nowrap;
}
.dp-meta-label {
    color: #737a86;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.dp-header-user {
    flex-direction: row;
    align-items: center;
    gap: 8px;
}
.dp-user-dot {
    width: 8px;
    height: 8px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--dp-green);
    box-shadow: 0 0 0 4px rgba(48,209,88,.10);
}

.dp-system-status,
.dp-market-status-strip { position: relative; overflow: hidden; }
.dp-system-status::before,
.dp-market-status-strip::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 2px;
    background: var(--dp-blue);
    opacity: .9;
}
.dp-market-status-strip { padding-left: 10px !important; }

.dp-control-sidebar { counter-reset: dp-section; }
.dp-control-sidebar > .matrix-box,
.dp-control-sidebar > .dp-input-card,
.dp-control-sidebar > .dp-report-card { position: relative; }
.dp-control-sidebar > .matrix-box::before,
.dp-control-sidebar > .dp-input-card::before,
.dp-control-sidebar > .dp-report-card::before {
    counter-increment: dp-section;
    content: "0" counter(dp-section);
    position: absolute;
    top: 10px;
    right: 11px;
    color: rgba(255,255,255,.20);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}
.dp-control-sidebar .matrix-title { padding-right: 34px !important; }
.dp-input-card .form-group {
    position: relative;
    padding: 2px 0;
}
.dp-input-card .form-group + .form-group {
    border-top: 1px solid rgba(255,255,255,.028);
}
.dp-input-card label { color: #959ca7 !important; }
.dp-control-sidebar > .btn-container {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 7px !important;
}
.dp-control-sidebar > .btn-container button { width: 100% !important; }

.dp-market-workspace { position: relative; }
.dp-market-workspace::before {
    content: "ANALYSIS COCKPIT";
    display: flex;
    align-items: center;
    min-height: 34px;
    margin-bottom: 8px;
    padding: 0 12px;
    border: 1px solid var(--dp-border);
    border-radius: 7px;
    background:
        linear-gradient(90deg, rgba(41,98,255,.065), transparent 48%),
        var(--dp-surface);
    color: #8290a4;
    font-size: 9px;
    font-weight: 820;
    letter-spacing: .14em;
}
.dp-market-grid { align-items: stretch; }
.dp-market-grid > .matrix-box {
    min-height: 0;
    overflow: hidden;
}
.dp-market-grid > .matrix-box::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 42px;
    background: var(--dp-blue);
    opacity: .8;
}
.dp-market-grid > .matrix-box:last-child::before { background: var(--dp-green); }

.dp-report-card::after {
    content: "DECISION REPORT";
    position: absolute;
    right: 12px;
    bottom: 10px;
    color: rgba(255,255,255,.11);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
}
.dp-result-bar {
    position: relative;
    border-left: 3px solid rgba(48,209,88,.62) !important;
}
.dp-result-bar .form-group { margin: 0 !important; }
.dp-result-bar select { min-width: 150px; }

.dp-journal-workspace {
    background:
        linear-gradient(180deg, rgba(41,98,255,.025), transparent 22%),
        var(--dp-surface) !important;
}
.dp-workspace-backtest .dp-control-sidebar::after {
    content: "Historical input remains unchanged";
    display: block;
    margin-top: 10px;
    padding: 8px 10px;
    border: 1px dashed rgba(255,159,10,.22);
    border-radius: 6px;
    color: #9a7d52;
    background: rgba(255,159,10,.025);
    font-size: 9px;
}

@media (max-width: 1220px) {
    .dp-app-header {
        grid-template-columns: 1fr;
    }
    .dp-app-header .header-right-area {
        grid-template-columns: 1fr;
        grid-template-areas:
            "mt5"
            "meta"
            "badge";
    }
}
@media (max-width: 820px) {
    .dp-header-meta { grid-template-columns: 1fr; }
}

/* Extracted from public/index.html style block 20. */
/* ------------------------------------------------------------------ */
/* 1. WORKSPACE ALS GESCHLOSSENE DESKTOP-ANWENDUNG                     */
/* ------------------------------------------------------------------ */

.dp-workspace.active {
    position: relative;
    padding: 0 !important;
}

.dp-workspace.active::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: 10px;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.018);
}

.dp-workspace.active::before {
    min-height: 58px !important;
    padding: 0 20px !important;
    border-radius: 9px !important;
    background:
        linear-gradient(90deg, rgba(41,98,255,.12), rgba(41,98,255,.025) 38%, transparent 70%),
        linear-gradient(180deg, rgba(255,255,255,.028), transparent),
        #111318 !important;
    box-shadow:
        0 12px 28px rgba(0,0,0,.19),
        inset 0 1px 0 rgba(255,255,255,.025) !important;
    font-size: 16px !important;
    letter-spacing: .012em !important;
}

/* ------------------------------------------------------------------ */
/* 2. CONTROL CENTER                                                   */
/* ------------------------------------------------------------------ */

.dp-control-sidebar {
    border-radius: 9px !important;
    background:
        linear-gradient(180deg, rgba(41,98,255,.042), transparent 20%),
        linear-gradient(90deg, rgba(255,255,255,.012), transparent),
        #101217 !important;
}

.dp-control-sidebar::before {
    min-height: 28px;
    align-items: center;
    margin-bottom: 12px !important;
    padding: 0 4px 9px !important;
    color: #8eb1ff !important;
    font-size: 9px !important;
    letter-spacing: .16em !important;
}

.dp-control-sidebar > .matrix-box,
.dp-control-sidebar > .dp-input-card,
.dp-control-sidebar > .dp-report-card {
    overflow: hidden;
    transition: border-color .18s ease, background .18s ease;
}

.dp-control-sidebar > .matrix-box:hover,
.dp-control-sidebar > .dp-input-card:hover,
.dp-control-sidebar > .dp-report-card:hover {
    border-color: rgba(90,200,250,.22) !important;
}

.dp-risk-card,
.dp-input-card,
.dp-report-card {
    box-shadow:
        0 10px 24px rgba(0,0,0,.14),
        inset 0 1px 0 rgba(255,255,255,.018) !important;
}

.dp-input-card {
    background:
        linear-gradient(145deg, rgba(41,98,255,.035), transparent 38%),
        #121419 !important;
}

.dp-input-card::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(41,98,255,.66);
}

.dp-input-card .matrix-title,
.dp-risk-card .matrix-title,
.dp-report-card .matrix-title {
    min-height: 29px !important;
}

.dp-input-card .form-group {
    min-height: 36px !important;
    padding: 4px 0 !important;
}

.dp-input-card .form-group label {
    display: flex;
    align-items: center;
    min-height: 28px;
    color: #aeb4be !important;
    font-size: 10px !important;
    font-weight: 610 !important;
}

.dp-input-card input,
.dp-input-card select {
    min-height: 31px !important;
    border-color: #4b505b !important;
    background:
        linear-gradient(180deg, #f6f7f9, #e9ebef) !important;
}

.dp-input-card input:focus,
.dp-input-card select:focus {
    background: #fff !important;
}

/* ------------------------------------------------------------------ */
/* 3. AKTIONSHIERARCHIE                                                */
/* ------------------------------------------------------------------ */

.dp-control-sidebar > .btn-container {
    margin-top: 11px !important;
    padding: 10px;
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        #111318;
}

.dp-control-sidebar > .btn-container::before {
    content: "EXECUTION";
    display: block;
    margin-bottom: 7px;
    color: #737a86;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .13em;
}

.dp-control-sidebar > .btn-container button {
    min-height: 36px !important;
}

.dp-control-sidebar > .btn-container button:first-of-type {
    min-height: 40px !important;
    font-size: 11px !important;
    letter-spacing: .025em !important;
}

/* ------------------------------------------------------------------ */
/* 4. INSTITUTIONELLES ANALYSE-COCKPIT                                 */
/* ------------------------------------------------------------------ */

.dp-market-workspace::before {
    min-height: 39px !important;
    padding: 0 14px !important;
    border-radius: 8px !important;
    background:
        linear-gradient(90deg, rgba(41,98,255,.095), transparent 48%),
        linear-gradient(180deg, rgba(255,255,255,.02), transparent),
        #111318 !important;
    color: #9fb2cb !important;
}

.dp-market-grid {
    gap: 11px !important;
}

.dp-market-grid > .matrix-box {
    border-radius: 9px !important;
    background:
        linear-gradient(145deg, rgba(255,255,255,.02), transparent 34%),
        #111318 !important;
    box-shadow:
        0 14px 30px rgba(0,0,0,.16),
        inset 0 1px 0 rgba(255,255,255,.018) !important;
}

.dp-market-grid > .matrix-box::after {
    top: 12px !important;
    right: 12px !important;
}

.dp-market-grid .matrix-title {
    min-height: 30px !important;
    padding-left: 3px !important;
    color: #e0e5ec !important;
}

.dp-market-grid .color-radar-pad {
    border-radius: 7px !important;
    background:
        linear-gradient(180deg, rgba(41,98,255,.022), transparent 28%),
        #07090c !important;
}

/* ------------------------------------------------------------------ */
/* 5. DECISION REPORT                                                  */
/* ------------------------------------------------------------------ */

.dp-report-card {
    min-height: 225px !important;
    border-color: rgba(41,98,255,.24) !important;
}

.dp-report-card textarea {
    min-height: 174px !important;
    padding: 14px !important;
    border-radius: 7px !important;
    color: #83e6a0 !important;
    font-family: Consolas, "Cascadia Mono", "SFMono-Regular", monospace !important;
    font-size: 10.5px !important;
    line-height: 1.58 !important;
    letter-spacing: .004em;
}

.dp-report-card::after {
    right: 13px !important;
    bottom: 11px !important;
    color: rgba(90,200,250,.16) !important;
}

/* ------------------------------------------------------------------ */
/* 6. TRADE OUTCOME                                                    */
/* ------------------------------------------------------------------ */

.dp-result-bar {
    min-height: 66px !important;
    padding: 11px 14px !important;
    border-radius: 9px !important;
    background:
        linear-gradient(90deg, rgba(48,209,88,.045), transparent 46%),
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        #111318 !important;
    box-shadow: 0 12px 26px rgba(0,0,0,.14) !important;
}

.dp-result-bar::before {
    min-width: 86px;
    color: #818894 !important;
}

.dp-result-bar select {
    min-height: 34px !important;
}

.dp-result-bar .btn-green {
    min-height: 38px !important;
}

/* ------------------------------------------------------------------ */
/* 7. JOURNAL ALS PROFESSIONAL DATA GRID                               */
/* ------------------------------------------------------------------ */

.dp-journal-workspace {
    border-radius: 9px !important;
    box-shadow: 0 14px 30px rgba(0,0,0,.17) !important;
}

.journal-table thead th {
    height: 36px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.028), transparent),
        #191c22 !important;
}

.journal-table tbody tr {
    transition: background .14s ease;
}

.journal-table tbody td {
    font-variant-numeric: tabular-nums;
}

.journal-table tbody tr:hover td {
    background: rgba(41,98,255,.09) !important;
}

/* ------------------------------------------------------------------ */
/* 8. BACKTEST VALIDATION CENTER                                       */
/* ------------------------------------------------------------------ */

.dp-workspace-backtest .dp-control-sidebar {
    border-radius: 9px !important;
}

/* ------------------------------------------------------------------ */
/* 9. VISUELLE RUHE                                                    */
/* ------------------------------------------------------------------ */

.dp-workspace button,
.dp-workspace input,
.dp-workspace select,
.dp-workspace textarea {
    transition:
        border-color .16s ease,
        box-shadow .16s ease,
        background .16s ease,
        transform .12s ease;
}

.dp-workspace button:active {
    transform: translateY(0) !important;
}

.dp-workspace .matrix-title {
    text-shadow: none !important;
}

/* ------------------------------------------------------------------ */
/* 10. RESPONSIVE                                                      */
/* ------------------------------------------------------------------ */

@media (max-width: 980px) {
    .dp-workspace.active::before {
        min-height: 50px !important;
        font-size: 14px !important;
    }

    .dp-report-card {
        min-height: 205px !important;
    }
}

@media (max-width: 820px) {
    .dp-control-sidebar > .btn-container {
        padding: 8px;
    }

    .dp-market-workspace::before {
        margin-top: 4px;
    }
}

/* Extracted from public/index.html style block 21. */
/* Bestehende V1-Layoutregeln für den V2-Bereich vollständig neutralisieren. */
body {
    overflow-y: auto !important;
    overflow-x: hidden !important;
}

.v2-workspace {
    display: none;
    width: 100%;
    min-height: 0;
    height: auto !important;
    padding: 0 22px 28px !important;
    box-sizing: border-box;
    color: #eef1f5;
}

.v2-workspace.active {
    display: block !important;
    height: auto !important;
    min-height: calc(100vh - 250px);
    overflow: visible !important;
}

.v2-workspace.active::before,
.v2-workspace.active::after {
    display: none !important;
    content: none !important;
}

.v2-workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-height: 94px;
    margin: 0 0 14px;
    padding: 18px 20px;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background:
        linear-gradient(100deg, rgba(41,98,255,.12), transparent 42%),
        linear-gradient(180deg, rgba(255,255,255,.025), transparent),
        #111318;
    box-shadow: 0 15px 34px rgba(0,0,0,.19);
}

.v2-workspace-header h1,
.v2-panel-heading h2,
.v2-cockpit-heading h2,
.v2-table-toolbar h2 {
    margin: 3px 0 0;
    color: #f4f6f8;
    font-weight: 760;
    letter-spacing: -.015em;
}

.v2-workspace-header p {
    margin: 5px 0 0;
    color: #858c98;
    font-size: 10.5px;
}

.v2-eyebrow,
.v2-kicker {
    color: #6d9cff;
    font-size: 8px;
    font-weight: 820;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.v2-kicker { color: #7c8491; }

.v2-workspace-badges {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.v2-badge,
.v2-live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(41,98,255,.28);
    border-radius: 5px;
    background: rgba(41,98,255,.07);
    color: #c9d8f5;
    font-size: 8px;
    font-weight: 750;
    letter-spacing: .04em;
    white-space: nowrap;
}

.v2-badge i,
.v2-live-indicator i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 0 3px rgba(48,209,88,.10);
}

.v2-badge-muted {
    border-color: var(--dp-border);
    background: rgba(255,255,255,.018);
    color: #8b929d;
}

.v2-badge-warning {
    border-color: rgba(255,159,10,.28);
    background: rgba(255,159,10,.06);
    color: #d6aa67;
}

.v2-shell {
    display: grid;
    grid-template-columns: minmax(370px, 420px) minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.v2-control-center,
.v2-analysis-center,
.v2-table-card {
    min-width: 0;
    border: 1px solid var(--dp-border);
    border-radius: 10px;
    background: #101217;
    box-shadow: 0 16px 34px rgba(0,0,0,.18);
}

.v2-control-center {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 14px;
}

.v2-panel-heading,
.v2-cockpit-heading,
.v2-table-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 2px 2px 11px;
    border-bottom: 1px solid var(--dp-border);
}

.v2-panel-heading h2,
.v2-cockpit-heading h2,
.v2-table-toolbar h2 {
    font-size: 14px;
}

.v2-step {
    color: rgba(255,255,255,.18);
    font-size: 18px;
    font-weight: 780;
}

.v2-control-card,
.v2-execution-card,
.v2-data-card,
.v2-decision-report {
    border: 1px solid var(--dp-border);
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.018), transparent),
        #14171c;
}


.v2-risk-section {
    border-color: rgba(255,159,10,.22);
    background:
        linear-gradient(110deg, rgba(255,159,10,.05), transparent 52%),
        #14171c;
}

.v2-section-head,
.v2-data-card > header,
.v2-decision-report > header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 10px;
}

.v2-section-head h3,
.v2-data-card h3,
.v2-decision-report h3 {
    margin: 2px 0 0;
    color: #e6e9ee;
    font-size: 11px;
    font-weight: 730;
}

.v2-status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
}
.v2-status-warn { background: #ff9f0a; box-shadow: 0 0 0 4px rgba(255,159,10,.08); }
.v2-status-live { background: #30d158; box-shadow: 0 0 0 4px rgba(48,209,88,.08); }

.v2-mini-label,
.v2-report-state {
    padding: 3px 6px;
    border: 1px solid var(--dp-border);
    border-radius: 4px;
    color: #747c88;
    background: rgba(255,255,255,.018);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
}

.v2-field-grid,
.v2-level-grid {
    display: grid;
    gap: 8px;
}
.v2-field-grid { grid-template-columns: 1fr 1fr; }
.v2-level-grid { grid-template-columns: 1fr 1fr; }

.v2-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    margin: 0;
}

.v2-field > span,
.v2-outcome-select > span {
    color: #8f96a1;
    font-size: 8.5px;
    font-weight: 620;
    letter-spacing: .02em;
}

.v2-field input,
.v2-field select,
.v2-data-card select,
.v2-outcome-select select {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 32px !important;
    box-sizing: border-box;
    border: 1px solid #474d57 !important;
    border-radius: 5px !important;
    background: linear-gradient(180deg, #f7f8fa, #e9ebef) !important;
    color: #111318 !important;
    font-size: 10px !important;
    font-weight: 680 !important;
}

.v2-field input:focus,
.v2-field select:focus,
.v2-data-card select:focus,
.v2-outcome-select select:focus {
    border-color: #2962ff !important;
    box-shadow: 0 0 0 2px rgba(41,98,255,.20) !important;
    outline: none !important;
}

.v2-spread-field { margin-top: 8px; }

.v2-execution-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
    padding: 11px;
}

.v2-btn {
    width: auto;
    min-height: 34px !important;
    padding: 7px 12px !important;
    border-radius: 5px !important;
    font-size: 9px !important;
    font-weight: 760 !important;
    letter-spacing: .02em !important;
    cursor: pointer;
}

.v2-btn-primary {
    border-color: rgba(41,98,255,.65) !important;
    background: linear-gradient(180deg, #3771fa, #2458df) !important;
}
.v2-btn-secondary,
.v2-btn-ghost {
    border-color: var(--dp-border-strong) !important;
    background: #252932 !important;
    color: #d8dce3 !important;
    box-shadow: none !important;
}
.v2-btn-danger {
    border-color: rgba(255,69,58,.48) !important;
    background: linear-gradient(180deg, #d64b44, #b63530) !important;
}
.v2-btn-success {
    border-color: rgba(48,209,88,.45) !important;
    background: linear-gradient(180deg, #2eaf50, #228f3e) !important;
}

.v2-analysis-center {
    display: flex;
    flex-direction: column;
    gap: 11px;
    padding: 14px;
}

.v2-intelligence-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 11px;
}

.v2-data-card {
    display: flex;
    flex-direction: column;
    min-height: 270px;
    padding: 12px;
}

.v2-data-card > header {
    min-height: 34px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--dp-border);
}

.v2-data-card > header select {
    width: 130px !important;
}

.v2-data-card .v2-btn-ghost {
    width: 100%;
    margin-bottom: 8px;
}

.v2-feed {
    flex: 1 1 auto;
    min-height: 180px !important;
    height: 180px !important;
    margin: 0 !important;
    padding: 11px !important;
    overflow: auto !important;
    border: 1px solid rgba(255,255,255,.075) !important;
    border-radius: 6px !important;
    background: #07090c !important;
    color: #c8cdd5 !important;
    font-size: 9.5px !important;
    line-height: 1.5 !important;
}
.v2-news-feed { color: #e5bc58 !important; }

.v2-decision-report {
    padding: 12px;
    border-color: rgba(41,98,255,.24);
}

.v2-decision-report textarea {
    width: 100% !important;
    min-height: 190px !important;
    height: 190px !important;
    box-sizing: border-box;
    padding: 13px !important;
    resize: vertical;
    border: 1px solid rgba(90,200,250,.16) !important;
    border-radius: 6px !important;
    background: #07090c !important;
    color: #79e397 !important;
    font-family: Consolas, "Cascadia Mono", monospace !important;
    font-size: 10px !important;
    line-height: 1.55 !important;
}

.v2-outcome-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 150px auto;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid rgba(48,209,88,.18);
    border-left: 3px solid rgba(48,209,88,.65);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(48,209,88,.045), transparent 45%),
        #14171c;
}

.v2-outcome-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.v2-outcome-copy strong { color: #e8ebef; font-size: 11px; }
.v2-outcome-copy > span:last-child { color: #747c88; font-size: 8.5px; }

.v2-outcome-select {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.v2-header-action { min-width: 165px; }

.v2-table-card {
    padding: 14px;
}

.v2-table-toolbar {
    margin-bottom: 10px;
}

.v2-table-scroll {
    width: 100%;
    max-height: calc(100vh - 365px);
    min-height: 330px;
    overflow: auto !important;
    border-radius: 7px !important;
}

.v2-table-scroll .journal-table {
    min-width: 1700px;
}

.v2-helper-text {
    margin: 10px 0;
    color: #858c98;
    font-size: 9.5px;
    line-height: 1.55;
}

/* Verhindert das Abschneiden auf kleineren Desktop-Höhen. */
@media (max-height: 900px) and (min-width: 901px) {
    .v2-workspace-header {
        min-height: 76px;
        padding-block: 13px;
    }
    .v2-data-card { min-height: 225px; }
    .v2-feed { min-height: 140px !important; height: 140px !important; }
    .v2-decision-report textarea { min-height: 150px !important; height: 150px !important; }
}

@media (max-width: 1100px) {
    .v2-shell {
        grid-template-columns: 340px minmax(0, 1fr);
    }
    .v2-outcome-bar {
        grid-template-columns: 1fr 140px;
    }
    .v2-outcome-bar .v2-btn-success {
        grid-column: 1 / -1;
        width: 100%;
    }
}

@media (max-width: 860px) {
    .v2-workspace { padding-inline: 12px !important; }
    .v2-workspace-header {
        align-items: flex-start;
        flex-direction: column;
    }
    .v2-shell {
        grid-template-columns: 1fr;
    }
    .v2-intelligence-grid {
        grid-template-columns: 1fr;
    }
    .v2-outcome-bar {
        grid-template-columns: 1fr;
    }
    .v2-workspace-badges { justify-content: flex-start; }
}

@media (max-width: 520px) {
    .v2-field-grid,
.v2-level-grid {
        grid-template-columns: 1fr;
    }
}

/* Extracted from public/index.html style block 22. */
/* ================================================================ */
/* DESIGN TOKENS                                                    */
/* ================================================================ */
body {
    --v21-panel: #111318;
    --v21-panel-2: #15181e;
    --v21-panel-3: #191c23;
    --v21-border: rgba(255,255,255,.085);
    --v21-border-strong: rgba(255,255,255,.14);
    --v21-blue: #2962ff;
    --v21-blue-soft: rgba(41,98,255,.10);
    --v21-green: #22c55e;
    --v21-yellow: #f6b73c;
    --v21-red: #ef5350;
    --v21-text: #f1f3f6;
    --v21-muted: #8a919d;
}

/* ================================================================ */
/* KOMPAKTER WORKSPACE-HEADER                                       */
/* ================================================================ */
.v2-workspace-header {
    min-height: 68px !important;
    margin-bottom: 8px !important;
    padding: 12px 16px !important;
    border-radius: 7px !important;
    background:
        linear-gradient(90deg, rgba(41,98,255,.09), transparent 42%),
        var(--v21-panel) !important;
    box-shadow: 0 9px 24px rgba(0,0,0,.18) !important;
}
.v2-workspace-header h1 {
    margin-top: 1px !important;
    font-size: 16px !important;
}
.v2-workspace-header p {
    margin-top: 3px !important;
    font-size: 9px !important;
}
.v2-workspace-header .v2-badge {
    min-height: 25px;
}

/* ================================================================ */
/* TRADING COMMAND BAR                                              */
/* ================================================================ */
.v21-command-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(120px, auto)) minmax(240px, 1fr);
    align-items: center;
    gap: 0;
    min-height: 42px;
    margin-bottom: 9px;
    border: 1px solid var(--v21-border);
    border-radius: 6px;
    background: #0f1116;
    overflow: hidden;
}
.v21-command-group {
    min-height: 42px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border-right: 1px solid var(--v21-border);
}
.v21-command-group strong {
    color: #dfe3e9;
    font-size: 9px;
    font-weight: 740;
    white-space: nowrap;
}
.v21-command-label {
    color: #68707c;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}
.v21-command-actions {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    padding: 0 10px;
}
.v21-chip {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 0 7px;
    border: 1px solid var(--v21-border);
    border-radius: 4px;
    color: #828a96;
    background: rgba(255,255,255,.018);
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .08em;
}
.v21-chip-blue {
    border-color: rgba(41,98,255,.32);
    color: #9db8ff;
    background: rgba(41,98,255,.08);
}
.v21-online-dot {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 5px;
    border-radius: 50%;
    background: var(--v21-green);
    box-shadow: 0 0 0 3px rgba(34,197,94,.09);
    vertical-align: middle;
}

/* ================================================================ */
/* DESKTOP WORKSPACE                                                */
/* ================================================================ */
.v2-shell {
    grid-template-columns: minmax(350px, 392px) minmax(0, 1fr) !important;
    gap: 10px !important;
}
.v2-control-center,
.v2-analysis-center {
    border-radius: 7px !important;
    box-shadow: 0 10px 26px rgba(0,0,0,.17) !important;
}
.v2-control-center {
    position: sticky;
    top: 8px;
    gap: 7px !important;
    padding: 10px !important;
}
.v2-analysis-center {
    gap: 8px !important;
    padding: 10px !important;
}

/* ================================================================ */
/* NUMMERIERTER PROFESSIONAL WORKFLOW                               */
/* ================================================================ */
.v2-control-card,
.v2-execution-card {
    position: relative;
    border-radius: 6px !important;
}
.v2-control-card::before,
.v2-execution-card::before {
    content: attr(data-step);
    position: absolute;
    top: 9px;
    right: 9px;
    color: rgba(255,255,255,.19);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .08em;
}
.v2-control-card[data-role="risk"] {
    border-left: 2px solid rgba(246,183,60,.72);
}
.v2-control-card[data-role="market"] {
    border-left: 2px solid rgba(41,98,255,.68);
}
.v2-control-card[data-role="levels"] {
    border-left: 2px solid rgba(90,200,250,.55);
}
.v2-execution-card[data-role="execution"] {
    border-left: 2px solid rgba(34,197,94,.65);
}
.v2-control-card {
    padding: 10px !important;
}
.v2-section-head {
    margin-bottom: 7px !important;
    padding-right: 24px;
}
.v2-section-head h3 {
    font-size: 10px !important;
}
.v2-field-grid,
.v2-level-grid {
    gap: 6px !important;
}
.v2-field {
    gap: 3px !important;
}
.v2-field > span,
.v2-outcome-select > span {
    font-size: 7.5px !important;
}
.v2-field input,
.v2-field select,
.v2-data-card select,
.v2-outcome-select select {
    min-height: 29px !important;
    border-radius: 4px !important;
    font-size: 9px !important;
}
.v2-execution-card {
    gap: 6px !important;
    padding: 9px !important;
}
.v2-execution-card .v2-kicker {
    padding-right: 25px;
}

/* ================================================================ */
/* AKTIONSHIERARCHIE                                                */
/* ================================================================ */
.v2-btn {
    min-height: 30px !important;
    border-radius: 4px !important;
    font-size: 8.5px !important;
}
.v2-btn-primary {
    min-height: 34px !important;
    box-shadow: 0 5px 14px rgba(41,98,255,.18) !important;
}
.v2-btn-secondary,
.v2-btn-ghost {
    background: #22262e !important;
    color: #c6cbd3 !important;
}
.v2-btn-danger {
    opacity: .92;
}
.v2-btn:hover {
    filter: brightness(1.07);
}

/* ================================================================ */
/* MARKET INTELLIGENCE                                              */
/* ================================================================ */
.v2-cockpit-heading {
    min-height: 35px;
    padding: 0 2px 8px !important;
}
.v2-cockpit-heading h2 {
    font-size: 12px !important;
}
.v2-intelligence-grid {
    gap: 8px !important;
}
.v2-data-card {
    min-height: 238px !important;
    padding: 9px !important;
    border-radius: 6px !important;
}
.v2-data-card > header {
    min-height: 30px !important;
    margin-bottom: 7px !important;
    padding-bottom: 7px !important;
}
.v2-data-card h3 {
    font-size: 9.5px !important;
}
.v2-data-card .v2-btn-ghost {
    margin-bottom: 6px !important;
}
.v2-feed {
    min-height: 150px !important;
    height: 150px !important;
    padding: 9px !important;
    border-radius: 4px !important;
    font-size: 8.5px !important;
}

/* ================================================================ */
/* DECISION ENGINE                                                  */
/* ================================================================ */
.v2-decision-report {
    padding: 9px !important;
    border-radius: 6px !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.018);
}
.v2-decision-report > header {
    margin-bottom: 7px !important;
}
.v2-decision-report textarea {
    min-height: 155px !important;
    height: 155px !important;
    padding: 11px !important;
    border-radius: 4px !important;
    font-size: 9px !important;
    line-height: 1.5 !important;
}

/* ================================================================ */
/* VALIDATION                                                       */
/* ================================================================ */
.v2-outcome-bar {
    grid-template-columns: minmax(230px, 1fr) 145px 170px !important;
    gap: 9px !important;
    padding: 9px 10px !important;
    border-radius: 6px !important;
}
.v2-outcome-copy strong {
    font-size: 10px !important;
}
.v2-outcome-copy > span:last-child {
    font-size: 7.5px !important;
}
.v2-outcome-bar .v2-btn-success {
    width: 100%;
}

/* ================================================================ */
/* JOURNAL UND BACKTESTING                                          */
/* ================================================================ */
.v2-table-card {
    border-radius: 7px !important;
}
.v2-table-toolbar {
    padding-bottom: 8px !important;
}
.v2-table-scroll {
    max-height: calc(100vh - 320px) !important;
}

/* ================================================================ */
/* HOSTING- UND APP-VORBEREITUNG                                    */
/* ================================================================ */
@media (max-width: 1150px) {
    .v21-command-bar {
        grid-template-columns: repeat(3, 1fr);
    }
    .v21-command-actions {
        grid-column: 1 / -1;
        min-height: 32px;
        justify-content: flex-start;
        border-top: 1px solid var(--v21-border);
    }
    .v2-shell {
        grid-template-columns: 330px minmax(0, 1fr) !important;
    }
}

@media (max-width: 900px) {
    .v21-command-bar {
        grid-template-columns: 1fr 1fr;
    }
    .v21-command-group:nth-child(2) {
        border-right: 0;
    }
    .v21-command-group:nth-child(3) {
        grid-column: 1 / -1;
        border-top: 1px solid var(--v21-border);
    }
}

@media (max-width: 860px) {
    .v2-shell {
        grid-template-columns: 1fr !important;
    }
    .v2-control-center {
        order: 1;
    }
    .v2-analysis-center {
        order: 2;
    }
}

@media (max-width: 600px) {
    .v2-workspace {
        padding-inline: 8px !important;
    }
    .v2-workspace-header {
        min-height: auto !important;
    }
    .v21-command-bar {
        grid-template-columns: 1fr;
    }
    .v21-command-group,
.v21-command-group:nth-child(2),
.v21-command-group:nth-child(3) {
        grid-column: auto;
        border-right: 0;
        border-top: 1px solid var(--v21-border);
    }
    .v21-command-group:first-child {
        border-top: 0;
    }
    .v21-command-actions {
        grid-column: auto;
        flex-wrap: wrap;
    }
    .v2-intelligence-grid,
.v2-field-grid,
.v2-level-grid {
        grid-template-columns: 1fr !important;
    }
    .v2-outcome-bar {
        grid-template-columns: 1fr !important;
    }
}

