html, body {
  padding: 0px;
  margin: 0px;
  font-family: Sans-Serif;
  font-weight: 400;
  font-size: 18px;
  line-height: 1.4;
}

body {
  padding-top: 40px;
}

.row {
  margin: 0px 16px;
  display: flex;
}

.row.examples {
  flex-wrap: wrap;
  gap: 16px;
}

h1 {
  font-size: 34px;
  line-height: 1.5;
}

.button {
  display: flex;
  font-size: 15px;
  font-weight: bold;
  background-color: #e76f51;
  color: #fff;
  border-radius: 10px;
  min-width: 100px;
  padding: 10px;
  font-style: normal;
  text-decoration: none;
  height: 60px;
  justify-content: center;
  align-items: center;
  padding: 16px;
}

#banner {
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#banner.gist-visible {
  opacity: 1;
}

@media (max-width: 800px) {
  .button {
    width: 100%;
  }
}

/* Inbox Header */
.inbox-header {
  height: 40px;
  background-color: #e76f51;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding: 0 16px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.inbox-icon-container {
  position: relative;
  cursor: pointer;
  padding: 8px;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.inbox-icon-container:hover {
  background-color: rgba(255,255,255,0.1);
}

.inbox-icon {
  color: white;
  display: block;
}

.inbox-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background-color: #264653;
  color: white;
  border-radius: 10px;
  padding: 2px 6px;
  font-size: 11px;
  font-weight: bold;
  min-width: 18px;
  text-align: center;
}

/* Inbox Panel */
.inbox-panel {
  position: fixed;
  top: 40px;
  right: 0;
  width: 400px;
  max-width: 100%;
  max-height: calc(100vh - 40px);
  background-color: white;
  box-shadow: -2px 0 8px rgba(0,0,0,0.15);
  z-index: 999;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.inbox-panel .inbox-panel-content {
  min-height: 400px;
}

.inbox-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-bottom: 1px solid #e0e0e0;
  background-color: #f5f5f5;
}

.inbox-panel-header h3 {
  margin: 0;
  font-size: 18px;
}

.close-btn {
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #666;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
}

.close-btn:hover {
  background-color: rgba(0,0,0,0.05);
}

.inbox-panel-content {
  padding: 16px;
}

.no-messages {
  text-align: center;
  color: #999;
  padding: 32px 16px;
  font-size: 16px;
}

/* Inbox Message */
.inbox-message {
  background-color: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 12px;
  transition: box-shadow 0.2s;
}

.inbox-message:hover {
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.inbox-message.unopened {
  background-color: #f0f9ff;
  border-color: #2a9d8f;
}

.inbox-message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.inbox-message-header strong {
  font-size: 16px;
  color: #264653;
}

.inbox-message-header p {
  font-size: 12px;
  font-style: italic;
}

.unopened-dot {
  width: 8px;
  height: 8px;
  background-color: #2a9d8f;
  border-radius: 50%;
  display: inline-block;
  margin-left: 8px;
}

.inbox-message-body {
  font-size: 14px;
  color: #555;
  line-height: 1.5;
  margin-bottom: 12px;
}

.inbox-message-body pre {
  background-color: #f5f5f5;
  padding: 12px;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 12px;
  margin: 0;
  font-family: 'Courier New', monospace;
}

.inbox-message-footer {
  margin-bottom: 12px;
}

.inbox-message-footer a {
  color: #2a9d8f;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.inbox-message-footer a:hover {
  text-decoration: underline;
}

.inbox-message-actions {
  display: flex;
  gap: 8px;
}

.inbox-message-actions button {
  padding: 6px 12px;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  background-color: white;
  color: #555;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.inbox-message-actions button:hover {
  background-color: #f5f5f5;
  border-color: #2a9d8f;
}

@media (max-width: 800px) {
  .inbox-panel {
    width: 100%;
  }
}

/* Config Form Sticky */
.config-form-sticky {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #264653;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  z-index: 998;
}

.config-form-header {
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-weight: 600;
  font-size: 14px;
  user-select: none;
  background-color: #264653;
  transition: background-color 0.2s;
}

.config-form-header:hover {
  background-color: #1d3a44;
}

.config-form-content {
  display: none;
  max-height: 60vh;
  overflow-y: auto;
  background-color: #f5f5f5;
  padding: 16px;
  border-top: 1px solid #1d3a44;
}

#configForm {
  max-width: 1200px;
  margin: 0 auto;
}

.form-section {
  background-color: white;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-section h4 {
  margin: 0 0 16px 0;
  color: #264653;
  font-size: 16px;
  border-bottom: 2px solid #e76f51;
  padding-bottom: 8px;
}

.form-field {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-field label {
  min-width: 180px;
  font-size: 14px;
  color: #333;
  font-weight: 500;
}

.form-field input[type="text"],
.form-field select {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
}

.form-field input[type="text"]:focus,
.form-field select:focus {
  outline: none;
  border-color: #e76f51;
}

.form-field input[type="checkbox"] {
  width: 18px;
  height: 18px;
  cursor: pointer;
  margin-left: 0;
}

.form-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 16px;
}

.form-actions .button {
  margin: 0;
  height: auto;
  min-width: 120px;
  padding: 10px 20px;
  font-size: 14px;
  cursor: pointer;
  border: none;
}

.form-actions .button.primary {
  background-color: #e76f51;
  color: white;
}

.form-actions .button:not(.primary) {
  background-color: #888;
}

.form-actions .button:hover {
  opacity: 0.9;
}

@media (max-width: 800px) {
  .form-field {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-field label {
    min-width: auto;
    width: 100%;
  }

  .form-field input[type="text"],
  .form-field select {
    width: 100%;
  }

  .form-actions {
    flex-direction: column;
  }

  .form-actions .button {
    width: 100%;
  }
}