.tbcw-workbench-host {
    width: 100%;
    margin: 0;
    max-width: 100%;
}

/* Coinlogos gelten in jedem Chart-Widget (Dashboard und Chart-Seite).
   Die quellseitigen PNGs haben unterschiedliche native Groessen (50/64px)
   und duerfen deshalb nie aus dem kompakten Symbolrahmen herausragen. */
.tbcw-workbench-host .tbcw-symbol-logo {
    position: relative;
    width: 30px;
    height: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    overflow: hidden !important;
    border-radius: 50%;
    isolation: isolate;
}

.tbcw-workbench-host .tbcw-symbol-logo img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    object-fit: contain;
    border-radius: 50%;
}

.tbcw-workbench-host .tbcw-symbol-logo i {
    position: relative;
    z-index: 1;
    font-style: normal;
}

.tbcw-workbench-host,
.tbcw-workbench-host * {
    box-sizing: border-box;
}

.tbcw-loading {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    background: linear-gradient(160deg, #0f1728, #161f35);
    color: #d2dae9;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 500 15px/1.4 "Space Grotesk", "Segoe UI Variable", "Segoe UI", sans-serif;
}

.tbcw-app {
    --tbcw-bg-main: #0b1221;
    --tbcw-bg-soft: #131c31;
    --tbcw-bg-card: #101a2d;
    --tbcw-bg-card-2: #17233d;
    --tbcw-text-1: #e6edf8;
    --tbcw-text-2: #b6c2d8;
    --tbcw-text-3: #8a99b5;
    --tbcw-border: rgba(145, 163, 199, 0.2);
    --tbcw-accent: #24d3b5;
    --tbcw-accent-2: #4f88ff;
    --tbcw-danger: #ff5e7e;
    --tbcw-warning: #ffb347;
    --tbcw-radius-lg: 16px;
    --tbcw-radius-md: 10px;
    --tbcw-shadow: 0 20px 50px rgba(5, 10, 20, 0.5);
    width: 100%;
    color: var(--tbcw-text-1);
    font-family: "Space Grotesk", "Segoe UI Variable", "Segoe UI", sans-serif;
}

.tbcw-app.theme-light {
    --tbcw-bg-main: #eef3fb;
    --tbcw-bg-soft: #f6f9ff;
    --tbcw-bg-card: #ffffff;
    --tbcw-bg-card-2: #f2f6ff;
    --tbcw-text-1: #0f172a;
    --tbcw-text-2: #2d405f;
    --tbcw-text-3: #506280;
    --tbcw-border: rgba(20, 41, 80, 0.15);
    --tbcw-accent: #0ea37f;
    --tbcw-accent-2: #285fcc;
    --tbcw-danger: #d7385e;
    --tbcw-warning: #cb7a23;
    --tbcw-shadow: 0 18px 38px rgba(20, 41, 80, 0.18);
}

.tbcw-shell {
    width: 100%;
    max-width: 100%;
    background:
        radial-gradient(circle at 10% 10%, rgba(79, 136, 255, 0.18), transparent 40%),
        radial-gradient(circle at 90% 0%, rgba(36, 211, 181, 0.12), transparent 35%),
        var(--tbcw-bg-main);
    border: 1px solid var(--tbcw-border);
    border-radius: var(--tbcw-radius-lg);
    overflow: hidden;
    box-shadow: var(--tbcw-shadow);
}

.tbcw-topbar {
    display: grid;
    grid-template-columns: minmax(240px, 1.1fr) minmax(240px, 1fr) auto;
    gap: 10px;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid var(--tbcw-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.015));
    backdrop-filter: blur(8px);
}

.tbcw-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.tbcw-group.grow {
    flex: 1 1 auto;
}

.tbcw-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--tbcw-text-3);
    margin-right: 2px;
    white-space: nowrap;
}

.tbcw-input,
.tbcw-select,
.tbcw-btn,
.tbcw-chip-btn {
    border-radius: 10px;
    border: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-card);
    color: var(--tbcw-text-1);
    font: 500 13px/1.2 inherit;
    min-height: 34px;
}

.tbcw-input,
.tbcw-select {
    padding: 0 10px;
}

.tbcw-select {
    cursor: pointer;
}

.tbcw-input:focus,
.tbcw-select:focus {
    outline: none;
    border-color: rgba(36, 211, 181, 0.7);
    box-shadow: 0 0 0 3px rgba(36, 211, 181, 0.16);
}

.tbcw-btn,
.tbcw-chip-btn {
    cursor: pointer;
    padding: 0 12px;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.tbcw-btn:hover,
.tbcw-chip-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 136, 255, 0.6);
}

.tbcw-btn.primary {
    background: linear-gradient(140deg, var(--tbcw-accent-2), var(--tbcw-accent));
    border-color: transparent;
    color: #f7fbff;
    font-weight: 700;
}

.tbcw-btn.ghost {
    background: transparent;
}

.tbcw-main {
    display: grid;
    --tbcw-side-width: 300px;
    grid-template-columns: minmax(0, 1fr) var(--tbcw-side-width);
    min-height: 820px;
    width: 100%;
    min-width: 0;
    transition: grid-template-columns 0.22s ease;
}

.tbcw-main.sidebar-collapsed {
    --tbcw-side-width: 0px;
}

.tbcw-main.sidebar-collapsed .tbcw-side.right {
    border-left: 0;
    padding: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
}

.tbcw-main.sidebar-collapsed .tbcw-side.right .tbcw-panel {
    display: none;
}

.tbcw-side {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 20%), var(--tbcw-bg-soft);
    border-right: 1px solid var(--tbcw-border);
    padding: 10px;
    overflow: auto;
}

.tbcw-side.right {
    border-right: 0;
    border-left: 1px solid var(--tbcw-border);
}

.tbcw-symbol-input {
    min-width: 170px;
}

.tbcw-control-row {
    display: grid;
    gap: 6px;
}

.tbcw-control-row .tbcw-select,
.tbcw-control-row .tbcw-input {
    width: 100%;
}

.tbcw-panel {
    border: 1px solid var(--tbcw-border);
    border-radius: var(--tbcw-radius-md);
    background: var(--tbcw-bg-card);
    margin-bottom: 10px;
    overflow: hidden;
}

.tbcw-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 11px;
    border-bottom: 1px solid var(--tbcw-border);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.tbcw-panel-body {
    padding: 10px 11px;
}

.tbcw-watchlist-search {
    width: 100%;
    margin-bottom: 8px;
}

.tbcw-watchlist-list {
    max-height: 240px;
    overflow: auto;
}

.tbcw-watch-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
    align-items: center;
    width: 100%;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 9px;
    color: var(--tbcw-text-2);
    padding: 7px 8px;
    cursor: pointer;
    text-align: left;
}

.tbcw-watch-item:hover {
    background: rgba(79, 136, 255, 0.12);
    border-color: rgba(79, 136, 255, 0.35);
}

.tbcw-watch-item.active {
    background: rgba(36, 211, 181, 0.14);
    border-color: rgba(36, 211, 181, 0.45);
    color: var(--tbcw-text-1);
}

.tbcw-watch-symbol {
    font-size: 13px;
    font-weight: 700;
}

.tbcw-watch-meta {
    font-size: 11px;
    color: var(--tbcw-text-3);
}

.tbcw-indicator-list {
    max-height: 360px;
    overflow: auto;
}

.tbcw-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 7px;
    align-items: center;
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 5px 7px;
}

.tbcw-row:hover {
    border-color: rgba(79, 136, 255, 0.3);
    background: rgba(79, 136, 255, 0.08);
}

.tbcw-row.strategy {
    border-left: 2px solid rgba(36, 211, 181, 0.5);
}

.tbcw-row .name {
    font-size: 12px;
    color: var(--tbcw-text-1);
    display: flex;
    align-items: center;
    gap: 7px;
}

.tbcw-row .meta {
    font-size: 10px;
    color: var(--tbcw-text-3);
}

.tbcw-mini-btn {
    border: 1px solid var(--tbcw-border);
    background: transparent;
    color: var(--tbcw-text-2);
    border-radius: 7px;
    font-size: 11px;
    padding: 2px 6px;
    cursor: pointer;
}

.tbcw-mini-btn:hover {
    border-color: rgba(36, 211, 181, 0.45);
    color: var(--tbcw-text-1);
}

.tbcw-param-editor {
    border-top: 1px dashed var(--tbcw-border);
    margin-top: 8px;
    padding-top: 8px;
}

.tbcw-param-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.tbcw-param-grid label {
    font-size: 11px;
    color: var(--tbcw-text-3);
    display: grid;
    gap: 4px;
}

.tbcw-color-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 10px;
    margin-top: 8px;
}

.tbcw-color-row label {
    display: grid;
    gap: 4px;
    font-size: 11px;
    color: var(--tbcw-text-3);
}

.tbcw-color-row input[type="color"] {
    width: 56px;
    height: 32px;
    border: 1px solid var(--tbcw-border);
    border-radius: 8px;
    background: transparent;
    padding: 2px;
}

.tbcw-ind-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.tbcw-chart-zone {
    display: grid;
    grid-template-rows: auto minmax(560px, 1fr) auto;
    min-width: 0;
    overflow: hidden;
}

.tbcw-chart-toolbar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    padding: 7px 10px;
    border-bottom: 1px solid var(--tbcw-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.tbcw-tool-strip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.tbcw-toolbar-label {
    font-size: 10px;
    color: var(--tbcw-text-3);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex: 0 0 auto;
}

.tbcw-inline-color {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid var(--tbcw-border);
    border-radius: 8px;
    padding: 0 6px;
    min-height: 30px;
    color: var(--tbcw-text-3);
    font-size: 10px;
    font-weight: 700;
    background: rgba(255, 255, 255, 0.02);
}

.tbcw-draw-color-input {
    width: 30px;
    height: 20px;
    border: 1px solid var(--tbcw-border);
    border-radius: 6px;
    background: transparent;
    padding: 1px;
}

.tbcw-chart-body {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    min-height: 0;
}

.tbcw-draw-tools {
    display: grid;
    align-content: start;
    gap: 6px;
    padding: 8px 6px;
    border-right: 1px solid var(--tbcw-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.12));
}

.tbcw-draw-actions {
    display: grid;
    gap: 6px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--tbcw-border);
}

.tbcw-tool-btn {
    border: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-card);
    color: var(--tbcw-text-2);
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    min-height: 30px;
    padding: 0 9px;
    cursor: pointer;
}

.tbcw-draw-tools .tbcw-tool-btn {
    width: 100%;
    min-height: 30px;
    padding: 0 4px;
    text-align: center;
}

.tbcw-tool-btn.active {
    color: #f6fbff;
    border-color: rgba(36, 211, 181, 0.75);
    background: linear-gradient(140deg, rgba(36, 211, 181, 0.2), rgba(79, 136, 255, 0.22));
}

