body {
  margin: 0;
  background: #0f1115;
  color: #e8eaf0;
  font-family: Arial, sans-serif;
}

.container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px 24px;
}

.card {
  background: #1a1f2c;
  border: 1px solid #2c3445;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 18px;
}

.ops-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 20px;
  align-items: start;
}

.accounts-side {
  margin-bottom: 0;
}

.hidden {
  display: none;
}

h1,
h2 {
  margin-top: 0;
}

.hint {
  color: #aeb7c7;
}

.small-hint {
  margin-top: -6px;
  margin-bottom: 10px;
  font-size: 0.92rem;
}

form,
.inline-form,
.row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.top-actions {
  justify-content: flex-end;
}

input,
textarea,
select,
button {
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid #3a445a;
  background: #121723;
  color: #fff;
}

textarea {
  min-height: 78px;
  min-width: 260px;
  resize: vertical;
}

button {
  cursor: pointer;
  background: #4f5ebd;
  border: 1px solid #6373d6;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.1;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}

button:hover {
  background: #4351a7;
  border-color: #5f70d8;
}

button:active {
  transform: translateY(1px);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

a {
  color: #9fb1ff;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0 0 12px 0;
}

li {
  background: #121723;
  border: 1px solid #2a3244;
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 6px;
}

.account-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.account-item.next-account {
  border-color: #6c7487;
  background: #1b2230;
}

.account-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.account-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.next-marker {
  color: #9aa0ab;
  font-size: 0.9rem;
}

.account-follow-status {
  font-size: 0.82rem;
  color: #a7aec2;
}

.account-validation-status {
  font-size: 0.82rem;
  color: #a7aec2;
}

.account-validation-status.is-valid {
  color: #7be495;
}

.account-validation-status.is-invalid {
  color: #ff9b9b;
}

.account-follow-status.is-following {
  color: #7be495;
}

.account-follow-status.is-not-following {
  color: #ff9b9b;
}

.account-actions {
  display: flex;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.account-actions button {
  padding: 5px 8px;
  font-size: 0.74rem;
  border-radius: 5px;
}

.next-account-btn {
  background: #556176;
  border-color: #6d7891;
}

.next-account-btn:hover {
  background: #4b5668;
}

.check-follow-btn {
  background: #2f5fc0;
  border-color: #3b71db;
}

.check-follow-btn:hover {
  background: #2952a6;
}

.validate-account-btn {
  background: #6a46ba;
  border-color: #7b57ca;
}

.validate-account-btn:hover {
  background: #5b3ca3;
}

.follow-open-btn {
  background: #257d45;
  border-color: #2f9452;
}

.follow-open-btn:hover {
  background: #216d3c;
}

.force-rotation-btn {
  background: #7a5b32;
  border-color: #8f6d3f;
}

.force-rotation-btn:hover {
  background: #6b4f2b;
}

.pause-account-btn {
  background: #505f70;
  border-color: #64768c;
}

.pause-account-btn:hover {
  background: #435161;
}

.delete-account-btn {
  background: #a53a3a;
  border-color: #bf4b4b;
  min-width: 30px;
  padding: 5px 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.trash-icon {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.delete-account-btn:hover {
  background: #8e3131;
}

.status {
  position: sticky;
  bottom: 0;
  background: #1a1f2c;
  border: 1px solid #2f3950;
  border-radius: 6px;
  padding: 10px;
  min-height: 24px;
}

.state {
  color: #b8f3c7;
  margin-bottom: 12px;
}

.checkbox {
  display: inline-flex;
  gap: 6px;
  align-items: center;
}

.embed-grid {
  display: grid;
  grid-template-columns: 2.3fr minmax(360px, 1fr);
  gap: 14px;
  margin-bottom: 16px;
  align-items: stretch;
}

.embed-frame {
  width: 100%;
  border: 1px solid #2a3244;
  border-radius: 8px;
  background: #0d111a;
}

.stream-frame {
  min-height: 520px;
}

.chat-feed-card {
  border: 1px solid #3b2f54;
  border-radius: 8px;
  padding: 10px 0 0;
  margin-bottom: 0;
  background: #18181b;
  display: flex;
  flex-direction: column;
  min-height: 520px;
}

.chat-feed-list {
  flex: 1;
  max-height: 460px;
  overflow-y: auto;
  margin-top: 0;
  padding: 8px 10px;
}

.chat-compose {
  border-top: 1px solid #2e2e36;
  padding: 8px 10px 10px;
  background: #18181b;
}

.chat-compose .inline-form {
  margin-bottom: 6px;
}

.chat-compose input,
.chat-compose select {
  flex: 1;
  min-width: 0;
}

.chat-feed-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-bottom: 2px;
  padding: 4px 2px;
}

.chat-feed-message {
  word-break: break-word;
  font-size: 0.92rem;
  line-height: 1.35;
}

.chat-user {
  color: #bf94ff;
  font-weight: 600;
}

.chat-badges {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  margin-right: 4px;
}

.chat-badge {
  font-size: 0.72rem;
  line-height: 1;
  opacity: 0.95;
}

.chat-badge-img {
  width: 18px;
  height: 18px;
  border-radius: 2px;
  vertical-align: text-bottom;
}

.chat-time {
  color: #9ea0a7;
  font-size: 0.75rem;
  margin-right: 6px;
}

.twitch-emote {
  width: 28px;
  height: 28px;
  vertical-align: middle;
  margin: 0 1px;
}

.reply-btn {
  padding: 4px 6px;
  font-size: 0.72rem;
  white-space: nowrap;
  background: #2f3442;
  border-color: #3a4258;
}

.reply-btn:hover {
  background: #40485a;
}

@media (max-width: 900px) {
  .embed-grid {
    grid-template-columns: 1fr;
  }

  .chat-feed-card,
  .stream-frame {
    min-height: 420px;
  }

  .ops-layout {
    grid-template-columns: 1fr;
  }
}
