* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 20px;
  font-family: Arial, sans-serif;
  background: #f4f6f8;
  color: #17202a;
}

.container {
  max-width: 1000px;
  margin: auto;
}

h1 {
  text-align: center;
  margin-bottom: 8px;
}

.subtitle {
  text-align: center;
  color: #667085;
  margin-bottom: 25px;
}

.card {
  background: white;
  padding: 18px;
  border-radius: 14px;
  margin-bottom: 18px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

input,
button,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 9px;
  border: 1px solid #ccd3da;
  padding: 10px 12px;
  font-size: 16px;
}

button {
  margin-top: 10px;
  cursor: pointer;
  background: #1677ff;
  color: white;
  border: none;
  font-weight: bold;
}

button:hover {
  opacity: 0.9;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.stat {
  padding: 15px;
  text-align: center;
  background: #f8fafc;
  border-radius: 10px;
}

.stat strong {
  display: block;
  font-size: 24px;
  margin-bottom: 5px;
}

.channel {
  border: 1px solid #e1e5e9;
  border-radius: 10px;
  padding: 12px;
  margin-top: 10px;
}

.channel-name {
  font-weight: bold;
  font-size: 17px;
}

.channel-url {
  word-break: break-all;
  color: #667085;
  font-size: 13px;
  margin-top: 5px;
}

.status-working {
  color: #16803c;
  font-weight: bold;
}

.status-failed {
  color: #d92d20;
  font-weight: bold;
}

.status-timeout {
  color: #b54708;
  font-weight: bold;
}

.actions {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.actions button {
  width: auto;
  margin: 0;
  min-height: 40px;
}

@media (max-width: 650px) {
  body {
    padding: 12px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  h1 {
    font-size: 26px;
  }

  .actions button {
    flex: 1;
  }
}
