.tw-dc-app{max-width:1200px;margin:0 auto;padding-top:20px;font-family:inherit;color:#1a1a2e}
.tw-dc-app *,.tw-dc-app *::before,.tw-dc-app *::after{box-sizing:border-box}
.tw-dc-editor{background:#fff;border:1px solid #e5e7eb;border-radius:10px;overflow:hidden;margin-bottom:12px}
.tw-dc-textarea{width:100%;min-height:200px;border:none;outline:none;padding:16px;font-size:15px;line-height:1.65;resize:vertical;font-family:inherit;color:#1a1a2e;display:block}
.tw-dc-textarea::placeholder{color:#b0b5c0}
.tw-dc-actions{display:flex;align-items:center;justify-content:space-between;padding:8px 16px;border-top:1px solid #f3f4f6}
.tw-dc-charcount{font-size:12px;color:#6b7280}
.tw-dc-btn-primary{height:40px;padding:0 24px;background:#fff;color:#56aea4;font-size:13px;font-weight:600;border:1.5px solid #56aea4;border-radius:20px;cursor:pointer;transition:all .15s;font-family:inherit}
.tw-dc-btn-primary:hover{background:#56aea4;color:#fff}
.tw-dc-btn-primary:disabled{opacity:.5;cursor:not-allowed}
.tw-dc-status{min-height:20px;margin-bottom:8px}
.tw-dc-loading{display:flex;align-items:center;gap:8px;font-size:13px;color:#6b7280;padding:8px 0}
.tw-dc-spinner{width:18px;height:18px;border:2px solid #e5e7eb;border-top-color:#56aea4;border-radius:50%;animation:tw-dc-spin 0.6s linear infinite}
@keyframes tw-dc-spin{to{transform:rotate(360deg)}}
.tw-dc-alert{padding:10px 14px;border-radius:8px;font-size:13px;margin:6px 0}
.tw-dc-alert-error{background:#fef2f2;color:#dc2626;border:1px solid #fecaca}
/* Result row: gauge LEFT + info RIGHT */
.tw-dc-result-row{display:flex;align-items:center;gap:32px;padding:20px 24px;background:#fff;border:1px solid #e5e7eb;border-radius:12px;margin-bottom:20px}
.tw-dc-gauge{flex-shrink:0;width:200px}
.tw-dc-gauge-svg{width:100%;height:auto}
.tw-dc-result-info{display:flex;flex-direction:column;gap:6px}
.tw-dc-metric-unique{font-size:20px;font-weight:700;color:#16a34a}
.tw-dc-metric-dup{font-size:20px;font-weight:700;color:#dc2626}
.tw-dc-metric-detail{font-size:13px;color:#6b7280;margin-top:4px}
.tw-dc-metric-thumb{font-size:32px;margin-top:4px}
/* Needle: drawn at -90° (top center), animated to target via rotate around center */
.tw-dc-needle{transform-origin:100px 100px;animation:tw-dc-needle-sweep 0.8s ease-out forwards}
@keyframes tw-dc-needle-sweep{
  from{transform:rotate(0deg)}
  to{transform:rotate(var(--target))}
}
/* Matches */
.tw-dc-matches{display:flex;flex-direction:column;gap:8px}
.tw-dc-match{display:flex;align-items:center;gap:12px;padding:10px 14px;background:#fff;border:1px solid #e5e7eb;border-radius:10px}
.tw-dc-match-sim{font-size:14px;font-weight:700;min-width:50px;text-align:center}
.tw-dc-match-info{flex:1;min-width:0}
.tw-dc-match-title{font-size:13px;font-weight:600;color:#1a1a2e;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tw-dc-match-url{font-size:11px;color:#56aea4;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
/* Article toggle */
.tw-dc-article-toggle{margin-top:16px;margin-bottom:12px}
.tw-dc-toggle-btn{display:flex;align-items:center;gap:8px;width:100%;padding:12px 16px;background:#fff;border:1.5px solid #56aea4;border-radius:10px;cursor:pointer;font-family:inherit;transition:all .15s;text-align:left}
.tw-dc-toggle-btn:hover{background:#f0fdf8}
.tw-dc-toggle-chevron{transition:transform .25s ease;flex-shrink:0;color:#56aea4}
.tw-dc-toggle-btn.tw-dc-toggle-open .tw-dc-toggle-chevron{transform:rotate(180deg)}
.tw-dc-h1{font-size:14px;font-weight:600;color:#56aea4;margin:0}
@media(max-width:600px){.tw-dc-result-row{flex-direction:column;gap:16px;text-align:center}.tw-dc-gauge{width:180px;margin:0 auto}.tw-dc-result-info{align-items:center}.tw-dc-match{flex-direction:column;align-items:flex-start}}
