/* 振り子の丸：表示調整パネル（テスト用。決まったらこのファイルごと削除） */
.main-panel { position: relative; }

.pdt-gear {
  position: absolute;
  top: 12px;
  right: 12px;
  display: none;
  width: 40px;
  height: 40px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
}

.view-pendulum .pdt-gear { display: block; }
.pdt-gear svg { width: 100%; height: 100%; fill: currentColor; }
.pdt-gear.open { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

.pdt-panel {
  position: fixed;
  z-index: 900;
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* スマホ：画面下から出るシート。見出しをタップで折りたたみ */
  left: 8px;
  right: 8px;
  bottom: 8px;
  max-height: 46vh;
  border-radius: 16px;
}

.pdt-panel[hidden], .pdt-panel.away { display: none; }

/* PC：画面の右側に固定（プレビューの横に並べる） */
@media (min-width: 900px) {
  .pdt-panel {
    left: 12px;
    right: auto;
    top: 12px;
    bottom: 12px;
    width: 300px;
    max-height: none;
  }
}


.pdt-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  text-align: left;
}

.pdt-fold::before { content: "▼"; font-size: 0.8rem; color: var(--muted); }
.pdt-panel.folded .pdt-fold::before { content: "▲"; }
.pdt-panel.folded .pdt-body { display: none; }
.pdt-panel.folded { max-height: none; }

.pdt-body { overflow-y: auto; padding: 8px 14px 14px; }
.pdt-note { margin: 0 0 4px; font-size: 0.75rem; color: var(--muted); }
.pdt-sec { margin: 12px 0 4px; font-size: 0.8rem; font-weight: 700; color: var(--primary); }

.pdt-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  font-size: 0.85rem;
}

.pdt-slider { display: grid; grid-template-columns: 1fr auto; row-gap: 0; }
.pdt-slider output { font-variant-numeric: tabular-nums; color: var(--muted); text-align: right; }
.pdt-slider input { grid-column: 1 / -1; width: 100%; }

.pdt-color { display: inline-flex; align-items: center; gap: 6px; }
.pdt-color input[type="color"] { width: 40px; height: 32px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.pdt-hex {
  width: 84px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.85rem;
}
.pdt-hex.bad { border-color: #d63c44; }

.pdt-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 12px; }
.pdt-actions button {
  min-height: 40px;
  padding: 2px 4px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.75rem;
  font-weight: 600;
}

.pdt-list {
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-2);
  font-size: 0.78rem;
  line-height: 1.5;
  white-space: pre-wrap;
}

.pdt-list[hidden] { display: none; }


