.site-notice {
  padding: 12px 16px;
  margin-bottom: 16px;
  border: 1px solid #b7d5ec;
  border-left: 4px solid #2e86c1;
  border-radius: 6px;
  color: #173e59;
  background: #eef7fe;
}
.site-notice[hidden], #notice-manage[hidden] { display: none; }
.site-notice strong { display: block; margin-bottom: 4px; }
#site-notice-text { white-space: pre-wrap; overflow-wrap: anywhere; }
#notice-error { color: #a12622; }
.tips-dialog {
  width: min(760px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 1.5rem;
  border: 0;
  border-radius: 12px;
  color: #263746;
  background: #fff;
  box-shadow: 0 20px 60px #0004;
}
.tips-dialog::backdrop { background: #1238; }
.tips-dialog-header, .tips-search-row, .tips-editor-actions {
  display: flex; gap: .75rem; align-items: center; flex-wrap: wrap;
}
.tips-dialog-header { justify-content: space-between; margin-bottom: .75rem; }
.tips-dialog p { margin: .75rem 0; }
.tips-search-row { margin: 1rem 0; }
.tips-search-row input { flex: 1; min-width: 160px; padding: .7rem; border: 1px solid #bac5ce; border-radius: 6px; font: inherit; }
.tips-dialog input, .tips-dialog textarea { font: inherit; width: 100%; box-sizing: border-box; }
.tips-dialog textarea { padding: .75rem; border: 1px solid #bac5ce; border-radius: 6px; resize: vertical; }
.tip-card { border: 1px solid #dce4eb; border-radius: 8px; margin: 1rem 0; padding: 1rem; }
.tip-card summary { cursor: pointer; font-weight: 600; padding: .25rem 0; overflow-wrap: anywhere; }
.tip-category { color: #536575; font-size: .85rem; }
.tip-content { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.65; }
.tips-editor-actions { margin-top: 1rem; }
#tips-error { color: #a22020; padding: .75rem; border: 1px solid #edc5c5; border-radius: 6px; background: #fff5f5; }
.tips-dialog [hidden] { display: none !important; }
.tips-dialog :focus-visible { outline: 3px solid #287fba; outline-offset: 3px; }
@media (max-width: 480px) {
  .tips-dialog { padding: 1rem; }
  .tips-search-row label { flex-basis: 100%; }
}
