* {
  box-sizing: border-box;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.tool-card {
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.tool-card:hover {
  transform: translateY(-2px);
  border-color: #93c5fd;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.compact-panel {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.9rem;
  padding: 1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-card {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 0.9rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.compact-card h2 {
  letter-spacing: -0.01em;
}

.adsense-slot {
  border: 2px dashed #94a3b8;
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  text-align: center;
  background: #f8fafc;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 600;
}

.content-section {
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 1rem;
  padding: 1rem;
}

.content-section h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.6rem;
}

.content-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.content-section p {
  margin-bottom: 0.75rem;
  line-height: 1.65;
  font-size: 0.92rem;
  color: #334155;
}

.faq-item {
  border-top: 1px solid #e2e8f0;
  padding-top: 0.8rem;
  margin-top: 0.8rem;
}

.chip-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.chip-link {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-decoration: none;
}

.chip-link:hover {
  background: #dbeafe;
}

.result-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.action-btn {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #334155;
  border-radius: 0.5rem;
  padding: 0.38rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
}

.action-btn:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.ip-slim-bar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  border: 1px solid #e2e8f0;
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.55rem 0.8rem;
  font-size: 0.88rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ip-slim-label {
  color: #64748b;
  font-weight: 600;
}

.ip-slim-note {
  color: #64748b;
  font-size: 0.75rem;
}

.ip-slim-link {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.dark .adsense-slot {
  background: #0f172a;
  color: #cbd5e1;
  border-color: #334155;
}

.dark .compact-panel,
.dark .compact-card {
  border-color: #334155;
  background: #1e293b;
}

.dark .tool-card:hover {
  border-color: #3b82f6;
  box-shadow: 0 10px 24px rgba(2, 6, 23, 0.35);
}

.dark .content-section {
  border-color: #334155;
  background: #1e293b;
}

.dark .content-section p {
  color: #cbd5e1;
}

.dark .faq-item {
  border-top-color: #334155;
}

.dark .chip-link {
  background: #1e3a8a33;
  border-color: #1e40af;
  color: #93c5fd;
}

.dark .ip-slim-bar {
  border-color: #334155;
  background: #1e293b;
}

.dark .ip-slim-label,
.dark .ip-slim-note {
  color: #cbd5e1;
}

.dark .ip-slim-link {
  color: #93c5fd;
}

.dark .action-btn {
  border-color: #475569;
  background: #0f172a;
  color: #cbd5e1;
}

.dark .action-btn:hover {
  background: #1e293b;
  border-color: #64748b;
}
