:root{
  --bg:#f6f8fb;
  --card:#ffffff;
  --text:#111827;
  --muted:#6b7280;
  --line:#e5e7eb;
  --blue:#2563eb;
  --blue-dark:#1d4ed8;
  --green:#15803d;
  --red:#b91c1c;
  --amber:#b45309;
  --shadow:0 10px 28px rgba(15, 23, 42, 0.08);
  --radius:16px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--text);
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

.eqsy-wrap{
  max-width:1000px;
  margin:0 auto;
  padding:20px 14px 32px;
}

.eqsy-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:18px;
  margin-bottom:16px;
}

.eqsy-head h1{
  margin:0 0 6px;
  font-size:28px;
}

.eqsy-sub{
  margin:0;
  color:var(--muted);
  font-size:14px;
  line-height:1.45;
}

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

@media (max-width: 800px){
  .eqsy-grid{
    grid-template-columns:1fr;
  }
}

.eqsy-panel{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fafbfd;
}

.eqsy-panel h2{
  margin:0 0 12px;
  font-size:18px;
}

.eqsy-field{
  display:flex;
  flex-direction:column;
  gap:6px;
  margin-bottom:12px;
}

.eqsy-field span{
  font-size:13px;
  color:var(--muted);
}

input, select{
  width:100%;
  padding:10px 12px;
  border:1px solid var(--line);
  border-radius:12px;
  background:#fff;
  font-size:14px;
}

.eqsy-note{
  font-size:13px;
  color:var(--muted);
  line-height:1.45;
  margin-bottom:12px;
}

.eqsy-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin-top:14px;
}

.eqsy-btn{
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:10px 14px;
  border-radius:12px;
  cursor:pointer;
  font-weight:600;
  font-size:14px;
}

.eqsy-btn:hover{
  border-color:#cbd5e1;
}

.eqsy-btn-primary{
  background:var(--blue);
  color:#fff;
  border-color:var(--blue);
}

.eqsy-btn-primary:hover{
  background:var(--blue-dark);
  border-color:var(--blue-dark);
}

.eqsy-check{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:14px;
  color:var(--muted);
}

.eqsy-msg{
  margin-top:10px;
  min-height:18px;
  font-size:13px;
  color:var(--muted);
}

.eqsy-results{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:12px;
  margin-top:12px;
}

@media (max-width: 900px){
  .eqsy-results{
    grid-template-columns:repeat(2, 1fr);
  }
}

@media (max-width: 520px){
  .eqsy-results{
    grid-template-columns:1fr;
  }
}

.eqsy-result-box{
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  background:#fafbfd;
}

.eqsy-label{
  font-size:13px;
  color:var(--muted);
  margin-bottom:6px;
}

.eqsy-value{
  font-size:24px;
  font-weight:800;
  line-height:1.2;
}

.eqsy-value.good{
  color:var(--green);
}

.eqsy-value.bad{
  color:var(--red);
}

.eqsy-value.neutral{
  color:var(--amber);
}

.eqsy-explanation{
  margin-top:14px;
  padding:14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fcfcfd;
  font-size:14px;
  line-height:1.55;
}

.eqsy-details summary{
  cursor:pointer;
  font-weight:700;
}

.eqsy-details-content{
  margin-top:10px;
  color:var(--muted);
  font-size:14px;
  line-height:1.55;
}