/* 版面與 screen-capture/style.css 保持一致的格線與元件語彙 */
.demo-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 16px;
  align-items: start;
}
.stage-container {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  position: relative;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.stage {
  width: 100%;
  max-width: 960px;
  aspect-ratio: 16/9;
  background: #0f1218;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.fs-target {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: #fff;
}
.fs-inner {
  display: grid;
  gap: 12px;
  text-align: center;
  padding: 12px;
}
.fs-inner h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: 0.3px;
}
.fs-inner p {
  margin: 0 0 6px;
  color: #cfd6e6;
  font-size: 14px;
}
#paint {
  width: min(92%, 860px);
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: block;
  margin: 0 auto;
  background: #111;
}

/* 全螢幕時樣式與背板 */
.fs-target:fullscreen {
  background: #ff4081;
}
:fullscreen::backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.status-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 960px;
  margin: 14px auto 0;
}
.status-box {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.status-label {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 1px;
  font-weight: 600;
}
.status-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

.control-panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  gap: 12px;
}
.control-section {
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
}
.control-section h3 {
  margin: 0 0 8px;
  font-size: 13px;
  color: #cfd6e6;
  font-weight: 600;
}
.control-section label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.control-section .text-input {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  margin-top: 6px;
}
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.control-section select,
.control-section button {
  width: 100%;
  background: #0f1218;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
}
.btn-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.btn-row button {
  flex: 1;
  min-width: 120px;
}
button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.hint {
  font-size: 12px;
  color: #7e8aa6;
  margin-top: 12px;
}

input {
  margin-top: 8px;
}

.log {
  max-height: 200px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
  font-size: 12px;
  padding: 10px;
  background: #0f1218;
  border: 1px solid var(--border);
  border-radius: 10px;
}

@media (max-width: 900px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
  .status-row {
    grid-template-columns: 1fr;
  }
}

.filter-hint {
  font-size: 12px;
  color: #666;
  margin-bottom: 10px;
  font-style: italic;
}
