:root {
  --bg: #101820;
  --panel: #132a36;
  --ink: #f4f4ef;
  --accent: #f2aa4c;
  --good: #70e000;
  --bad: #ff595e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Hiragino Kaku Gothic ProN", sans-serif;
  background: radial-gradient(circle at 20% 20%, #1d3d4e, var(--bg) 50%);
  color: var(--ink);
}

.app {
  min-height: 100vh;
  display: grid;
  gap: 16px;
  place-items: center;
  padding: 16px;
}

.panel {
  width: min(800px, 100%);
  background: color-mix(in srgb, var(--panel) 88%, black);
  border: 1px solid #315668;
  border-radius: 10px;
  padding: 14px;
}

h1 {
  margin: 0 0 10px;
  font-size: 1.1rem;
}

.controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

button {
  border: 1px solid #3f6575;
  background: #1a3b4d;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  cursor: pointer;
}

button:hover {
  background: #205269;
}

.buttonLink {
  border: 1px solid #3f6575;
  background: #1a3b4d;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  display: inline-block;
}

.buttonLink:hover {
  background: #205269;
}

label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rangeControl {
  min-width: 220px;
  justify-content: space-between;
  padding: 6px 8px;
  border: 1px solid #315668;
  border-radius: 8px;
  background: #163342;
}

.rangeControl input[type="range"] {
  width: 110px;
}

.stats {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  font-size: 0.95rem;
}

.modelStats {
  margin-top: 10px;
  padding: 8px 10px;
  border: 1px solid #315668;
  border-radius: 8px;
  background: #102a36;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 6px;
  font-size: 0.9rem;
}

.parallelCanvasWrap {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.storageStatus {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #b8d7e6;
}

.parallelCard {
  border: 1px solid #315668;
  border-radius: 8px;
  padding: 6px;
  background: #0f2631;
}

.parallelCardTitle {
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #b8d7e6;
}

.parallelMiniCanvas {
  width: 100%;
  aspect-ratio: 4 / 3;
  border: 1px solid #315668;
  border-radius: 6px;
  background: linear-gradient(180deg, #0a141b 0%, #10242f 100%);
}

canvas {
  width: min(800px, 100%);
  height: auto;
  border: 1px solid #315668;
  border-radius: 10px;
  background: linear-gradient(180deg, #0a141b 0%, #10242f 100%);
}
