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

html, body {
  height: 100%;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #f5f3ec;
  color: #222;
  display: flex;
  align-items: center;
  justify-content: center;
}

#app {
  max-width: 320px;
  padding: 16px 20px;
  text-align: center;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.primary-button {
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  background: #222;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.primary-button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.message-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.message-body {
  font-size: 0.95rem;
  line-height: 1.4;
  color: #444;
}

.media-section {
  margin-top: 16px;
  text-align: left;
}

.media-header {
  font-size: 0.85rem;
  font-weight: 600;
  color: #555;
  margin-bottom: 6px;
}

.media-empty {
  font-size: 0.85rem;
  color: #777;
}

.media-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.media-item {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.media-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
}

.media-icon--image {
  background: #f2a13b;
}

.media-icon--audio {
  background: #1e7a5b;
}

.media-meta {
  flex: 1;
  min-width: 0;
}

.media-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.media-type {
  font-size: 0.75rem;
  color: #777;
}

.upload-wrapper {
  margin-top: 12px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
}

.upload-input {
  font-size: 0.75rem;
  max-width: 160px;
}

.secondary-button {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid #ccc;
  background: #f5f5f5;
  color: #222;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
}

.secondary-button:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.delete-button {
  margin-left: 8px;
  border: none;
  background: transparent;
  color: #b33a3a;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
}

.media-preview-image {
  display: block;
  margin-top: 6px;
  max-width: 100%;
  max-height: 80px;
  border-radius: 6px;
}

.media-preview-audio {
  display: block;
  margin-top: 6px;
  width: 100%;
}

.download-button {
  margin-left: 4px;
  border: none;
  background: transparent;
  color: #1e7a5b;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  text-decoration: none;
}