*, *::before, *::after { box-sizing: border-box; }

html { font-size: 14px; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #222;
  background: #f5f5f5;
  line-height: 1.4;
}

.container {
  max-width: 640px;
  margin: 40px auto;
  padding: 0 16px;
}

header {
  margin-bottom: 24px;
}

h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 4px;
}

.muted {
  margin: 0;
  color: #888;
  font-size: 13px;
}

.form {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 20px;
}

.row {
  margin-bottom: 16px;
}

.row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  font-size: 13px;
}

input[type="text"],
input[type="file"],
select,
textarea {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-family: inherit;
  font-size: 14px;
  background: #fff;
  color: #222;
}

textarea {
  resize: vertical;
  min-height: 80px;
}

select:focus,
textarea:focus,
input:focus {
  outline: none;
  border-color: #4a90e2;
}

input[type="file"] {
  padding: 4px;
  font-size: 13px;
}

select:disabled {
  background: #f5f5f5;
  color: #888;
}

.preview {
  margin-top: 8px;
}

.preview img,
.preview video {
  max-width: 240px;
  max-height: 160px;
  border: 1px solid #ddd;
  border-radius: 3px;
  display: block;
}

.actions {
  margin-top: 20px;
  border-top: 1px solid #eee;
  padding-top: 16px;
}

button {
  padding: 8px 18px;
  background: #4a90e2;
  color: #fff;
  border: 1px solid #3a7bc8;
  border-radius: 3px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

button:hover {
  background: #3a7bc8;
}

button:disabled {
  background: #aaa;
  border-color: #aaa;
  cursor: not-allowed;
}

.status,
.result {
  margin-top: 16px;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 3px;
  background: #fafafa;
  font-size: 13px;
}

.status.error {
  border-color: #d9534f;
  background: #fdf2f2;
  color: #a02622;
}

.status.success {
  border-color: #5cb85c;
  background: #f1faf1;
  color: #2d6a2d;
}

.result video {
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ddd;
}

.result a {
  color: #4a90e2;
}
