body{font-family:system-ui,-apple-system,Segoe UI,sans-serif;max-width:1100px;margin:24px auto;padding:0 16px;line-height:1.5;color:#111}
.container{background:#fff;border-radius:12px;padding:24px;box-shadow:0 2px 16px rgba(0,0,0,0.08)}
header{margin-bottom:20px}
h1{font-size:22px;margin:0 0 6px 0}
.subtitle{font-size:13px;color:#666;margin:0 0 8px 0}
.risk{font-size:12px;color:#b00020;background:#fdecea;border-left:4px solid #b00020;padding:10px 14px;margin:10px 0;border-radius:6px}

.card{margin-bottom:16px;padding:16px;border:1px solid #e5e7eb;border-radius:10px;background:#fafafa}
.toolbar{background:#fff}
.controls{background:#fff}
.results-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px;margin-top:12px}
.result-card{background:#fff}
.result-card h3{margin:0 0 10px 0;font-size:16px;display:flex;align-items:center;gap:6px;border-bottom:2px solid #e5e7eb;padding-bottom:6px}
.dot{width:10px;height:10px;border-radius:50%;display:inline-block}
.dot.red{background:#dc2626;box-shadow:0 0 6px #dc2626}
.dot.blue{background:#2563eb;box-shadow:0 0 6px #2563eb}
.dot.green{background:#059669;box-shadow:0 0 6px #059669}

.row{display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.inline-group{display:flex;align-items:center;gap:6px}
label{font-size:13px;color:#374151;white-space:nowrap}
select,input{padding:8px 10px;border:1px solid #d1d5db;border-radius:6px;font-size:14px;background:#fff}
button{padding:8px 16px;border:none;border-radius:6px;cursor:pointer;font-size:14px;font-weight:500}
button.btn-primary{background:#2563eb;color:#fff}
button.btn-primary:hover{background:#1d4ed8}
button.btn-secondary{background:#6c757d;color:#fff}
button.btn-secondary:hover{background:#5a6268}

.status{font-size:12px;color:#666;margin-left:auto}
.history-list{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.history-item{background:#eef2ff;border:1px solid #c7d2fe;border-radius:6px;padding:6px 10px;font-size:13px}
.history-item .badge{display:inline-block;width:20px;height:20px;line-height:20px;text-align:center;border-radius:4px;font-size:11px;margin-left:4px;color:#fff}
.history-item .badge.special{background:#dc2626}
.history-item .badge.normal{background:#059669}
.history-item .badge.zodiac{background:#7c3aed}

.result-nums{display:flex;flex-wrap:wrap;gap:8px}
.pred-num{display:inline-flex;align-items:center;justify-content:center;width:34px;height:34px;line-height:1;border-radius:8px;font-weight:700;font-size:15px;background:#dbeafe;color:#1e40af;border:1px solid #bfdbfe}
.pred-num.red{background:#fee2e2;color:#991b1b;border-color:#fecaca}
.pred-num.blue{background:#dbeafe;color:#1e40af;border-color:#bfdbfe}
.pred-num.green{background:#d1fae5;color:#065f46;border-color:#a7f3d0}
.pred-num.zodiac-pill{background:#f3e8ff;color:#6b21a8;border-color:#e9d5ff}
.pred-caption{font-size:11px;color:#6b7280;margin-top:4px}
pre{white-space:pre-wrap;word-break:break-all;font-size:12px;background:#f8fafc;padding:10px;border-radius:6px;border:1px solid #e2e8f0;margin:0}
footer{margin-top:24px;font-size:12px;color:#666;border-top:1px solid #eee;padding-top:12px}
