* {
  box-sizing: border-box; 
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  background-color: #f5f8fa;
  color: #333;
  margin: 0;
  padding: 20px 10px;
}

.container {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

h1 {
  font-size: 1.5rem;
  color: #1da1f2;
  margin-top: 0;
  text-align: center;
}

label {
  font-weight: bold;
  display: block;
  margin-bottom: 8px;
}

button {
  background-color: #1da1f2;
  color: white;
  border: none;
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 20px;
  cursor: pointer;
  width: 100%;
  margin-top: 10px;
  font-weight: bold;
  transition: background-color 0.2s;
}

button:hover {
  background-color: #1a91da;
}

.section {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.radio-group {
  display: flex;
  gap: 20px;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.radio-group label {
  font-weight: normal;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
}

.control-buttons {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.control-buttons button {
  flex: 1;
  background-color: #e1e8ed;
  color: #333;
  font-size: 0.85rem;
  padding: 8px 10px;
  margin: 0;
}

.control-buttons button:hover {
  background-color: #ccd6dd;
}

.checkbox-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid #eee;
  padding: 12px;
  border-radius: 6px;
  background: #fafafa;
  
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 8px 12px; 
}

.checkbox-item {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  cursor: pointer;
  font-size: 0.9rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
  line-height: 1.2;
  padding-right: 5px;
}

.result-box {
  word-break: break-all;
  margin: 0.2rem;
  font-family: monospace;
}

.result-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
}

.btn-open {
  display: inline-block;
  width: auto;         
  text-align: center; 
  text-decoration: none;
  background-color: #4caf50;
  color: white;
  padding: 12px 30px;
  font-size: 1rem;
  border-radius: 20px;
  font-weight: bold;
  transition: background-color 0.2s;
  cursor: pointer;
}

.btn-open:hover {
  background-color: #43a047;
}

.btn-open.disabled {
  background-color: #cccccc !important;
  color: #888888;
  cursor: not-allowed;
  pointer-events: none;
}

@media (max-width: 480px) {
  .container {
    padding: 15px;
  }
  h1 {
    font-size: 1.3rem;
  }
  .checkbox-list {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 6px 8px;
  }
}