body.main-workspace-mode {
    overflow: hidden;
    --workspace-canvas-glow: radial-gradient(circle at top left, rgba(255, 255, 255, 0.05), transparent 34%);
    --workspace-canvas-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    --workspace-shell-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.018)),
        color-mix(in srgb, var(--bg-secondary) 93%, transparent);
    --workspace-shell-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.09),
        0 16px 38px rgba(0, 0, 0, 0.16);
    --workspace-shell-shadow-strong:
        inset 0 0 0 1px rgba(255, 255, 255, 0.15),
        0 22px 54px rgba(0, 0, 0, 0.2);
    --workspace-tile-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        color-mix(in srgb, var(--bg-app) 90%, transparent);
    --workspace-tile-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.045),
        0 10px 24px rgba(0, 0, 0, 0.07);
    --workspace-header-chip-fill: rgba(255, 255, 255, 0.04);
    --workspace-header-chip-border: rgba(255, 255, 255, 0.08);
    --workspace-header-chip-text: color-mix(in srgb, var(--text-muted) 88%, transparent);
    --workspace-action-hover-bg: rgba(255, 255, 255, 0.07);
    --workspace-empty-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02)),
        color-mix(in srgb, var(--bg-secondary) 90%, transparent);
    --workspace-empty-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 18px 40px rgba(0, 0, 0, 0.14);
}

body.main-workspace-mode .tabs-nav {
    display: none !important;
}

body.main-workspace-mode .feed-layout {
    position: relative;
    display: block;
    box-sizing: border-box;
    margin-top: var(--workspace-header-offset, var(--app-header-height, calc(var(--status-bar-height, 44px) + var(--safe-area-top) + var(--content-safe-area-top))));
    padding: 8px 10px 10px;
    height: var(--workspace-available-height, calc(100dvh - var(--app-header-height, calc(var(--status-bar-height, 44px) + var(--safe-area-top) + var(--content-safe-area-top)))));
    max-height: var(--workspace-available-height, calc(100dvh - var(--app-header-height, calc(var(--status-bar-height, 44px) + var(--safe-area-top) + var(--content-safe-area-top)))));
    min-height: 0;
    overflow: hidden;
    background:
        var(--workspace-canvas-glow),
        var(--workspace-canvas-wash);
}

body.main-workspace-mode .app-workspace-canvas {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.main-workspace-mode .app-workspace-canvas::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    z-index: 1;
    transition: opacity 140ms ease;
    background-image:
        linear-gradient(to right, rgba(120, 170, 255, 0.16) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(120, 170, 255, 0.14) 1px, transparent 1px);
    background-size:
        var(--workspace-grid-step-x, 26px) 100%,
        100% var(--workspace-grid-step-y, 24px);
    background-position: 0 0, 0 0;
}

body.main-workspace-mode .app-workspace-canvas[data-workspace-grid-visible="1"]::before {
    opacity: 0.68;
}

body.main-workspace-mode .app-workspace-canvas[data-workspace-drop-valid="0"]::before {
    opacity: 0.36;
    background-image:
        linear-gradient(to right, rgba(255, 159, 122, 0.15) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 159, 122, 0.13) 1px, transparent 1px);
}

body.main-workspace-mode .app-workspace-canvas[data-workspace-dragging="1"] {
    cursor: grabbing;
}

body.main-workspace-mode .app-workspace-canvas[data-workspace-resizing="1"] {
    cursor: default;
}

body.main-workspace-mode .app-workspace-module {
    --workspace-module-accent: rgba(255, 255, 255, 0.94);
    --workspace-header-scale: 1;
    --workspace-content-scale: 1;
    --workspace-module-resize-edge-thickness: 18px;
    --workspace-module-resize-top-thickness: 10px;
    --workspace-module-resize-indicator-thickness: 4px;
    position: absolute;
    box-sizing: border-box;
    min-width: 0;
    min-height: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 5px;
    overflow: hidden;
    padding: 7px 7px 6px;
    border-radius: 18px;
    background: var(--workspace-shell-fill);
    box-shadow: var(--workspace-shell-shadow);
    transition:
        left 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
        top 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
        width 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
        height 240ms cubic-bezier(0.2, 0.85, 0.2, 1),
        box-shadow 180ms ease,
        transform 180ms ease;
    z-index: 2;
    contain: layout paint style;
}

body.main-workspace-mode .app-workspace-module--chart,
body.main-workspace-mode .app-workspace-module--orderbooks,
body.main-workspace-mode .app-workspace-module--market-data {
    --workspace-header-scale: 0.94;
}

body.main-workspace-mode .app-workspace-module--screener,
body.main-workspace-mode .app-workspace-module--favorites,
body.main-workspace-mode .app-workspace-module--market-data,
body.main-workspace-mode .app-workspace-module--filters {
    --workspace-content-scale: 0.81;
}

body.main-workspace-mode .app-workspace-module--orderbooks {
    --workspace-content-scale: 0.88;
}

body.main-workspace-mode .app-workspace-module.is-dragging {
    transition: none;
    box-shadow: var(--workspace-shell-shadow-strong);
    cursor: grabbing;
    will-change: left, top, width, height;
}

body.main-workspace-mode .app-workspace-module.is-resizing {
    transition: none;
    box-shadow: var(--workspace-shell-shadow-strong);
    will-change: left, top, width, height;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="compact"] {
    gap: 4px;
    padding: 6px 6px 5px;
    border-radius: 16px;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="compact"] .app-workspace-module__header {
    gap: 4px;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="compact"] .app-workspace-module__title {
    font-size: calc(9px * var(--workspace-header-scale));
}

body.main-workspace-mode .app-workspace-module[data-shell-density="compact"] .app-workspace-module__kicker {
    max-width: 42%;
    padding: 3px 6px 2px;
    font-size: calc(6.5px * var(--workspace-header-scale));
}

body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] {
    gap: 3px;
    padding: 5px 5px 4px;
    border-radius: 14px;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] .app-workspace-module__header {
    gap: 4px;
    padding-top: 1px;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] .app-workspace-module__title {
    font-size: calc(8.5px * var(--workspace-header-scale));
}

body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] .app-workspace-module__kicker {
    display: none;
}

body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] .app-workspace-module__action,
body.main-workspace-mode .app-workspace-module[data-shell-density="tight"] .app-workspace-module__close {
    width: 18px;
    height: 18px;
}

body.main-workspace-mode .app-workspace-module.is-swap-target {
    box-shadow:
        inset 0 0 0 2px color-mix(in srgb, var(--workspace-module-accent) 72%, white),
        0 26px 64px rgba(0, 0, 0, 0.2);
}

