/* QNTSTACK Package Builder — 기존 Strategy Settings 디자인 기반 */
.strategy-topbar > [hidden], .working-strategy-status[hidden], .package-create-top-button[hidden] {display:none!important}
.package-create-top-button{margin-left:auto}
.package-editor{max-width:1050px;margin:0 auto;padding:12px 0 36px;display:grid;gap:18px;color:var(--text);font-size:var(--font-size)}
.package-editor-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}
.package-editor-heading h2{margin:7px 0;font-size:clamp(21px,2.5vw,27px);color:var(--text)}
.package-editor-heading p{margin:6px 0}
.package-editor-card{padding:20px;border:1px solid var(--border-soft);border-radius:14px;background:var(--panel);box-shadow:var(--shadow)}
.package-editor-card h3{margin:0 0 13px;color:var(--text);font-size:calc(var(--font-size)*1.1);font-weight:800}
.package-editor-card h3:before{content:"";display:inline-block;width:3px;height:14px;margin-right:9px;vertical-align:-2px;border-radius:3px;background:var(--accent)}
.package-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:14px}
.package-editor label{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--text);font-size:calc(var(--font-size)*.86);font-weight:600}
.package-editor input,.package-editor select,.package-editor textarea{width:100%;min-width:0;min-height:36px;padding:8px 10px;border:1px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;outline:none;color-scheme:light}
body.dark .package-editor input,body.dark .package-editor select,body.dark .package-editor textarea{color-scheme:dark}
.package-editor input:focus,.package-editor select:focus,.package-editor textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px var(--accent-soft)}
.package-editor textarea{min-height:100px;resize:vertical}
/* 기존 execution-tabs / execution-tab의 5열 배치, 선택 강조 재사용 */
.package-editor-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;padding:4px;margin:16px 0 10px;border-radius:10px;background:var(--panel-soft)}
.package-editor-tabs button{min-width:0;min-height:36px;padding:0 5px;border:0;border-radius:7px;background:transparent;color:var(--text-secondary);font-size:calc(var(--font-size)*.86);font-weight:700;cursor:pointer;white-space:nowrap}
.package-editor-tabs button:hover{color:var(--text)}
.package-editor-tabs button.active{background:var(--panel);color:var(--accent);box-shadow:0 1px 4px rgba(0,0,0,.08)}
#packageEditorTabContent{padding:12px 4px 4px}
.package-editor-slot{padding:12px;margin:0 0 10px;border:1px solid var(--border-soft);border-radius:11px;background:var(--panel-soft)}
.package-editor-slot .package-editor-grid{margin-bottom:0}
.package-editor-subsection{margin-top:16px;padding:14px;border:1px solid var(--border-soft);border-radius:11px;background:var(--panel-soft)}
.package-editor-subsection h4{display:flex;align-items:center;margin:0 0 12px;color:var(--text);font-size:calc(var(--font-size)*.86)}
.package-editor-subsection h4:before{content:"";width:3px;height:14px;margin-right:7px;border-radius:3px;background:var(--accent)}
#packageEditorAddSlot{min-height:34px;padding:0 12px;border:1px dashed var(--border);border-radius:8px;background:transparent;color:var(--text-secondary);font-size:calc(var(--font-size)*.86);font-weight:700}
#packageEditorAddSlot:hover{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.package-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.package-editor-footer button:disabled{opacity:.55;cursor:not-allowed}
/* 다크 모드: 기존 패널의 테두리와 보라색 외곽광에 맞춤 */
body.dark .package-editor-card{border-color:rgba(255,255,255,.10);box-shadow:0 0 0 1px rgba(159,149,221,.06),0 13px 35px rgba(0,0,0,.24),0 0 18px rgba(169,156,255,.05)}
body.dark .package-editor-slot,body.dark .package-editor-subsection{border-color:var(--border-soft)}
@media(max-width:768px){.package-editor{padding:6px 0 24px;gap:12px}.package-editor-card{padding:14px}.package-editor-grid{grid-template-columns:1fr;gap:10px}.package-editor-tabs{gap:2px}.package-editor-tabs button{font-size:11px;padding:0 2px;white-space:normal}.package-editor-footer{flex-direction:column;align-items:stretch}.package-editor-heading{align-items:center}}

/* 기존 Strategy Settings와 동일한 5열 전략 행 */
.package-editor .package-editor-pane[hidden]{display:none!important}
.package-editor .package-execution-row{grid-template-columns:24px minmax(0,1fr) 92px 92px 32px;gap:7px;align-items:center;margin-bottom:7px}
.package-editor .package-execution-row select{width:100%;min-width:0;height:36px;padding:0 9px;font-size:calc(var(--font-size)*.86);font-weight:400;box-shadow:none}
.package-editor .package-execution-row .execution-strategy-enabled{width:16px;min-height:16px;height:16px;padding:0;accent-color:var(--accent)}
.package-editor .package-execution-row .execution-strategy-delete{width:30px;min-height:30px;height:30px;padding:0;border:0;background:transparent;color:var(--text-muted);font-size:20px}
.package-editor .package-execution-row .execution-strategy-delete:hover:not(:disabled){color:var(--danger);background:var(--panel-soft)}
.package-editor .package-execution-row .execution-strategy-delete:disabled{visibility:hidden}
.package-editor .package-editor-row-head{display:grid;grid-template-columns:24px minmax(0,1fr) 92px 92px 32px;gap:7px;margin-bottom:7px;color:var(--text-muted);font-size:calc(var(--font-size)*.75);text-align:center}
.package-editor .package-editor-row-head span:nth-child(2){text-align:left;padding-left:9px}
.package-editor .package-editor-rows{display:grid;gap:2px}
.package-editor .execution-add-strategy{width:auto;min-height:32px;padding:0 11px}
.package-editor .execution-candle-select.candle-current{color:#d92d20;background:#fff2f0;border-color:#f4aaa4;font-weight:700}
.package-editor .execution-candle-select.candle-closed{color:#1769c2;background:#eef6ff;border-color:#9dc8f5;font-weight:700}
body.dark .package-editor .execution-candle-select.candle-current{color:#ff8a80;background:#351d20;border-color:#704047}
body.dark .package-editor .execution-candle-select.candle-closed{color:#7db9ff;background:#172a40;border-color:#31577e}
.package-editor .execution-pyramiding-row select{height:36px;min-height:36px;padding:0 9px;font-weight:400}
.package-editor .execution-pyramiding-row .execution-strategy-enabled{width:16px;min-height:16px;height:16px;padding:0}
@media(max-width:768px){.package-editor .package-execution-row,.package-editor .package-editor-row-head{grid-template-columns:20px minmax(0,1fr) 72px 72px 28px;gap:5px}.package-editor .package-execution-row select{padding:0 5px;font-size:calc(var(--font-size)*.79)}.package-editor .package-editor-row-head{font-size:10px}.package-editor .execution-pyramiding-row{grid-template-columns:20px minmax(0,1fr) 72px 95px;gap:5px}.package-editor .execution-pyramiding-row select{padding:0 4px;font-size:11px}}
