:root{
  --bg:#f6f7fb;
  --card:#ffffff;
  --line:#e6e8f0;
  --text:#111827;
  --muted:#6b7280;
  --title:#f0d8d8; /* как “розовая” шапка в таблице */
}

*{box-sizing:border-box}
body{
  margin:0;
  background:var(--bg);
  color:var(--text);
  font:14px/1.35 system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.wrap{
  max-width:980px;
  margin:24px auto;
  padding:0 16px;
}

h1{
  margin:0 0 16px;
  font-size:20px;
}

.block{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:10px;
  overflow:hidden;
  margin-bottom:14px;
  box-shadow:0 1px 2px rgba(0,0,0,.04);
}

.block__title{
  background:var(--title);
  padding:10px 12px;
  font-weight:700;
}

.grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  border-top:1px solid var(--line);
}

.cell{
  padding:12px;
  border-right:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

.grid .cell:nth-child(2n){
  border-right:none;
}

.cell--label{
  font-weight:600;
}

.cell--value{
  font-weight:600;
  text-align:right;
  color:#111827;
}

.cell--value.is-ok{ color:#065f46; }
.cell--value.is-bad{ color:#991b1b; }
.cell--value.is-warn{ color:#92400e; }

.footer{
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:flex-end;
  color:var(--muted);
  margin-top:8px;
}

button{
  border:1px solid var(--line);
  background:#fff;
  padding:8px 10px;
  border-radius:8px;
  cursor:pointer;
}
button:hover{ filter:brightness(.98); }

/* ===== LOGIN ===== */
.login-wrap{
  position:fixed;
  inset:0;
  background:#f6f7fb;
  display:flex;
  align-items:center;
  justify-content:center;
}

.login-card{
  background:#fff;
  border:1px solid #e6e8f0;
  border-radius:12px;
  padding:24px;
  width:320px;
  box-shadow:0 10px 30px rgba(0,0,0,.08);
}

.login-card h2{
  margin:0 0 16px;
  text-align:center;
}

.login-card input{
  width:100%;
  padding:10px;
  margin-bottom:10px;
  border-radius:8px;
  border:1px solid #e6e8f0;
}

.login-card button{
  width:100%;
  padding:10px;
  border-radius:8px;
  border:none;
  background:#111827;
  color:#fff;
  font-weight:600;
  cursor:pointer;
}

.login-error{
  margin-top:10px;
  color:#991b1b;
  text-align:center;
}