:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --muted:#5b6b7f;
  --text:#0b1220;
  --soft:#f0f4f8;
  --line:rgba(15, 23, 42, 0.10);
  --accent:#0b1220;
  --ok:#118a55;
  --warn:#b45309;
  --bad:#b42318;
  --radius:18px;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 800px at 20% 0%, #ffffff, var(--bg));
  color:var(--text);
}

a{color:inherit}

.container{
  width:min(1100px, calc(100% - 32px));
  margin:0 auto;
  padding:24px 0 64px;
}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 18px;
  background: rgba(255,255,255,0.85);
  border:1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
}

.brand{
  display:flex;
  justify-content: space-between;
  gap:12px;
  width: 100%;
}

.brand img{
  width:100px;
}

.brand .title{
  display:flex;
  flex-direction:column;
  line-height:1.1;
}
.brand .title strong{font-size:18px; letter-spacing:0.2px}
.brand .title span{font-size:14px; color:var(--muted)}

.hero{
  margin-top:18px;
  padding:18px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255,255,255,0.95), rgba(255,255,255,0.7));
  border:1px solid var(--line);
}

.hero h1{
  margin:0 0 8px 0;
  font-size:22px;
  letter-spacing:0.2px;
}

.hero p{
  margin:0;
  color:var(--muted);
  max-width: 70ch;
}

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

.card{
  border-radius: var(--radius);
  background: var(--card);
  border:1px solid var(--line);
  overflow:hidden;
}

.cardHeader{
  padding:16px 16px 10px;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
}

.slotTitle{
  margin:0;
  font-size:16px;
  letter-spacing:0.2px;
}

.slotMeta{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13px;
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.badge{
  font-size:12px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  background: rgba(15, 23, 42, 0.03);
  white-space:nowrap;
}

.badge.ok{
  border-color: rgba(17, 138, 85, 0.25);
  color: var(--ok);
  background: rgba(17, 138, 85, 0.06);
}
.badge.warn{
  border-color: rgba(180, 83, 9, 0.25);
  color: var(--warn);
  background: rgba(180, 83, 9, 0.06);
}
.badge.bad{
  border-color: rgba(180, 35, 24, 0.25);
  color: var(--bad);
  background: rgba(180, 35, 24, 0.06);
}

.cardBody{
  padding:0 16px 14px;
  color: var(--muted);
  font-size:14px;
}

.actions{
  padding:14px 16px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  border-top:1px solid var(--line);
  background: rgba(15, 23, 42, 0.02);
}

.btn{
  appearance:none;
  border:1px solid var(--line);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  border-radius: 14px;
  padding:10px 12px;
  cursor:pointer;
  font-weight:600;
  letter-spacing:0.2px;
}

.btn:hover{background: rgba(255,255,255,1)}
.btn.primary{
  background: var(--text);
  color:#ffffff;
  border-color: rgba(11, 18, 32, 0.35);
}
.btn.primary:hover{background: rgba(11, 18, 32, 0.92)}

.formWrap{
  display:none;
  padding:14px 16px 18px;
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.7);
}

.formWrap.open{display:block}

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

@media (max-width: 820px){
  .formGrid{grid-template-columns: 1fr}
}

/* Mobile-friendly topbar adjustments */
@media (max-width: 600px){
  .topbar{
    flex-direction: column;
    align-items: stretch;
    gap:12px;
  }
  .brand{
    gap:10px;
  }
  .brand img{
    width:100px;
  }
  .brand .title strong{font-size:16px}
  .brand .title span{font-size:13px}
  .topbar .btn{align-self:flex-start}
}

label{
  display:block;
  font-size:12px;
  color: var(--muted);
  margin:0 0 6px;
}

input, select, textarea{
  width:100%;
  padding:10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #ffffff;
  color: var(--text);
  outline:none;
}

input:focus, select:focus, textarea:focus{
  border-color: rgba(11, 18, 32, 0.35);
  box-shadow: 0 0 0 4px rgba(11, 18, 32, 0.08);
}

textarea{min-height: 90px; resize: vertical}

.helper{
  margin-top:10px;
  color: var(--muted);
  font-size:12px;
}

.footer{
  margin-top:18px;
  color: var(--muted);
  font-size:12px;
  opacity:0.9;
}