.tbcw-spacer {
    flex: 1 1 auto;
}

.tbcw-draw-hint {
    font-size: 11px;
    color: var(--tbcw-text-3);
    white-space: nowrap;
}

.tbcw-chart-wrap {
    position: relative;
    min-width: 0;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(circle at 0% 0%, rgba(79, 136, 255, 0.12), transparent 32%),
        radial-gradient(circle at 100% 100%, rgba(36, 211, 181, 0.09), transparent 35%),
        #0d1423;
}

.tbcw-chart {
    width: 100%;
    height: 100%;
    min-height: 560px;
    background: #0d1423;
    position: relative;
    z-index: 1;
}

.tbcw-draw-layer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 8;
    pointer-events: none;
    touch-action: none;
}

.tbcw-draw-layer.interactive {
    pointer-events: auto;
}

.tbcw-draw-layer.interactive.tool-select {
    cursor: default;
    pointer-events: none;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-drawing {
    pointer-events: stroke;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-note {
    pointer-events: all;
}

.tbcw-draw-layer.interactive.drawing-active {
    cursor: crosshair;
}

.tbcw-drawing {
    pointer-events: stroke;
}

.tbcw-fib-level {
    pointer-events: all;
    cursor: pointer;
}

.tbcw-drawing.selected {
    filter: drop-shadow(0 0 8px rgba(36, 211, 181, 0.65));
}

.tbcw-note {
    pointer-events: all;
    cursor: move;
}

.tbcw-statusbar {
    display: grid;
    grid-template-columns: 1fr auto auto auto;
    gap: 8px;
    align-items: center;
    padding: 9px 12px;
    border-top: 1px solid var(--tbcw-border);
    color: var(--tbcw-text-3);
    font-size: 12px;
    background: rgba(0, 0, 0, 0.15);
}

.tbcw-statusbar .tbcw-mini-btn {
    min-height: 26px;
    font-weight: 600;
}

.tbcw-pill {
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid var(--tbcw-border);
    font-size: 11px;
}

.tbcw-pill.good {
    color: #65f6be;
    border-color: rgba(101, 246, 190, 0.5);
}

.tbcw-pill.warn {
    color: #ffc67d;
    border-color: rgba(255, 198, 125, 0.45);
}

/* Datenausfall: muss deutlich anders aussehen als "Ersatzquelle aktiv" (warn). */
.tbcw-pill.bad {
    color: #ff8a8a;
    border-color: rgba(255, 138, 138, 0.6);
    background: rgba(255, 138, 138, 0.08);
}

.tbcw-stack {
    display: grid;
    gap: 8px;
}

.tbcw-strategy-list,
.tbcw-layout-list {
    display: grid;
    gap: 6px;
    max-height: 230px;
    overflow: auto;
}

.tbcw-strategy-insights {
    display: grid;
    gap: 8px;
}

.tbcw-insight-card {
    border: 1px solid var(--tbcw-border);
    border-radius: 9px;
    background: var(--tbcw-bg-card-2);
    padding: 8px;
    display: grid;
    gap: 5px;
}

.tbcw-insight-row {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 11px;
    color: var(--tbcw-text-2);
}

.tbcw-insight-row strong {
    color: var(--tbcw-text-1);
    font-weight: 700;
}

.tbcw-insight-hint,
.tbcw-insight-rules {
    font-size: 10px;
    color: var(--tbcw-text-3);
}

.tbcw-card-btn {
    width: 100%;
    border: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-card-2);
    color: var(--tbcw-text-2);
    border-radius: 9px;
    text-align: left;
    padding: 8px 9px;
    cursor: pointer;
}

.tbcw-card-btn.active {
    border-color: rgba(36, 211, 181, 0.58);
    background: linear-gradient(140deg, rgba(36, 211, 181, 0.2), rgba(79, 136, 255, 0.2));
    color: var(--tbcw-text-1);
}

.tbcw-card-title {
    font-size: 12px;
    font-weight: 700;
}

.tbcw-card-sub {
    margin-top: 2px;
    font-size: 10px;
    color: var(--tbcw-text-3);
}

.tbcw-layout-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.tbcw-inline-actions {
    display: inline-flex;
    gap: 6px;
    align-items: center;
}

.tbcw-stretch {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
}

.tbcw-stretch .tbcw-input {
    flex: 1 1 auto;
}

.tbcw-indicator-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    max-width: none;
    min-height: 30px;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
}

.tbcw-indicator-chips.is-empty {
    display: none;
}

.tbcw-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 28px;
    padding: 0 8px 0 10px;
    border-radius: 999px;
    border: 1px solid rgba(79, 136, 255, 0.5);
    background: linear-gradient(140deg, rgba(79, 136, 255, 0.2), rgba(36, 211, 181, 0.18));
    color: #dbe9ff;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.tbcw-chip-btn:hover {
    transform: translateY(-1px);
    border-color: rgba(36, 211, 181, 0.75);
    box-shadow: 0 8px 20px rgba(36, 211, 181, 0.16);
}

.tbcw-chip-label {
    white-space: nowrap;
}

.tbcw-chip-close {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.14);
    color: #f9fcff;
    font-size: 11px;
    line-height: 1;
    opacity: 0;
    transform: scale(0.85);
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.tbcw-chip-btn:hover .tbcw-chip-close,
.tbcw-chip-btn:focus-visible .tbcw-chip-close {
    opacity: 1;
    transform: scale(1);
}

.tbcw-indicator-picker-list {
    max-height: 280px;
    overflow: auto;
    margin-top: 10px;
    display: grid;
    gap: 6px;
}

.tbcw-empty {
    border: 1px dashed var(--tbcw-border);
    color: var(--tbcw-text-3);
    font-size: 11px;
    border-radius: 8px;
    padding: 10px;
    text-align: center;
}

.tbcw-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(3, 7, 16, 0.68);
    padding: 20px;
}

.tbcw-modal.active {
    display: flex;
}

.tbcw-modal-card {
    width: min(420px, 100%);
    border-radius: 14px;
    border: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-card);
    box-shadow: var(--tbcw-shadow);
    padding: 14px;
}

.tbcw-modal-card h4 {
    margin: 0 0 10px;
    font-size: 15px;
}

.tbcw-modal-card p {
    margin: 0 0 12px;
    color: var(--tbcw-text-3);
    font-size: 12px;
}

.tbcw-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 12px;
}

.tbcw-toast-stack {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 100000;
    display: grid;
    gap: 8px;
    max-width: min(340px, calc(100vw - 24px));
}

.tbcw-toast {
    border-radius: 10px;
    border: 1px solid var(--tbcw-border);
    background: rgba(9, 14, 25, 0.94);
    color: #f1f6ff;
    font-size: 12px;
    font-weight: 600;
    padding: 10px 12px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.tbcw-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.tbcw-toast.good {
    border-color: rgba(36, 211, 181, 0.45);
}

.tbcw-toast.warn {
    border-color: rgba(255, 107, 140, 0.45);
}

.tbcw-hidden {
    display: none !important;
}

@media (max-width: 1320px) {
    .tbcw-main {
        --tbcw-side-width: 290px;
    }
    .tbcw-indicator-chips {
        max-width: 100%;
    }
    .tbcw-draw-hint {
        display: none;
    }
}

@media (max-width: 1080px) {
    .tbcw-topbar {
        grid-template-columns: 1fr;
        gap: 9px;
    }
    .tbcw-main {
        grid-template-columns: 1fr;
        grid-template-rows: auto minmax(520px, 1fr) auto;
        --tbcw-side-width: 1fr;
        height: auto !important;
        min-height: 560px !important;
    }
    .tbcw-side {
        border-right: 0;
        border-top: 1px solid var(--tbcw-border);
        max-height: 260px;
    }
    .tbcw-side.right {
        border-left: 0;
        border-top: 1px solid var(--tbcw-border);
    }
    .tbcw-main.sidebar-collapsed .tbcw-side.right {
        display: none;
    }
    .tbcw-chart {
        min-height: 520px;
    }
    .tbcw-chart-body {
        grid-template-columns: 48px minmax(0, 1fr);
    }
    .tbcw-draw-tools {
        padding: 7px 5px;
    }
}

@media (max-width: 680px) {
    .tbcw-shell {
        border-radius: 12px;
    }
    .tbcw-chart-toolbar {
        padding: 8px;
        gap: 5px;
    }
    .tbcw-tool-btn {
        min-height: 28px;
        padding: 0 8px;
        font-size: 10px;
    }
    .tbcw-chart-body {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .tbcw-draw-tools .tbcw-tool-btn {
        padding: 0 2px;
        min-height: 27px;
    }
    .tbcw-group {
        flex-wrap: wrap;
    }
    .tbcw-chart {
        min-height: 480px;
    }
}

/* =========================================================================
   WORKBENCH-SHELL v2 - Durchgang 1
   Fuenf Bereiche: Kopfleiste / Werkzeugleiste links / Chart / Seitenleiste /
   unterer Analysebereich. Dieser Block ueberschreibt bewusst die alten
   Layoutregeln weiter oben; alle Komponentenstile (Buttons, Listen, Modal)
   bleiben unveraendert gueltig.
   ========================================================================= */

.tbcw-app {
    --tbcw-side-w: 380px;
    /* 20.09.2026 (Ati): 10 px breiter - mehr dunkle Flaeche hinter den
       Werkzeugen, der Chart beginnt entsprechend weiter rechts. */
    --tbcw-rail-w: 70px;
    --tbcw-ctl-h: 32px;
}

/* ---------- Grundgeruest ---------- */

.tbcw-shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 620px;
    overflow: hidden;
}

.tbcw-body {
    display: grid;
    grid-template-columns: var(--tbcw-rail-w) minmax(0, 1fr) 6px var(--tbcw-side-w);
    min-height: 0;
    min-width: 0;
}

.tbcw-shell.sidebar-collapsed .tbcw-body {
    grid-template-columns: var(--tbcw-rail-w) minmax(0, 1fr) 0px 0px;
}

.tbcw-shell.sidebar-collapsed .tbcw-side.right,
.tbcw-shell.sidebar-collapsed .tbcw-resizer {
    display: none;
}

/* ---------- Kopfleiste ---------- */

.tbcw-topbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    grid-template-columns: none;
    border-bottom: 1px solid var(--tbcw-border);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015));
}

.tbcw-topbar-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
}

.tbcw-topbar .tbcw-spacer {
    flex: 1 1 auto;
    min-width: 8px;
}

.tbcw-topbar .tbcw-select,
.tbcw-topbar .tbcw-btn {
    min-height: var(--tbcw-ctl-h);
    font-size: 13px;
}

