
body{
margin:0;
font-family:Arial;
background:#111;
color:white;
}

.top{
padding:18px;
background:#181818;
display:flex;
justify-content:space-between;
align-items:center;
}

.top h1{
margin:0;
font-size:28px;
}

.top p{
margin:4px 0 0 0;
color:#aaa;
}

.top button{
background:#d32f2f;
border:none;
color:white;
padding:14px 18px;
border-radius:14px;
font-weight:bold;
font-size:16px;
}

.tabs{
display:flex;
overflow:auto;
gap:10px;
padding:12px;
background:#222;
position:sticky;
top:0;
}

.tab{
background:#444;
color:white;
border:none;
padding:14px 18px;
border-radius:16px;
font-weight:bold;
white-space:nowrap;
}

.tab.active{
background:#d32f2f;
}

main{
padding:14px;
}

.page{
display:none;
}

.page.active{
display:block;
}

.card{
background:#1f1f1f;
padding:18px;
border-radius:22px;
margin-bottom:16px;
}

.red{
background:#8b1e1e;
}

h2{
margin-top:0;
font-size:26px;
}

.plan{
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
}

.planbox{
background:#2a2a2a;
padding:16px;
border-radius:18px;
}

.big{
width:100%;
padding:18px;
font-size:20px;
font-weight:bold;
background:#d32f2f;
color:white;
border:none;
border-radius:18px;
margin-top:18px;
}

.flow{
font-size:18px;
line-height:1.8;
}

.mouldgrid{
display:grid;
grid-template-columns:1fr 1fr;
gap:16px;
}

.machine{
background:#2a2a2a;
padding:16px;
border-radius:18px;
}

.sku{
display:inline-block;
background:#d32f2f;
padding:8px 12px;
border-radius:12px;
margin:4px;
font-weight:bold;
}

.status{
padding:10px;
border-radius:12px;
text-align:center;
font-weight:bold;
margin-top:12px;
}

.running{
background:#1b5e20;
}

.idle{
background:#555;
}

.grid{
display:grid;
grid-template-columns:1fr 1fr;
gap:14px;
}

.smallcard{
text-align:center;
}

.alert{
padding:18px;
border-radius:16px;
margin-bottom:12px;
font-weight:bold;
font-size:18px;
}

.ok{
background:#1b5e20;
}

.warn{
background:#b26a00;
}

.redalert{
background:#8b1e1e;
}

.metric{
text-align:center;
}

.number{
font-size:48px;
font-weight:bold;
margin-top:10px;
}

.aibox{
background:#2a2a2a;
padding:18px;
border-radius:18px;
line-height:1.8;
font-size:18px;
}

@media(max-width:700px){
.plan,.mouldgrid,.grid{
grid-template-columns:1fr;
}

.top{
flex-direction:column;
align-items:flex-start;
gap:10px;
}
}