body.main-workspace-mode .app-workspace-module::before {
    content: '';
    position: absolute;
    left: 9px;
    right: 9px;
    top: 0;
    height: 2px;
    pointer-events: none;
    background: var(--workspace-module-accent);
    opacity: 0.96;
}

body.main-workspace-mode .app-workspace-module__resize-handle {
    position: absolute;
    z-index: 4;
    opacity: 0;
    touch-action: none;
    transition: opacity 140ms ease;
}

body.main-workspace-mode .app-workspace-module:hover .app-workspace-module__resize-handle,
body.main-workspace-mode .app-workspace-module.is-resizing .app-workspace-module__resize-handle {
    opacity: 1;
}

body.main-workspace-mode .app-workspace-module__resize-handle::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.42;
}

body.main-workspace-mode .app-workspace-module__resize-handle--left,
body.main-workspace-mode .app-workspace-module__resize-handle--right {
    top: 8px;
    bottom: 8px;
    width: 18px;
    cursor: ew-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--left {
    left: 0;
}

body.main-workspace-mode .app-workspace-module__resize-handle--right {
    right: 0;
}

body.main-workspace-mode .app-workspace-module__resize-handle--left::after,
body.main-workspace-mode .app-workspace-module__resize-handle--right::after {
    left: 7px;
    right: 7px;
    top: 1px;
    bottom: 1px;
    border-radius: 999px;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0.18) 82%, transparent);
}

body.main-workspace-mode .app-workspace-module__resize-handle--top,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom {
    left: 8px;
    right: 8px;
    height: var(--workspace-module-resize-edge-thickness);
    cursor: ns-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--top {
    top: 0;
    height: var(--workspace-module-resize-top-thickness);
}

body.main-workspace-mode .app-workspace-module__resize-handle--bottom {
    bottom: 0;
}

body.main-workspace-mode .app-workspace-module__resize-handle--top::after,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom::after {
    left: 1px;
    right: 1px;
    top: calc((100% - var(--workspace-module-resize-indicator-thickness)) / 2);
    bottom: calc((100% - var(--workspace-module-resize-indicator-thickness)) / 2);
    border-radius: 999px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.18) 18%, rgba(255, 255, 255, 0.18) 82%, transparent);
}

body.main-workspace-mode .app-workspace-module__resize-handle--top-left,
body.main-workspace-mode .app-workspace-module__resize-handle--top-right,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom-left,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom-right {
    width: 20px;
    height: 20px;
}

body.main-workspace-mode .app-workspace-module__resize-handle--top-left {
    top: 0;
    left: 0;
    cursor: nwse-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--top-right {
    top: 0;
    right: 0;
    cursor: nesw-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--bottom-left {
    bottom: 0;
    left: 0;
    cursor: nesw-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--bottom-right {
    right: 0;
    bottom: 0;
    cursor: nwse-resize;
}

body.main-workspace-mode .app-workspace-module__resize-handle--top-left::after,
body.main-workspace-mode .app-workspace-module__resize-handle--top-right::after,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom-left::after,
body.main-workspace-mode .app-workspace-module__resize-handle--bottom-right::after {
    inset: 5px;
    border-radius: 8px;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.32) 0, rgba(255, 255, 255, 0.14) 52%, transparent 72%);
}

body.main-workspace-mode .app-workspace-module[data-resize-left="0"] .app-workspace-module__resize-handle--left,
body.main-workspace-mode .app-workspace-module[data-resize-right="0"] .app-workspace-module__resize-handle--right,
body.main-workspace-mode .app-workspace-module[data-resize-top="0"] .app-workspace-module__resize-handle--top,
body.main-workspace-mode .app-workspace-module[data-resize-bottom="0"] .app-workspace-module__resize-handle--bottom {
    display: none;
}

body.main-workspace-mode .app-workspace-module[data-resize-left="0"] .app-workspace-module__resize-handle--top-left,
body.main-workspace-mode .app-workspace-module[data-resize-left="0"] .app-workspace-module__resize-handle--bottom-left,
body.main-workspace-mode .app-workspace-module[data-resize-right="0"] .app-workspace-module__resize-handle--top-right,
body.main-workspace-mode .app-workspace-module[data-resize-right="0"] .app-workspace-module__resize-handle--bottom-right,
body.main-workspace-mode .app-workspace-module[data-resize-top="0"] .app-workspace-module__resize-handle--top-left,
body.main-workspace-mode .app-workspace-module[data-resize-top="0"] .app-workspace-module__resize-handle--top-right,
body.main-workspace-mode .app-workspace-module[data-resize-bottom="0"] .app-workspace-module__resize-handle--bottom-left,
body.main-workspace-mode .app-workspace-module[data-resize-bottom="0"] .app-workspace-module__resize-handle--bottom-right {
    display: none;
}

body.main-workspace-mode .app-workspace-module.is-focused::before {
    height: 4px;
    opacity: 1;
}

body.main-workspace-mode .app-workspace-module.is-focused {
    transform: translateY(-2px);
    box-shadow: var(--workspace-shell-shadow-strong);
}

body.main-workspace-mode .app-workspace-module__header {
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 0 0;
    cursor: grab;
    touch-action: none;
}

body.main-workspace-mode .app-workspace-module[data-close-position="left"] .app-workspace-module__header {
    flex-direction: row-reverse;
}

body.main-workspace-mode .app-workspace-module__header-main {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-left: 5px;
}

body.main-workspace-mode .app-workspace-module[data-header-align="center"] .app-workspace-module__header-main {
    margin: 0 auto;
    padding-left: 0;
    justify-content: center;
    text-align: center;
}

body.main-workspace-mode .app-workspace-module[data-header-align="center"] .app-workspace-module__title-row {
    justify-content: center;
}

body.main-workspace-mode .app-workspace-module__title-row {
    min-width: 0;
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 6px;
}

body.main-workspace-mode .app-workspace-module__leading-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

body.main-workspace-mode .app-workspace-module__leading-actions[hidden] {
    display: none !important;
}

body.main-workspace-mode .app-workspace-module__kicker {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    max-width: min(48%, 180px);
    padding: 3px 7px 2px;
    border-radius: 999px;
    font-size: calc(7px * var(--workspace-header-scale));
    line-height: 1;
    letter-spacing: 0.17em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--workspace-module-accent) 72%, var(--workspace-header-chip-text));
    border: 1px solid color-mix(in srgb, var(--workspace-module-accent) 22%, var(--workspace-header-chip-border));
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--workspace-module-accent) 10%, transparent), transparent),
        var(--workspace-header-chip-fill);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .app-workspace-module__title {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: calc(10px * var(--workspace-header-scale));
    line-height: 1.1;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-main) 90%, transparent);
}

