:root {
  --bg: #121315;
  --panel: #1b1e22;
  --panel-muted: #17191c;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f0e8;
  --muted: #a7abb4;
  --accent: #2e8b57;
  --accent-strong: #d85f31;
  --blue: #2f6bff;
  --offline: #5b616a;
}

body.app-shell {
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 95, 49, 0.15), transparent 30%),
    radial-gradient(circle at top right, rgba(46, 139, 87, 0.14), transparent 28%),
    linear-gradient(180deg, #111315 0%, #0c0d0f 100%);
  font-family: Georgia, "Microsoft JhengHei", serif;
}

.panel-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(27, 30, 34, 0.92);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.panel-link {
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease;
}

.panel-link:hover {
  transform: translateY(-2px);
  border-color: rgba(216, 95, 49, 0.45);
}

.muted-card {
  background: rgba(23, 25, 28, 0.85);
}

.eyebrow {
  margin: 0;
  color: #d7a268;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 0.73rem;
}

.text-secondary {
  color: var(--muted) !important;
}

.status-card {
  height: 100%;
}

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

.status-online {
  background: var(--accent);
}

.status-offline {
  background: var(--offline);
}

.status-running {
  background: var(--blue);
}

.sidebar-stack {
  min-height: 72vh;
  display: flex;
  flex-direction: column;
}

.sku-list {
  display: grid;
  gap: 0.75rem;
  overflow: auto;
}

.sku-item {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--panel-muted);
  cursor: pointer;
}

.sku-item.active {
  border-color: rgba(216, 95, 49, 0.5);
  background: rgba(216, 95, 49, 0.12);
}

.match-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(17, 19, 21, 0.55);
  padding: 1rem;
}

.match-card-label {
  color: #d7a268;
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.image-stage {
  width: 100%;
  display: grid;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.image-stage-lg {
  min-height: 320px;
}

.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 0.85rem;
}

.candidate-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  padding: 0.75rem;
  cursor: pointer;
  transition: transform 150ms ease, border-color 150ms ease;
}

.candidate-card:hover {
  transform: translateY(-1px);
  border-color: rgba(46, 139, 87, 0.45);
}

.candidate-card.selected {
  grid-column: 1 / -1;
  border-color: rgba(46, 139, 87, 0.6);
}

.candidate-image,
.selected-image,
.shopline-image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.placeholder-copy {
  color: var(--muted);
  text-align: center;
  max-width: 18rem;
}

@media (max-width: 991px) {
  .image-stage-lg {
    min-height: 280px;
  }
}
