*{margin:0;padding:0;box-sizing:border-box}
body{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,Helvetica,Arial,sans-serif;line-height:1.6;color:#333;background:#f8f9fa}
.container{max-width:1200px;margin:0 auto;padding:1rem}
header{background:#2c3e50;color:#fff;padding:1rem 0;border-bottom:3px solid #e74c3c}
header h1{font-size:1.8rem;margin-bottom:0.5rem}
nav a{color:#ecf0f1;text-decoration:none;margin-right:1.5rem;font-weight:500}
nav a:hover{color:#3498db}
main{padding:2rem 0}
h1,h2,h3{color:#2c3e50}
h2{margin:1.5rem 0 1rem}
h3{margin:1rem 0 0.5rem;font-size:1.1rem}
p{margin-bottom:1rem}
.input-section,.results-section,.about-section{background:#fff;padding:1.5rem;margin:1rem 0;border-radius:8px;box-shadow:0 2px 8px rgba(0,0,0,0.1)}
input,textarea,button{font-family:inherit}
textarea{width:100%;height:120px;padding:0.75rem;border:2px solid #ddd;border-radius:4px;font-size:1rem;resize:vertical}
textarea:focus{outline:none;border-color:#3498db}
#analyzeBtn{background:#e74c3c;color:#fff;padding:0.75rem 1.5rem;border:none;border-radius:4px;font-size:1rem;cursor:pointer}
#analyzeBtn:hover{background:#c0392b}
#analyzeBtn:focus{outline:3px solid #3498db}
.preset-buttons{display:flex;gap:0.5rem;margin-top:0.5rem;flex-wrap:wrap}
.preset-btn{background:#3498db;color:#fff;border:none;padding:0.5rem 1rem;border-radius:4px;cursor:pointer}
.preset-btn:hover{background:#2980b9}
.preset-btn:focus{outline:2px solid #3498db}
.frequency-tables{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1rem}
.table-wrapper{overflow-x:auto}
table{width:100%;border-collapse:collapse}
th,td{border:1px solid #eee;padding:0.5rem;text-align:center}
th{background:#f8f9fa;font-weight:600}
.hot-numbers,.cold-numbers{display:inline-block;background:#f8f9fa;padding:0.5rem;margin:0.25rem;border-radius:4px}
.hot-numbers.very-hot{background:#ffebee;color:#c62828}
.hot-numbers.hot{background:#ffcdd2;color:#b71c1c}
.cold-numbers.cold{background:#e3f2fd;color:#1565c0}
.cold-numbers.very-cold{background:#bbdefb;color:#0d47a1}
#combinationsOutput{margin:1rem 0;padding:0.75rem;background:#f8f9fa;border-radius:4px;min-height:80px;white-space:pre-wrap}
.result-btn-group{display:flex;gap:0.5rem;margin-top:0.5rem}
#copyResults,#printResults,#saveCombo{padding:0.5rem 1rem;border:none;border-radius:4px;cursor:pointer}
#copyResults{background:#27ae60;color:#fff}
#printResults{background:#9b59b0;color:#fff}
#saveCombo{background:#f39c12;color:#fff}
.result-btn-group button:hover{opacity:0.9}
.result-btn-group button:focus{outline:3px solid #3498db}
.saved-combos{margin-top:1rem;padding:0.75rem;background:#fff;border:1px dashed #ccc;border-radius:4px}
.saved-combos h4{margin-bottom:0.5rem}
.saved-item{display:flex;justify-content:space-between;align-items:center;margin-bottom:0.25rem}
.saved-item button{background:#e74c3c;color:#fff;border:none;padding:0.25rem 0.5rem;border-radius:3px;cursor:pointer}
.saved-item button:hover{background:#c0392b}
footer{background:#2c3e50;color:#ecf0f1;padding:1.5rem 0;margin-top:2rem}
footer a{color:#3498db}
footer p{font-size:0.9rem}
@media (max-width:768px){
header h1{font-size:1.4rem}
nav a{display:block;margin-right:0;margin-bottom:0.5rem}
.input-section,.results-section,.about-section{padding:1rem}
.preset-buttons{flex-direction:column}
.result-btn-group{flex-direction:column}
}
@media (max-width:480px){
header h1{font-size:1.2rem}
}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
