:root { font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif; color: #0f172a; }
body { margin: 0; background: #f5f7fb; line-height: 1.7; }
.wc-hero .container,
.wc-main .container { max-width: 1180px; margin: 0 auto; padding: 0 18px; }
.wc-hero { background: linear-gradient(120deg, #0f6efc, #5b1bff); color: #fff; padding: 56px 0 48px; }
.wc-hero-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.wc-eyebrow { letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.78rem; margin: 0 0 8px; }
.wc-hero h1 { margin: 0 0 12px; font-size: clamp(2.1rem, 4vw, 3rem); }
wc-subtitle { margin: 0 0 12px; opacity: 0.95; }
.wc-subtitle { margin: 0 0 12px; opacity: 0.95; }
.wc-bullets { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.wc-bullets span { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); font-weight: 700; }
.wc-hero-card { background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 20px; padding: 22px; box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18); }
.wc-hero-badge { display: inline-block; background: rgba(255, 255, 255, 0.2); padding: 6px 12px; border-radius: 12px; font-weight: 700; }
.wc-main { padding: 40px 0 60px; }
.wc-grid { display: grid; gap: 18px; }
.card { background: #fff; border-radius: 18px; padding: 20px; box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08); border: 1px solid #e2e8f0; overflow: hidden; }
.card-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 6px 10px; border-radius: 999px; background: #eef2ff; color: #1d4ed8; font-weight: 700; font-size: 0.9rem; }
.wc-layout-single { display: grid; gap: 12px; margin-top: 14px; }
.input-col textarea, #wc-input { width: 100%; min-height: 200px; border: 1px solid #d6d9e8; border-radius: 12px; padding: 12px; font-size: 1rem; resize: vertical; }
.label-row { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.muted { color: #64748b; }
.cta-row { margin-top: 10px; display: flex; gap: 10px; flex-wrap: wrap; }
.primary-btn, .secondary-btn, .ghost-btn { border: none; border-radius: 12px; padding: 10px 14px; font-weight: 800; cursor: pointer; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; box-shadow: 0 12px 30px rgba(37, 99, 235, 0.35); }
.secondary-btn { background: #f8fafc; border: 1px solid #dbeafe; color: #0f172a; }
.ghost-btn { background: #fff; border: 1px solid #dbeafe; color: #0f6efc; }
.ghost-btn:hover, .secondary-btn:hover, .primary-btn:hover { transform: translateY(-1px); }
.toggle-row { margin-top: 8px; display: flex; gap: 10px; align-items: center; }
.settings-card { margin-top: 12px; }
.rules { display: grid; gap: 8px; }
.rule-row { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; background: #f8fafc; display: grid; gap: 8px; }
.rule-row .row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rule-row .toggles { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rule-row .delete { color: #ef4444; cursor: pointer; font-weight: 700; }
.output-card { margin-top: 20px; }
.preview { min-height: 120px; border: 1px solid #e2e8f0; border-radius: 12px; padding: 12px; background: #f8fafc; white-space: pre-wrap; word-break: break-word; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.stats span { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; display: block; }
.history-list { display: grid; gap: 10px; }
.history-item { padding: 12px; border-radius: 12px; border: 1px solid #e2e8f0; background: #f8fafc; display: grid; gap: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.info-card { background: #fff; border-radius: 16px; padding: 16px; border: 1px solid #e2e8f0; box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06); }
.accordion details { border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px 12px; margin-bottom: 10px; background: #fff; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.accordion summary { cursor: pointer; font-weight: 700; }
.accordion details:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08); }
#diff-box table { width: 100%; overflow-x: auto; }
.stats-table { max-width: 100%; }
@media (max-width: 900px) {
  body { overflow-x: hidden; }
  .wc-hero-grid { grid-template-columns: 1fr; }
  .wc-hero { padding: 32px 0; }
  .wc-main { padding: 20px 0 36px; }
  .card { padding: 16px; border-radius: 16px; }
  .wc-hero-card { max-width: 100%; }
  .wc-bullets { gap: 6px; }
  .cta-row { flex-direction: column; align-items: stretch; }
  .stats-table, .table-wrapper { overflow-x: auto; }
}
.wc-layout { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 14px; }.rule-row input[type='text'] {
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}
.output-actions .primary-btn { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; }
.output-actions .ghost-btn { border: 1px solid #dbeafe; color: #0f6efc; }

.copy-btn, .primary-btn.copied, #copy-btn.copied { background: #0f3bbd; color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat-pill { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; padding: 8px; }
.table-wrapper { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td { border: 1px solid #e2e8f0; padding: 8px; font-size: 0.95rem; }
.stats-table th { background: #f8fafc; text-align: left; }
.card.output-card.full,
.wc-main .output-card.full {
  margin-top: 50px !important;
}
