.thta-rs-chart{
  --thta-rs-red:#f23645;
  --thta-rs-blue:#2962ff;
  --thta-rs-green:#089981;
  --thta-rs-soft-blue:#eef4ff;
}
.thta-rs-selector-row{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin:-10px 0 14px;
}
.thta-rs-symbol-field{
  display:grid;
  gap:6px;
  min-width:min(420px,100%);
}
.thta-rs-symbol-field>span,
.thta-rs-base-info>span{
  color:var(--thta-muted);
  font-size:12px;
  font-weight:700;
}
.thta-rs-symbol-field input{
  width:100%;
  min-height:42px;
  padding:8px 12px;
  border:1px solid var(--thta-border);
  border-radius:10px;
  background:#fff;
  color:var(--thta-text);
  font:inherit;
  font-size:14px;
  box-shadow:0 2px 8px rgba(15,23,42,.03);
}
.thta-rs-symbol-field input:focus{
  border-color:var(--thta-accent);
  outline:3px solid rgba(37,99,235,.10);
}
.thta-rs-base-info{
  display:flex;
  align-items:baseline;
  gap:8px;
  min-height:42px;
  padding:10px 14px;
  border:1px solid var(--thta-border);
  border-radius:10px;
  background:#fff;
  white-space:nowrap;
}
.thta-rs-base-info strong{
  color:var(--thta-accent);
  font-size:14px;
}
.thta-rs-toolbar{
  align-items:center;
}
.thta-rs-timeframe-buttons{
  display:flex;
  align-items:center;
  gap:4px;
  padding:4px;
  border:1px solid var(--thta-border);
  border-radius:10px;
  background:var(--thta-card);
}
.thta-rs-timeframe-buttons button{
  appearance:none;
  min-width:74px;
  padding:8px 13px;
  border:0;
  border-radius:7px;
  background:transparent;
  color:var(--thta-text);
  font:inherit;
  font-size:13px;
  font-weight:700;
  cursor:pointer;
}
.thta-rs-timeframe-buttons button:hover,
.thta-rs-timeframe-buttons button.is-active{
  background:var(--thta-soft);
  color:var(--thta-accent);
}
.thta-rs-status{
  min-height:18px;
  margin:-4px 0 10px;
}
.thta-rs-status:empty{display:none}
.thta-rs-status.is-loading{color:var(--thta-accent)}
.thta-rs-status.is-error{color:#b91c1c}
.thta-rs-status.is-success{color:#047857}
.thta-rs-panel .thta-panel-head{
  min-height:32px;
}
.thta-rs-line-chart{
  height:220px;
}
.thta-rs-momentum-chart{
  height:205px;
}
.thta-rs-chart .thta-panel-title-line{
  display:flex;
  align-items:baseline;
  gap:7px;
  min-width:0;
  flex-wrap:wrap;
}
.thta-rs-chart .thta-panel-readout{
  font-variant-numeric:tabular-nums;
}
.thta-rs-workspace:fullscreen{
  background:var(--thta-bg);
  overflow:auto;
  padding:20px;
  box-sizing:border-box;
}
.thta-rs-inline-legend{
  display:inline-flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  color:var(--thta-muted);
  font-size:11px;
  font-variant-numeric:tabular-nums;
}
.thta-rs-legend-item{
  display:inline-flex;
  align-items:center;
  gap:5px;
  white-space:nowrap;
}
.thta-rs-legend-swatch{
  display:inline-block;
  width:16px;
  height:0;
  border-top:2px solid currentColor;
}
.thta-rs-legend-swatch.is-rs{color:var(--thta-rs-red)}
.thta-rs-legend-swatch.is-ma{color:var(--thta-rs-blue)}
@media(max-width:780px){
  .thta-rs-selector-row{
    align-items:stretch;
    flex-direction:column;
    margin-top:0;
  }
  .thta-rs-symbol-field{min-width:0;width:100%}
  .thta-rs-base-info{align-self:flex-start}
  .thta-rs-toolbar{
    gap:10px;
  }
  .thta-rs-timeframe-buttons{
    max-width:100%;
    overflow-x:auto;
  }
  .thta-rs-timeframe-buttons button{min-width:68px}
  .thta-rs-line-chart{height:190px}
  .thta-rs-momentum-chart{height:180px}
}
