.chart-workspace{min-width:0}.cw-notice{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:14px 16px;margin-bottom:12px;border:1px solid var(--line);border-radius:10px;background:var(--accent-soft)}
.cw-notice p{margin:4px 0 0;color:var(--muted)}.cw-preview-toggle{display:flex;align-items:center;gap:8px;white-space:nowrap;cursor:pointer}.cw-preview-toggle input{width:16px;height:16px}
.cw-layout{display:grid;grid-template-columns:220px minmax(0,1fr);gap:12px;align-items:start}.cw-sidebar h2{margin:0 0 18px}.cw-caption{color:var(--muted)}.cw-sidebar>label{display:block;margin-bottom:6px}.cw-sidebar input{width:100%;padding:9px}.cw-results{display:grid;gap:5px;margin-top:12px}.cw-results button{display:flex;flex-direction:column;gap:5px;align-items:flex-start;width:100%;padding:12px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--ink);text-align:left;cursor:pointer}.cw-results button.selected{border-color:var(--blue);background:var(--accent-soft)}.cw-results button:hover{background:var(--soft)}
.cw-main{min-width:0}.cw-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:5px 3px 16px}.cw-heading h2{margin:3px 0}.cw-heading p{margin:0}.cw-price{text-align:right;display:grid;gap:4px}.cw-toolbar{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:10px 0;border-block:1px solid var(--line)}.cw-intervals,.cw-indicators{display:flex;gap:4px;flex-wrap:wrap}
.cw-toolbar button,.cw-review button{min-height:34px;padding:7px 10px;border:1px solid var(--line);border-radius:7px;background:var(--soft);color:var(--muted);font:inherit;cursor:pointer}.cw-toolbar button[aria-pressed="true"],.cw-review button[aria-pressed="true"]{color:var(--blue);border-color:var(--blue);background:var(--accent-soft)}.cw-status-line{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 3px}.cw-status-line>span:first-child{color:var(--blue)}
.cw-stage{position:relative}.cw-chart{height:440px;width:100%;min-width:0}.cw-watermark{position:absolute;top:35%;left:0;right:0;text-align:center;pointer-events:none;color:var(--muted);opacity:.45;z-index:2}.cw-empty{position:absolute;inset:0;z-index:3;display:flex;align-items:center;justify-content:center;flex-direction:column;padding:24px;text-align:center;background:var(--panel);border:1px dashed var(--line);border-radius:8px}.cw-empty p{max-width:420px;color:var(--muted);line-height:1.6}.cw-ohlcv{min-height:36px;padding:10px 3px;white-space:normal;line-height:1.7;border-bottom:1px solid var(--line);font-variant-numeric:tabular-nums}.cw-footer{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 3px}.cw-footer a{color:var(--muted);text-decoration:none}.cw-footer a:hover{text-decoration:underline}.cw-review{margin-top:8px;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--soft)}.cw-review summary{cursor:pointer}.cw-review>div{display:flex;flex-wrap:wrap;gap:6px}.cw-review p{color:var(--muted)}
:is(body,#scanner-panel-theme) .cw-price>strong{font-size:20px!important}:is(body,#scanner-panel-theme) .cw-watermark{font-size:20px!important}:is(body,#scanner-panel-theme) .cw-results small{font-size:12px!important}
@media(max-width:1000px){.cw-layout{grid-template-columns:180px minmax(0,1fr)}.cw-notice{align-items:flex-start;flex-direction:column}.cw-toolbar{gap:8px}}
@media(max-width:700px){.cw-layout{grid-template-columns:minmax(0,1fr)}.cw-results{grid-template-columns:repeat(3,minmax(0,1fr))}.cw-results button{padding:8px;overflow-wrap:anywhere}.cw-chart{height:360px}.cw-toolbar button,.cw-review button{min-height:44px}.cw-preview-toggle{white-space:normal}.cw-price{flex:none}.cw-stage{max-width:100%;overflow:hidden}:is(body,#scanner-panel-theme) .cw-watermark{font-size:16px!important}}

/* The chart alone determines the row height. Search results cannot enlarge it. */
.cw-layout{position:relative;--cw-sidebar-width:220px}
.cw-layout>.cw-main{grid-column:2;grid-row:1}
.cw-layout>.cw-sidebar{position:absolute;inset:0 auto 0 0;width:var(--cw-sidebar-width);box-sizing:border-box;display:flex;flex-direction:column;min-height:0;min-width:0;overflow:hidden}
.cw-sidebar>h2,.cw-sidebar>label,.cw-sidebar>input,.cw-sidebar>.cw-caption{flex-shrink:0}
.cw-sidebar>.cw-results{flex:1 1 0px;min-height:0;height:0;overflow-y:scroll;overflow-x:hidden;align-content:start;scrollbar-gutter:stable;scrollbar-width:thin;scrollbar-color:var(--muted) var(--soft)}
.cw-results button{overflow-wrap:anywhere}
.cw-results:focus-visible{outline:2px solid var(--blue);outline-offset:-2px}
@media(max-width:1000px){.cw-layout{--cw-sidebar-width:180px}}
@media(max-width:700px){.cw-layout>.cw-sidebar{position:static;inset:auto;width:auto}.cw-layout>.cw-main{grid-column:1;grid-row:auto}.cw-sidebar>.cw-results{flex:none;height:auto;max-height:240px;grid-template-columns:minmax(0,1fr)}}
