* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    sans-serif;
  background: #eef2f9;
  height: 100vh;
  overflow: hidden;
  padding: 16px;
  color: #1f2328;
}

.container {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.project-header {
  background: transparent;
  color: #1f2328;
  padding: 24px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: none;
  flex-shrink: 0;
  gap: 16px;
  text-align: center;
}

.project-header h1 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: #1f2328;
  font-weight: 600;
}

.project-link {
  color: #0969da;
  text-decoration: none;
  font-weight: 600;
}

.project-link:hover {
  text-decoration: underline;
}

.project-header p {
  color: #656d76;
  font-size: 1.1rem;
  line-height: 1.5;
}

.project-header p code {
  background: rgba(175, 184, 193, 0.2);
  padding: 0.3em 0.6em;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;
  font-size: 100%;
  color: #24292f;
}

.iframe-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1.2;
  min-height: 0;
}

.iframe-wrapper {
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
  border: 1px solid #d0d7de;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
  background: white;
}

.message-center {
  flex: 1;
  min-height: 0;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(140, 149, 159, 0.2);
  border: 1px solid #d0d7de;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.message-center-header {
  background: #f6f8fa;
  color: #24292f;
  padding: 12px 20px;
  font-size: 0.95em;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: 1px solid #d0d7de;
}

.tag {
  display: inline-block;
  padding: 2px 10px;
  background: #2da44e;
  color: white;
  border-radius: 12px;
  font-size: 0.8em;
  font-weight: 500;
  margin-left: 8px;
}

.clear-btn {
  padding: 6px 12px;
  background: #ffffff;
  color: #24292f;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.85em;
  cursor: pointer;
  transition: all 0.2s;
  font-weight: 500;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.04);
}

.clear-btn:hover {
  background: #f3f4f6;
  border-color: #1f2328;
}

.message-center-box {
  flex: 1;
  padding: 20px;
  overflow-y: auto;
  background: #ffffff;
}

.system-log {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 6px;
  background: #f6f8fa;
  color: #24292f;
  font-size: 0.9em;
  border-left: 3px solid #0969da;
  animation: slideIn 0.2s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.log-meta {
  font-size: 0.85em;
  color: #656d76;
  margin-top: 6px;
}

.broadcast-area {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: #f6f8fa;
  border-top: 1px solid #d0d7de;
}

.broadcast-input {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d0d7de;
  border-radius: 6px;
  font-size: 0.95em;
  transition: all 0.2s;
  background: #ffffff;
  color: #24292f;
}

.broadcast-input::placeholder {
  color: #656d76;
}

.broadcast-input:focus {
  outline: none;
  border-color: #0969da;
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.broadcast-btn {
  padding: 8px 16px;
  background: #0969da;
  color: white;
  border: 1px solid rgba(27, 31, 36, 0.15);
  border-radius: 6px;
  font-size: 0.95em;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 1px 0 rgba(27, 31, 36, 0.1);
}

.broadcast-btn:hover {
  background: #0a5dc2;
}

.broadcast-btn:active {
  background: #0a53ad;
}
