:root {
  --bg: #0d1117;
  --panel: #161b22;
  --border: #30363d;
  --text: #e6edf3;
  --muted: #8b949e;
  --accent: #58a6ff;
  --green: #3fb950;
  --red: #f85149;
  --purple: #a371f7;
}

* {
  box-sizing: border-box;
}

body.live-coin-page {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.live-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--panel);
  font-size: 12px;
}

.live-nav a {
  color: var(--accent);
  text-decoration: none;
}

.live-nav a:hover {
  text-decoration: underline;
}

.live-nav .sep {
  color: var(--muted);
  opacity: 0.5;
}

.live-nav .active {
  color: var(--text);
  font-weight: 600;
}

.live-header {
  padding: 16px 20px 8px;
}

.live-header h1 {
  margin: 0 0 4px;
  font-size: 1.25rem;
}

.live-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.live-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 16px;
  padding: 16px 20px 40px;
  max-width: 1400px;
}

@media (max-width: 1100px) {
  .live-layout {
    grid-template-columns: 1fr;
  }
}

.live-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
}

.live-panel h2 {
  margin: 0 0 12px;
  font-size: 0.9rem;
  font-weight: 600;
}

.live-chart-wrap {
  height: 420px;
  position: relative;
}

#live-chart {
  width: 100%;
  height: 100%;
  display: block;
}

.live-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 17, 23, 0.9);
  font-size: 13px;
  color: var(--muted);
}

.live-legend {
  margin-top: 10px;
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
}

.live-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.live-price {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.live-signal {
  padding: 12px;
  border-radius: 8px;
  background: #0d1117;
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.live-signal.kauf {
  border-color: rgba(63, 185, 80, 0.5);
  color: var(--green);
}

.live-signal.verkauf {
  border-color: rgba(248, 81, 73, 0.5);
  color: var(--red);
}

.live-signal.warten {
  color: var(--muted);
}

.live-file-path {
  margin-top: 8px;
  font-size: 11px;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  line-height: 1.5;
}

.live-file-path code {
  color: var(--accent);
}

.settings-grid {
  display: grid;
  gap: 10px;
}

.settings-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 11px;
  color: var(--muted);
}

.settings-grid input[type="number"] {
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px 10px;
  color: var(--text);
  font-size: 13px;
}

.settings-grid input[type="checkbox"] {
  margin-right: 6px;
}

.settings-row-check {
  display: flex;
  align-items: center;
  font-size: 12px;
  color: var(--text);
}

.btn-save {
  margin-top: 8px;
  background: rgba(63, 185, 80, 0.15);
  border: 1px solid rgba(63, 185, 80, 0.4);
  color: var(--green);
  padding: 8px 14px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}

.btn-save:hover {
  background: rgba(63, 185, 80, 0.25);
}

.live-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 8px;
}

.signal-json-preview {
  margin-top: 8px;
  padding: 10px;
  background: #0d1117;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 10px;
  font-family: "JetBrains Mono", monospace;
  color: var(--muted);
  max-height: 160px;
  overflow: auto;
  white-space: pre-wrap;
}

.ob-standalone .ob-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.ob-standalone .ob-header h3 {
  margin: 0;
  font-size: 13px;
}

.ob-standalone .ob-subtitle {
  font-size: 10px;
  color: var(--muted);
}

.ob-standalone .ob-mid {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 8px;
}

.ob-standalone .ob-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.ob-standalone .ob-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.ob-standalone .ob-card-header {
  display: flex;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 10px;
  background: #0d1117;
}

.ob-standalone .ob-card.buy .ob-card-header {
  color: var(--green);
}

.ob-standalone .ob-card.sell .ob-card-header {
  color: var(--red);
}

.ob-standalone .ob-table {
  width: 100%;
  font-size: 10px;
  border-collapse: collapse;
}

.ob-standalone .ob-table th,
.ob-standalone .ob-table td {
  padding: 3px 6px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.ob-standalone .ob-table th:first-child,
.ob-standalone .ob-table td:first-child {
  text-align: left;
}
