* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f6f7f9;
  color: #1d1f23;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e4e6eb;
}
header h1 {
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}
.log-btn {
  background: transparent;
  border: 1px solid #d7dae0;
  color: #8a8f98;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 12px;
  cursor: pointer;
}
.log-btn:hover {
  background: #eef0f3;
}
main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 24px;
  max-width: 960px;
  margin: 0 auto;
}
.panel {
  background: #ffffff;
  border: 1px solid #e4e6eb;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
}
.panel label {
  font-size: 12px;
  color: #6b7280;
  margin-bottom: 8px;
}
textarea {
  flex: 1;
  min-height: 220px;
  resize: vertical;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
  padding: 10px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 13px;
}
.actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.actions button {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid #d7dae0;
  background: #fafbfc;
  cursor: pointer;
  font-size: 13px;
}
.actions button:hover {
  background: #eef0f3;
}
footer {
  text-align: center;
  color: #9aa0a6;
  font-size: 12px;
  padding: 20px;
}
@media (max-width: 720px) {
  main { grid-template-columns: 1fr; }
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal.hidden { display: none; }
.modal-box {
  background: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 260px;
}
.modal-box input {
  padding: 8px 10px;
  border: 1px solid #d7dae0;
  border-radius: 8px;
  font-size: 13px;
}
.modal-box button {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: #1d1f23;
  color: #fff;
  cursor: pointer;
}
.log-msg {
  margin: 0;
  font-size: 12px;
  color: #d13438;
  min-height: 14px;
}
