.unif-auto-page {
  min-height: 100vh;
  background: #0f172a;
  color: #e2e8f0;
}

.unif-auto-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.unif-auto-top a.brand {
  color: #f8fafc;
  font-weight: 800;
  text-decoration: none;
  margin-inline-end: auto;
}

.unif-auto-top .accent {
  color: #facc15;
}

.unif-auto-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.unif-auto-actions .btn {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  cursor: pointer;
  text-decoration: none;
}

.unif-auto-actions .btn-primary {
  background: #facc15;
  color: #0f172a;
  border-color: #facc15;
}

.unif-auto-main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

.unif-auto-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 16px;
}

.unif-auto-card h1 {
  font-size: 1.35rem;
  color: #fde047;
  margin: 0 0 8px;
}

.unif-auto-card p.lead {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0 0 14px;
}

.unif-auto-board-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
}

.unif-auto-board-row label {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
}

.unif-auto-board-row select {
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #1e293b;
  color: #f1f5f9;
}

.unif-symbols-note {
  font-size: 0.85rem;
  color: #86efac;
  margin: 0 0 12px;
  line-height: 1.45;
}

.unif-preview {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 10px;
  padding: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  min-height: min(55dvh, 560px);
}

.unif-svg-pro-wrap {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
}

.unif-svg-pro-wrap svg,
.unif-preview svg.unif-svg-swissdz {
  display: block;
  margin: 0 auto;
  min-width: 420px;
  width: 100%;
  max-width: none;
  height: auto;
  background: #ffffff;
}

.unif-circuits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
}

.unif-circuits-table th,
.unif-circuits-table td {
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 8px 10px;
  text-align: start;
}

.unif-circuits-table th {
  background: rgba(5, 150, 105, 0.15);
  color: #86efac;
}

.unif-circuits-table input[type="number"] {
  width: 4rem;
  padding: 4px 6px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0f172a;
  color: #f1f5f9;
}

.unif-empty {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
}

.unif-empty a {
  color: #facc15;
}

.unif-disclaimer {
  font-size: 0.72rem;
  color: #64748b;
  line-height: 1.45;
  margin-top: 12px;
}