.tbcw-symbol-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 5px 12px 5px 6px;
    border: 1px solid var(--tbcw-border);
    border-radius: 12px;
    background: var(--tbcw-bg-card-2);
    color: var(--tbcw-text-1);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.tbcw-symbol-btn:hover {
    border-color: var(--tbcw-accent-2);
    background: var(--tbcw-bg-card);
}

.tbcw-symbol-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(140deg, var(--tbcw-accent-2), var(--tbcw-accent));
    color: #04121f;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto;
}

.tbcw-symbol-text {
    display: grid;
    line-height: 1.15;
    text-align: left;
}

.tbcw-symbol-code {
    font-size: 15px;
    font-weight: 700;
}

.tbcw-symbol-meta {
    font-size: 11px;
    color: var(--tbcw-text-3);
}

.tbcw-symbol-caret {
    color: var(--tbcw-text-3);
    font-size: 12px;
}

.tbcw-icon-btn {
    width: var(--tbcw-ctl-h);
    height: var(--tbcw-ctl-h);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--tbcw-border);
    border-radius: 9px;
    background: var(--tbcw-bg-card);
    color: var(--tbcw-text-2);
    font-size: 15px;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.tbcw-icon-btn:hover:not(:disabled) {
    border-color: var(--tbcw-accent-2);
    color: var(--tbcw-text-1);
    background: var(--tbcw-bg-card-2);
}

.tbcw-icon-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.tbcw-save-status {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    border: 1px solid var(--tbcw-border);
    color: var(--tbcw-text-3);
    white-space: nowrap;
}

.tbcw-save-status[data-state="saving"] { color: var(--tbcw-warning); border-color: rgba(255, 179, 71, 0.5); }
.tbcw-save-status[data-state="saved"]  { color: var(--tbcw-accent);  border-color: rgba(36, 211, 181, 0.5); }
.tbcw-save-status[data-state="error"]  { color: var(--tbcw-danger);  border-color: rgba(255, 94, 126, 0.6); }

/* ---------- Werkzeugleiste links ---------- */

.tbcw-toolrail {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 10px 6px;
    border-right: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-soft);
    overflow-y: auto;
    overflow-x: hidden;
}

.tbcw-toolrail .tbcw-tool-strip {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    align-items: center;
}

.tbcw-toolrail .tbcw-tool-btn,
.tbcw-rail-btn {
    width: 46px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid var(--tbcw-border);
    border-radius: 10px;
    background: var(--tbcw-bg-card);
    color: var(--tbcw-text-2);
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.tbcw-toolrail .tbcw-tool-btn:hover,
.tbcw-rail-btn:hover {
    border-color: var(--tbcw-accent-2);
    color: var(--tbcw-text-1);
}

.tbcw-toolrail .tbcw-tool-btn.active {
    border-color: var(--tbcw-accent);
    background: rgba(36, 211, 181, 0.16);
    color: var(--tbcw-text-1);
}

.tbcw-rail-btn.danger:hover {
    border-color: var(--tbcw-danger);
    color: var(--tbcw-danger);
}

.tbcw-rail-sep {
    width: 26px;
    height: 1px;
    background: var(--tbcw-border);
    margin: 3px 0;
    flex: 0 0 auto;
}

.tbcw-rail-color {
    display: inline-flex;
    width: 46px;
    height: 30px;
    border: 1px solid var(--tbcw-border);
    border-radius: 9px;
    overflow: hidden;
    cursor: pointer;
}

.tbcw-rail-color input[type="color"] {
    width: 100%;
    height: 100%;
    border: 0;
    padding: 0;
    background: none;
    cursor: pointer;
}

/* ---------- Chartbereich ---------- */

.tbcw-chart-zone {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
}

.tbcw-chart-wrap {
    min-height: 0;
}

.tbcw-statusbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    grid-template-columns: none;
    font-size: 12px;
}

.tbcw-statusbar .tbcw-spacer {
    flex: 1 1 auto;
}

/* ---------- Breitenzieher ---------- */

.tbcw-resizer {
    cursor: col-resize;
    background: transparent;
    border-left: 1px solid var(--tbcw-border);
    position: relative;
}

.tbcw-resizer::after {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 34px;
    border-radius: 2px;
    background: var(--tbcw-border);
}

.tbcw-resizer:hover::after,
.tbcw-resizer.dragging::after {
    background: var(--tbcw-accent-2);
}

/* ---------- Seitenleiste mit Tabs ---------- */

.tbcw-side.right {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    padding: 0;
    border-left: 0;
    overflow: hidden;
}

.tbcw-tabbar {
    display: flex;
    gap: 2px;
    padding: 8px 8px 0;
    border-bottom: 1px solid var(--tbcw-border);
    overflow-x: auto;
    scrollbar-width: none;
}

.tbcw-tabbar::-webkit-scrollbar { height: 0; }

.tbcw-tab {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 34px;
    padding: 6px 8px;
    border: 0;
    border-bottom: 2px solid transparent;
    background: none;
    color: var(--tbcw-text-3);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.tbcw-tab:hover { color: var(--tbcw-text-2); }

.tbcw-tab.active {
    color: var(--tbcw-text-1);
    border-bottom-color: var(--tbcw-accent);
}

.tbcw-tab-count {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: var(--tbcw-accent);
}

/* Genau EIN Scrollbereich in der Seitenleiste. */
.tbcw-tabpanes {
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
}

.tbcw-tabpane { display: none; }
.tbcw-tabpane.active { display: block; }

.tbcw-section { margin-bottom: 14px; }

.tbcw-section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--tbcw-text-2);
}

/* Innenliegende Listen machen keine eigenen Scrollflaechen mehr auf. */
.tbcw-side.right .tbcw-indicator-list,
.tbcw-side.right .tbcw-strategy-list,
.tbcw-side.right .tbcw-layout-list,
.tbcw-side.right .tbcw-drawing-list,
.tbcw-side.right .tbcw-watchlist-list {
    max-height: none;
    overflow: visible;
}

/* ---------- Zeichnungsliste ---------- */

.tbcw-drawing-list { display: grid; gap: 4px; }

.tbcw-drawing-row {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 6px;
    padding: 5px 8px;
    border: 1px solid var(--tbcw-border);
    border-radius: 9px;
    background: var(--tbcw-bg-card);
}

.tbcw-drawing-row.is-selected { border-color: var(--tbcw-accent); }
.tbcw-drawing-row.is-hidden { opacity: 0.5; }

.tbcw-drawing-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.tbcw-drawing-name {
    border: 0;
    background: none;
    color: var(--tbcw-text-1);
    font-size: 13px;
    text-align: left;
    padding: 2px 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-drawing-icon {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    background: none;
    color: var(--tbcw-text-3);
    font-size: 12px;
    cursor: pointer;
}

.tbcw-drawing-icon:hover {
    border-color: var(--tbcw-border);
    color: var(--tbcw-text-1);
}

.tbcw-drawing-icon.danger:hover {
    border-color: var(--tbcw-danger);
    color: var(--tbcw-danger);
}

/* ---------- Unterer Analysebereich ---------- */

.tbcw-drawer {
    border-top: 1px solid var(--tbcw-border);
    background: var(--tbcw-bg-soft);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.22s ease;
}

.tbcw-drawer[data-open="1"] {
    max-height: 300px;
    overflow-y: auto;
}

.tbcw-drawer-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
    padding: 12px 14px;
}

/* ---------- Lesbarkeit ---------- */

.tbcw-app .tbcw-pill,
.tbcw-app .tbcw-mini-btn,
.tbcw-app .tbcw-meta,
.tbcw-app .tbcw-label,
.tbcw-app .tbcw-toolbar-label {
    font-size: 12px;
}

.tbcw-app .tbcw-mini-btn { min-height: 28px; }

.tbcw-empty {
    padding: 10px;
    border: 1px dashed var(--tbcw-border);
    border-radius: 9px;
    color: var(--tbcw-text-3);
    font-size: 12px;
    text-align: center;
}

/* ---------- Responsiv ---------- */

@media (max-width: 1500px) {
    .tbcw-app { --tbcw-side-w: 340px; }
}

@media (max-width: 1180px) {
    .tbcw-app { --tbcw-side-w: 300px; --tbcw-rail-w: 60px; }
    .tbcw-toolrail .tbcw-tool-btn,
    .tbcw-rail-btn,
    .tbcw-rail-color { width: 38px; }
    .tbcw-toolrail .tbcw-tool-btn,
    .tbcw-rail-btn { height: 36px; font-size: 11px; letter-spacing: -0.02em; }
}

@media (max-width: 980px) {
    .tbcw-body {
        grid-template-columns: var(--tbcw-rail-w) minmax(0, 1fr);
        grid-template-rows: minmax(320px, 1fr) auto;
    }
    .tbcw-resizer { display: none; }
    .tbcw-side.right {
        grid-column: 1 / -1;
        border-top: 1px solid var(--tbcw-border);
        max-height: 46vh;
    }
}

@media (max-width: 680px) {
    .tbcw-topbar { gap: 6px; padding: 8px; }
    .tbcw-topbar .tbcw-spacer { display: none; }
    .tbcw-symbol-btn { flex: 1 1 100%; }

    /* Senkrechte Werkzeugleiste kostet auf dem Smartphone zu viel Chartbreite:
       dort liegt sie waagerecht ueber dem Chart. */
    .tbcw-body {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto minmax(280px, 1fr) auto;
    }
    .tbcw-toolrail {
        flex-direction: row;
        align-items: center;
        border-right: 0;
        border-bottom: 1px solid var(--tbcw-border);
        overflow-x: auto;
        overflow-y: hidden;
        padding: 6px 8px;
    }
    .tbcw-toolrail .tbcw-tool-strip {
        flex-direction: row;
        width: auto;
        flex: 0 0 auto;
    }
    .tbcw-toolrail .tbcw-tool-btn,
    .tbcw-rail-btn,
    .tbcw-rail-color { flex: 0 0 auto; }
    .tbcw-rail-sep {
        width: 1px;
        height: 26px;
        margin: 0 3px;
    }
}

/* =========================================================================
   Grosse Auswahlfenster: Markt, Indikatoren, Strategien
   ========================================================================= */

.tbcw-modal-card.wide {
    width: min(900px, 94vw);
    max-height: 86vh;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr) auto;
    gap: 10px;
}

.tbcw-modal-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tbcw-modal-head h4 {
    margin: 0;
    font-size: 16px;
    flex: 0 0 auto;
}

.tbcw-modal-head .tbcw-meta {
    flex: 1 1 auto;
    color: var(--tbcw-text-3);
    font-size: 12px;
}

.tbcw-modal-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--tbcw-text-3);
    font-size: 12px;
}

/* Filterchips */
.tbcw-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tbcw-chip-filter {
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--tbcw-border);
    border-radius: 999px;
    background: transparent;
    color: var(--tbcw-text-2);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}

.tbcw-chip-filter:hover { border-color: var(--tbcw-accent-2); color: var(--tbcw-text-1); }

