.bot-builder{background:#f5f7fa;background:var(--color-surface-section,#f5f7fa);display:flex;flex-direction:column;height:100vh;min-height:100vh;overflow:hidden;width:100%}@media(max-width:600px){.bot-builder{height:calc(100dvh - 11.2rem);min-height:calc(100dvh - 11.2rem)}}.bot-builder__workspace-wrap{flex-direction:column;min-width:0}.bot-builder__body,.bot-builder__workspace-wrap{display:flex;flex:1;min-height:0}@media(max-width:600px){.bot-builder__body{flex-direction:column}}.bot-header{background:#fff;background:var(--color-surface-primary,#fff);border-bottom:1px solid #e6e9eb;border-bottom:1px solid var(--color-surface-border,#e6e9eb);flex-shrink:0;gap:1.6rem;height:5.6rem;padding:0 1.6rem}.bot-header,.bot-header__brand{align-items:center;display:flex}.bot-header__brand{cursor:pointer;gap:.8rem}.bot-header__nav{align-items:center;display:flex;flex:1;gap:.4rem}.bot-header .dc-btn.bot-header__nav-item{background:transparent;border:none;border-radius:.8rem;color:var(--color-text-primary);font-weight:600;height:3.6rem;min-height:3.6rem;padding:0 1.2rem}.bot-header .dc-btn.bot-header__nav-item .dc-btn__text{color:inherit}.bot-header .dc-btn.bot-header__nav-item:hover:not([disabled]){background:#f5f7fa;background:var(--color-surface-section,#f5f7fa)}.bot-header .dc-btn.bot-header__nav-item--active{background:#00e5c0;background:var(--color-interactive-primary,#00e5c0);color:#0e1720}.bot-header .dc-btn.bot-header__nav-item--active .dc-btn__text{color:inherit}.bot-header .dc-btn.bot-header__nav-item--active:hover:not([disabled]){background:#00e5c0;background:var(--color-interactive-primary,#00e5c0)}.bot-header__account{flex-shrink:0;margin-left:auto}.bot-header__logged-out{align-items:center;display:flex;gap:1rem}.bot-header .dc-btn.bot-header__signup{border-radius:2.4rem;min-height:3.6rem;padding:0 1.6rem}.bot-header__balance{color:var(--color-text-primary)}.bot-toolbar{align-items:center;background:#fff;background:var(--color-surface-primary,#fff);border-bottom:1px solid #e6e9eb;border-bottom:1px solid var(--color-surface-border,#e6e9eb);display:flex;flex-shrink:0;gap:.8rem;overflow-x:auto;padding:.8rem 1.2rem}.bot-toolbar__file{display:none}.bot-toolbar .dc-btn--tertiary{border-radius:.6rem;font-weight:600;min-height:3.2rem;padding:0 1rem}.bot-workspace{flex:1;min-height:0;position:relative}.bot-workspace .blocklyToolboxDiv{background:#fff;background:var(--color-surface-primary,#fff);border-right:1px solid #e6e9eb;border-right:1px solid var(--color-surface-border,#e6e9eb);padding:.8rem 0;width:22rem}.bot-workspace .blocklyTreeRow{border-radius:.6rem;height:3.6rem;margin:.2rem .8rem;padding:0 1.2rem}.bot-workspace .blocklyTreeLabel{font-size:1.2rem}.bot-workspace .blocklyFlyoutBackground{fill:#f5f7fa;fill:var(--color-surface-section,#f5f7fa)}.bot-workspace .blocklyMainBackground{stroke:none}.bot-workspace .blocklyScrollbarHandle{fill:#c0c6cc}.bot-workspace .blocklyTrash,.bot-workspace .blocklyZoom{opacity:.85}.run-panel{background:#fff;background:var(--color-surface-primary,#fff);border-left:1px solid #e6e9eb;border-left:1px solid var(--color-surface-border,#e6e9eb);display:flex;flex-direction:column;min-width:32rem;width:32rem}.run-panel--collapsed{min-width:4.8rem;width:4.8rem}.run-panel__tabs{align-items:center;border-bottom:1px solid #e6e9eb;border-bottom:1px solid var(--color-surface-border,#e6e9eb);display:flex;flex-shrink:0;padding:0 .4rem}.run-panel__tab{background:transparent;border:none;border-bottom:2px solid transparent;color:var(--color-text-secondary);cursor:pointer;flex:1;font-size:1.2rem;font-weight:600;height:4.4rem}.run-panel__tab--active{border-bottom-color:#00e5c0;border-bottom-color:var(--color-interactive-primary,#00e5c0);color:#00e5c0;color:var(--color-interactive-primary,#00e5c0)}.run-panel__toggle{background:transparent;border:none;color:var(--color-text-primary);cursor:pointer;flex-shrink:0;height:3.2rem;width:3.2rem}.run-panel__body{display:flex;flex:1;flex-direction:column;gap:1.2rem;min-height:0;padding:1.2rem}.run-panel__hint{color:var(--color-text-secondary);line-height:1.5}.run-panel__stats{display:flex;flex-direction:column;gap:.8rem}.run-panel__stat{align-items:center;border-bottom:1px solid #e6e9eb;border-bottom:1px solid var(--color-surface-border,#e6e9eb);display:flex;gap:1.2rem;justify-content:space-between;padding:.8rem 0}.run-panel__stat>:first-child{flex:1;min-width:0}.run-panel__stat>:last-child{flex-shrink:0;text-align:right}.run-panel__stat--profit{color:#4bb4b3;color:var(--color-status-success,#4bb4b3)}.run-panel__stat--loss{color:#ec3f3f;color:var(--color-status-danger,#ec3f3f)}.run-panel__table-wrap{flex:1;overflow:auto}.run-panel__table{border-collapse:collapse;font-size:1.1rem;width:100%}.run-panel__table td,.run-panel__table th{border-bottom:1px solid #e6e9eb;border-bottom:1px solid var(--color-surface-border,#e6e9eb);padding:.6rem .4rem;text-align:left;white-space:nowrap}.run-panel__table th{color:var(--color-text-secondary);font-weight:600}.run-panel__journal{display:flex;flex:1;flex-direction:column;gap:.6rem;list-style:none;margin:0;overflow:auto;padding:0}.run-panel__journal-item{background:#f5f7fa;background:var(--color-surface-section,#f5f7fa);border-radius:.6rem;display:flex;flex-direction:column;font-size:1.1rem;gap:.2rem;padding:.6rem .8rem}.run-panel__journal-item span:first-child{color:var(--color-text-secondary);font-size:1rem}.run-panel__journal-item--success{border-left:3px solid #4bb4b3;border-left:3px solid var(--color-status-success,#4bb4b3)}.run-panel__journal-item--error{border-left:3px solid #ec3f3f;border-left:3px solid var(--color-status-danger,#ec3f3f)}.run-panel__journal-item--notify{border-left:3px solid #ffad3a;border-left:3px solid var(--color-status-warning,#ffad3a)}.run-panel__journal-item--info{border-left:3px solid #2196f3;border-left:3px solid var(--color-status-info,#2196f3)}.run-panel__error{color:#ec3f3f;color:var(--color-status-danger,#ec3f3f)}.run-panel__actions{display:flex;gap:.8rem;margin-top:auto}.run-panel__run{flex:1}@media(max-width:600px){.run-panel{border-left:none;border-top:1px solid #e6e9eb;border-top:1px solid var(--color-surface-border,#e6e9eb);max-height:42%;min-width:0;width:100%}.run-panel--collapsed{max-height:4.4rem;min-width:0;width:100%}}.bot-control-bar{align-items:center;background:#fff;background:var(--color-surface-primary,#fff);border-top:1px solid #e6e9eb;border-top:1px solid var(--color-surface-border,#e6e9eb);display:flex;flex-shrink:0;gap:1.6rem;height:5.6rem;padding:0 1.6rem}.bot-control-bar__run{align-items:center;display:flex;gap:.8rem}.bot-control-bar__login-hint{color:var(--color-text-secondary);margin-right:auto}.bot-control-bar__speed{align-items:center;background:#f5f7fa;background:var(--color-surface-section,#f5f7fa);border-radius:2rem;display:flex;padding:.2rem}.bot-control-bar__speed-btn{background:transparent;border:none;border-radius:2rem;color:var(--color-text-secondary);cursor:pointer;font-size:1.1rem;font-weight:700;padding:.4rem 1.2rem;text-transform:uppercase}.bot-control-bar__speed-btn--active{background:#00e5c0;background:var(--color-interactive-primary,#00e5c0);color:#0e1720}.bot-control-bar__status{align-items:center;color:var(--color-text-secondary);display:flex;gap:.8rem;margin-left:auto}.bot-control-bar__dot{background:#85acb0;border-radius:50%;height:.8rem;width:.8rem}.bot-control-bar__dot--live{background:#00c39a;box-shadow:0 0 0 4px rgba(0,195,154,.18)}.bot-control-bar__icon-btn{background:transparent;border:none;color:var(--color-text-primary);cursor:pointer;font-size:1.6rem;line-height:1}@media(max-width:600px){.bot-control-bar{flex-wrap:wrap;gap:.8rem;height:auto;padding:.8rem 1.2rem}}html.dark .bot-builder,html.dark .bot-control-bar,html.dark .bot-header,html.dark .bot-toolbar,html.dark .run-panel{background:#151e27;color:#c2c2c2}html.dark .bot-workspace .blocklyToolboxDiv{background:#151e27}