:root {
  color: #1c2430;
  background: #f4f6f8;
  font-family: "Helvetica Neue", Arial, "Hiragino Sans", "Hiragino Kaku Gothic ProN", Meiryo, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}

body {
  margin: 0;
}

main {
  padding: 12px;
}

.panel {
  border: 1px dashed #c5ced6;
  border-radius: 8px;
  background: #fff;
  padding: 14px;
}

.lead {
  margin: 0 0 4px;
}

.hint,
.drop-hint {
  margin: 0;
  color: #5c6b7a;
  font-size: 12px;
}

.drop-hint {
  margin-top: 8px;
}

.file-name {
  margin: 0 0 4px;
  font-weight: 600;
  word-break: break-all;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 12px 0 0;
}

button,
.text-link {
  font: inherit;
  border-radius: 6px;
  border: 1px solid #c5ced6;
  background: #fff;
  color: #1c2430;
  padding: 6px 12px;
  cursor: pointer;
  text-decoration: none;
}

button.primary {
  border-color: #0f6e56;
  background: #0f6e56;
  color: #fff;
}

button.danger {
  color: #9b2c2c;
  border-color: #e4c1c1;
}

button:disabled {
  opacity: 0.6;
  cursor: progress;
}

.message {
  margin: 0 0 8px;
  color: #9b2c2c;
}

.message.notice {
  color: #0f6e56;
}

.url-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.url-row input {
  flex: 1;
  min-width: 0;
  font: inherit;
  font-size: 12px;
  color: #1c2430;
  border: 1px solid #c5ced6;
  border-radius: 6px;
  background: #f4f6f8;
  padding: 6px 8px;
  text-overflow: ellipsis;
}

.url-row button {
  flex: none;
}

.replace-hint {
  margin-top: 8px;
}

.bar {
  height: 8px;
  margin-top: 8px;
  border-radius: 999px;
  background: #e6ebf0;
  overflow: hidden;
}

.bar span {
  display: block;
  height: 100%;
  width: 0;
  background: #0f6e56;
}

.panel.dragover {
  border-color: #0f6e56;
  background: #f3faf7;
}
