.sta-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sta-symbol-picker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sta-symbol-picker > span {
  font-size: 12px;
  color: var(--fg-muted, #8b949e);
  white-space: nowrap;
}

.sta-symbol-picker select,
.sta-symbol-select {
  min-width: 148px;
  width: 148px;
  max-width: 100%;
  padding: 7px 28px 7px 10px;
  border-radius: var(--radius, 6px);
  border: 1px solid var(--border-default, rgba(255, 255, 255, 0.12));
  background-color: var(--bg-subtle, #161b22);
  color: var(--fg-default, #e6edf3);
  font: inherit;
  font-size: 12px;
  line-height: 1.3;
  cursor: pointer;
  color-scheme: dark;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238b949e' d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  box-sizing: border-box;
}

.sta-symbol-picker select:hover,
.sta-symbol-select:hover {
  border-color: var(--fg-subtle, #6e7681);
}

.sta-symbol-picker select:focus,
.sta-symbol-select:focus {
  outline: none;
  border-color: var(--accent-emphasis, #1f6feb);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent, #58a6ff) 25%, transparent);
}

.sta-symbol-picker select option,
.sta-symbol-select option {
  background-color: var(--bg-subtle, #161b22);
  color: var(--fg-default, #e6edf3);
}

.sta-meta {
  margin-left: auto;
  font-size: 13px;
  opacity: 0.75;
}

.sta-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  padding: 20px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: var(--peps-surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
}

.sta-kicker {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.65;
}

.sta-decision {
  display: inline-block;
  margin: 8px 0;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}

.sta-decision.is-buy { background: rgba(34, 197, 94, 0.15); color: #22c55e; }
.sta-decision.is-sell { background: rgba(239, 68, 68, 0.15); color: #ef4444; }
.sta-decision.is-hold { background: rgba(234, 179, 8, 0.15); color: #eab308; }

.sta-hero-stats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 160px;
}

.sta-stat {
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.15);
}

.sta-stat span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}

.sta-mtf-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

/* Chart panel */
.sta-chart-panel {
  margin-bottom: 16px;
}

.sta-chart-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.sta-chart-head h2 {
  margin: 0;
  font-size: 1rem;
}

.sta-chart-tf-tabs {
  display: inline-flex;
  gap: 6px;
}

.sta-chart-tf {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.12));
  background: rgba(0, 0, 0, 0.2);
  color: inherit;
  cursor: pointer;
  font-size: 12px;
}

.sta-chart-tf.is-active {
  border-color: var(--accent, #58a6ff);
  color: var(--accent, #58a6ff);
}

.sta-chart-hint {
  margin-left: auto;
  font-size: 11px;
  opacity: 0.65;
}

.sta-chart-wrap {
  display: block;
}

.sta-chart-stage {
  display: flex;
  align-items: stretch;
  min-height: 360px;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-subtle, var(--peps-surface-2, rgba(255, 255, 255, 0.04)));
  border: 1px solid var(--border-default, var(--peps-border, rgba(255, 255, 255, 0.08)));
}

.sta-chart-canvas {
  flex: 1;
  min-width: 0;
  min-height: 360px;
  border: none;
  border-radius: 0;
  background: transparent;
}

.sta-chart-levels {
  position: relative;
  width: 136px;
  flex-shrink: 0;
  min-height: 360px;
  align-self: stretch;
  background: var(--bg-canvas, #0d1117);
  border-left: 1px solid var(--border-default, var(--peps-border, rgba(255, 255, 255, 0.08)));
}

.sta-chart-level {
  position: absolute;
  left: 6px;
  right: 6px;
  display: flex;
  border-radius: 6px;
  background: var(--bg-muted, rgba(33, 38, 45, 0.95));
  overflow: hidden;
  transform: translateY(-50%);
  pointer-events: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.sta-chart-level-bar {
  width: 3px;
  flex-shrink: 0;
}

.sta-chart-level-body {
  padding: 5px 8px 5px 7px;
  min-width: 0;
  line-height: 1.25;
}

.sta-chart-level-label {
  font-size: 10px;
  color: var(--fg-muted, #8b949e);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sta-chart-level-price {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg-default, #e6edf3);
  font-family: var(--mono, ui-monospace, monospace);
}

.sta-chart-marker-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 11px;
  opacity: 0.75;
}

.sta-chart-marker-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sta-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.sta-dot.is-buy { background: #14b8a6; }
.sta-dot.is-entry { background: #3b82f6; }
.sta-dot.is-wait { background: #eab308; }
.sta-dot.is-sell { background: #ef4444; }

.sta-mtf-chip {
  flex: 1 1 100px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
  text-align: center;
}

.sta-mtf-chip span {
  display: block;
  font-size: 11px;
  opacity: 0.7;
}

.sta-mtf-chip.is-bullish { border-color: rgba(34, 197, 94, 0.35); }
.sta-mtf-chip.is-bearish { border-color: rgba(239, 68, 68, 0.35); }
.sta-mtf-chip.is-sideways { border-color: rgba(148, 163, 184, 0.35); }

.sta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.sta-panel {
  padding: 16px;
  border-radius: 12px;
  background: var(--peps-surface-2, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
}

.sta-panel-wide {
  grid-column: 1 / -1;
}

.sta-panel h2 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.sta-tf-card {
  padding: 12px;
  margin-bottom: 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
}

.sta-tf-card header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sta-score {
  font-weight: 700;
  font-family: var(--peps-mono, monospace);
}

.sta-signals {
  margin: 8px 0 0;
  font-size: 12px;
  opacity: 0.8;
}

.sta-kv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 4px 16px;
}

.sta-pattern-list {
  margin: 0 0 12px;
  padding-left: 18px;
}

.sta-levels-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.sta-btc-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.sta-btc-chip {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  font-size: 12px;
}

.sta-plan-action {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.sta-checklist {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
}

.sta-checklist li {
  padding: 4px 0;
}

.sta-checklist li.is-met {
  color: #22c55e;
}

.sta-explanation {
  line-height: 1.6;
  opacity: 0.92;
}

/* Explanation panel — structured blocks */
.sta-explain-panel {
  margin-top: 4px;
}

.sta-explain-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 16px;
  align-items: start;
}

.sta-explain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.sta-explain-block {
  padding: 14px 16px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.14);
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
}

.sta-explain-block h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.72;
}

.sta-explain-block p {
  margin: 0;
  line-height: 1.55;
  font-size: 14px;
}

.sta-explain-block.is-verdict {
  grid-column: 1 / -1;
  border-color: rgba(96, 165, 250, 0.35);
  background: rgba(96, 165, 250, 0.08);
}

.sta-explain-block.is-verdict p {
  font-size: 15px;
  font-weight: 500;
}

.sta-explain-block.is-action {
  border-color: rgba(234, 179, 8, 0.35);
}

.sta-explain-aside {
  position: sticky;
  top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.sta-explain-callout {
  padding: 14px 16px;
  border-radius: 10px;
  border-left: 3px solid var(--accent-emphasis, #60a5fa);
  background: rgba(0, 0, 0, 0.18);
}

.sta-explain-callout-label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.sta-explain-callout p {
  margin: 0;
  line-height: 1.55;
  font-size: 13px;
  font-style: italic;
  opacity: 0.9;
}

.sta-explain-kv {
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
}

.sta-mtf-conclusion {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--peps-border, rgba(255, 255, 255, 0.08));
  font-style: italic;
  opacity: 0.85;
}

.sta-empty {
  opacity: 0.7;
}

.sta-bias-bullish { color: #22c55e; }
.sta-bias-bearish { color: #ef4444; }

/* Tool guide */
.sta-tool > .tf-guide-box {
  margin-top: 16px;
}

.sta-tool .tf-guide-box {
  background: var(--bg-canvas, var(--peps-surface-2, rgba(255, 255, 255, 0.04)));
  border: 1px solid var(--border-default, var(--peps-border, rgba(255, 255, 255, 0.08)));
  border-left: 3px solid var(--accent-emphasis, #60a5fa);
  border-radius: var(--radius, 10px);
  padding: 12px 14px;
  font-size: 12px;
  color: var(--fg-muted, inherit);
}

.sta-tool .tf-guide-box summary {
  cursor: pointer;
  color: var(--fg-default, inherit);
  font-weight: 600;
  font-size: 13px;
  list-style: none;
}

.sta-tool .tf-guide-box summary::-webkit-details-marker {
  display: none;
}

.sta-tool .tf-guide-content {
  margin-top: 12px;
}

.sta-tool .tf-guide-intro {
  margin: 0 0 14px;
  line-height: 1.55;
  max-width: 90ch;
  opacity: 0.9;
}

.sta-tool .tf-guide-heading {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sta-tool .tf-guide-list {
  margin: 0;
  padding-left: 18px;
  line-height: 1.55;
}

.sta-tool .tf-guide-list li + li {
  margin-top: 6px;
}

.sta-tool .tf-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.sta-tool .tf-guide-block {
  min-width: 0;
}

@media (max-width: 900px) {
  .sta-explain-layout {
    grid-template-columns: 1fr;
  }
  .sta-explain-aside {
    position: static;
  }
  .sta-chart-levels {
    width: 112px;
  }
  .sta-chart-level-label {
    font-size: 9px;
  }
  .sta-chart-level-price {
    font-size: 11px;
  }
  .sta-chart-hint {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 720px) {
  .sta-hero {
    grid-template-columns: 1fr;
  }
  .sta-levels-grid {
    grid-template-columns: 1fr;
  }
}
