.mode-tabs{display:flex;gap:10px;flex-wrap:wrap;margin:24px 0}.mode-tabs button[aria-selected=true],.mode-tabs button.active{background:#2457a0;border-color:#78a7ff}.controls{display:flex;gap:18px;flex-wrap:wrap;padding:18px 0}.controls label{display:flex;flex-direction:column;gap:8px;font-size:14px}.controls input,.controls select{min-height:44px;width:160px}.controls input[type=range]{width:210px}.pattern-preview{height:110px;margin:12px 0;width:100%;background:#121925;border-radius:6px}.strategy .card-title h3{margin:0;font-size:21px}.pattern-card-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.import-button{border:1px solid #34383f;padding:10px;cursor:pointer;display:inline-flex;align-items:center}.import-button input{width:190px;font-size:12px}.result-layout{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:20px}.result-layout .table-wrap{max-height:440px}.stock-chart{height:350px;background:#101721}.chart-readout{height:48px;line-height:24px;font-variant-numeric:tabular-nums;font-size:13px}.result-layout section{min-width:0}#pattern-results{width:94vw;max-width:1400px}#draw-dialog{width:min(700px,92vw)}#draw-form>label{display:block;margin:20px 0 10px}#draw-name,#draw-description{width:100%;box-sizing:border-box}#draw-description{height:90px}#draw-host{background:#1e293b;height:290px;border:1px solid #34383f;border-radius:6px;margin:12px 0}#draw-canvas{width:100%;height:100%;touch-action:none;display:block;cursor:crosshair}#draw-canvas:focus{outline:2px solid #78a7ff}#draw-host:fullscreen{height:100vh;width:100vw;padding:0;background:#1e293b}.draw-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}.primary{background:#2457a0;border-color:#78a7ff}#draw-status,#scan-status{min-height:24px}#pattern-cards .strategy{padding:20px}#pattern-cards details{font-size:14px;line-height:1.7}#pattern-cards .condition{min-height:38px}#pattern-results [aria-pressed=true]{color:#f4cc65}.result-layout td button{min-height:44px}#pattern-stock-search{width:180px}.result-layout th{white-space:normal}header nav{flex-wrap:wrap}h1{overflow-wrap:anywhere}@media(max-width:760px){.result-layout{grid-template-columns:1fr}.controls{gap:12px}.controls label{flex:1;min-width:130px}.controls input,.controls select{width:100%;box-sizing:border-box}.intro{display:block}.download{display:inline-block;margin:16px 0}.combine{flex-wrap:wrap}#draw-dialog{padding:18px}.chart-readout{height:72px}header{display:block}.stock-chart{height:300px}main{padding:16px}}
[hidden]{display:none!important}
#draw-dialog .dialog-head h2{font-size:21px;margin:4px 0}#draw-form>label{margin:10px 0 5px}#draw-description{height:55px}#draw-form .controls{padding:10px 0;gap:10px}#draw-form .controls input,#draw-form .controls select{min-height:36px}#draw-host{height:220px}#draw-form>p.muted{font-size:13px;line-height:1.4;margin:6px 0}#draw-status{font-size:13px;margin:8px 0}.draw-actions button{font-size:14px}#draw-host:fullscreen{height:100vh}
#draw-dialog.drawing-expanded{width:96vw;max-width:1600px}#draw-dialog.drawing-expanded #draw-form>label,#draw-dialog.drawing-expanded #draw-form>input,#draw-dialog.drawing-expanded #draw-form>textarea,#draw-dialog.drawing-expanded #draw-form>.controls,#draw-dialog.drawing-expanded #draw-form>p.muted{display:none}#draw-dialog.drawing-expanded #draw-host{height:calc(90vh - 170px)}#draw-dialog:fullscreen{background:#0b0d11;padding:20px;width:100vw;height:100vh;max-height:none}
#draw-dialog{font-size:14px;line-height:1.4}#draw-form>label{margin:8px 0 4px}#draw-name{height:38px}#draw-description{height:45px}#draw-form .controls{padding:8px 0}#draw-form .controls input,#draw-form .controls select{min-height:32px}#draw-host{height:180px}#draw-form>p.muted{font-size:12px}#draw-dialog .draw-actions{gap:6px}#draw-dialog .draw-actions button{padding:7px 10px}