.tbcw-chip-filter.active {
    border-color: var(--tbcw-accent);
    background: rgba(36, 211, 181, 0.16);
    color: var(--tbcw-text-1);
}

/* Ergebnisliste */
.tbcw-symbol-results,
.tbcw-lib-results {
    min-height: 0;
    overflow-y: auto;
    display: grid;
    gap: 3px;
    padding-right: 4px;
}

.tbcw-symbol-row {
    display: grid;
    /* FUENF Spalten, weil die Zeile fuenf Kinder hat: Logo, Name, Kurs,
       Markt-Abzeichen und Favoritenstern. Mit vier Spalten fiel der Stern in
       eine zweite Rasterzeile ganz nach links - er sah aus wie ein zweiter
       Stern, die Zeile wurde doppelt hoch, und der Klick landete auf der
       Zeile statt auf dem Knopf. Folge: der Chart wechselte, statt den Coin
       in die Favoritenliste zu legen. Ati 24.08.2026: "man kann sie nicht
       hinzufuegen". */
    grid-template-columns: 30px minmax(0, 1fr) auto auto auto;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
}

.tbcw-symbol-row:hover,
.tbcw-symbol-row.is-cursor {
    background: rgba(79, 136, 255, 0.12);
    border-color: rgba(79, 136, 255, 0.4);
}

.tbcw-symbol-row.is-current {
    border-color: rgba(36, 211, 181, 0.55);
    background: rgba(36, 211, 181, 0.1);
}

.tbcw-coin-logo {
    position: relative;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(140deg, var(--tbcw-accent-2), var(--tbcw-accent));
    flex: 0 0 auto;
}

.tbcw-coin-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0d1626;
}

.tbcw-coin-logo i {
    font-style: normal;
    font-size: 10px;
    font-weight: 800;
    color: #04121f;
    letter-spacing: 0.02em;
}

.tbcw-symbol-main {
    display: grid;
    min-width: 0;
    line-height: 1.2;
}

