@@ -865,9 +878,9 @@ function StrategyEditorCanvasInner({
nodesDraggable
nodesConnectable
elementsSelectable
- selectionOnDrag
+ selectionOnDrag={interactionMode === 'select'}
selectionMode={SelectionMode.Partial}
- panOnDrag={[1, 2]}
+ panOnDrag={interactionMode === 'pan' ? true : [1, 2]}
selectNodesOnDrag={false}
multiSelectionKeyCode={['Meta', 'Control', 'Shift']}
deleteKeyCode={null}
@@ -893,8 +906,28 @@ function StrategyEditorCanvasInner({
/>
전략 빌더
+
+
+
+
- 다중 선택 × 일괄삭제 · 연결선 × 끊기 · Del 삭제
+ {interactionMode === 'pan'
+ ? '빈 영역 드래그 → 그래프 이동 · 노드 드래그 → 위치 변경'
+ : '빈 영역 드래그 → 다중 선택 · Del 삭제 · 연결선 × 끊기'}
{orphans.length > 0 ? ` · 미연결 ${orphans.length}` : ''}
diff --git a/frontend/src/styles/backtestDashboard.css b/frontend/src/styles/backtestDashboard.css
index 0ee4728..0093098 100644
--- a/frontend/src/styles/backtestDashboard.css
+++ b/frontend/src/styles/backtestDashboard.css
@@ -1,6 +1,7 @@
-/* 백테스팅 대시보드 (btd-*) — 앱 테마 변수 + 금색 포인트 */
+/* 백테스팅 대시보드 (btd-*) — BuilderPageShell 내부 콘텐츠 스타일 */
-.btd-page {
+.bps-page,
+.se-page {
--btd-gold: #c9a227;
--btd-gold-light: #e8c547;
--btd-gold-dark: #b8860b;
@@ -8,105 +9,109 @@
--btd-gold-border-strong: rgba(201, 162, 39, 0.35);
--btd-gold-bg: rgba(201, 162, 39, 0.08);
--btd-gold-bg-hover: rgba(201, 162, 39, 0.14);
-
- display: flex;
- height: calc(100vh - var(--tmb-h, 46px));
- overflow: hidden;
- background: var(--bg);
- color: var(--text);
- font-family: var(--font, 'Noto Sans KR', sans-serif);
}
-.app.light .btd-page,
-html.theme-light .btd-page {
+.se-page--light {
--btd-gold-border: rgba(184, 134, 11, 0.28);
--btd-gold-border-strong: rgba(184, 134, 11, 0.45);
--btd-gold-bg: rgba(201, 162, 39, 0.1);
--btd-gold-bg-hover: rgba(201, 162, 39, 0.16);
}
-/* ── 좌측 타임라인 사이드바 (~23%) ── */
-.btd-sidebar {
- width: 23%;
- min-width: 220px;
- max-width: 300px;
- flex-shrink: 0;
- display: flex;
- flex-direction: column;
- border-right: 1px solid var(--btd-gold-border);
- background: var(--bg2);
- overflow: hidden;
-}
+.bps-center-content .btd-empty span { font-size: 48px; opacity: 0.35; }
+.btd-sidebar-hint { font-size: 0.72rem; opacity: 0.75; line-height: 1.6; }
-.btd-sidebar-head {
- display: flex;
- align-items: center;
- gap: 8px;
- padding: 12px 12px 10px;
- border-bottom: 1px solid var(--btd-gold-border);
- flex-shrink: 0;
-}
-
-.btd-sidebar-bar {
- width: 3px;
- height: 18px;
- border-radius: 2px;
- background: linear-gradient(180deg, var(--btd-gold-light), var(--btd-gold-dark));
- flex-shrink: 0;
-}
-
-.btd-sidebar-title {
- margin: 0;
- flex: 1;
- font-size: 13px;
- font-weight: 800;
- color: var(--text);
- letter-spacing: -0.2px;
-}
-
-.btd-sidebar-actions {
- display: flex;
- gap: 4px;
-}
-
-.btd-icon-btn {
- width: 28px;
- height: 28px;
- border-radius: 6px;
- border: 1px solid var(--btd-gold-border);
- background: var(--btd-gold-bg);
- color: var(--btd-gold);
- font-size: 13px;
- cursor: pointer;
- display: flex;
- align-items: center;
- justify-content: center;
-}
-.btd-icon-btn:hover:not(:disabled) { background: var(--btd-gold-bg-hover); }
-.btd-icon-btn:disabled { opacity: 0.35; cursor: not-allowed; }
-.btd-icon-btn--danger { color: #ef4444; border-color: rgba(239, 68, 68, 0.3); }
-
-.btd-sidebar-empty {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- padding: 24px;
- text-align: center;
- color: var(--text3);
- font-size: 12px;
- gap: 8px;
-}
-.btd-sidebar-hint { font-size: 11px; opacity: 0.75; line-height: 1.6; }
-
-.btd-timeline {
+.bps-panel-body .btd-timeline {
position: relative;
flex: 1;
overflow-y: auto;
- padding: 12px 10px 16px 22px;
+ padding: 4px 2px 8px 14px;
+ min-height: 120px;
}
+.bps-panel-body .btd-sidebar-empty {
+ flex: 1;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ padding: 24px 12px;
+ text-align: center;
+ color: var(--se-text-dim);
+ font-size: 0.78rem;
+ gap: 8px;
+}
+
+.bps-center-content .btd-dashboard {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+ padding: 0;
+ overflow: hidden;
+}
+
+.bps-center-content .btd-empty {
+ flex: 1;
+ min-height: 240px;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ justify-content: center;
+ gap: 10px;
+ color: var(--se-text-dim);
+ font-size: 0.85rem;
+}
+
+.btd-meta {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+
+.btd-meta-value {
+ font-size: 0.82rem;
+ font-weight: 700;
+ color: var(--se-text);
+}
+
+.btd-footer-stats {
+ display: grid;
+ grid-template-columns: repeat(4, minmax(0, 1fr));
+ gap: 10px;
+}
+
+.btd-footer-stat {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ padding: 8px 10px;
+ border-radius: 8px;
+ border: 1px solid var(--se-border);
+ background: color-mix(in srgb, var(--se-bg-elevated) 88%, transparent);
+}
+
+.btd-footer-stat-label {
+ font-size: 0.68rem;
+ color: var(--se-text-muted);
+}
+
+.btd-footer-stat-value {
+ font-size: 1rem;
+ font-weight: 800;
+ color: var(--se-text);
+}
+
+.btd-footer-stat-value.up { color: var(--se-up); }
+.btd-footer-stat-value.down { color: var(--se-down); }
+
+@media (max-width: 1200px) {
+ .btd-footer-stats { grid-template-columns: repeat(2, 1fr); }
+}
+
+/* legacy page layout removed — shell handles structure */
+
.btd-timeline-line {
position: absolute;
left: 28px;
@@ -207,39 +212,6 @@ html.theme-light .btd-page {
border: 1px solid rgba(239, 68, 68, 0.25);
}
-/* ── 우측 메인 ── */
-.btd-main {
- flex: 1;
- min-width: 0;
- min-height: 0;
- overflow: hidden;
- display: flex;
- flex-direction: column;
- background: var(--bg);
-}
-
-.btd-dashboard {
- flex: 1;
- min-height: 0;
- display: flex;
- flex-direction: column;
- gap: 10px;
- padding: 12px 16px 10px;
- overflow: hidden;
-}
-
-.btd-empty {
- flex: 1;
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- gap: 10px;
- color: var(--text3);
- font-size: 13px;
-}
-.btd-empty span { font-size: 48px; opacity: 0.35; }
-
/* ── 섹션 헤더 (금색 바) ── */
.btd-section-head {
display: flex;
diff --git a/frontend/src/styles/builderPageShell.css b/frontend/src/styles/builderPageShell.css
new file mode 100644
index 0000000..c8d03b7
--- /dev/null
+++ b/frontend/src/styles/builderPageShell.css
@@ -0,0 +1,368 @@
+/* Builder shell — 전략편집기(se-page)와 동일한 3열 + 하단 패널 레이아웃 */
+
+.bps-page {
+ display: flex;
+ flex-direction: column;
+ flex: 1;
+ height: calc(100vh - var(--tmb-h, 44px));
+ min-height: 0;
+ background: var(--se-bg);
+ color: var(--se-text);
+ overflow: hidden;
+ position: relative;
+}
+
+.bps-header {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 10px 18px;
+ border-bottom: 1px solid var(--se-header-border);
+ background: var(--se-header-bg);
+ flex-shrink: 0;
+}
+
+.bps-header-left { display: flex; align-items: baseline; gap: 10px; }
+
+.bps-title {
+ margin: 0;
+ font-size: 1.1rem;
+ font-weight: 800;
+ background: var(--se-title-gradient);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+}
+
+.bps-subtitle { font-size: 0.72rem; color: var(--se-text-muted); }
+
+.bps-header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
+
+.bps-btn {
+ border: 1px solid var(--se-border);
+ background: var(--se-btn-bg);
+ color: var(--se-text);
+ border-radius: 8px;
+ padding: 7px 14px;
+ font-size: 0.82rem;
+ cursor: pointer;
+ transition: box-shadow 0.15s, border-color 0.15s;
+}
+.bps-btn:hover { border-color: color-mix(in srgb, var(--se-accent) 50%, transparent); }
+.bps-btn--ghost { background: transparent; }
+.bps-btn--gold {
+ background: var(--se-btn-gold-bg);
+ border-color: var(--se-btn-gold-border);
+ color: var(--se-btn-gold-text);
+ font-weight: 700;
+}
+.bps-btn--danger { border-color: color-mix(in srgb, var(--se-danger) 50%, transparent); color: var(--se-danger); }
+.bps-btn:disabled { opacity: 0.35; cursor: not-allowed; }
+
+.bps-banner {
+ flex-shrink: 0;
+ margin: 0 12px;
+ padding: 8px 12px;
+ border-radius: 8px;
+ font-size: 0.78rem;
+}
+.bps-banner--warn {
+ background: color-mix(in srgb, #fbbf24 12%, transparent);
+ border: 1px solid color-mix(in srgb, #fbbf24 35%, transparent);
+ color: #fbbf24;
+}
+
+.bps-body {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ min-width: 0;
+}
+
+.bps-left {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ background: var(--se-panel-shell-bg);
+ padding: 10px;
+}
+
+.bps-panel {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ padding: 14px 12px 12px;
+ border-radius: 14px;
+ background: var(--se-panel-card-bg);
+ border: 1px solid var(--se-panel-card-border);
+ box-shadow: var(--se-panel-card-shadow), inset 0 1px 0 color-mix(in srgb, var(--se-text) 4%, transparent);
+}
+
+.bps-panel-head {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ margin-bottom: 12px;
+ padding-bottom: 10px;
+ border-bottom: 1px solid var(--se-border);
+ flex-shrink: 0;
+}
+
+.bps-panel-title {
+ margin: 0;
+ flex: 1;
+ font-size: 0.88rem;
+ font-weight: 800;
+ color: var(--se-text);
+}
+
+.bps-panel-actions { display: flex; gap: 4px; flex-shrink: 0; }
+
+.bps-panel-body {
+ flex: 1;
+ min-height: 0;
+ overflow: auto;
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+
+.bps-splitter {
+ flex-shrink: 0;
+ background: var(--se-splitter-bg);
+ transition: background 0.12s, box-shadow 0.12s;
+ touch-action: none;
+ z-index: 6;
+}
+.bps-splitter:hover,
+.bps-splitter.bps-splitter--active {
+ background: var(--se-splitter-active);
+ box-shadow: 0 0 10px color-mix(in srgb, var(--se-accent) 20%, transparent);
+}
+.bps-splitter--v { width: 5px; cursor: col-resize; }
+.bps-splitter--h {
+ height: 5px;
+ margin: 0 10px;
+ border-radius: 3px;
+ cursor: row-resize;
+ flex-shrink: 0;
+}
+
+.bps-center {
+ flex: 1;
+ min-width: 0;
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ background: var(--se-center-bg);
+}
+
+.bps-main {
+ flex: 1;
+ min-width: 0;
+ min-height: 0;
+ display: flex;
+ padding-bottom: 10px;
+}
+
+.bps-main-row {
+ flex: 1;
+ min-height: 0;
+ min-width: 0;
+ display: flex;
+ overflow: hidden;
+}
+
+.bps-center-work {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+
+.bps-center-head {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ padding: 8px 12px 0;
+ flex-shrink: 0;
+ gap: 10px;
+}
+
+.bps-center-head-title {
+ font-size: 0.82rem;
+ font-weight: 700;
+ color: var(--se-text-muted);
+}
+
+.bps-center-content {
+ flex: 1;
+ min-height: 0;
+ overflow: auto;
+ padding: 8px 12px 12px;
+ display: flex;
+ flex-direction: column;
+}
+
+.bps-right {
+ flex: 0 0 280px;
+ width: 280px;
+ border-left: 1px solid var(--se-border);
+ display: flex;
+ flex-direction: column;
+ min-height: 0;
+ align-self: stretch;
+ background: var(--se-palette-bg);
+ overflow: hidden;
+}
+
+.bps-right-tabs {
+ display: flex;
+ border-bottom: 1px solid var(--se-border);
+ flex-shrink: 0;
+}
+
+.bps-left-tabs {
+ display: flex;
+ border-bottom: 1px solid var(--se-border);
+ flex-shrink: 0;
+ margin: -14px -12px 0;
+ padding: 0 4px;
+}
+
+.bps-left-tab,
+.bps-right-tab {
+ flex: 1;
+ padding: 10px 6px;
+ border: none;
+ background: transparent;
+ color: var(--se-text-muted);
+ font-size: 0.76rem;
+ cursor: pointer;
+}
+.bps-left-tab--on,
+.bps-right-tab--on {
+ color: var(--se-tab-active);
+ box-shadow: inset 0 -2px 0 var(--se-tab-active);
+}
+
+.bps-panel-body--tabs {
+ padding-top: 10px;
+}
+
+.bps-right-body {
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+ padding: 10px;
+ display: flex;
+ flex-direction: column;
+}
+
+.bps-footer {
+ flex-shrink: 0;
+ display: flex;
+ flex-direction: column;
+ margin: 0 12px 0;
+ border: 1px solid var(--se-terminal-border);
+ border-radius: 10px;
+ background: var(--se-terminal-bg);
+ overflow: hidden;
+ min-height: 88px;
+}
+
+.bps-footer-label {
+ flex-shrink: 0;
+ font-size: 0.62rem;
+ font-weight: 800;
+ letter-spacing: 0.14em;
+ color: var(--se-terminal-label);
+ padding: 6px 12px;
+ border-bottom: 1px solid var(--se-border);
+}
+
+.bps-footer-body {
+ flex: 1;
+ min-height: 0;
+ overflow: auto;
+ padding: 10px 12px;
+}
+
+.bps-list-item {
+ display: flex;
+ align-items: center;
+ gap: 8px;
+ width: 100%;
+ padding: 10px 12px;
+ border-radius: 10px;
+ border: 1px solid var(--se-strat-item-border);
+ background: var(--se-strat-item-bg);
+ box-shadow: var(--se-strat-item-shadow);
+ color: var(--se-text);
+ cursor: pointer;
+ text-align: left;
+ transition: border-color 0.12s, box-shadow 0.12s, background 0.12s;
+}
+.bps-list-item:hover {
+ box-shadow: var(--se-strat-item-hover-shadow);
+ background: var(--se-item-hover-bg);
+}
+.bps-list-item--sel {
+ background: var(--se-item-selected-bg);
+ border-color: var(--se-item-selected-border);
+ box-shadow: 0 0 0 1px color-mix(in srgb, var(--se-gold) 20%, transparent);
+}
+.bps-list-item-name {
+ flex: 1;
+ min-width: 0;
+ font-size: 0.82rem;
+ font-weight: 700;
+ white-space: nowrap;
+ overflow: hidden;
+ text-overflow: ellipsis;
+}
+.bps-list-item--sel .bps-list-item-name { color: var(--se-item-selected-text); }
+.bps-list-item-meta { font-size: 0.68rem; color: var(--se-text-muted); }
+.bps-list-item-badge {
+ flex-shrink: 0;
+ font-size: 0.62rem;
+ font-weight: 700;
+ padding: 2px 6px;
+ border-radius: 999px;
+}
+.bps-list-item-badge.up { color: var(--se-up); background: color-mix(in srgb, var(--se-up) 12%, transparent); }
+.bps-list-item-badge.down { color: var(--se-down); background: color-mix(in srgb, var(--se-down) 12%, transparent); }
+
+.bps-empty {
+ font-size: 0.78rem;
+ color: var(--se-text-dim);
+ text-align: center;
+ padding: 24px 12px;
+ line-height: 1.6;
+}
+
+.bps-card {
+ border: 1px solid var(--se-border);
+ border-radius: 10px;
+ background: color-mix(in srgb, var(--se-bg-elevated) 88%, transparent);
+ overflow: hidden;
+}
+.bps-card-head {
+ padding: 8px 10px 0;
+ font-size: 0.72rem;
+ font-weight: 700;
+ color: var(--se-text-muted);
+}
+.bps-card-body { padding: 8px 10px 10px; }
+
+.bps-loading {
+ flex: 1;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ color: var(--se-text-muted);
+ font-size: 0.85rem;
+}
diff --git a/frontend/src/styles/paperDashboard.css b/frontend/src/styles/paperDashboard.css
index 5c348e1..a3ef9b6 100644
--- a/frontend/src/styles/paperDashboard.css
+++ b/frontend/src/styles/paperDashboard.css
@@ -1,67 +1,296 @@
-/* 모의투자 대시보드 (ptd-) — 전체 화면 고정 레이아웃, 앱 테마 변수 연동 */
-.ptd-page {
+/* 모의투자 — 좌측 패널·우측 탭·성과 지표 하단선 정렬 */
+
+.bps-page .bps-main {
+ padding: 0 10px 10px 0;
+ box-sizing: border-box;
+}
+
+.bps-page .bps-right {
+ border: 1px solid var(--se-panel-card-border);
+ border-radius: 14px;
+ box-shadow: var(--se-panel-card-shadow), inset 0 1px 0 color-mix(in srgb, var(--se-text) 4%, transparent);
+}
+
+.bps-page .bps-footer {
+ margin: 0 12px 0;
+}
+
+.bps-center-content .ptd-center-fill {
+ height: 100%;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+}
+
+.bps-center-content .ptd-chart-card {
+ flex: 1;
+ min-height: 0;
+ height: 100%;
+ border: 1px solid var(--se-border);
+ background: var(--se-panel-card-bg);
+ padding: 0;
+ overflow: hidden;
+}
+
+/* 중앙 — 캔들 + 보조지표 (실시간 차트 레이아웃) */
+.ptd-analysis-chart {
+ flex: 1;
+ min-height: 0;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+.ptd-analysis-chart .ptd-main-pane {
+ flex: 1.55;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+.ptd-analysis-chart .ptd-sub-panes {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ border-top: 1px solid var(--sep);
+ overflow: hidden;
+}
+.ptd-analysis-chart .ptd-chart-wrap {
+ flex: 1;
+ min-height: 0;
+ padding: 8px 10px 0;
+}
+.ptd-analysis-chart .ptd-chart-canvas {
+ flex: 1;
+ min-height: 120px;
+ max-height: none;
+}
+
+.ptd-ind-stack {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow-y: auto;
+}
+.ptd-ind-row {
+ flex: 1;
+ min-height: 72px;
+ display: flex;
+ flex-direction: column;
+ padding: 4px 10px 6px;
+ border-bottom: 1px solid var(--sep);
+ background: color-mix(in srgb, var(--bg3) 80%, transparent);
+}
+.ptd-ind-row:last-child { border-bottom: none; }
+.ptd-ind-row .ptd-ind-svg {
+ flex: 1;
+ min-height: 48px;
+ width: 100%;
+}
+
+/* 좌·우 상하단 카드 분리 */
+.ptd-split-panel {
+ flex: 1;
+ min-height: 0;
+ height: 100%;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+.bps-panel-body--tabs {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+.bps-panel-body--tabs > .ptd-split-panel--left,
+.bps-right-body > .ptd-right-body > .ptd-split-panel--right {
+ flex: 1;
+ min-height: 0;
+}
+.ptd-split-card {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ border: 1px solid var(--se-border, var(--border));
+ border-radius: 10px;
+ background: color-mix(in srgb, var(--se-bg-elevated, var(--bg2)) 88%, transparent);
+ box-shadow: inset 0 1px 0 color-mix(in srgb, var(--se-text, var(--text)) 4%, transparent);
+}
+.ptd-split-card-head {
+ flex-shrink: 0;
+ padding: 8px 10px;
+ font-size: 11px;
+ font-weight: 700;
+ color: var(--text2, var(--se-text-muted));
+ border-bottom: 1px solid var(--sep, var(--se-border));
+}
+.ptd-split-card-body {
+ flex: 1;
+ min-height: 0;
+ overflow-y: auto;
+ overflow-x: hidden;
+ padding: 8px 10px;
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+.ptd-split-panel--right .ptd-split-card-body .ptd-ob--section {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ border: none;
+ background: transparent;
+}
+.ptd-split-panel--right .ptd-split-card-body .ptd-ob--section .ptd-ob-body {
+ flex: 1;
+ min-height: 0;
+ max-height: none;
+ overflow-y: auto;
+}
+.ptd-split-panel--right .ptd-order-card,
+.ptd-split-panel--right .top-panel {
+ background: transparent;
+}
+.ptd-tabs--in-card {
+ border-bottom: none;
+ margin: -4px -2px 0;
+}
+.ptd-asset-inline {
+ display: flex;
+ align-items: baseline;
+ justify-content: space-between;
+ gap: 8px;
+ padding-bottom: 4px;
+ border-bottom: 1px solid var(--sep);
+}
+.ptd-asset-total--sm {
+ padding: 0;
+ font-size: 16px;
+}
+.ptd-asset-ret--sm {
+ padding: 0;
+ font-size: 14px;
+}
+
+/* 좌측 전략·설정 탭 */
+.ptd-left-tab {
+ display: flex;
+ flex-direction: column;
+ gap: 10px;
+}
+.ptd-left-section {
+ display: flex;
+ flex-direction: column;
+ gap: 8px;
+}
+.ptd-left-section-title {
+ font-size: 11px;
+ font-weight: 700;
+ color: var(--text2);
+ padding-bottom: 4px;
+ border-bottom: 1px solid var(--sep);
+}
+.ptd-left-row {
+ display: flex;
+ align-items: center;
+ justify-content: space-between;
+ gap: 8px;
+ font-size: 11px;
+ color: var(--text2);
+}
+.ptd-left-field {
+ display: flex;
+ flex-direction: column;
+ gap: 4px;
+ font-size: 10px;
+ color: var(--text3);
+}
+.ptd-left-select,
+.ptd-left-input {
+ width: 100%;
+ padding: 6px 8px;
+ border-radius: 8px;
+ border: 1px solid var(--border);
+ background: var(--bg3);
+ color: var(--text);
+ font-size: 11px;
+}
+.ptd-left-hint {
+ margin: 0;
+ font-size: 10px;
+ color: var(--accent);
+}
+.ptd-left-status {
+ margin: 0;
+ font-size: 10px;
+ color: var(--text3);
+ padding: 6px 8px;
+ border-radius: 8px;
+ background: var(--bg3);
+}
+.ptd-left-status--on {
+ color: #22c55e;
+ background: rgba(34, 197, 94, 0.1);
+}
+.ptd-left-reset {
+ width: 100%;
+ margin-top: 4px;
+}
+
+.bps-right-body .ptd-right-body {
flex: 1;
min-height: 0;
overflow: hidden;
display: flex;
flex-direction: column;
- background: var(--bg);
- color: var(--text);
- padding: 8px 12px 10px;
- font-family: var(--font, 'Noto Sans KR', sans-serif);
-}
-.ptd-page--loading {
- display: flex;
- align-items: center;
- justify-content: center;
- min-height: 320px;
- color: var(--text2);
+ gap: 0;
+ padding: 0;
}
-.ptd-topbar {
- display: flex;
- align-items: center;
- justify-content: space-between;
- gap: 12px;
- margin-bottom: 8px;
- flex-shrink: 0;
-}
-.ptd-title { margin: 0; font-size: 18px; font-weight: 800; color: var(--text); }
-.ptd-topbar-actions { display: flex; gap: 8px; flex-shrink: 0; }
-.ptd-btn {
- padding: 6px 10px;
- border-radius: 8px;
- border: 1px solid var(--border);
- background: var(--bg2);
- color: var(--text);
- font-size: 11px;
- cursor: pointer;
-}
-.ptd-btn:hover { background: var(--bg3); }
-.ptd-btn--danger { border-color: rgba(239,68,68,0.4); color: #ef4444; }
-
-.ptd-banner {
- padding: 8px 10px;
- border-radius: 8px;
- margin-bottom: 8px;
- font-size: 11px;
- flex-shrink: 0;
-}
-.ptd-banner--warn {
- background: rgba(251,191,36,0.1);
- border: 1px solid rgba(251,191,36,0.3);
- color: #fbbf24;
+.bps-right-body .ptd-right-body > * {
+ flex: 1;
+ min-height: 0;
}
-.ptd-metrics {
- margin-bottom: 8px;
- flex-shrink: 0;
+.bps-right-body .ptd-right-body > .ptd-split-panel {
+ gap: 8px;
}
-.ptd-metrics-grid {
+
+.bps-footer .ptd-metrics-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 8px;
}
+
+.bps-page .ptd-metric,
+.se-page .ptd-metric {
+ background: color-mix(in srgb, var(--se-bg-elevated) 88%, transparent);
+ border-color: var(--se-border);
+}
+
+.bps-page .ptd-card,
+.se-page .ptd-card {
+ background: color-mix(in srgb, var(--se-bg-elevated) 88%, transparent);
+ border-color: var(--se-border);
+}
+
+.bps-page .up,
+.se-page .up { color: var(--se-up, #22c55e); }
+.bps-page .down,
+.se-page .down { color: var(--se-down, #ef4444); }
+
+@media (max-width: 1200px) {
+ .bps-footer .ptd-metrics-grid { grid-template-columns: repeat(2, 1fr); }
+}
+
+/* legacy layout removed — shell handles page structure */
.ptd-metric {
display: flex;
align-items: flex-start;
@@ -78,28 +307,6 @@
.ptd-metric--up .ptd-metric-value { color: #22c55e; }
.ptd-metric--down .ptd-metric-value { color: #ef4444; }
-.ptd-main {
- display: grid;
- grid-template-columns: minmax(220px, 260px) minmax(0, 1fr) minmax(250px, 280px);
- gap: 10px;
- flex: 1;
- min-height: 0;
- overflow: hidden;
-}
-.ptd-col {
- display: flex;
- flex-direction: column;
- gap: 8px;
- min-height: 0;
- overflow: hidden;
-}
-.ptd-col--left {
- overflow-y: auto;
- overflow-x: hidden;
-}
-.ptd-col--center { min-width: 0; }
-.ptd-col--right { min-width: 0; }
-
.ptd-card {
background: var(--bg2);
border: 1px solid var(--border);
@@ -300,23 +507,30 @@
.ptd-right-body {
flex: 1;
min-height: 0;
- overflow-y: auto;
- overflow-x: hidden;
+ overflow: hidden;
display: flex;
flex-direction: column;
- gap: 8px;
- padding: 8px;
+ gap: 0;
+ padding: 0;
}
.ptd-right-body > .ptd-ob--fill {
flex: 1;
min-height: 0;
- margin: -8px;
+ margin: 0;
border: none;
border-radius: 0;
}
-.ptd-order-card { flex-shrink: 0; border: none; background: transparent; }
-.ptd-order-card .ptd-order-stack { padding: 0 4px 4px; }
+.ptd-order-card {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow-y: auto;
+ border: none;
+ background: transparent;
+}
+.ptd-order-card .ptd-order-stack { padding: 0 4px 4px; flex: 1; }
.ptd-order-card .top-panel { padding: 4px 2px; background: transparent; }
.ptd-order-card .top-field { margin-bottom: 4px; }
.ptd-order-card .top-submit--buy { background: #22c55e !important; border-color: #22c55e !important; }
@@ -397,6 +611,23 @@
border: none;
background: transparent;
}
+.ptd-history-card--tab {
+ flex: 1;
+ min-height: 0;
+ overflow: hidden;
+ margin: 0;
+ padding: 0;
+}
+.ptd-history-card--tab .ptd-table {
+ flex: 1;
+ min-height: 0;
+ display: block;
+ overflow-y: auto;
+}
+.bps-right-body > .ptd-right-body > .ptd-history-card--tab {
+ margin: 0;
+ padding: 0;
+}
.ptd-history-card .ptd-table-wrap,
.ptd-history-card .ptd-table {
flex: 1;
@@ -425,16 +656,3 @@
}
.ptd-status--done { background: rgba(34,197,94,0.15); color: #22c55e; }
-.ptd-page .up { color: #22c55e; }
-.ptd-page .down { color: #ef4444; }
-
-@media (max-width: 1200px) {
- .ptd-page { overflow-y: auto; }
- .ptd-main {
- grid-template-columns: 1fr;
- overflow: visible;
- min-height: auto;
- }
- .ptd-metrics-grid { grid-template-columns: repeat(2, 1fr); }
- .ptd-col--left { overflow: visible; }
-}
diff --git a/frontend/src/styles/splashScreen.css b/frontend/src/styles/splashScreen.css
new file mode 100644
index 0000000..7d96e52
--- /dev/null
+++ b/frontend/src/styles/splashScreen.css
@@ -0,0 +1,252 @@
+/* GoldenChart splash — glassmorphism login + 은은한 차트 배경 */
+
+.splash {
+ position: fixed;
+ inset: 0;
+ z-index: 10000;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ background: #0a0c10;
+ color: #e8eaed;
+ overflow: hidden;
+ font-family: var(--font, 'Noto Sans KR', 'Inter', sans-serif);
+}
+
+.splash-bg {
+ position: absolute;
+ inset: 0;
+ z-index: 0;
+ background:
+ radial-gradient(ellipse 70% 50% at 78% 35%, rgba(45, 212, 191, 0.07), transparent 58%),
+ linear-gradient(165deg, #0c0e13 0%, #0a0c10 55%, #08090d 100%);
+ pointer-events: none;
+}
+
+/* 전체 화면 차트 — 우상향 캔들 + 일목 구름 */
+.splash-chart-layer {
+ position: absolute;
+ inset: -4% -6% -4% -2%;
+ z-index: 0;
+ overflow: hidden;
+ pointer-events: none;
+ transform: translate(3%, -4%) scale(1.08);
+ transform-origin: 75% 35%;
+}
+
+.splash-chart-bg {
+ display: block;
+ width: 100%;
+ height: 100%;
+ opacity: 0.62;
+}
+
+.splash-chart-fade {
+ position: absolute;
+ inset: 0;
+ z-index: 1;
+ pointer-events: none;
+ background:
+ radial-gradient(ellipse 42% 38% at 50% 52%, rgba(10, 12, 16, 0.55) 0%, rgba(10, 12, 16, 0.82) 72%),
+ linear-gradient(125deg, rgba(10, 12, 16, 0.72) 0%, rgba(10, 12, 16, 0.12) 38%, rgba(10, 12, 16, 0.45) 100%),
+ linear-gradient(to top, rgba(10, 12, 16, 0.35) 0%, transparent 28%);
+}
+
+.splash-chart-grid {
+ stroke: rgba(255, 255, 255, 0.05);
+ stroke-width: 1;
+}
+
+.splash-chart-kumo {
+ opacity: 0.85;
+}
+
+.splash-ichi {
+ fill: none;
+ stroke-linecap: round;
+ stroke-linejoin: round;
+}
+.splash-ichi--tenkan {
+ stroke: rgba(56, 189, 248, 0.35);
+ stroke-width: 1.4;
+}
+.splash-ichi--kijun {
+ stroke: rgba(244, 114, 182, 0.32);
+ stroke-width: 1.4;
+}
+.splash-ichi--senkou-a {
+ stroke: rgba(34, 197, 94, 0.28);
+ stroke-width: 1;
+ stroke-dasharray: 4 4;
+}
+.splash-ichi--senkou-b {
+ stroke: rgba(239, 68, 68, 0.25);
+ stroke-width: 1;
+ stroke-dasharray: 4 4;
+}
+
+.splash-candle-wick {
+ stroke: rgba(203, 213, 225, 0.45);
+ stroke-width: 1.3;
+}
+.splash-candle-up {
+ fill: rgba(45, 212, 191, 0.55);
+ stroke: rgba(94, 234, 212, 0.75);
+ stroke-width: 1;
+}
+.splash-candle-down {
+ fill: rgba(100, 116, 139, 0.5);
+ stroke: rgba(148, 163, 184, 0.45);
+ stroke-width: 1;
+}
+
+.splash-chart-volume {
+ opacity: 0.35;
+}
+.splash-vol-bar {
+ fill: rgba(100, 116, 139, 0.35);
+}
+
+.splash-center {
+ position: relative;
+ z-index: 2;
+ display: flex;
+ flex-direction: column;
+ align-items: center;
+ gap: 18px;
+ width: min(92vw, 380px);
+ padding: 24px 16px;
+}
+
+.splash-glass {
+ width: 100%;
+ padding: 36px 32px 28px;
+ border-radius: 20px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(12, 14, 18, 0.55);
+ backdrop-filter: blur(20px);
+ -webkit-backdrop-filter: blur(20px);
+ box-shadow:
+ 0 24px 64px rgba(0, 0, 0, 0.5),
+ inset 0 1px 0 rgba(255, 255, 255, 0.06);
+}
+
+.splash-brand {
+ margin: 0 0 28px;
+ text-align: center;
+ font-size: 2rem;
+ font-weight: 800;
+ letter-spacing: -0.02em;
+ line-height: 1.1;
+ background: linear-gradient(180deg, #f9e29c 0%, #d4af37 42%, #b8860b 100%);
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ filter: drop-shadow(0 2px 12px rgba(212, 175, 55, 0.25));
+}
+
+.splash-form {
+ display: flex;
+ flex-direction: column;
+ gap: 12px;
+}
+
+.splash-input {
+ width: 100%;
+ box-sizing: border-box;
+ padding: 13px 14px;
+ border-radius: 8px;
+ border: 1px solid rgba(255, 255, 255, 0.1);
+ background: rgba(0, 0, 0, 0.35);
+ color: #f3f4f6;
+ font-size: 0.95rem;
+ transition: border-color 0.15s, box-shadow 0.15s;
+}
+
+.splash-input::placeholder {
+ color: rgba(255, 255, 255, 0.35);
+}
+
+.splash-input:focus {
+ outline: none;
+ border-color: rgba(212, 175, 55, 0.45);
+ box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.12);
+}
+
+.splash-input:disabled {
+ opacity: 0.6;
+}
+
+.splash-error {
+ margin: 0;
+ font-size: 0.78rem;
+ color: #f87171;
+ text-align: center;
+}
+
+.splash-login-btn {
+ width: 100%;
+ margin-top: 4px;
+ padding: 13px 16px;
+ border: none;
+ border-radius: 8px;
+ cursor: pointer;
+ font-size: 1rem;
+ font-weight: 800;
+ color: #1a1408;
+ background: linear-gradient(180deg, #f9e29c 0%, #d4af37 48%, #c9a227 100%);
+ box-shadow: 0 4px 16px rgba(201, 162, 39, 0.35);
+ transition: transform 0.12s, filter 0.12s, box-shadow 0.12s;
+}
+
+.splash-login-btn:hover:not(:disabled) {
+ filter: brightness(1.05);
+ box-shadow: 0 6px 20px rgba(201, 162, 39, 0.45);
+}
+
+.splash-login-btn:active:not(:disabled) {
+ transform: translateY(1px);
+}
+
+.splash-login-btn:disabled {
+ opacity: 0.65;
+ cursor: not-allowed;
+}
+
+.splash-version {
+ margin: 22px 0 0;
+ text-align: center;
+ font-size: 0.68rem;
+ color: rgba(255, 255, 255, 0.32);
+ letter-spacing: 0.01em;
+}
+
+.splash-guest-link {
+ border: none;
+ background: transparent;
+ color: rgba(255, 255, 255, 0.38);
+ font-size: 0.78rem;
+ cursor: pointer;
+ padding: 4px 8px;
+ transition: color 0.15s;
+}
+
+.splash-guest-link:hover:not(:disabled) {
+ color: rgba(249, 226, 156, 0.85);
+}
+
+.splash-guest-link:disabled {
+ opacity: 0.5;
+ cursor: not-allowed;
+}
+
+@media (max-width: 420px) {
+ .splash-glass {
+ padding: 28px 22px 22px;
+ border-radius: 16px;
+ }
+ .splash-brand {
+ font-size: 1.65rem;
+ margin-bottom: 22px;
+ }
+}
diff --git a/frontend/src/styles/strategyEditor.css b/frontend/src/styles/strategyEditor.css
index ff573c8..ad295eb 100644
--- a/frontend/src/styles/strategyEditor.css
+++ b/frontend/src/styles/strategyEditor.css
@@ -137,6 +137,28 @@
min-height: 0;
display: flex;
min-width: 0;
+ align-items: stretch;
+ padding-bottom: 10px;
+ box-sizing: border-box;
+}
+
+.se-main {
+ flex: 1;
+ min-width: 0;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ padding: 10px 10px 0 0;
+ box-sizing: border-box;
+}
+
+.se-main-row {
+ flex: 1;
+ min-height: 0;
+ min-width: 0;
+ display: flex;
+ gap: 10px;
+ overflow: hidden;
}
.se-splitter {
@@ -157,7 +179,7 @@
}
.se-splitter--h {
height: 5px;
- margin: 0 10px;
+ margin: 0 8px;
border-radius: 3px;
cursor: row-resize;
flex-shrink: 0;
@@ -170,8 +192,9 @@
display: flex;
flex-direction: column;
min-height: 0;
+ align-self: stretch;
background: var(--se-panel-shell-bg);
- padding: 10px;
+ padding: 10px 10px 0;
}
.se-strat-panel {
@@ -273,7 +296,7 @@
.se-strat-name {
flex: 1;
min-width: 0;
- font-size: 0.82rem;
+ font-size: 0.92rem;
font-weight: 700;
color: var(--se-text);
white-space: nowrap;
@@ -295,11 +318,11 @@
display: flex;
align-items: center;
justify-content: center;
- width: 26px;
- height: 26px;
+ width: 32px;
+ height: 32px;
padding: 0;
border: none;
- border-radius: 6px;
+ border-radius: 7px;
background: transparent;
color: var(--se-text-dim);
cursor: pointer;
@@ -350,7 +373,20 @@
display: flex;
flex-direction: column;
min-height: 0;
- background: var(--se-center-bg);
+ align-self: stretch;
+ background: transparent;
+}
+
+.se-center-panel {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ border-radius: 14px;
+ background: var(--se-panel-card-bg);
+ border: 1px solid var(--se-panel-card-border);
+ box-shadow: var(--se-panel-card-shadow), inset 0 1px 0 color-mix(in srgb, var(--se-text) 4%, transparent);
+ overflow: hidden;
}
.se-center-work {
@@ -432,10 +468,48 @@
display: flex;
gap: 10px;
align-items: center;
+ flex-wrap: wrap;
}
.se-canvas-toolbar-title { font-size: 0.72rem; font-weight: 700; color: var(--se-toolbar-title); }
.se-canvas-toolbar-hint { font-size: 0.65rem; color: var(--se-text-muted); }
+.se-canvas-interaction {
+ display: inline-flex;
+ border: 1px solid var(--se-border);
+ border-radius: 6px;
+ overflow: hidden;
+ flex-shrink: 0;
+}
+.se-canvas-interaction-btn {
+ border: none;
+ background: transparent;
+ color: var(--se-text-muted);
+ font-size: 0.65rem;
+ font-weight: 700;
+ padding: 4px 10px;
+ cursor: pointer;
+ transition: background 0.12s, color 0.12s;
+}
+.se-canvas-interaction-btn:hover {
+ background: color-mix(in srgb, var(--se-accent) 10%, transparent);
+ color: var(--se-text);
+}
+.se-canvas-interaction-btn--on {
+ background: color-mix(in srgb, var(--se-accent) 18%, transparent);
+ color: var(--se-tab-active);
+ box-shadow: inset 0 -2px 0 var(--se-tab-active);
+}
+
+.se-canvas-wrap--pan .react-flow__pane {
+ cursor: grab;
+}
+.se-canvas-wrap--pan .react-flow__pane:active {
+ cursor: grabbing;
+}
+.se-canvas-wrap--select .react-flow__pane {
+ cursor: default;
+}
+
.se-canvas-empty {
background: var(--se-toolbar-bg);
border: 1px dashed var(--se-border);
@@ -764,9 +838,10 @@
flex-shrink: 0;
display: flex;
flex-direction: column;
- margin: 0 10px 10px;
- border: 1px solid var(--se-terminal-border);
- border-radius: 10px;
+ margin: 0;
+ border: none;
+ border-top: 1px solid var(--se-terminal-border);
+ border-radius: 0;
background: var(--se-terminal-bg);
overflow: hidden;
min-height: 88px;
@@ -834,11 +909,23 @@
.se-right {
flex: 0 0 260px;
width: 260px;
- border-left: 1px solid var(--se-border);
display: flex;
flex-direction: column;
min-height: 0;
- background: var(--se-palette-bg);
+ align-self: stretch;
+ background: transparent;
+ overflow: hidden;
+}
+
+.se-palette-panel {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ border-radius: 14px;
+ background: var(--se-panel-card-bg);
+ border: 1px solid var(--se-panel-card-border);
+ box-shadow: var(--se-panel-card-shadow), inset 0 1px 0 color-mix(in srgb, var(--se-text) 4%, transparent);
overflow: hidden;
}
@@ -860,6 +947,14 @@
box-shadow: inset 0 -2px 0 var(--se-tab-active);
}
+.se-right-body {
+ flex: 1;
+ min-height: 0;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+}
+
.se-palette-search {
margin: 10px 10px 6px;
padding: 8px 10px;
@@ -907,12 +1002,20 @@
transform: translateY(-2px);
}
+.se-palette-card--selected {
+ outline: 2px solid var(--se-accent);
+ outline-offset: 1px;
+}
+
/* ── 논리 연산: AND / OR / NOT ── */
.se-palette-card--logic-and {
border-color: color-mix(in srgb, var(--se-palette-logic-and-accent) 42%, transparent);
background: var(--se-palette-logic-and-bg);
box-shadow: inset 3px 0 0 var(--se-palette-logic-and-accent);
}
+.se-palette-card--selected.se-palette-card--logic-and {
+ outline-color: var(--se-palette-logic-and-accent);
+}
.se-palette-card--logic-and .se-palette-card-icon {
background: color-mix(in srgb, var(--se-palette-logic-and-accent) 22%, transparent);
color: var(--se-palette-logic-and-accent);
diff --git a/frontend/src/utils/strategyCanvasInteractionStorage.ts b/frontend/src/utils/strategyCanvasInteractionStorage.ts
new file mode 100644
index 0000000..5b23182
--- /dev/null
+++ b/frontend/src/utils/strategyCanvasInteractionStorage.ts
@@ -0,0 +1,20 @@
+export type StrategyCanvasInteractionMode = 'pan' | 'select';
+
+const STORAGE_KEY = 'gc_se_canvas_interaction';
+
+export function loadCanvasInteractionMode(): StrategyCanvasInteractionMode {
+ try {
+ const raw = localStorage.getItem(STORAGE_KEY);
+ return raw === 'pan' ? 'pan' : 'select';
+ } catch {
+ return 'select';
+ }
+}
+
+export function saveCanvasInteractionMode(mode: StrategyCanvasInteractionMode): void {
+ try {
+ localStorage.setItem(STORAGE_KEY, mode);
+ } catch {
+ /* ignore */
+ }
+}