body.main-workspace-mode .app-workspace-module__actions {
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

body.main-workspace-mode .app-workspace-module__action,
body.main-workspace-mode .app-workspace-module__close {
    width: 20px;
    height: 20px;
    border: 0;
    padding: 0;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: color-mix(in srgb, var(--text-muted) 88%, transparent);
    cursor: pointer;
    touch-action: manipulation;
}

body.main-workspace-mode .app-workspace-module__action {
    border-radius: 999px;
    transition: background 140ms ease, color 140ms ease;
}

body.main-workspace-mode .app-workspace-module__action:hover,
body.main-workspace-mode .app-workspace-module__action:focus-visible,
body.main-workspace-mode .app-workspace-module__close:hover,
body.main-workspace-mode .app-workspace-module__close:focus-visible {
    background: var(--workspace-action-hover-bg);
    color: var(--text-main);
}

body.main-workspace-mode .app-workspace-module__action:disabled {
    opacity: 0.38;
    cursor: default;
}

body.main-workspace-mode .app-workspace-module__action.is-active[data-action-tone="favorite"] .app-workspace-module__action-icon {
    color: var(--favorite-color, #ffd45c);
}

body.main-workspace-mode .app-workspace-module__close {
    cursor: pointer;
    border-radius: 999px;
    transition: background 140ms ease, color 140ms ease;
}

body.main-workspace-mode .app-workspace-module__action-icon,
body.main-workspace-mode .app-workspace-module__close .material-icons {
    font-size: 14px;
}

body.main-workspace-mode .app-workspace-module[data-show-chrome="0"] {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
}

body.main-workspace-mode .app-workspace-module[data-show-chrome="0"] .app-workspace-module__header {
    display: none !important;
}

body.main-workspace-mode .app-workspace-module__body {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border-radius: 13px;
}

body.main-workspace-mode .workspace-scroll-region {
    -ms-overflow-style: none;
    overscroll-behavior: contain;
    scrollbar-gutter: auto !important;
    scrollbar-width: none !important;
}

body.main-workspace-mode .workspace-scroll-region::-webkit-scrollbar {
    width: 0 !important;
    height: 0 !important;
    display: none !important;
}

body.main-workspace-mode .workspace-scroll-hint-layer {
    position: absolute;
    pointer-events: none;
    z-index: 5;
    overflow: hidden;
}

body.main-workspace-mode .workspace-scroll-hint {
    position: absolute;
    left: 6px;
    right: 6px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    opacity: 0;
    z-index: 4;
    transition: opacity 160ms ease, transform 160ms ease;
    will-change: opacity, transform;
}

body.main-workspace-mode .workspace-scroll-hint--up {
    top: 2px;
    transform: translateY(-4px);
}

body.main-workspace-mode .workspace-scroll-hint--down {
    bottom: 2px;
    transform: translateY(4px);
}

body.main-workspace-mode .workspace-scroll-hint::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 12px;
    opacity: 0.98;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

body.main-workspace-mode .workspace-scroll-hint--up::before {
    background:
        linear-gradient(180deg, color-mix(in srgb, var(--bg-secondary) 78%, transparent), color-mix(in srgb, var(--bg-app) 22%, transparent) 48%, transparent 100%);
}

body.main-workspace-mode .workspace-scroll-hint--down::before {
    background:
        linear-gradient(0deg, color-mix(in srgb, var(--bg-secondary) 78%, transparent), color-mix(in srgb, var(--bg-app) 22%, transparent) 48%, transparent 100%);
}

body.main-workspace-mode .workspace-scroll-hint::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 1.5px solid color-mix(in srgb, var(--text-muted) 94%, transparent);
    border-bottom: 1.5px solid color-mix(in srgb, var(--text-muted) 94%, transparent);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.18));
    animation: workspace-scroll-hint-pulse 1.9s ease-in-out infinite;
}

body.main-workspace-mode .workspace-scroll-hint--up::after {
    transform: rotate(225deg);
}

body.main-workspace-mode .workspace-scroll-hint--down::after {
    transform: rotate(45deg);
}

body.main-workspace-mode .workspace-scroll-hint-layer[data-scroll-hint-up="1"] .workspace-scroll-hint--up,
body.main-workspace-mode .workspace-scroll-hint-layer[data-scroll-hint-down="1"] .workspace-scroll-hint--down {
    opacity: 1;
    transform: translateY(0);
}

@keyframes workspace-scroll-hint-pulse {
    0%, 100% {
        opacity: 0.38;
    }
    50% {
        opacity: 0.9;
    }
}

body.main-workspace-mode .app-workspace-module__body.is-native {
    overflow: hidden;
}

body.main-workspace-mode .app-workspace-module--chart .app-workspace-module__body,
body.main-workspace-mode .app-workspace-module--orderbooks .app-workspace-module__body {
    padding: 0;
    overflow: hidden;
}

body.main-workspace-mode .app-workspace-module--market-data .app-workspace-module__body {
    padding: 0;
    overflow: auto;
}

body.main-workspace-mode #feed,
body.main-workspace-mode #fav-panel {
    min-width: 0;
    min-height: 0;
    max-height: none !important;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 10px 12px !important;
    box-sizing: border-box;
    border: 0 !important;
    background: transparent !important;
}

body.main-workspace-mode .feed-layout > #feed,
body.main-workspace-mode .feed-layout > #fav-panel {
    display: none !important;
}

body.main-workspace-mode #feed {
    display: grid !important;
}

body.main-workspace-mode #fav-panel {
    display: flex !important;
    flex-direction: column;
    align-items: stretch;
}

body.main-workspace-mode .fav-container {
    min-height: 0;
    border-left: 0;
}

body.main-workspace-mode .fav-list {
    min-width: 0;
    min-height: 0;
    width: 100%;
    padding: 0;
    overflow: auto;
    box-sizing: border-box;
    align-items: stretch;
}

body.main-workspace-mode .feed-container,
body.main-workspace-mode .fav-container {
    min-width: 0;
    width: 100%;
    padding: 0 !important;
    align-items: stretch;
}

body.main-workspace-mode .panel-header {
    padding-top: 0;
}

body.main-workspace-mode #feed .panel-header,
body.main-workspace-mode #fav-panel .panel-header {
    display: none !important;
}

body.main-workspace-mode .app-workspace-module--screener #feed,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel {
    gap: 6px;
    row-gap: 6px;
    column-gap: 6px;
    padding: 4px 8px 8px !important;
}

