/* 仪表画面页 —— v1.0.28 新增 */

.panel-stage {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: start;
}

@media (max-width: 720px) {
  .panel-stage { grid-template-columns: minmax(0, 1fr); }
}

.panel-screen {
  background: #0b0b0c;
  border-radius: 16px;
  padding: 10px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.panel-screen svg {
  display: block;
  width: 100%;
  height: auto;
  image-rendering: pixelated;
  border-radius: 8px;
}

.panel-meta {
  display: grid;
  gap: 6px;
  margin-top: 10px;
  font-size: 12px;
  color: var(--muted);
}

.panel-controls {
  display: grid;
  gap: 12px;
}

.panel-controls label.field {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.panel-controls input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}

.panel-controls .range-head {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

.panel-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.panel-tabs button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 12px;
  padding: 7px 14px;
  font-size: 13px;
  cursor: pointer;
}

.panel-tabs button[aria-pressed="true"] {
  background: var(--soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 700;
}

.panel-cap {
  display: grid;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--card);
}

.panel-cap-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  padding: 3px 0;
  border-bottom: 1px dashed var(--line);
}

.panel-cap-row:last-child { border-bottom: 0; }

.panel-cap-row span:first-child { color: var(--muted); flex: none; }
.panel-cap-row span:last-child { text-align: right; word-break: break-all; }

.panel-cap-row.tone-ok span:last-child { color: #15803d; }
.panel-cap-row.tone-warn span:last-child { color: #b45309; }
.panel-cap-row.tone-muted span:last-child { color: var(--muted); }

.panel-hex {
  width: 100%;
  min-height: 168px;
  font: 12px/1.5 ui-monospace, "SFMono-Regular", Menlo, monospace;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: var(--bg);
  color: var(--ink);
  resize: vertical;
}

.panel-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.panel-upload-status {
  font-size: 12px;
  color: var(--muted);
  min-height: 1.4em;
}

.panel-warn {
  border-left: 3px solid #b45309;
  background: #fef7ed;
  padding: 10px 14px;
  border-radius: 0 12px 12px 0;
  font-size: 13px;
  color: #7c2d12;
}

@media (prefers-color-scheme: dark) {
  .panel-warn { background: #2a1d10; color: #f5d0a9; border-left-color: #d97706; }
  .panel-cap-row.tone-ok span:last-child { color: #4ade80; }
  .panel-cap-row.tone-warn span:last-child { color: #fbbf24; }
}
