.static-banner {
  background: #0d6efd;
  color: #fff;
  padding: 8px 16px;
  font-size: 13px;
  text-align: center;
  font-family: system-ui, sans-serif;
  position: relative;
  z-index: 9999;
}
.static-banner__link {
  color: #fff;
  text-decoration: underline;
}
.is-neutralized {
  cursor: not-allowed;
  opacity: 0.6;
}

.neutralize-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 16px;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
.neutralize-modal[hidden] {
  display: none;
}
.neutralize-modal__panel {
  background: #fff;
  color: #111827;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  max-width: 640px;
  width: 100%;
  max-height: calc(100vh - 32px);
  display: flex;
  flex-direction: column;
  padding: 24px 24px 20px;
  animation: neutralize-modal-in 0.15s ease-out;
}
@keyframes neutralize-modal-in {
  from { transform: translateY(8px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.neutralize-modal__title {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 600;
}
.neutralize-modal__note {
  margin: 0 0 12px;
  padding: 8px 12px;
  background: #fef3c7;
  color: #78350f;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.5;
}
.neutralize-modal__body {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: #374151;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
}
.neutralize-modal__body form {
  display: block;
}
.neutralize-modal__body input,
.neutralize-modal__body select,
.neutralize-modal__body textarea {
  font-family: inherit;
  font-size: 14px;
  padding: 6px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  margin: 4px 0 10px;
  width: 100%;
  box-sizing: border-box;
  background: #fff;
  color: #111827;
}
.neutralize-modal__body label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-top: 8px;
}
.neutralize-modal__body button {
  margin-top: 8px;
}
.neutralize-modal__message {
  margin: 0;
}
.neutralize-modal__error {
  color: #b91c1c;
}
.neutralize-modal__actions {
  display: flex;
  justify-content: flex-end;
  flex: 0 0 auto;
}
.neutralize-modal__close {
  background: #0d6efd;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.neutralize-modal__close:hover,
.neutralize-modal__close:focus-visible {
  background: #0b5ed7;
  outline: 2px solid #93c5fd;
  outline-offset: 2px;
}
body.neutralize-modal-open {
  overflow: hidden;
}
/* dark theme: data-theme="dark" を明示、または auto (data-theme 無し) で
   システムが dark のとき。data-theme="light" は常に light を維持。 */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .neutralize-modal__panel,
  :root[data-theme="dark"] .neutralize-modal__panel {
    background: #1f2937;
    color: #f3f4f6;
  }
  :root:not([data-theme="light"]) .neutralize-modal__body,
  :root[data-theme="dark"] .neutralize-modal__body {
    color: #d1d5db;
  }
  :root:not([data-theme="light"]) .neutralize-modal__body input,
  :root:not([data-theme="light"]) .neutralize-modal__body select,
  :root:not([data-theme="light"]) .neutralize-modal__body textarea,
  :root[data-theme="dark"] .neutralize-modal__body input,
  :root[data-theme="dark"] .neutralize-modal__body select,
  :root[data-theme="dark"] .neutralize-modal__body textarea {
    background: #111827;
    color: #f3f4f6;
    border-color: #374151;
  }
  :root:not([data-theme="light"]) .neutralize-modal__note,
  :root[data-theme="dark"] .neutralize-modal__note {
    background: #78350f;
    color: #fef3c7;
  }
  :root:not([data-theme="light"]) .neutralize-modal__error,
  :root[data-theme="dark"] .neutralize-modal__error {
    color: #fca5a5;
  }
}

/* システムが light でもユーザーが dark を明示した場合 */
:root[data-theme="dark"] .neutralize-modal__panel {
  background: #1f2937;
  color: #f3f4f6;
}
:root[data-theme="dark"] .neutralize-modal__body {
  color: #d1d5db;
}
:root[data-theme="dark"] .neutralize-modal__body input,
:root[data-theme="dark"] .neutralize-modal__body select,
:root[data-theme="dark"] .neutralize-modal__body textarea {
  background: #111827;
  color: #f3f4f6;
  border-color: #374151;
}
:root[data-theme="dark"] .neutralize-modal__note {
  background: #78350f;
  color: #fef3c7;
}
:root[data-theme="dark"] .neutralize-modal__error {
  color: #fca5a5;
}
