/* ランキングダイアログ全体 */
#submit-dialog {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

/* 非表示状態 */
#submit-dialog.sd-hidden {
  display: none;
}

/* 表示状態 */
#submit-dialog.sd-visible {
  display: flex;
}

/* ダイアログパネル */
#submit-dialog .sd-panel {
  width: min(420px, 92vw);
  background: #101317;
  color: #fff;
  border: 1px solid #2a2f37;
  border-radius: 12px;
  padding: 16px 18px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.4);
  font-family: system-ui, sans-serif;
}

.sd-panel h2 {
  margin: 0 0 6px;
  font-size: 20px;
}

.sd-panel p {
  margin: 0 0 12px;
  color: #cbd5e1;
  font-size: 14px;
}

.sd-row {
  display: grid;
  gap: 6px;
  margin: 10px 0 14px;
}

.sd-row label {
  font-size: 12px;
  color: #a8b3c7;
}

.sd-row input {
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #364152;
  background: #0b0e12;
  color: #fff;
}

/* ボタン行 */
.sd-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 10px;
}

/* ボタン共通 */
.sd-btn {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
}

/* ゴーストボタン */
.sd-btn-ghost {
  background: transparent;
  color: #e2e8f0;
  border-color: #384152;
}

.sd-btn-ghost:hover {
  background: #11161d;
}

/* プライマリボタン */
.sd-btn-primary {
  background: #2563eb;
  color: #fff;
}

.sd-btn-primary:hover {
  background: #1d4ed8;
}

/* エラー表示 */
#submit-error {
  display: none;
  margin: 8px 0 0;
  min-height: 1.5em;
  color: #fecaca;
  background: #7f1d1d;
  border: 1px solid #b91c1c;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 12px;
}

#submit-error.show {
  display: block;
}