body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fav-list {
    padding: 0;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card,
body.main-workspace-mode .app-workspace-module--screener #feed .card-stack,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-stack {
    margin-top: 0;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card {
    padding:
        calc(12px * var(--workspace-content-scale))
        calc(14px * var(--workspace-content-scale))
        calc(12px * var(--workspace-content-scale));
    border-radius: 11px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief {
    gap: calc(8px * var(--workspace-content-scale));
    margin-bottom: 4px;
    padding: calc(12px * var(--workspace-content-scale));
    border-radius: 12px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__head,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__head {
    gap: calc(8px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__title,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__title {
    font-size: calc(15px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__subtitle,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__subtitle,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__summary,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__action-copy,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__note,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__note {
    font-size: calc(10.5px * var(--workspace-content-scale));
    line-height: 1.35;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__meta,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__meta {
    gap: 4px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__meta-pill,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__meta-pill {
    gap: 4px;
    padding: 5px 7px;
    font-size: calc(8px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__list,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__actions {
    gap: 6px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__item,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__action {
    padding: calc(10px * var(--workspace-content-scale));
    border-radius: 11px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-return-brief__action-title {
    font-size: calc(12px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__item-head {
    gap: 6px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__symbol,
body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__spread {
    font-size: calc(13px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__pair {
    font-size: calc(9px * var(--workspace-content-scale));
    line-height: 1.2;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__tags {
    gap: 4px;
    margin-top: 7px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .feed-top-brief__tag {
    padding: 3px 6px;
    font-size: calc(8px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-row,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-row {
    margin-bottom: 6px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-header-row,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-header-row {
    gap: 6px;
    align-items: flex-start;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-header-left,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-header-left {
    gap: 5px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-header-right,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-header-right {
    gap: 6px;
    align-items: baseline;
}

body.main-workspace-mode .app-workspace-module--screener #feed .symbol,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .symbol,
body.main-workspace-mode .app-workspace-module--screener #feed .spread-value,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .spread-value {
    font-size: calc(16px * var(--workspace-content-scale));
    letter-spacing: 0.03em;
}

body.main-workspace-mode .app-workspace-module--screener #feed .reverse-spread,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .reverse-spread {
    font-size: 11px;
    line-height: 1.15;
}

body.main-workspace-mode .app-workspace-module--screener #feed .ex-name,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .ex-name,
body.main-workspace-mode .app-workspace-module--screener #feed .price,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .price {
    font-size: 11px;
    line-height: 1.15;
}

body.main-workspace-mode .app-workspace-module--screener #feed .volume-text,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .volume-text,
body.main-workspace-mode .app-workspace-module--screener #feed .dir-arrow,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .dir-arrow {
    font-size: 9px;
    line-height: 1.1;
}

body.main-workspace-mode .app-workspace-module--screener #feed .fav-btn .fav-icon,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fav-btn .fav-icon {
    font-size: calc(19px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .flip-btn .material-icons,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .flip-btn .material-icons,
body.main-workspace-mode .app-workspace-module--screener #feed .alert-clear-btn .material-icons,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .alert-clear-btn .material-icons {
    font-size: 13px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-alerts-inline,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-alerts-inline {
    gap: 3px;
    margin-left: 3px;
    padding-left: 5px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-insight,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-insight {
    gap: 5px;
    margin: 6px 0 8px;
    padding: calc(6px * var(--workspace-content-scale)) calc(8px * var(--workspace-content-scale));
    border-radius: 9px;
    font-size: calc(10px * var(--workspace-content-scale));
    line-height: 1.3;
}

body.main-workspace-mode .app-workspace-module--screener #feed .card-insight .material-icons,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .card-insight .material-icons {
    font-size: calc(12px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--screener #feed .stack-fork-selector,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .stack-fork-selector {
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .fork-chips-container,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fork-chips-container {
    gap: 3px;
    max-height: 24px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .fork-selector-chip,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fork-selector-chip {
    gap: 4px;
    padding: 4px 6px;
    font-size: 9px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .fork-selector-chip .chip-spread,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fork-selector-chip .chip-spread,
body.main-workspace-mode .app-workspace-module--screener #feed .fork-expand-btn,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fork-expand-btn {
    font-size: 9px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .fork-expand-btn,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .fork-expand-btn {
    min-width: 24px;
    height: 20px;
    padding: 0 6px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .panel-filters,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-filters {
    gap: 8px;
    padding: 4px 0 0;
}

body.main-workspace-mode .app-workspace-module--screener #feed .panel-filters-row,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-filters-row {
    gap: 8px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .panel-filter-label,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-filter-label,
body.main-workspace-mode .app-workspace-module--screener #feed .panel-exchange-placeholder,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-exchange-placeholder,
body.main-workspace-mode .app-workspace-module--screener #feed .panel-exchange-chip,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-exchange-chip,
body.main-workspace-mode .app-workspace-module--screener #feed .panel-sort-btn,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-sort-btn,
body.main-workspace-mode .app-workspace-module--screener #feed .panel-sort-label,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-sort-label {
    font-size: 10px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .panel-filter-input,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-filter-input,
body.main-workspace-mode .app-workspace-module--screener #feed .panel-filter-unit,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-filter-unit {
    font-size: 11px;
}

body.main-workspace-mode .app-workspace-module--screener #feed .panel-exchange-add .material-icons,
body.main-workspace-mode .app-workspace-module--favorites #fav-panel .panel-exchange-add .material-icons {
    font-size: 14px;
}

body.main-workspace-mode .app-workspace-module--filters .app-workspace-module__body,
body.main-workspace-mode .app-workspace-module--diagnostics .app-workspace-module__body,
body.main-workspace-mode .app-workspace-module--trades .app-workspace-module__body,
body.main-workspace-mode .app-workspace-module--analytics .app-workspace-module__body,
body.main-workspace-mode .app-workspace-module--blacklist .app-workspace-module__body {
    overflow: auto;
    padding: 10px 12px 14px;
}

body.main-workspace-mode .app-workspace-module--filters .app-workspace-module__body.workspace-filters-host {
    padding: 0 !important;
    overflow: auto;
    background: transparent;
}

body.main-workspace-mode .app-workspace-module--filters .settings-section,
body.main-workspace-mode .app-workspace-module--diagnostics .diag-panel,
body.main-workspace-mode .app-workspace-module--trades .dashboard,
body.main-workspace-mode .app-workspace-module--analytics #analytics-view,
body.main-workspace-mode .app-workspace-module--blacklist .blacklist-content {
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .settings-section.settings-section-filters {
    display: block !important;
    min-width: 0;
    min-height: 0;
    height: auto;
    margin: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: none;
    padding: 8px 10px 10px;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filter-row,
body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .settings-section {
    margin-bottom: 8px;
    padding-bottom: 8px;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filters-grid {
    min-width: 0;
    margin-bottom: 8px;
    gap: 8px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filter-item label,
body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filter-row label,
body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .exchanges-filter > label {
    margin-bottom: 3px;
    font-size: 9px;
    line-height: 1.2;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filter-item input {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    min-height: 34px;
    padding: 7px 10px;
    font-size: calc(15px * var(--workspace-content-scale));
    border-radius: 10px;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filter-hint {
    font-size: 9px;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .exchanges-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 5px;
    width: 100%;
}

body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .ex-btn {
    min-height: 28px;
    padding: 6px 7px;
    font-size: calc(11px * var(--workspace-content-scale));
    border-radius: 8px;
    white-space: normal;
    text-align: center;
}

body.main-workspace-mode .app-workspace-module--diagnostics .settings-pip-container {
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .app-workspace-module--analytics #analytics-view {
    position: relative;
    inset: auto;
    z-index: auto;
}

body.main-workspace-mode .app-workspace-module--analytics #analytics-view.hidden {
    display: none;
    transform: none;
    pointer-events: none;
}

body.main-workspace-mode .app-workspace-module--analytics .analytics-header {
    padding-top: 12px;
}

body.main-workspace-mode .app-workspace-module--blacklist .blacklist-content {
    width: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
}

body.main-workspace-mode .workspace-selection-module,
body.main-workspace-mode .workspace-selection-content,
body.main-workspace-mode .workspace-details-surface {
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
}

body.main-workspace-mode .workspace-details-surface.details-view[data-workspace-embedded="1"] {
    position: relative;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    inset: auto;
    top: auto;
    left: auto;
    right: auto;
    bottom: auto;
    z-index: auto;
    transform: none;
    margin: 0;
    padding-top: 0;
    max-width: none;
    max-height: none;
    width: 100%;
    height: 100%;
    --details-safe-top: 0px;
}

body.main-workspace-mode .workspace-details-surface.details-view[data-workspace-embedded="1"] > .details-surface-module {
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .workspace-details-surface.details-view[data-workspace-embedded="1"]:not(.mini-mode) {
    top: auto;
}

body.main-workspace-mode .workspace-selection-module {
    position: relative;
    display: flex;
    flex-direction: column;
}

body.main-workspace-mode .workspace-selection-content[hidden] {
    display: none !important;
}

body.main-workspace-mode .workspace-selection-content {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

body.main-workspace-mode .app-workspace-module--chart .workspace-selection-content,
body.main-workspace-mode .app-workspace-module--chart .workspace-details-surface,
body.main-workspace-mode .app-workspace-module--chart .details-surface-module--chart,
body.main-workspace-mode .app-workspace-module--chart .details-chart-stage,
body.main-workspace-mode .app-workspace-module--chart .chart-section,
body.main-workspace-mode .app-workspace-module--chart .chart-section iframe {
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .app-workspace-module--chart .details-chart-stage,
body.main-workspace-mode .app-workspace-module--chart .chart-section {
    display: flex;
    overflow: hidden;
    background: var(--bg-app);
}

body.main-workspace-mode .workspace-details-surface[data-workspace-chart-fill="1"] {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-chart-fill="1"] > .details-surface-module--chart {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    grid-template-rows: none;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-chart-fill="1"] .details-chart-stage {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0;
    height: 100%;
    padding: 0;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-chart-fill="1"] .chart-section {
    position: relative;
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    border: 0 !important;
    overflow: hidden;
    background: var(--bg-app);
}

body.main-workspace-mode .workspace-details-surface[data-workspace-chart-fill="1"] .chart-section iframe {
    display: block;
    flex: 1 1 0;
    min-height: 0 !important;
    height: 100% !important;
    max-height: none !important;
    width: 100%;
    border: 0;
}

body.main-workspace-mode .workspace-details-surface .details-surface-module--chart,
body.main-workspace-mode .workspace-details-surface .details-chart-stage,
body.main-workspace-mode .workspace-details-surface .chart-section,
body.main-workspace-mode .workspace-details-surface .details-surface-module--data-grid,
body.main-workspace-mode .workspace-details-surface .details-surface-module--books-grid {
    width: 100%;
}

body.main-workspace-mode .workspace-details-surface .details-surface-module--books-grid[data-details-has-calc="1"] {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
}

body.main-workspace-mode .workspace-details-surface [data-details-nested-grid="market-data"] {
    height: 100%;
    align-content: stretch;
    align-items: stretch;
    gap: 6px;
    grid-auto-rows: minmax(0, 1fr);
}

body.main-workspace-mode .workspace-details-surface .details-data-tile {
    min-height: 0;
    height: auto;
    gap: 5px;
    padding: 8px 9px;
    border-radius: 14px;
    background: var(--workspace-tile-fill) !important;
    box-shadow: var(--workspace-tile-shadow) !important;
}

body.main-workspace-mode .workspace-details-surface .details-module-head {
    padding-top: 0;
}

body.main-workspace-mode .workspace-details-surface .details-data-overview {
    gap: 6px;
}

body.main-workspace-mode .workspace-details-surface .details-overview-card {
    gap: 3px;
    padding: 7px 8px;
    border-radius: 14px;
    background: var(--workspace-tile-fill);
    box-shadow: var(--workspace-tile-shadow);
}

body.main-workspace-mode .workspace-details-surface .details-overview-label {
    font-size: 8px;
    line-height: 1.08;
}

body.main-workspace-mode .workspace-details-surface .details-overview-value {
    font-size: 13px;
    line-height: 1.12;
}

body.main-workspace-mode .workspace-details-surface .details-overview-note {
    font-size: 9px;
    line-height: 1.1;
}

body.main-workspace-mode .workspace-details-surface .details-module-metrics--data {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, auto);
    grid-auto-rows: auto;
    gap: 6px;
    align-content: start;
    align-items: start;
}

body.main-workspace-mode .workspace-details-surface .details-metric-card {
    gap: 2px;
}

body.main-workspace-mode .workspace-details-surface .details-module-head--market-data {
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
    gap: 0;
}

body.main-workspace-mode .workspace-details-surface .details-module-title-row--market-data {
    width: 100%;
    align-self: start;
    align-items: center;
    gap: 0 6px;
    min-width: 0;
}

body.main-workspace-mode .workspace-details-surface .details-module-kicker,
body.main-workspace-mode .workspace-details-surface .details-market-name,
body.main-workspace-mode .workspace-details-surface .details-module-note {
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

body.main-workspace-mode .workspace-details-surface .details-module-kicker {
    min-width: 0;
    max-width: 44%;
    flex-shrink: 0;
    overflow: hidden;
    padding: 3px 5px 2px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1.08;
    letter-spacing: 0.13em;
    background: color-mix(in srgb, var(--workspace-module-accent, rgba(255, 255, 255, 0.12)) 10%, transparent);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: color-mix(in srgb, var(--text-muted) 92%, transparent);
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .workspace-details-surface .details-market-name {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.08;
    letter-spacing: 0.05em;
}

body.main-workspace-mode .workspace-details-surface .details-market-name--center {
    display: block;
    width: 100%;
    flex: 0 0 auto;
    text-align: center;
    align-self: start;
}

body.main-workspace-mode .workspace-details-surface .details-module-note {
    min-width: 0;
    max-width: 40%;
    flex-shrink: 0;
    color: color-mix(in srgb, var(--text-muted) 90%, transparent);
    overflow: hidden;
    white-space: nowrap;
    text-align: right;
    text-overflow: ellipsis;
    font-size: 8px;
    line-height: 1.1;
    letter-spacing: 0.11em;
}

body.main-workspace-mode .workspace-details-surface .spread-meta-label {
    font-size: 8px;
    line-height: 1.12;
    letter-spacing: 0.14em;
}

body.main-workspace-mode .workspace-details-surface .spread-meta-value {
    font-size: 10px;
    line-height: 1.24;
    overflow: hidden;
    padding-top: 1px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .workspace-details-surface .spread-meta-fund {
    font-size: 12px;
    letter-spacing: -0.01em;
    align-items: flex-start;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.16;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-market-name--center {
    text-align: center;
}

body.main-workspace-mode .app-workspace-module--market-data {
    --workspace-header-scale: 0.98;
    --workspace-content-scale: 0.9;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-data-overview {
    gap: 5px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-overview-card {
    gap: 2px;
    padding: 6px 9px 7px;
    border-radius: 12px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-overview-label {
    font-size: calc(7.5px * var(--workspace-content-scale));
    letter-spacing: 0.1em;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-overview-value {
    font-size: calc(12.5px * var(--workspace-content-scale));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-overview-note {
    font-size: calc(8.5px * var(--workspace-content-scale));
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-surface-module--data-grid {
    display: grid;
    min-height: 0;
    height: 100%;
    grid-template-rows: auto minmax(0, 1fr);
    align-content: stretch;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-surface-module--data-grid[data-details-has-overview="1"] {
    gap: 5px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface [data-details-nested-grid="market-data"] {
    min-height: 0;
    height: 100%;
    gap: 5px;
    grid-auto-rows: minmax(0, 1fr);
    align-content: stretch;
    align-items: stretch;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-data-tile {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    align-self: stretch;
    align-content: stretch;
    gap: 5px;
    padding: 7px 8px 8px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-module-head--market-data {
    min-height: 0;
    overflow: hidden;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-module-title-row--market-data {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas: "kicker market";
    align-items: center;
    gap: 0 6px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-module-kicker {
    grid-area: kicker;
    min-width: 0;
    max-width: 100%;
    padding: 2px 6px;
    border-radius: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: calc(7px * var(--workspace-content-scale));
    font-weight: 700;
    line-height: 1.2;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-market-name {
    grid-area: market;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: calc(10.5px * var(--workspace-content-scale));
    line-height: 1.15;
    letter-spacing: 0.02em;
    opacity: 0.72;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-module-note {
    display: none;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-module-metrics--data {
    min-height: 0;
    height: 100%;
    align-self: stretch;
    align-content: stretch;
    align-items: stretch;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 4px;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-metric-card {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
    height: 100%;
    align-content: start;
    gap: 2px;
    padding: 5px 7px 6px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.028) !important;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.045) !important;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .spread-meta-label {
    font-size: calc(7px * var(--workspace-content-scale));
    letter-spacing: 0.08em;
    line-height: 1.1;
    opacity: 0.62;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .spread-meta-value {
    font-size: calc(10.5px * var(--workspace-content-scale));
    line-height: 1.15;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .spread-meta-fund {
    font-size: calc(11px * var(--workspace-content-scale));
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-data-tile[data-details-mirror="1"] .details-module-title-row--market-data {
    grid-template-areas: "market kicker";
    grid-template-columns: minmax(0, 1fr) auto;
}

body.main-workspace-mode .app-workspace-module--market-data .workspace-details-surface .details-data-tile[data-details-mirror="1"] .details-market-name {
    text-align: right;
}

body.main-workspace-mode .workspace-details-surface .details-metric-card--wide {
    grid-column: 1 / -1;
}

body.main-workspace-mode .workspace-details-surface [data-details-nested-grid="orderbooks"] {
    height: 100%;
    min-height: 0;
    align-content: stretch;
    align-items: stretch;
    gap: 8px;
    grid-auto-rows: minmax(0, 1fr);
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 0;
    padding: 10px 11px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--workspace-tile-fill) !important;
    box-shadow: var(--workspace-tile-shadow) !important;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc-copy {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc-title {
    font-size: calc(9px * var(--workspace-content-scale));
    line-height: 1.1;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-muted) 90%, transparent);
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc-note {
    font-size: calc(10px * var(--workspace-content-scale));
    line-height: 1.35;
    color: color-mix(in srgb, var(--text-main) 82%, transparent);
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-size {
    flex: 0 0 156px;
    width: min(156px, 100%);
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-grid {
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc .spread-liq-header {
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc .spread-liq-stats {
    margin-left: auto;
}

body.main-workspace-mode .workspace-details-surface .details-orderbooks-calc .spread-liq-slider {
    margin-top: 0;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    min-width: 0;
    min-height: 0;
    height: 100%;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 16px;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.018)),
        color-mix(in srgb, var(--bg-app) 90%, transparent) !important;
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 12px 28px rgba(0, 0, 0, 0.08) !important;
}

body.main-workspace-mode .workspace-details-surface .details-module-head--book {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    align-items: end;
    gap: 8px;
    padding-top: 0;
    order: 1 !important;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .details-module-kicker,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .details-module-note {
    font-size: 8px;
    line-height: 1.05;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-muted) 90%, transparent);
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .details-module-kicker {
    max-width: 100%;
    overflow: hidden;
    text-overflow: clip;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .spread-book-head {
    min-width: 0;
    padding: 0 0 6px !important;
    gap: 6px;
    order: 2 !important;
    align-self: start;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .spread-book-title,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .spread-book-title-main {
    min-width: 0;
    gap: 4px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .ex-name {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.08;
    letter-spacing: 0.05em;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .spread-book-price {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    line-height: 1.15;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .spread-book-side {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    padding: 3px 6px;
    font-size: 8px;
    line-height: 1;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .orderbook-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-height: 0;
    height: 100%;
    overflow: hidden;
    order: 3 !important;
    align-self: stretch;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .orderbook-columns .orderbook-list,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile > .orderbook-list {
    min-height: 0;
    height: 100%;
    order: 3 !important;
    align-self: stretch;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .orderbook-list {
    display: flex !important;
    flex-direction: column;
    flex: 1 1 0;
    gap: 2px;
    padding-right: 0;
    overflow: auto;
    overscroll-behavior: contain;
    font-size: 9px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .ob-row {
    gap: 6px;
    padding: 1px 5px;
    border-radius: 8px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .ob-price,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .ob-amount {
    font-size: 9px;
    line-height: 1.2;
}

body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .ex-name,
body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .spread-book-price {
    font-size: calc(12px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .spread-book-side {
    font-size: calc(9px * var(--workspace-content-scale));
}

body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .orderbook-list,
body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .ob-price,
body.main-workspace-mode .app-workspace-module--orderbooks .workspace-details-surface .details-orderbook-tile .ob-amount {
    font-size: calc(10px * var(--workspace-content-scale));
}

body.main-workspace-mode .workspace-details-surface .meta-badge {
    width: 10px;
    height: 10px;
    font-size: 6px;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile .ex-name::after {
    content: none !important;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .details-module-head--book {
    grid-template-columns: auto minmax(0, 1fr);
    text-align: right;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .details-module-kicker,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .details-module-note {
    justify-self: end;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .spread-book-head {
    grid-template-columns: auto minmax(0, 1fr);
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .spread-book-title {
    justify-content: flex-end;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .spread-book-title-main {
    flex-direction: row-reverse;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .spread-book-price {
    margin-left: 0 !important;
    margin-right: auto !important;
    text-align: left;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .orderbook-columns {
    direction: rtl;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .orderbook-list {
    direction: ltr;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .ob-row {
    flex-direction: row-reverse;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .ob-fill {
    left: 0;
    right: auto;
}

body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .ob-price,
body.main-workspace-mode .workspace-details-surface .details-orderbook-tile[data-details-mirror="1"] .ob-amount {
    text-align: left;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] [data-details-nested-grid="orderbooks"] {
    gap: 6px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile {
    gap: 4px;
    padding: 8px 8px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .details-module-head--book,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .spread-book-head,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .orderbook-columns {
    gap: 4px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .spread-book-head {
    padding-bottom: 4px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .orderbook-list,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .ob-price,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .ob-amount {
    font-size: 8px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="compact"] .details-orderbook-tile .ob-row {
    gap: 4px;
    padding: 1px 4px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] [data-details-nested-grid="orderbooks"] {
    gap: 4px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile {
    gap: 3px;
    padding: 7px 7px;
    border-radius: 14px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .details-module-head--book,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .spread-book-head,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .orderbook-columns {
    gap: 3px;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .spread-book-head {
    padding-bottom: 3px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .ex-name,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .spread-book-price {
    font-size: 10px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .spread-book-side {
    padding: 2px 5px;
    font-size: 7px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .orderbook-list,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .ob-price,
body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .ob-amount {
    font-size: 7px !important;
}

body.main-workspace-mode .workspace-details-surface[data-workspace-orderbooks-density="tight"] .details-orderbook-tile .ob-row {
    gap: 3px;
    padding: 1px 3px;
    border-radius: 7px;
}

body.main-workspace-mode .workspace-details-surface .chart-section iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

body.main-workspace-mode .workspace-selection-empty {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 14px;
    text-align: center;
}

body.main-workspace-mode .workspace-selection-empty[hidden] {
    display: none !important;
}

body.main-workspace-mode .workspace-selection-empty__inner {
    width: min(280px, calc(100% - 20px));
    display: grid;
    gap: 6px;
    padding: 10px 12px;
    border-radius: 16px;
    background: var(--workspace-empty-fill);
    box-shadow: var(--workspace-empty-shadow);
}

body.main-workspace-mode .workspace-selection-empty__title {
    font-size: 11px;
    line-height: 1.15;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--text-main) 88%, transparent);
}

body.main-workspace-mode .workspace-selection-empty__text {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.35;
    color: var(--text-muted);
}

body.main-workspace-mode .workspace-empty-state {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

body.main-workspace-mode .workspace-empty-state[hidden] {
    display: none !important;
}

body.main-workspace-mode .workspace-empty-state__inner {
    width: min(440px, calc(100% - 32px));
    padding: 28px 24px;
    border-radius: 28px;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015)),
        color-mix(in srgb, var(--bg-secondary) 88%, transparent);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.08),
        0 28px 68px rgba(0, 0, 0, 0.16);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    pointer-events: auto;
}

body.main-workspace-mode .workspace-empty-state__eyebrow {
    font-size: 10px;
    line-height: 1;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-muted) 90%, transparent);
}

body.main-workspace-mode .workspace-empty-state__title {
    margin-top: 10px;
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.08;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-main) 94%, transparent);
}

body.main-workspace-mode .workspace-empty-state__text {
    margin: 10px auto 0;
    max-width: 320px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-muted);
}

body.main-workspace-mode .workspace-empty-state__action {
    margin-top: 18px;
    border: 0;
    border-radius: 999px;
    padding: 11px 18px;
    background: color-mix(in srgb, var(--text-main) 16%, transparent);
    color: var(--text-main);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 700;
    cursor: pointer;
}

body.main-workspace-mode .workspace-details-surface .details-surface-module,
body.main-workspace-mode .workspace-details-surface .details-chart-stage,
body.main-workspace-mode .workspace-details-surface .chart-section,
body.main-workspace-mode .workspace-details-surface .details-nested-grid {
    min-height: 0;
    height: 100%;
}

body.main-workspace-mode .workspace-details-surface [data-details-nested-grid="market-data"],
body.main-workspace-mode .workspace-details-surface [data-details-nested-grid="orderbooks"] {
    --details-nested-cols: 2;
}

.workspace-module-menu {
    position: fixed;
    z-index: 1400;
    width: min(272px, calc(100vw - 20px));
    border-radius: 18px;
    padding: 10px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012)),
        color-mix(in srgb, var(--bg-secondary) 88%, transparent);
    box-shadow:
        inset 0 0 0 1px rgba(255, 255, 255, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.workspace-module-menu__header {
    padding: 2px 4px 10px;
    font-size: 10px;
    line-height: 1.1;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-weight: 700;
    color: color-mix(in srgb, var(--text-muted) 92%, transparent);
}

.workspace-module-menu__list {
    display: grid;
    gap: 6px;
}

.workspace-module-menu__item {
    min-width: 0;
    border: 0;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    color: inherit;
    text-align: left;
    cursor: pointer;
}

.workspace-module-menu__item.is-disabled {
    cursor: default;
    opacity: 0.56;
}

.workspace-module-menu__meta {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.workspace-module-menu__title {
    font-size: 13px;
    line-height: 1.2;
    font-weight: 700;
}

.workspace-module-menu__text,
.workspace-module-menu__state {
    font-size: 11px;
    line-height: 1.3;
    color: var(--text-muted);
}

.workspace-module-menu__state {
    white-space: nowrap;
}

body.main-workspace-mode #status-grid-plus-btn:disabled {
    opacity: 0.42;
    filter: saturate(0.5);
}

[data-theme="dark-alt"] body.main-workspace-mode {
    --workspace-canvas-glow: radial-gradient(circle at top left, rgba(67, 156, 233, 0.08), transparent 36%);
    --workspace-canvas-wash: linear-gradient(180deg, rgba(12, 20, 32, 0.24), rgba(12, 20, 32, 0.06));
    --workspace-shell-fill:
        linear-gradient(180deg, rgba(184, 230, 255, 0.06), rgba(184, 230, 255, 0.02)),
        color-mix(in srgb, var(--bg-secondary) 94%, #07121f 6%);
    --workspace-shell-shadow:
        inset 0 0 0 1px rgba(180, 220, 255, 0.1),
        0 16px 40px rgba(1, 7, 18, 0.26);
    --workspace-shell-shadow-strong:
        inset 0 0 0 1px rgba(180, 220, 255, 0.16),
        0 22px 56px rgba(1, 7, 18, 0.32);
    --workspace-tile-fill:
        linear-gradient(180deg, rgba(184, 230, 255, 0.045), rgba(184, 230, 255, 0.015)),
        color-mix(in srgb, var(--bg-app) 91%, #08121d 9%);
    --workspace-action-hover-bg: rgba(148, 211, 255, 0.08);
    --workspace-header-chip-fill: rgba(148, 211, 255, 0.05);
}

[data-theme="light"] .workspace-module-menu {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.8)),
        #fff;
    box-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.08),
        0 24px 48px rgba(15, 23, 42, 0.12);
}

[data-theme="light"] body.main-workspace-mode .app-workspace-module__action,
[data-theme="light"] body.main-workspace-mode .app-workspace-module__close,
[data-theme="light"] .workspace-module-menu__item {
    background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] body.main-workspace-mode .app-workspace-module__action,
[data-theme="light"] body.main-workspace-mode .app-workspace-module__close {
    background: transparent;
}

[data-theme="light"] body.main-workspace-mode .feed-layout {
    --workspace-canvas-glow: radial-gradient(circle at top left, rgba(15, 23, 42, 0.05), transparent 34%);
    --workspace-canvas-wash: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(255, 255, 255, 0.38));
    --workspace-shell-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
        #fff;
    --workspace-shell-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.06),
        0 16px 38px rgba(15, 23, 42, 0.07);
    --workspace-shell-shadow-strong:
        inset 0 0 0 1px rgba(15, 23, 42, 0.09),
        0 22px 48px rgba(15, 23, 42, 0.1);
    --workspace-tile-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92)),
        #fff;
    --workspace-tile-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.045),
        0 9px 22px rgba(15, 23, 42, 0.07);
    --workspace-header-chip-fill: rgba(15, 23, 42, 0.03);
    --workspace-header-chip-border: rgba(15, 23, 42, 0.08);
    --workspace-header-chip-text: color-mix(in srgb, var(--text-muted) 82%, #0f172a 18%);
    --workspace-action-hover-bg: rgba(15, 23, 42, 0.05);
    --workspace-empty-fill:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.92)),
        #fff;
    --workspace-empty-shadow:
        inset 0 0 0 1px rgba(15, 23, 42, 0.08),
        0 16px 34px rgba(15, 23, 42, 0.08);
}

[data-theme="light"] body.main-workspace-mode .app-workspace-module,
[data-theme="light"] body.main-workspace-mode .workspace-empty-state__inner {
    background: var(--workspace-shell-fill);
    box-shadow: var(--workspace-shell-shadow);
}

@media (hover: none) and (pointer: coarse) {
    body.main-workspace-mode .app-workspace-module__action,
    body.main-workspace-mode .app-workspace-module__close {
        width: 28px;
        height: 28px;
    }

    body.main-workspace-mode .app-workspace-module__action-icon,
    body.main-workspace-mode .app-workspace-module__close .material-icons {
        font-size: 17px;
    }

    body.main-workspace-mode .app-workspace-module__resize-handle--top,
    body.main-workspace-mode .app-workspace-module__resize-handle--top-left,
    body.main-workspace-mode .app-workspace-module__resize-handle--top-right {
        display: none !important;
    }
}

@media (max-width: 1099px) {
    body.main-workspace-mode .feed-layout {
        padding-top: 8px;
        padding-left: 10px;
        padding-right: 10px;
        padding-bottom: 10px;
    }

    body.main-workspace-mode #feed,
    body.main-workspace-mode #fav-panel,
    body.main-workspace-mode .app-workspace-module--filters .app-workspace-module__body,
    body.main-workspace-mode .app-workspace-module--diagnostics .app-workspace-module__body,
    body.main-workspace-mode .app-workspace-module--trades .app-workspace-module__body,
    body.main-workspace-mode .app-workspace-module--analytics .app-workspace-module__body,
    body.main-workspace-mode .app-workspace-module--blacklist .app-workspace-module__body {
        padding: 8px 10px 12px !important;
    }

    body.main-workspace-mode .app-workspace-module--filters .app-workspace-module__body.workspace-filters-host {
        padding: 0 !important;
    }

    body.main-workspace-mode .app-workspace-module--filters .workspace-filters-host .filters-grid {
        grid-template-columns: 1fr;
    }

    body.main-workspace-mode .workspace-details-surface .details-module-head--market-data {
        align-items: center;
        overflow: hidden;
    }

    body.main-workspace-mode .workspace-details-surface .details-module-title-row--market-data {
        gap: 0 4px;
    }

    body.main-workspace-mode .workspace-details-surface .details-data-overview {
        grid-template-columns: 1fr;
    }

    body.main-workspace-mode .workspace-details-surface .details-module-metrics--data {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }
}
