#tool-sitemap, #tool-sitemap * {
  box-sizing: border-box;
}
#tool-sitemap {
  --bg: #eff8f4;
  --card: #ffffff;
  --line: #cfe6dc;
  --text: #16253a;
  --muted: #667085;
  --primary: #138a6b;
  --primary-dark: #0f6b55;
  --primary-soft: #dff3ec;
  --danger: #b91c1c;
}
#tool-sitemap {
  margin: 0;
  background: linear-gradient(170deg, #dff3ec, var(--bg) 40%);
  color: var(--text);
  font-family: "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
}
#tool-sitemap .tool-main {
  max-width: 1120px;
  margin: 28px auto;
  padding: 0 16px 28px;
}
#tool-sitemap header, #tool-sitemap section {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 6px 20px rgba(18, 74, 57, 0.06);
}
#tool-sitemap h1 {
  margin: 0 0 8px;
  font-size: 28px;
}
#tool-sitemap h2 {
  margin: 0 0 12px;
  font-size: 20px;
}
#tool-sitemap p {
  margin: 0;
  color: var(--muted);
}
#tool-sitemap .control label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
}
#tool-sitemap .control-row {
  display: flex;
  gap: 10px;
}
#tool-sitemap input {
  flex: 1;
  border: 1px solid #bcc9ea;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
}
#tool-sitemap button {
  border: none;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
#tool-sitemap button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
#tool-sitemap .downloads {
  display: flex;
  gap: 10px;
}
#tool-sitemap .downloads button {
  background: var(--primary-dark);
}
#tool-sitemap .downloads[hidden], #tool-sitemap #warningWrap[hidden], #tool-sitemap #monthlyWrap[hidden] {
  display: none;
}
#tool-sitemap .status {
  margin-top: 8px;
  min-height: 20px;
}
#tool-sitemap .status.error {
  color: var(--danger);
}
#tool-sitemap .loading-card {
  align-items: center;
  display: flex;
  gap: 14px;
}
#tool-sitemap .loading-card[hidden] {
  display: none;
}
#tool-sitemap .loading-card h2 {
  font-size: 17px;
  margin: 0 0 4px;
}
#tool-sitemap .loading-card p {
  font-size: 13px;
}
#tool-sitemap .sitemap-loader {
  height: 58px;
  position: relative;
  width: 78px;
}
#tool-sitemap .sitemap-loader::before, #tool-sitemap .sitemap-loader::after {
  background: var(--line);
  content: "";
  height: 2px;
  left: 16px;
  position: absolute;
  top: 29px;
  transform-origin: left center;
  width: 42px;
}
#tool-sitemap .sitemap-loader::before {
  transform: rotate(-28deg);
}
#tool-sitemap .sitemap-loader::after {
  transform: rotate(28deg);
}
#tool-sitemap .sitemap-loader span, #tool-sitemap .sitemap-loader i {
  animation: nodePulse 1.25s ease-in-out infinite;
  background: var(--primary);
  border: 3px solid #fff;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(19, 138, 107, 0.2);
  display: block;
  height: 22px;
  position: absolute;
  width: 22px;
  z-index: 1;
}
#tool-sitemap .sitemap-loader i {
  animation-delay: 0.12s;
  background: #1fbf92;
  left: 4px;
  top: 18px;
}
#tool-sitemap .sitemap-loader span:nth-child(1) {
  animation-delay: 0.24s;
  left: 52px;
  top: 0;
}
#tool-sitemap .sitemap-loader span:nth-child(2) {
  animation-delay: 0.36s;
  left: 52px;
  top: 18px;
}
#tool-sitemap .sitemap-loader span:nth-child(3) {
  animation-delay: 0.48s;
  left: 52px;
  top: 36px;
}
@keyframes nodePulse{
  0%,
  100% {
    transform: scale(0.86);
  }

  45% {
    transform: scale(1.08);
  }
}
#tool-sitemap .summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 10px;
}
#tool-sitemap .summary-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fbfffd;
}
#tool-sitemap .summary-item strong {
  display: block;
  font-size: 13px;
  color: var(--muted);
}
#tool-sitemap .summary-item span {
  display: block;
  font-size: 28px;
  font-weight: 700;
  margin-top: 2px;
}
#tool-sitemap table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
#tool-sitemap th, #tool-sitemap td {
  border-bottom: 1px solid #e2eee9;
  padding: 9px 8px;
  text-align: left;
  vertical-align: top;
  font-size: 13px;
}
#tool-sitemap th:nth-child(1), #tool-sitemap td:nth-child(1) {
  width: 64px;
}
#tool-sitemap th:nth-child(3), #tool-sitemap td:nth-child(3) {
  width: 180px;
}
#tool-sitemap td.url {
  word-break: break-all;
}
#tool-sitemap #warningList {
  margin: 0;
  padding-left: 18px;
  color: #7d1f1f;
  font-size: 13px;
  display: grid;
  gap: 4px;
}
#tool-sitemap .empty {
  color: #8b96b3;
  font-style: italic;
}
@media (max-width: 900px){
#tool-sitemap .summary {
    grid-template-columns: 1fr;
  }
#tool-sitemap .control-row {
    flex-direction: column;
  }
#tool-sitemap .downloads {
    flex-direction: column;
  }
#tool-sitemap th:nth-child(3), #tool-sitemap td:nth-child(3) {
    width: 140px;
  }

}