.tbcw-symbol-pair {
    font-size: 14px;
    font-weight: 700;
    color: var(--tbcw-text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-symbol-sub {
    font-size: 11px;
    color: var(--tbcw-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-symbol-badge {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.04em;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--tbcw-border);
    color: var(--tbcw-text-3);
}

.tbcw-symbol-badge.perp {
    color: var(--tbcw-accent-2);
    border-color: rgba(79, 136, 255, 0.5);
}

.tbcw-symbol-badge.spot {
    color: var(--tbcw-accent);
    border-color: rgba(36, 211, 181, 0.5);
}

.tbcw-fav-btn {
    width: 30px;
    height: 30px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: none;
    color: var(--tbcw-text-3);
    font-size: 15px;
    cursor: pointer;
}

.tbcw-fav-btn:hover { border-color: var(--tbcw-border); color: var(--tbcw-text-1); }
.tbcw-fav-btn.on { color: #ffcc4d; }

/* Bibliothekseintraege (Indikatoren / Strategien) */

.tbcw-lib-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid var(--tbcw-border);
    border-radius: 10px;
    background: var(--tbcw-bg-card);
    cursor: pointer;
}

.tbcw-lib-row:hover,
.tbcw-lib-row.is-cursor { border-color: var(--tbcw-accent-2); }
.tbcw-lib-row.is-active { border-color: var(--tbcw-accent); background: rgba(36, 211, 181, 0.1); }

.tbcw-lib-main { display: grid; min-width: 0; line-height: 1.25; }

.tbcw-lib-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--tbcw-text-1);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-lib-desc {
    font-size: 11px;
    color: var(--tbcw-text-3);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-lib-tag {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 7px;
    border-radius: 6px;
    border: 1px solid var(--tbcw-border);
    color: var(--tbcw-text-3);
    white-space: nowrap;
}

@media (max-width: 680px) {
    .tbcw-modal-card.wide { width: 96vw; max-height: 92vh; }
    .tbcw-symbol-row { grid-template-columns: 26px minmax(0, 1fr) auto; }
    .tbcw-symbol-badge { display: none; }
}

/* Keine Schrift unter 11px mehr - Lesbarkeit auf 1366x768 und daruntter. */
.tbcw-app .tbcw-card-sub,
.tbcw-app .tbcw-insight-hint,
.tbcw-app .tbcw-insight-rules,
.tbcw-app .tbcw-row .meta,
.tbcw-app .tbcw-lib-tag,
.tbcw-app .tbcw-symbol-badge,
.tbcw-app .tbcw-tab-count {
    font-size: 11px;
}

/* Hinweis: Die Seitenbreite auf sehr breiten Schirmen steuert das Theme ueber
   die Layout-Einstellung (body.tb-width-narrow, --tb-layout-width, !important).
   Das ist eine bewusste Einstellung des Betreibers und wird hier NICHT
   ueberschrieben. Die Workbench fuellt exakt die zugewiesene Breite. */

/* =========================================================================
   Marktauswahl: kompakter und mit Kursspalte
   ========================================================================= */

/* Das Fenster war fast fensterhoch. Jetzt eine feste, ruhige Hoehe. */
.tbcw-modal-card.wide {
    width: min(820px, 94vw);
    max-height: min(640px, 88vh);
}

.tbcw-symbol-results,
.tbcw-lib-results {
    /* Ohne eigene Hoehe waechst die Liste bis zum Anschlag und das Fenster
       wird unnoetig lang. */
    max-height: 420px;
}

.tbcw-symbol-row {
    grid-template-columns: 26px minmax(0, 1fr) auto auto auto;
    gap: 9px;
    padding: 5px 9px;
}

.tbcw-coin-logo {
    width: 26px;
    height: 26px;
}

.tbcw-symbol-pair { font-size: 13px; }
.tbcw-symbol-sub { font-size: 11px; }

.tbcw-symbol-quote {
    display: grid;
    justify-items: end;
    line-height: 1.2;
    min-width: 84px;
}

.tbcw-symbol-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--tbcw-text-1);
    font-variant-numeric: tabular-nums;
}

.tbcw-symbol-chg {
    font-size: 11px;
    color: var(--tbcw-text-3);
    font-variant-numeric: tabular-nums;
}

.tbcw-symbol-chg.up { color: var(--tbcw-accent); }
.tbcw-symbol-chg.down { color: var(--tbcw-danger); }

.tbcw-fav-btn {
    width: 26px;
    height: 26px;
    font-size: 14px;
}

@media (max-width: 680px) {
    .tbcw-symbol-row { grid-template-columns: 24px minmax(0, 1fr) auto auto; }
    .tbcw-symbol-badge { display: none; }
    .tbcw-symbol-quote { min-width: 70px; }
}

/* Breite, unsichtbare Trefferzone: im Auswahlmodus ist die Zeichenebene
   pointer-events:none (damit der Chart frei schwenkbar bleibt) und nur das
   Objekt selbst anklickbar. Ohne diese Zone muesste man einen 1,5px-Strich
   exakt treffen. */
.tbcw-drawing-hit {
    pointer-events: none;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-drawing-hit {
    pointer-events: stroke;
    cursor: pointer;
}

.tbcw-draw-layer.interactive.tool-select rect.tbcw-drawing-hit {
    pointer-events: stroke;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-drawing {
    cursor: pointer;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-position-handle {
    pointer-events: all;
    cursor: ns-resize;
    filter: drop-shadow(0 0 4px rgba(230, 237, 248, .42));
}

.tbcw-draw-layer.interactive.tool-select .tbcw-drawing-hit[data-handle="entry"],
.tbcw-draw-layer.interactive.tool-select .tbcw-drawing-hit[data-handle="stop"],
.tbcw-draw-layer.interactive.tool-select .tbcw-drawing-hit[data-handle="target"] {
    cursor: ns-resize;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-drawing-hit[data-handle="body"] {
    cursor: move;
}

/* =========================================================================
   Werkzeuggruppen mit Flyout
   ========================================================================= */

.tbcw-tool-group {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.tbcw-flyout-toggle {
    position: absolute;
    right: -2px;
    bottom: -2px;
    width: 14px;
    height: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: var(--tbcw-bg-card-2);
    color: var(--tbcw-text-3);
    font-size: 8px;
    line-height: 1;
    cursor: pointer;
}

.tbcw-tool-group:hover .tbcw-flyout-toggle,
.tbcw-flyout-toggle:hover {
    color: var(--tbcw-accent);
}

.tbcw-flyout {
    position: absolute;
    left: calc(100% + 8px);
    top: -4px;
    z-index: 40;
    display: none;
    min-width: 168px;
    padding: 8px;
    border: 1px solid var(--tbcw-border);
    border-radius: 11px;
    background: var(--tbcw-bg-card);
    box-shadow: var(--tbcw-shadow);
}

.tbcw-flyout.open {
    display: block;
}

.tbcw-flyout-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--tbcw-text-3);
    margin-bottom: 6px;
}

.tbcw-flyout-btn {
    display: block;
    width: 100%;
    min-height: 30px;
    margin-bottom: 4px;
    padding: 0 10px;
    border: 1px solid var(--tbcw-border);
    border-radius: 8px;
    background: transparent;
    color: var(--tbcw-text-2);
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}

.tbcw-flyout-btn:last-child { margin-bottom: 0; }

.tbcw-flyout-btn:hover {
    border-color: var(--tbcw-accent-2);
    color: var(--tbcw-text-1);
}

/* Umschalter Magnet / Werkzeug behalten */
.tbcw-rail-btn.active {
    border-color: var(--tbcw-accent);
    background: rgba(36, 211, 181, 0.18);
    color: var(--tbcw-text-1);
}

/* Beschriftungen an Zeichnungen (Fib-Stufen, Maß, Positionen) */
.tbcw-drawing-label {
    pointer-events: none;
    font-family: inherit;
    font-weight: 600;
    paint-order: stroke;
    stroke: rgba(6, 12, 22, 0.75);
    stroke-width: 3px;
    stroke-linejoin: round;
}

/* Auf dem Smartphone liegt die Leiste waagerecht -> Flyout nach unten */
@media (max-width: 680px) {
    .tbcw-tool-group { width: auto; }
    .tbcw-flyout {
        left: 0;
        top: calc(100% + 8px);
    }
}

/* =========================================================================
   Favoritenlisten in der Seitenleiste
   ========================================================================= */

.tbcw-wl-tools { margin-top: 8px; }
.tbcw-wl-tools .tbcw-input { min-width: 0; }

.tbcw-wl-list {
    display: grid;
    gap: 4px;
    margin-top: 8px;
}

.tbcw-wl-row {
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    padding: 5px 8px;
    border: 1px solid var(--tbcw-border);
    border-radius: 9px;
    background: var(--tbcw-bg-card);
}

.tbcw-wl-row.is-current {
    border-color: var(--tbcw-accent);
    background: rgba(36, 211, 181, 0.10);
}

.tbcw-wl-row .tbcw-coin-logo {
    width: 24px;
    height: 24px;
}

.tbcw-wl-name {
    border: 0;
    background: none;
    color: var(--tbcw-text-1);
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 2px 0;
    cursor: pointer;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tbcw-wl-name:hover { color: var(--tbcw-accent); }

.tbcw-wl-quote {
    display: grid;
    justify-items: end;
    line-height: 1.2;
    min-width: 74px;
}

.tbcw-wl-actions {
    display: inline-flex;
    gap: 2px;
}

.tbcw-wl-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 6px;
    background: none;
    color: var(--tbcw-text-3);
    font-size: 11px;
    cursor: pointer;
}

.tbcw-wl-icon:hover:not(:disabled) {
    border-color: var(--tbcw-border);
    color: var(--tbcw-text-1);
}

.tbcw-wl-icon:disabled { opacity: 0.25; cursor: not-allowed; }

.tbcw-wl-icon.danger:hover {
    border-color: var(--tbcw-danger);
    color: var(--tbcw-danger);
}

.tbcw-wl-hint {
    margin-top: 8px;
    font-size: 11px;
    color: var(--tbcw-text-3);
}

.tbcw-wl-hint.is-limit {
    padding: 7px 9px;
    border: 1px dashed rgba(255, 179, 71, 0.5);
    border-radius: 8px;
    color: var(--tbcw-warning);
}

/* Stern: voll = in der aktiven Liste, gedaempft = in einer anderen Liste */
.tbcw-fav-btn.elsewhere { color: rgba(255, 204, 77, 0.45); }

.tbcw-side.right .js-wl-select { width: 100%; }


/* =========================================================================
   Kopfzeile: ALLES auf eine Hoehe (09.08.2026)
   -------------------------------------------------------------------------
   Vorher liefen drei verschiedene Hoehen nebeneinander:
     .tbcw-symbol-btn  42px   (zweizeilig: Coin + Zeitfenster/Boerse)
     .tbcw-select      34px
     .tbcw-btn         32px   (--tbcw-ctl-h in der Kopfzeile)
   Dadurch sass jedes Element auf einer anderen Grundlinie und die
   Auswahlfelder waren zu schmal (Candle wurde abgeschnitten).
   Massgeblich ist die Hoehe des Coin-Knopfes, weil er zwei Zeilen traegt.
   ========================================================================= */
.tbcw-topbar { --tbcw-kopf-h: 42px; }

.tbcw-topbar .tbcw-symbol-btn,
.tbcw-topbar .tbcw-select,
.tbcw-topbar .tbcw-btn,
.tbcw-topbar .tbcw-icon-btn {
    min-height: var(--tbcw-kopf-h);
    height: var(--tbcw-kopf-h);
    box-sizing: border-box;
}
.tbcw-topbar .tbcw-icon-btn { width: var(--tbcw-kopf-h); }

/* Auswahlfelder brauchen Platz fuer ihren laengsten Eintrag plus Pfeil,
   sonst wird der Text abgeschnitten. */
.tbcw-topbar .tbcw-select {
    padding-right: 26px;
    min-width: 88px;
    width: auto;
}
.tbcw-topbar .js-charttype-select { min-width: 104px; }

/* Alles in der Zeile mittig auf einer Linie. */
.tbcw-topbar .tbcw-topbar-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* ==========================================================================
   CHART WORKBENCH v3 — chart-first, kompakt und im TradeButtons-Modulstil
   ========================================================================== */
body.page-id-180 {
.tbcw-workbench-host {
    width: calc(100% - 30px);
    max-width: none;
    margin: 0 15px;
}

.tbcw-app {
    --tbcw-side-w: 360px;
    --tbcw-bg-main: rgba(5, 15, 29, .72);
    --tbcw-bg-soft: rgba(8, 23, 39, .72);
    --tbcw-bg-card: rgba(13, 30, 49, .66);
    --tbcw-bg-card-2: rgba(19, 41, 64, .72);
    --tbcw-border: rgba(91, 190, 211, .18);
    --tbcw-shadow: 0 22px 60px rgba(0, 5, 15, .38);
}

.tbcw-shell {
    grid-template-rows: auto minmax(0, 1fr);
    background:
        radial-gradient(circle at 88% 0, rgba(31, 215, 199, .08), transparent 30%),
        radial-gradient(circle at 0 10%, rgba(79, 136, 255, .08), transparent 34%),
        rgba(4, 13, 26, .62);
    border-color: rgba(91, 190, 211, .22);
    border-radius: 14px;
    backdrop-filter: blur(12px);
}

.tbcw-topbar {
    flex-wrap: nowrap;
    gap: 7px;
    min-height: 54px;
    height: 54px;
    padding: 6px 10px;
    align-items: center;
    overflow-x: auto;
    overflow-y: hidden;
    background: linear-gradient(105deg, rgba(19, 38, 60, .82), rgba(10, 42, 52, .68));
    backdrop-filter: blur(14px);
}

.tbcw-market-controls,
.tbcw-workspace-controls {
    height: 38px;
    min-height: 38px;
    padding-left: 0;
    border-left: 0;
    align-items: center;
    flex: 0 0 auto;
}

.tbcw-market-controls .tbcw-select {
    align-self: center;
    margin: 0;
}

.tbcw-topbar .tbcw-btn,
.tbcw-topbar .tbcw-select,
.tbcw-topbar .tbcw-icon-btn,
.tbcw-topbar .tbcw-symbol-btn {
    height: 38px;
    min-height: 38px;
}

.tbcw-topbar .tbcw-icon-btn { width: 38px; }
.tbcw-symbol-logo {
    position: relative;
    width: 28px;
    height: 28px;
    min-width: 28px;
    flex: 0 0 28px;
    overflow: hidden;
}
.tbcw-symbol-logo img {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    object-fit: contain;
}
.tbcw-symbol-logo i { position: relative; z-index: 1; }
.tbcw-symbol-btn { min-width: 164px; max-height: 38px; border-radius: 10px; overflow: hidden; }
.tbcw-symbol-text { align-content: center; }
.tbcw-topbar .tbcw-btn { padding-inline: 11px; white-space: nowrap; }
.tbcw-topbar .tbcw-save-status { padding: 3px 7px; font-size: 10px; }

.tbcw-body {
    grid-template-columns: var(--tbcw-rail-w) minmax(0, 1fr) 5px var(--tbcw-side-w);
}

.tbcw-toolrail,
.tbcw-side.right,
.tbcw-statusbar {
    background: rgba(7, 20, 36, .72);
    backdrop-filter: blur(10px);
}

.tbcw-toolrail { padding-top: 8px; }
.tbcw-toolrail .tbcw-tool-btn,
.tbcw-rail-btn {
    background: rgba(16, 36, 57, .72);
    border-color: rgba(118, 158, 192, .18);
}

.tbcw-tabbar {
    display: grid;
    grid-template-columns: repeat(5, minmax(54px, 1fr));
    gap: 3px;
    padding: 6px 6px 0;
    overflow: visible;
    background: rgba(7, 21, 36, .82);
}

.tbcw-tab {
    position: relative;
    display: grid;
    place-items: center;
    gap: 1px;
    min-height: 48px;
    padding: 5px 2px 6px;
    font-size: 10px;
    line-height: 1.05;
    white-space: normal;
    border-radius: 8px 8px 0 0;
}

.tbcw-tab-icon {
    display: block;
    color: #6f90aa;
    font-size: 15px;
    line-height: 1;
}

.tbcw-tab.active {
    color: #e8f7fb;
    background: rgba(31, 215, 199, .08);
}

.tbcw-tab.active .tbcw-tab-icon { color: var(--tbcw-accent); }
.tbcw-tab-count {
    position: absolute;
    top: 3px;
    right: 4px;
    min-width: 15px;
    height: 15px;
    padding: 1px 4px;
    border-radius: 999px;
    background: rgba(31, 215, 199, .12);
    font-size: 9px;
}

.tbcw-tabpanes { padding: 9px; }
.tbcw-section {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid rgba(118, 158, 192, .14);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(17, 34, 55, .58), rgba(9, 23, 40, .48));
}

.tbcw-section-title {
    margin-bottom: 9px;
    color: #d8edf3;
    font-size: 12px;
}

.tbcw-section-help {
    display: block;
    margin-top: 2px;
    color: #718aa0;
    font-size: 9px;
    font-weight: 500;
    line-height: 1.25;
}

.tbcw-analysis-subtitle {
    margin: 13px 0 7px;
    padding-top: 10px;
    border-top: 1px solid var(--tbcw-border);
    color: #8eb0c3;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.tbcw-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 10px 2px 5px;
    color: #8eb0c3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.tbcw-list-heading small {
    color: var(--tbcw-accent);
    font-size: 9px;
    letter-spacing: .04em;
}

.tbcw-source-badge {
    display: inline-flex;
    margin-left: 5px;
    padding: 2px 5px;
    border: 1px solid rgba(31, 215, 199, .32);
    border-radius: 999px;
    color: var(--tbcw-accent);
    font-size: 8px;
    line-height: 1;
    vertical-align: middle;
}

.tbcw-library-more {
    width: 100%;
    margin-top: 7px;
    padding: 9px 10px;
    border: 1px dashed rgba(31, 215, 199, .28);
    border-radius: 9px;
    background: rgba(31, 215, 199, .05);
    color: #72dcd0;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.tbcw-library-more:hover { background: rgba(31, 215, 199, .1); }

.tbcw-card-btn,
.tbcw-row,
.tbcw-drawing-row,
.tbcw-lib-row {
    background: rgba(10, 25, 43, .66);
    border-color: rgba(118, 158, 192, .16);
}

.tbcw-card-btn:hover,
.tbcw-lib-row:hover { background: rgba(21, 48, 70, .72); }
.tbcw-card-btn.active,
.tbcw-lib-row.is-active {
    border-color: rgba(31, 215, 199, .55);
    background: linear-gradient(110deg, rgba(31, 215, 199, .12), rgba(79, 136, 255, .06));
    box-shadow: inset 3px 0 0 var(--tbcw-accent);
}

.tbcw-mini-btn.primary {
    border-color: rgba(31, 215, 199, .38);
    color: #70eee0;
}
.tbcw-mini-btn.danger { color: #d991a1; }
.tbcw-statusbar { min-height: 30px; padding: 5px 9px; }

@media (max-width: 1280px) {
    .tbcw-app { --tbcw-side-w: 320px; --tbcw-rail-w: 52px; }
    .tbcw-topbar { flex-wrap: nowrap; }
}

@media (max-width: 680px) {
    .tbcw-workbench-host { width: calc(100% - 16px); margin-inline: 8px; }
    .tbcw-market-controls,
    .tbcw-workspace-controls { border-left: 0; padding-left: 0; }
    .tbcw-topbar .tbcw-btn { padding-inline: 8px; }
    .tbcw-tabbar { position: sticky; top: 0; z-index: 3; }
}
}

/* Haken "Trades" in der Kopfleiste - blendet Ein-/Ausstiegsmarken aus. */
.tbcw-toggle {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    padding: 0 12px;
    min-height: 34px;
    border-radius: 10px;
    border: 1px solid var(--tbcw-border);
    background: transparent;
    color: var(--tbcw-text-1);
    font: 500 13px/1.2 inherit;
    white-space: nowrap;
    user-select: none;
    transition: all 0.2s ease;
}

.tbcw-toggle:hover {
    transform: translateY(-1px);
    border-color: rgba(79, 136, 255, 0.6);
}

.tbcw-toggle input {
    accent-color: var(--tbcw-accent-2, #24d3b5);
    cursor: pointer;
    margin: 0;
    width: 14px;
    height: 14px;
}

/* 2026-09-10: Strategie-Filter im Seitenpanel + Badges (NEU / Gruppe) */
.tbcw-strategy-panel-filters { margin: 0 0 8px; }
.tbcw-strategy-panel-filters .tbcw-chip-filter { min-height: 26px; padding: 0 10px; font-size: 11px; }
.tbcw-strategy-panel-filters .tbcw-chip-filter small { margin-left: 4px; color: var(--tbcw-accent); font-size: 10px; font-weight: 700; }
.tbcw-source-badge.new { border-color: rgba(74, 222, 128, .55); color: #4ade80; }
.tbcw-source-badge.group { border-color: rgba(142, 176, 195, .4); color: #8eb0c3; }

/* ===== Zeichnen: Vorschau, Griffe, Rechtsklick-Menue (Ati 20.09.2026) ===== */
.tbcw-drawing-preview {
	opacity: .9;
}

.tbcw-drawing-preview line,
.tbcw-drawing-preview rect,
.tbcw-drawing-preview polyline,
.tbcw-drawing-preview ellipse,
.tbcw-drawing-preview circle,
.tbcw-drawing-preview path {
	stroke-dasharray: 5 4;
}

.tbcw-handle {
	cursor: grab;
	pointer-events: all;
}

.tbcw-handle:hover {
	fill: #14314d;
}

.tbcw-ctx-menu {
	position: fixed;
	z-index: 2147482000;
	display: grid;
	min-width: 168px;
	padding: 6px;
	border: 1px solid rgba(120, 160, 220, .3);
	border-radius: 10px;
	background: rgba(9, 18, 32, .98);
	box-shadow: 0 18px 44px rgba(0, 0, 0, .55);
}

.tbcw-ctx-menu button {
	appearance: none;
	padding: 7px 10px;
	border: 0;
	border-radius: 7px;
	background: transparent;
	color: #dbe6f5;
	font: 600 12px/1.2 inherit;
	text-align: left;
	cursor: pointer;
}

.tbcw-ctx-menu button:hover,
.tbcw-ctx-menu button:focus-visible {
	background: rgba(79, 136, 255, .18);
	color: #fff;
	outline: none;
}

/* Farbwahl sitzt jetzt im Werkzeugstreifen unter "Frei" (Ati 20.09.2026). */
.tbcw-tool-strip .tbcw-tool-color {
	display: flex;
	justify-content: center;
	margin: 2px 0 4px;
}

/* ===== Werkzeugleiste mit Piktogrammen (Ati 20.09.2026) ===== */
.tbcw-tool-icon {
	width: 20px;
	height: 20px;
	display: block;
	color: currentColor;
}

.tbcw-tool-strip .tbcw-tool-btn {
	display: grid;
	place-items: center;
	padding: 7px;
	min-width: 38px;
}

.tbcw-tool-kuerzel {
	font-size: 10px;
	font-weight: 800;
	letter-spacing: .02em;
}

.tbcw-flyout {
	min-width: 268px;
}

.tbcw-flyout-btn {
	display: grid;
	grid-template-columns: 24px 1fr;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 7px 9px;
	text-align: left;
}

.tbcw-flyout-icon {
	display: grid;
	place-items: center;
	color: inherit;
}

.tbcw-flyout-text {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.tbcw-flyout-text b {
	font-size: 12px;
	font-weight: 700;
}

.tbcw-flyout-text small {
	color: #8fa4ba;
	font-size: 10.5px;
	line-height: 1.25;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbcw-flyout-btn.active {
	background: rgba(79, 136, 255, .18);
}

/* Objektverwaltung: Suche, Sammelaktionen, Zusammenfassung (Ati 20.09.2026). */
.tbcw-drawing-tools {
	display: grid;
	gap: 7px;
	margin-bottom: 9px;
}

.tbcw-drawing-bulk {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
}

.tbcw-drawing-bulk .tbcw-btn.small {
	padding: 4px 9px;
	font-size: 11px;
}

.tbcw-drawing-summary {
	color: #8fa4ba;
	font-size: 11px;
	line-height: 1.35;
}

.tbcw-drawing-row {
	grid-template-columns: 10px 1fr repeat(6, 22px);
}

/* Schnellleiste am ausgewaehlten Objekt (Ati 20.09.2026, Spezifikation 75). */
.tbcw-objekt-leiste {
	position: absolute;
	z-index: 60;
	display: flex;
	align-items: center;
	gap: 5px;
	padding: 5px 6px;
	border: 1px solid rgba(120, 160, 220, .32);
	border-radius: 10px;
	background: rgba(9, 18, 32, .97);
	box-shadow: 0 12px 30px rgba(0, 0, 0, .45);
}

.tbcw-objekt-leiste input[type="color"] {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
}

.tbcw-objekt-leiste select {
	height: 24px;
	padding: 0 4px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: rgba(6, 12, 22, .9);
	color: #dbe6f5;
	font-size: 11px;
}

.tbcw-objekt-leiste button {
	width: 24px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, .22);
	border-radius: 6px;
	background: rgba(255, 255, 255, .04);
	color: #dbe6f5;
	font-size: 12px;
	line-height: 1;
	cursor: pointer;
}

.tbcw-objekt-leiste button:hover {
	background: rgba(79, 136, 255, .22);
}

.tbcw-objekt-leiste button.danger:hover {
	background: rgba(255, 94, 126, .25);
}

/* Werkzeugleiste: alles erreichbar (Ati 20.09.2026). */
.tbcw-toolrail {
	max-height: 100%;
	scrollbar-width: thin;
}

.tbcw-tool-alle {
	margin-top: 4px;
	font-size: 16px;
	line-height: 1;
	opacity: .85;
}

.tbcw-werkzeug-modal {
	position: fixed;
	inset: 0;
	z-index: 2147482500;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(4, 9, 18, .72);
}

.tbcw-werkzeug-dialog {
	display: grid;
	grid-template-rows: auto 1fr;
	gap: 12px;
	width: min(920px, 100%);
	max-height: min(720px, 86vh);
	padding: 16px;
	border: 1px solid rgba(120, 160, 220, .28);
	border-radius: 14px;
	background: rgba(9, 18, 32, .98);
	box-shadow: 0 26px 64px rgba(0, 0, 0, .6);
}

.tbcw-werkzeug-kopf {
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 12px;
}

.tbcw-werkzeug-kopf h3 {
	margin: 0;
	font-size: 15px;
}

.tbcw-werkzeug-liste {
	overflow-y: auto;
	padding-right: 4px;
}

.tbcw-werkzeug-gruppe h4 {
	margin: 12px 0 7px;
	color: #8fa4ba;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: .08em;
	text-transform: uppercase;
}

.tbcw-werkzeug-raster {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 6px;
}

.tbcw-werkzeug-eintrag {
	display: grid;
	grid-template-columns: 26px 1fr;
	align-items: center;
	gap: 9px;
	padding: 7px 9px;
	border: 1px solid rgba(148, 163, 184, .16);
	border-radius: 9px;
	background: rgba(255, 255, 255, .02);
	color: #dbe6f5;
	text-align: left;
	cursor: pointer;
}

.tbcw-werkzeug-eintrag:hover,
.tbcw-werkzeug-eintrag.active {
	border-color: rgba(79, 136, 255, .5);
	background: rgba(79, 136, 255, .16);
}

.tbcw-werkzeug-icon {
	display: grid;
	place-items: center;
}

.tbcw-werkzeug-text {
	display: grid;
	gap: 1px;
	min-width: 0;
}

.tbcw-werkzeug-text b {
	font-size: 12.5px;
}

.tbcw-werkzeug-text small {
	color: #8fa4ba;
	font-size: 10.5px;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

/* Werkzeugknopf mit Beschriftung (Ati 20.09.2026: sichtbar, was man aufruft). */
.tbcw-tool-strip .tbcw-tool-btn {
	grid-template-rows: auto auto;
	gap: 2px;
	padding: 6px 4px;
	min-width: 54px;
}

.tbcw-tool-label {
	display: block;
	max-width: 52px;
	overflow: hidden;
	color: inherit;
	font-size: 9px;
	font-weight: 700;
	letter-spacing: .01em;
	line-height: 1.1;
	text-align: center;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbcw-toolrail {
	min-width: 68px;
}

/* Eigenschaften-Dialog (Spezifikation 60). */
.tbcw-eig-modal {
	position: fixed;
	inset: 0;
	z-index: 2147482600;
	display: grid;
	place-items: center;
	padding: 24px;
	background: rgba(4, 9, 18, .72);
}

.tbcw-eig-dialog {
	display: grid;
	grid-template-rows: auto 1fr auto;
	gap: 12px;
	width: min(520px, 100%);
	max-height: min(680px, 88vh);
	padding: 16px;
	border: 1px solid rgba(120, 160, 220, .3);
	border-radius: 14px;
	background: rgba(9, 18, 32, .98);
	box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

.tbcw-eig-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.tbcw-eig-kopf h3 {
	margin: 0;
	font-size: 15px;
}

.tbcw-eig-inhalt {
	display: grid;
	gap: 9px;
	overflow-y: auto;
	padding-right: 4px;
}

.tbcw-eig-inhalt label {
	display: grid;
	grid-template-columns: 130px 1fr;
	align-items: center;
	gap: 10px;
	color: #b9c7db;
	font-size: 12px;
}

.tbcw-eig-inhalt input[type="text"],
.tbcw-eig-inhalt input[type="number"],
.tbcw-eig-inhalt input[type="datetime-local"],
.tbcw-eig-inhalt select {
	padding: 6px 8px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 8px;
	background: rgba(6, 12, 22, .9);
	color: #dbe6f5;
	font-size: 12px;
}

.tbcw-eig-schalter {
	grid-template-columns: 20px 1fr;
}

.tbcw-eig-anker {
	display: grid;
	gap: 6px;
	padding: 8px;
	border: 1px solid rgba(148, 163, 184, .16);
	border-radius: 9px;
}

.tbcw-eig-fuss {
	display: flex;
	justify-content: space-between;
	gap: 8px;
}

.js-drawing-import-label {
	cursor: pointer;
}

/* Favoriten und Alarme (Spezifikation 30/36). */
.tbcw-favoriten {
	display: grid;
	gap: 4px;
	width: 100%;
	justify-items: center;
}

.tbcw-werkzeug-zeile {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 4px;
	align-items: center;
}

.tbcw-werkzeug-stern {
	width: 28px;
	height: 28px;
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 8px;
	background: rgba(255, 255, 255, .02);
	color: #6b7c93;
	cursor: pointer;
}

.tbcw-werkzeug-stern.active {
	border-color: rgba(244, 193, 79, .5);
	color: #f4c14f;
}

.tbcw-drawing-icon.active {
	color: #f4c14f;
}

/* Griffe deutlicher (Ati 20.09.2026: "ziehen und skalieren ist verwirrend"). */
.tbcw-handle {
	cursor: grab;
	filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .6));
}

.tbcw-handle:active {
	cursor: grabbing;
}

.tbcw-drawing-preview text {
	paint-order: stroke;
	stroke: rgba(4, 9, 18, .85);
	stroke-width: 3px;
}

/* Greifflaeche an jedem Griff (Ati 20.09.2026: "Groesse aendern funktioniert
   bei den meisten Werkzeugen nicht"). Unsichtbar, aber 14 px gross - man muss
   den Griff nicht auf den Punkt genau treffen. */
.tbcw-handle-zone {
	pointer-events: none;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-handle-zone {
	pointer-events: all;
	cursor: grab;
}

.tbcw-draw-layer.interactive.tool-select .tbcw-handle-zone:active {
	cursor: grabbing;
}

/* Replay- und Papertrading-Leiste (Spezifikation 42/43). */
.tbcw-replay {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 8px 10px;
	border-top: 1px solid var(--tbcw-border);
	background: var(--tbcw-bg-soft);
	font-size: 12px;
}

.tbcw-replay[hidden] {
	display: none;
}

.tbcw-replay-row {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}

.tbcw-replay-titel {
	min-width: 92px;
	color: var(--tbcw-text-dim);
	letter-spacing: .04em;
	text-transform: uppercase;
	font-size: 11px;
}

.tbcw-replay-feld {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	color: var(--tbcw-text-dim);
}

.tbcw-replay-feld input {
	width: 92px;
	height: 26px;
	padding: 0 6px;
	border-radius: 6px;
	border: 1px solid var(--tbcw-border);
	background: var(--tbcw-bg);
	color: var(--tbcw-text);
	font-size: 12px;
}

.tbcw-mini-select {
	height: 26px;
	padding: 0 6px;
	border-radius: 6px;
	border: 1px solid var(--tbcw-border);
	background: var(--tbcw-bg);
	color: var(--tbcw-text);
	font-size: 12px;
}

.tbcw-mini-btn.ok {
	border-color: rgba(36, 211, 181, .55);
	color: #24d3b5;
}

.tbcw-replay-info {
	color: var(--tbcw-text);
	opacity: .85;
}

/* Menue am Bild-Knopf (Spezifikation 52). */
.tbcw-bild-menue {
	position: fixed;
	z-index: 9999;
	display: flex;
	flex-direction: column;
	gap: 6px;
	min-width: 230px;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--tbcw-border);
	background: var(--tbcw-bg-soft);
	box-shadow: 0 12px 30px rgba(2, 8, 23, .55);
	font-size: 12px;
	color: var(--tbcw-text);
}

.tbcw-bild-menue label {
	display: flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.tbcw-bild-menue hr {
	border: none;
	border-top: 1px solid var(--tbcw-border);
	margin: 2px 0;
	width: 100%;
}

/* Indikator auf Indikator (Spezifikation 89). */
.tbcw-abg-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
	padding: 8px;
	border: 1px solid var(--tbcw-border);
	border-radius: 8px;
	margin-bottom: 8px;
}

.tbcw-abg-form label {
	display: flex;
	flex-direction: column;
	gap: 4px;
	font-size: 11px;
	color: var(--tbcw-text-dim);
}

.tbcw-abg-form .tbcw-layout-actions {
	grid-column: 1 / -1;
}

.tbcw-abg-zeile {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 6px;
	border-radius: 6px;
	font-size: 12px;
}

.tbcw-abg-zeile:nth-child(odd) {
	background: rgba(255, 255, 255, .03);
}

.tbcw-abg-zeile > span:nth-child(2) {
	flex: 1;
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbcw-abg-punkt {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	flex: 0 0 auto;
}

/* Objekt-Leiste (Ati 21.09.2026): der Farbwaehler war auf 8 px geschrumpft -
   die Leiste ist ein Flex-Behaelter und eine Theme-Regel laesst die Breite
   frei. Jetzt fest und ohne Schrumpfen. */
.tbcw-objekt-leiste input[type="color"] {
	flex: 0 0 26px;
	width: 26px !important;
	min-width: 26px;
	height: 26px;
}

.tbcw-objekt-leiste > * {
	flex-shrink: 0;
}

.tbcw-objekt-trenner {
	width: 1px;
	height: 18px;
	background: rgba(148, 163, 184, .25);
	margin: 0 2px;
}

.tbcw-objekt-option {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 10px;
	color: #93a4bd;
	white-space: nowrap;
}

.tbcw-objekt-option input,
.tbcw-objekt-option select {
	height: 24px;
	padding: 0 5px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: rgba(6, 12, 22, .9);
	color: #dbe6f5;
	font-size: 11px;
	width: 64px !important;
	min-width: 0;
}

.tbcw-objekt-option input[type="time"] {
	width: 78px !important;
}

.tbcw-objekt-option input[type="text"] {
	width: 110px !important;
}

.tbcw-objekt-option input[data-breit="1"] {
	width: 190px !important;
}

/* Theme setzt select/label/input auf 100 % - in der Leiste feste Breiten. */
.tbcw-objekt-leiste {
	flex-wrap: nowrap;
	white-space: nowrap;
}

.tbcw-objekt-leiste label,
.tbcw-objekt-leiste .tbcw-objekt-option {
	width: auto !important;
	max-width: none;
	margin: 0;
}

.tbcw-objekt-leiste .js-objekt-staerke {
	width: 68px !important;
}

.tbcw-objekt-leiste .js-objekt-strich {
	width: 110px !important;
}

/* Feinschliff Objekt-Leiste: kein Theme-Aussenabstand, alles mittig,
   Zeitfelder breit genug fuer Stunde, Minute und Uhr-Symbol. */
.tbcw-objekt-leiste input,
.tbcw-objekt-leiste select,
.tbcw-objekt-leiste button,
.tbcw-objekt-leiste label {
	margin: 0 !important;
	vertical-align: middle;
}

.tbcw-objekt-option > span {
	line-height: 24px;
}

.tbcw-objekt-option input[type="time"] {
	width: 98px !important;
}

/* Level-Liste am Fib-Objekt (Ati 21.09.2026). */
.tbcw-objekt-knopf {
	height: 24px;
	padding: 0 8px !important;
	width: auto !important;
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 6px;
	background: rgba(79, 136, 255, .14);
	color: #dbe6f5;
	font-size: 11px;
	cursor: pointer;
}

.tbcw-objekt-knopf:hover {
	background: rgba(79, 136, 255, .28);
}

.tbcw-level-panel {
	position: fixed;
	z-index: 9999;
	width: 290px;
	padding: 10px;
	border-radius: 10px;
	border: 1px solid var(--tbcw-border);
	background: var(--tbcw-bg-soft);
	box-shadow: 0 12px 30px rgba(2, 8, 23, .55);
	color: var(--tbcw-text);
	font-size: 12px;
}

.tbcw-level-kopf {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 8px;
	font-weight: 600;
}

.tbcw-level-liste {
	max-height: 320px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tbcw-level-zeile {
	display: grid;
	grid-template-columns: 78px 1fr 30px 26px;
	align-items: center;
	gap: 6px;
}

.tbcw-level-zeile input[type="number"] {
	width: 78px !important;
	height: 24px;
	padding: 0 6px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: rgba(6, 12, 22, .9);
	color: #dbe6f5;
	font-size: 11px;
	margin: 0 !important;
}

.tbcw-level-zeile input[type="color"] {
	width: 30px !important;
	min-width: 30px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	margin: 0 !important;
}

.tbcw-level-prozent {
	color: var(--tbcw-text-dim);
	font-size: 11px;
}

.tbcw-level-aktionen {
	display: flex;
	gap: 6px;
	margin-top: 8px;
}

/* Farbe und Staerke je Indikatorlinie (Ati 21.09.2026). */
.tbcw-ind-linien {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 4px 0 8px;
}

.tbcw-ind-linie {
	display: grid;
	grid-template-columns: 1fr 30px 56px;
	align-items: center;
	gap: 6px;
}

.tbcw-ind-linie-name {
	font-size: 11px;
	color: var(--tbcw-text-dim);
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tbcw-ind-linie input[type="color"] {
	width: 30px !important;
	min-width: 30px;
	height: 24px;
	padding: 0;
	border: 1px solid rgba(148, 163, 184, .3);
	border-radius: 6px;
	background: transparent;
	cursor: pointer;
	margin: 0 !important;
}

.tbcw-ind-linie input[type="number"] {
	width: 56px !important;
	height: 24px;
	padding: 0 6px;
	border: 1px solid rgba(148, 163, 184, .25);
	border-radius: 6px;
	background: rgba(6, 12, 22, .9);
	color: #dbe6f5;
	font-size: 11px;
	margin: 0 !important;
}

/* Farbfeld in der Objekt-Leiste (Footprint Kauf/Verkauf, 22.09.2026) */
#tbcw-app .tbcw-objekt-option input[type="color"].js-objekt-option,
.tbcw-objekt-option input[type="color"].js-objekt-option {
	width: 26px !important;
	min-width: 26px;
	height: 22px;
	padding: 0 !important;
	margin: 0 !important;
	border: 1px solid rgba(148, 163, 184, .35);
	border-radius: 5px;
	background: transparent;
	cursor: pointer;
}

/* Vollfenster (Ati 22.09.2026): Chartfenster ueber die ganze Browserflaeche. */
html.tbcw-vollfenster-offen body .tbcw-workbench-host.tbcw-vollfenster,
html.tbcw-vollfenster-offen .tbcw-vollfenster {
	position: fixed !important;
	inset: 0 !important;
	z-index: 2147480000 !important;
	width: 100vw !important;
	max-width: none !important;
	height: 100vh !important;
	margin: 0 !important;
	padding: 0 !important;
	overflow: auto;
	background: #0b1220;
}
html.tbcw-vollfenster-offen,
html.tbcw-vollfenster-offen body {
	overflow: hidden !important;
}
/* GEMESSEN 22.09.2026: main.site-main (z-index 1) liegt im selben Stapel wie der
   Seitenkopf (z-index 10000) - das Vollfenster blieb darunter. Im Vollfenster hebt
   sich der Inhaltsbereich ueber den Kopf; ebenso .wp-site-blocks (z-index 1) ueber
   das absolut gesetzte Logo (z-index 50) ausserhalb. */
html.tbcw-vollfenster-offen .wp-site-blocks:has(.tbcw-vollfenster),
html.tbcw-vollfenster-offen .site-main:has(.tbcw-vollfenster) {
	z-index: 2147470000 !important;
}
/* In den Body gehaengte Menues muessen ueber dem Vollfenster liegen. */
html.tbcw-vollfenster-offen .tbcw-bild-menue,
html.tbcw-vollfenster-offen .tbcw-level-panel {
	z-index: 2147481000 !important;
}

/* ── Mehrere Charts (Ati 22./24.09.2026) ───────────────────────────────
   Bis zu 8 vollstaendige Workbenches liegen deckungsgleich uebereinander
   (Ebenen). Von jeder ist die Chartflaeche in ihrer Zelle zu sehen, Kopf-
   leiste, Werkzeugleiste und Panels nur von der aktiven. */
.tbcw-mehrfach {
	display: grid;
	min-width: 0;
	min-height: 0;
	grid-template-columns: minmax(0, 1fr);
	grid-template-rows: minmax(0, 1fr);
}
.tbcw-mehrfach > .tbcw-chart-wrap { min-width: 0; min-height: 0; }
/* Chart darf in einer Zelle kleiner werden als seine Einzelansicht (560px). */
.tbcw-app .tbcw-mehrfach:not([data-layout="1"]) .tbcw-chart { min-height: 0 !important; }

.tbcw-stapel { position: relative; width: 100%; max-width: 100%; }
.tbdw-panel-content .tbcw-stapel { height: 100%; }
.tbcw-stapel.tbcw-stapel-an {
	border-radius: 14px;
	background:
		radial-gradient(circle at 0 10%, rgba(79, 136, 255, .08), transparent 34%),
		rgba(4, 13, 26, .62);
}
.tbcw-stapel-an > .tbcw-ebene { position: relative; z-index: 1; }
.tbcw-stapel-an > .tbcw-ebene ~ .tbcw-ebene { position: absolute; inset: 0; }
.tbcw-stapel > .tbcw-ebene:not(.tbcw-ebene-bereit) { visibility: hidden; }
.tbcw-stapel > .tbcw-ebene ~ .tbcw-ebene:not(.tbcw-ebene-bereit) * { visibility: hidden !important; }
.tbcw-stapel-an > .tbcw-ebene.tbcw-ebene-aktiv { z-index: 3; }
/* Das Seiten-Design legt einen halbtransparenten Verlauf auf jede Workbench -
   uebereinander gestapelt dunkelte er die unteren Charts ab (gemessen 24.09.). */
html body .tbcw-stapel.tbcw-stapel-an > .tbcw-workbench-host.tbcw-ebene { background: none !important; }
.tbcw-stapel-an > .tbcw-ebene .tbcw-shell { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* Inaktive Ebene: nur die Chartflaeche */
.tbcw-stapel-an > .tbcw-ebene-inaktiv .tbcw-app { visibility: hidden; }
.tbcw-stapel-an > .tbcw-ebene-inaktiv.tbcw-ebene-bereit .tbcw-chart-wrap { visibility: visible; }
/* Leere Flaechen oberer Ebenen lassen Klicks zu den Charts darunter durch */
.tbcw-stapel-an > .tbcw-ebene,
.tbcw-stapel-an > .tbcw-ebene .tbcw-app,
.tbcw-stapel-an > .tbcw-ebene .tbcw-shell,
.tbcw-stapel-an > .tbcw-ebene .tbcw-body,
.tbcw-stapel-an > .tbcw-ebene .tbcw-chart-zone,
.tbcw-stapel-an > .tbcw-ebene .tbcw-mehrfach { pointer-events: none; }
.tbcw-stapel-an > .tbcw-ebene .tbcw-app > :not(.tbcw-shell),
.tbcw-stapel-an > .tbcw-ebene .tbcw-shell > :not(.tbcw-body),
.tbcw-stapel-an > .tbcw-ebene .tbcw-body > :not(.tbcw-chart-zone),
.tbcw-stapel-an > .tbcw-ebene .tbcw-chart-zone > :not(.tbcw-mehrfach),
.tbcw-stapel-an > .tbcw-ebene .tbcw-mehrfach > .tbcw-chart-wrap { pointer-events: auto; }
/* Zellen */
.tbcw-stapel-an .tbcw-mehrfach { display: block; position: relative; }
.tbcw-stapel-an .tbcw-mehrfach > .tbcw-chart-wrap {
	position: absolute;
	border: 1px solid rgba(148, 163, 184, .18);
	border-radius: 8px;
}
.tbcw-stapel-an > .tbcw-ebene-aktiv .tbcw-mehrfach > .tbcw-chart-wrap {
	border-color: rgba(45, 212, 191, .8);
	box-shadow: 0 0 0 1px rgba(45, 212, 191, .3);
}
/* Trennlinien */
.tbcw-stapel-griffe { position: absolute; inset: 0; z-index: 20; pointer-events: none; }
.tbcw-stapel-griff { position: absolute; pointer-events: auto; touch-action: none; }
.tbcw-stapel-griff.is-senkrecht { width: 12px; transform: translateX(-50%); cursor: col-resize; }
.tbcw-stapel-griff.is-waagerecht { height: 12px; transform: translateY(-50%); cursor: row-resize; }
.tbcw-stapel-griff::after {
	content: '';
	position: absolute;
	border-radius: 2px;
	background: transparent;
	transition: background .12s;
}
.tbcw-stapel-griff.is-senkrecht::after { left: 5px; width: 2px; top: 8px; bottom: 8px; }
.tbcw-stapel-griff.is-waagerecht::after { top: 5px; height: 2px; left: 8px; right: 8px; }
.tbcw-stapel-griff:hover::after,
.tbcw-stapel-griff.is-aktiv::after { background: #2dd4bf; }
html.tbcw-stapel-zieht, html.tbcw-stapel-zieht * { user-select: none !important; }
/* Vollfenster mit mehreren Charts */
html.tbcw-vollfenster-offen .tbcw-stapel.tbcw-stapel-voll {
	position: fixed;
	inset: 0;
	z-index: 2147479990;
	border-radius: 0;
	background: #0b1220;
}
html.tbcw-vollfenster-offen body .tbcw-stapel-an > .tbcw-workbench-host.tbcw-vollfenster { background: transparent !important; }
html.tbcw-vollfenster-offen body .tbcw-stapel-an > .tbcw-workbench-host.tbcw-vollfenster.tbcw-ebene-aktiv { z-index: 2147480002 !important; }

/* Beschriftung am Chart: Nummer, Symbol, Zeitrahmen, Reihenfolge */
.tbcw-haupt-marke {
	display: none;
	position: absolute;
	top: 6px;
	left: 50%;
	transform: translateX(-50%);
	z-index: 6;
	align-items: center;
	gap: 6px;
	max-width: calc(100% - 16px);
	padding: 2px 4px;
	border-radius: 999px;
	border: 1px solid rgba(45, 212, 191, .35);
	background: rgba(11, 15, 22, .85);
	color: #cbd5e1;
	font-size: 11.5px;
	font-weight: 600;
	white-space: nowrap;
}
.tbcw-mehrfach:not([data-layout="1"]) .tbcw-haupt-marke { display: inline-flex; }
.tbcw-ebene-inaktiv .tbcw-haupt-marke { border-color: rgba(148, 163, 184, .3); color: #94a3b8; }
.tbcw-haupt-marke-text { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.tbcw-zelle-nr {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: rgba(45, 212, 191, .18);
	color: #5eead4;
	font-size: 11px;
	font-weight: 700;
	flex: 0 0 20px;
}
.tbcw-zelle-knopf {
	min-width: 24px;
	height: 24px;
	border-radius: 6px;
	border: 1px solid rgba(148, 163, 184, .28);
	background: rgba(255, 255, 255, .03);
	color: #cbd5e1;
	font-size: 11px;
	cursor: pointer;
	flex: 0 0 auto;
}
.tbcw-zelle-knopf:hover:not(:disabled) { border-color: #2dd4bf; color: #f8fafc; }
.tbcw-zelle-knopf:disabled { opacity: .35; cursor: default; }

/* Auswahlmenue */
.tbcw-mehrfach-menue {
	position: fixed;
	z-index: 2147481500;
	width: 340px;
	max-width: calc(100vw - 16px);
	overflow: auto;
	padding: 6px;
	border-radius: 10px;
	border: 1px solid rgba(45, 212, 191, .3);
	background: #0b1220;
	box-shadow: 0 14px 34px rgba(0, 0, 0, .5);
	color: #e2e8f0;
	font: 400 13px/1.4 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.tbcw-mehrfach-menue-titel {
	padding: 4px 8px 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: #94a3b8;
}
.tbcw-mehrfach-menue-liste { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.tbcw-mehrfach-wahl {
	display: flex;
	align-items: center;
	gap: 8px;
	width: 100%;
	padding: 6px 7px;
	border: 0;
	border-radius: 7px;
	background: none;
	color: inherit;
	font: 500 12.5px/1.2 inherit;
	text-align: left;
	cursor: pointer;
}
.tbcw-mehrfach-wahl:hover { background: rgba(45, 212, 191, .10); }
.tbcw-mehrfach-wahl.is-aktiv { background: rgba(45, 212, 191, .16); color: #5eead4; }
.tbcw-mehrfach-menue-hinweis { padding: 8px 8px 4px; font-size: 11.5px; color: #94a3b8; border-top: 1px solid rgba(148, 163, 184, .14); margin-top: 4px; }
.tbcw-mf-bild { display: flex; gap: 2px; width: 26px; height: 18px; flex: 0 0 26px; }
.tbcw-mf-bild--zeilen { flex-direction: column; }
.tbcw-mf-bild > span { display: flex; gap: 2px; flex: 1 1 0; min-width: 0; min-height: 0; }
.tbcw-mf-bild--spalten > span { flex-direction: column; }
.tbcw-mf-bild i { flex: 1 1 0; border-radius: 2px; background: rgba(45, 212, 191, .55); }

/* Ati 17.11.2026: ausgeblendete Trading-Elemente (hidden) wirklich ausblenden - .tbcw-tab und Labels setzen sonst display. */
.tbcw-app [data-tab][hidden],
.tbcw-app .js-side-pane[hidden],
.tbcw-app .js-open-strategy-library[hidden],
.tbcw-app label[hidden] { display: none !important; }
